2013-08-10 19:58:36 +08:00
<!--add by huang-->
2013-08-22 23:39:21 +08:00
<div style="height:280px;">
2013-08-12 10:25:23 +08:00
<div class="welcone_left">
2013-08-27 22:19:07 +08:00
<table width="388px">
2013-08-12 10:25:23 +08:00
<tr>
2013-08-27 22:19:07 +08:00
<td><span class="font_welcome_trustie"><%= l(:label_welcome_trustie) %> </span><span class="font_welcome_tdescription">, <%= l(:label_welcome_trustie_description) %></span></td>
2013-08-12 10:25:23 +08:00
</tr>
2013-08-22 22:39:35 +08:00
<!-- <tr>
2013-08-16 20:30:27 +08:00
<td class="font_welcome_Edescription">Trustie forge,a socialized collaboration platform for project management,software development and software crowdsourcing for creative university students and entrepreneurs.</td>
2013-08-22 22:39:35 +08:00
</tr> -->
2013-08-12 10:25:23 +08:00
</table>
</div>
2013-08-10 19:58:36 +08:00
<table>
2013-08-03 22:22:17 +08:00
<tr>
2013-08-12 10:25:23 +08:00
<td> <%= call_hook :view_account_login_top %>
<div id="login-form_new">
<%= form_tag(signin_path) do %>
2013-10-30 20:56:24 +08:00
<%= back_url_hidden_field_tag if is_logout? %>
2013-08-12 10:25:23 +08:00
<% unless User.current.logged? %> <!--modified by young-->
<table>
<tr>
<td align="right"><label for="username"><%= l(:label_username) %></label></td>
<td align="left"><%= text_field_tag 'username', params[:username], :tabindex => '1' %></td>
</tr>
<tr>
<td align="right"><label for="password"><%= l(:label_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>
<% else %>
<div>
<!--info-->
2013-08-28 21:15:54 +08:00
<!-- modified by bai -->
<table width="200" border="0">
2013-08-12 10:25:23 +08:00
<tr>
2013-08-28 21:15:54 +08:00
<td colspan="2" align="center" class="font_welcome_Cdescription" ><%= l(:label_welcome) %> <strong class="font_small_watch" style=" word-wrap: break-word; word-break: break-all"><%=link_to User.current.lastname<<User.current.firstname, user_path(User.current) %></strong> <%= l(:label_join) %></td>
2013-08-09 11:14:53 +08:00
</tr>
2013-08-12 10:25:23 +08:00
<tr>
2013-08-28 21:15:54 +08:00
2013-11-01 15:48:23 +08:00
<td rowspan="2" style="padding-left: 20px"><%= image_tag(url_to_avatar(User.current), :class => 'avatar') %></td>
2013-08-28 15:29:18 +08:00
<td><strong class="font_small_watch"><%= link_to l(:label_user_watcher)+"("+User.watched_by(User.current).count.to_s+")", user_path(User.current) %></strong> 
2013-09-11 20:54:01 +08:00
<strong class="font_small_watch"><%=link_to l(:label_x_user_fans, :count => User.current.watcher_users(User.current.id).count)+"("+User.current.watcher_users(User.current.id).count.to_s+")", user_path(User.current) %></strong></td>
2013-08-12 10:25:23 +08:00
</tr>
<tr>
2013-08-28 21:15:54 +08:00
<td align="left"><% unless User.current.memberships.empty? %>
2013-09-11 20:54:01 +08:00
<%= l(:label_x_welcome_participate, :count => User.current.memberships.count) %> <strong class="font_small_watch"><%= link_to User.current.memberships.count, {:controller => 'users', :action => 'user_projects', :id => User.current} %></strong> <%= l(:label_welcome_participate_project)%>
2013-10-30 20:56:24 +08:00
<% end %>
</td>
2013-08-09 11:14:53 +08:00
</tr>
</table>
2013-08-28 21:15:54 +08:00
<!-- end -->
2013-08-12 10:25:23 +08:00
</div>
<% end %>
<% end %>
</div> <%= call_hook :view_account_login_bottom %>
<% if params[:username].present? %>
<%= javascript_tag "$('#password').focus();" %>
<% else %>
<%= javascript_tag "$('#username').focus();" %>
<% end %> </td>
</tr>
</table>
2013-08-04 10:56:56 +08:00
</div>
2013-08-12 10:25:23 +08:00
<!--model-->
2013-08-16 22:53:28 +08:00
<!-- fq -->
<script type="text/javascript" language="javascript">
function clearInfo(id, content) {
var text = $('#' + id);
if (text.val() == content) {
$('#' + id).val('');
}
}
function showInfo(id, content) {
var text = $('#' + id);
if (text.val() == '') {
$('#' + id).val(content);
}
}
</script>
<!-- end -->
2013-08-12 10:25:23 +08:00
<div>
2013-08-22 23:39:21 +08:00
<table width="700" border="0" align="center" style="padding-top: 0px">
2013-08-17 10:45:14 +08:00
<tr><td colspan="5" align="center" style="padding-bottom: 10px; font-size: 18px; font-color: #5c5c5c ; font-family: 微软雅黑"><%= l(:label_welcome_leave_message) %> <strong><%= toggle_link l(:label_welcome_click_me), 'put-bid-form', {:focus => 'new_form_project_message'} %></strong></td></tr>
2013-08-16 22:53:28 +08:00
<tr><td colspan="5" align="center" ><div class="homepage_underline"></div></td></tr>
<tr><td colspan="5" align="center">
<div id="put-bid-form" style="display: none">
2013-09-29 19:46:59 +08:00
<%= form_for('new_form', :method => :post,
:url => {:controller => 'words', :action => 'add_project_respond'}) do |f|%>
2013-08-16 22:53:28 +08:00
2013-09-29 19:46:59 +08:00
<table border="0" width="525px" align="center" >
<tr>
<td><%= f.text_area 'project_message', :rows => 3, :cols => 65, :value => "#{l(:label_welcome_my_respond)}", :onfocus => "clearInfo('new_form_project_message','#{l(:label_welcome_my_respond)}')", :onblur => "showInfo('new_form_project_message','#{l(:label_welcome_my_respond)}')", :style => "resize: none;", :class => 'noline'%></td>
</tr>
</table>
<table border="0" width="525px" align="center">
<tr>
<td align="right"> <%= submit_tag l(:button_submit), :name => nil , :class => "bid_btn" %></td>
</tr>
</table>
<% end %>
</div></td>
</tr>
2013-08-12 10:25:23 +08:00
</tr>
2013-08-16 22:53:28 +08:00
2013-09-30 09:42:13 +08:00
</table>
2013-08-01 10:33:49 +08:00
</div>
2013-08-09 11:14:53 +08:00
2013-08-12 10:25:23 +08:00
<div style="padding-top: 40px"></div>
2013-08-09 11:14:53 +08:00
2013-08-16 22:53:28 +08:00