2013-08-03 22:22:17 +08:00
|
|
|
<!-- <div class="table_">
|
2013-08-01 10:33:49 +08:00
|
|
|
<table background="/images/welcome/backgroundnew.png" height="600" width="928">
|
|
|
|
<tr><td align="left">
|
|
|
|
<%= call_hook :view_account_login_top %>
|
|
|
|
<div id="login-form_new">
|
|
|
|
<%= form_tag(signin_path) do %>
|
|
|
|
<%= back_url_hidden_field_tag %>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td align="right"><label for="username"><%=l(:field_login)%>:</label></td>
|
|
|
|
<td align="left"><%= text_field_tag 'username', params[:username], :tabindex => '1' %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="right"><label for="password"><%=l(:field_password)%>:</label></td>
|
|
|
|
<td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' %></td>
|
|
|
|
</tr>
|
|
|
|
<% if Setting.openid? %>
|
|
|
|
<tr>
|
|
|
|
<td align="right"><label for="openid_url"><%=l(:field_identity_url)%></label></td>
|
|
|
|
<td align="left"><%= text_field_tag "openid_url", nil, :tabindex => '3' %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td align="left">
|
|
|
|
<% if Setting.autologin? %>
|
|
|
|
<label for="autologin"><%= check_box_tag 'autologin', 1, false, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="left">
|
|
|
|
<% if Setting.lost_password? %>
|
|
|
|
<%= link_to l(:label_password_lost), lost_password_path %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td align="right">
|
|
|
|
<input type="submit" name="login" value="<%=l(:button_login)%> »" tabindex="5"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<%= call_hook :view_account_login_bottom %>
|
|
|
|
|
|
|
|
<% if params[:username].present? %>
|
|
|
|
<%= javascript_tag "$('#password').focus();" %>
|
|
|
|
<% else %>
|
|
|
|
<%= javascript_tag "$('#username').focus();" %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
<tr><td>
|
|
|
|
<table width="600" align="center" style="padding-top: 120px" cellspacing="0" cellpadding="0" >
|
|
|
|
<tr><td width="200" bgcolor="#00adee"><img src="/images/welcome/1.png" width="200" height="200"/></td>
|
|
|
|
<td width="200" bgcolor="#54c8f3"><img src="/images/welcome/2.png" width="200" height="200"/></td>
|
|
|
|
<td width="200" bgcolor="#93c5d8"><img src="/images/welcome/3.png" width="200" height="200"/></td>
|
|
|
|
</tr>
|
|
|
|
<tr height="50"><td align="center">
|
|
|
|
<p><%=link_to "发布需求",home_path %></p>
|
|
|
|
</td><td align="center">
|
|
|
|
<p><%=link_to "发现开源",home_path %></p>
|
|
|
|
</td><td align="center">
|
|
|
|
<p><%=link_to "创建项目",:controller=>'projects',:action=>'index' %></p>
|
|
|
|
</td></tr>
|
|
|
|
</table></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2013-08-03 22:22:17 +08:00
|
|
|
</div> -->
|
2013-08-04 14:23:12 +08:00
|
|
|
<!--add by huang-->
|
2013-08-07 22:13:52 +08:00
|
|
|
<div class="table_" style="height:230px;">
|
2013-08-03 22:22:17 +08:00
|
|
|
<table>
|
|
|
|
<tr><td align="left">
|
|
|
|
<%= call_hook :view_account_login_top %>
|
|
|
|
<div id="login-form_new">
|
|
|
|
<%= form_tag(signin_path) do %>
|
|
|
|
<%= back_url_hidden_field_tag %>
|
2013-08-07 22:13:52 +08:00
|
|
|
<% unless User.current.logged? %><!--Modified by young-->
|
2013-08-03 22:22:17 +08:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td align="right"><label for="username">用户:</label></td>
|
|
|
|
<td align="left"><%= text_field_tag 'username', params[:username], :tabindex => '1' %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="right"><label for="password">密码:</label></td>
|
|
|
|
<td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' %></td>
|
|
|
|
</tr>
|
|
|
|
<% if Setting.openid? %>
|
|
|
|
<tr>
|
|
|
|
<td align="right"><label for="openid_url"><%=l(:field_identity_url)%></label></td>
|
|
|
|
<td align="left"><%= text_field_tag "openid_url", nil, :tabindex => '3' %></td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td align="left">
|
|
|
|
<% if Setting.autologin? %>
|
|
|
|
<label for="autologin"><%= check_box_tag 'autologin', 1, false, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="left">
|
|
|
|
<% if Setting.lost_password? %>
|
|
|
|
<%= link_to l(:label_password_lost), lost_password_path %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td align="right">
|
|
|
|
<input type="submit" name="login" value="<%=l(:button_login)%> »" tabindex="5"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2013-08-07 22:13:52 +08:00
|
|
|
<% end %>
|
2013-08-03 22:22:17 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<%= call_hook :view_account_login_bottom %>
|
|
|
|
|
|
|
|
<% if params[:username].present? %>
|
|
|
|
<%= javascript_tag "$('#password').focus();" %>
|
|
|
|
<% else %>
|
|
|
|
<%= javascript_tag "$('#username').focus();" %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</td></tr>
|
2013-08-04 10:56:56 +08:00
|
|
|
</table></div>
|
|
|
|
<!--model-->
|
|
|
|
<div>
|
2013-08-04 11:23:06 +08:00
|
|
|
<table width="700" align="center" style="padding-top: 100px" cellspacing="0" cellpadding="0" >
|
|
|
|
<tr><td width="200" ><a href="/projects"><img src="/images/welcome/1.png" width="200" height="200"/></td>
|
|
|
|
<td width="200" ><a href="/bids"><img src="/images/welcome/2.png" width="200" height="200"/></td>
|
|
|
|
<td width="200" ><img src="/images/welcome/3.png" width="200" height="200"/></td>
|
2013-08-03 22:22:17 +08:00
|
|
|
</tr>
|
2013-08-04 10:56:56 +08:00
|
|
|
<tr class="font_welcome" height="70"><td align="center">
|
|
|
|
<p class="font_welcome2">项目管理</p>
|
|
|
|
<p class="font_lighter">添加描述添加描述添加描述添加描述...</p>
|
2013-08-03 22:22:17 +08:00
|
|
|
</td><td align="center">
|
2013-08-04 10:56:56 +08:00
|
|
|
<p class="font_welcome2">项目需求</p>
|
|
|
|
<p class="font_lighter">添加描述添加描述添加描述添加描述...</p>
|
2013-08-03 22:22:17 +08:00
|
|
|
</td><td align="center">
|
2013-08-08 22:19:15 +08:00
|
|
|
<p class="font_welcome2">项目需求</p>
|
2013-08-04 10:56:56 +08:00
|
|
|
<p class="font_lighter">添加描述添加描述添加描述添加描述...</p>
|
2013-08-03 22:22:17 +08:00
|
|
|
</td></tr>
|
2013-08-04 10:56:56 +08:00
|
|
|
</table>
|
|
|
|
</div>
|
2013-08-03 22:22:17 +08:00
|
|
|
<!--feature-->
|
2013-08-04 10:56:56 +08:00
|
|
|
<div class="font_welcome_feature">
|
|
|
|
<div align="center">特性
|
|
|
|
<div class="user_underline3"></div></div>
|
|
|
|
</div>
|
|
|
|
<div style="padding-top: 30px">
|
2013-08-04 11:23:06 +08:00
|
|
|
<table width="700" align="center" cellspacing="0" cellpadding="0">
|
2013-08-04 10:56:56 +08:00
|
|
|
<tr class="font_welcome" align="center">
|
|
|
|
<td width="200" valign="middle"><table><td><img src="/images/welcome/discuss.png" width="30" height="27" /></td><td valign="middle" align="left">讨论区</td></table>
|
|
|
|
<td width="200" valign="middle"><table><td><img src="/images/welcome/news.png" width="30" height="27" /></td><td>新闻</td></table>
|
|
|
|
<td width="200" valign="middle"><table><td><img src="/images/welcome/boards.png" width="30" height="27" /></td><td>里程碑</td></table>
|
|
|
|
</tr>
|
|
|
|
<tr class="font_lighter">
|
|
|
|
<td style="padding-left: 25px">互信、分享互信、分享互信、分享互信、分享互信、分享互信、分享互信、分享互信、分享...</td>
|
|
|
|
<td style="padding-left: 25px">最新动态,最新动态,最新动态,最新动态,最新动态,最新动态,最新动态,最新动态,最新动态,...</td>
|
|
|
|
<td style="padding-left: 25px">我们的历程,我们的历程,我们的历程,我们的历程,我们的历程,我们的历程,我们的历程,我们的历程,...</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div></div>
|
|
|
|
<div style="padding-top: 40px">
|
2013-08-01 10:33:49 +08:00
|
|
|
</div>
|