
<!-- modified by huang -->
<script type="text/javascript">
    function searchUser(){
        var name = $("#name").val();
        if(name == "")
        {
            alert("搜索条件不能为空");
            return;
        }

        $("#search_user_form").submit();
    }

</script>

<div class="top-content">
	<%= form_tag( users_search_path, :method => :get, :id => 'search_user_form') do %>
	<table width="940px">
		<tr>
			<td class="info_font" style="width: 220px; color: #15bccf" rowspan="2">
              <%= l(:label_software_user ) %>
            </td>
			<td class="location-list">
              <strong><%= l(:label_user_location) %> :</strong>
            </td>
			<td rowspan="2">				
			</td>
			<td rowspan="2" >	
			<div class="project-search" style="float: right">
              <label for="user_browse_label"><%= l(:label_user_search_type) %></label>
              <%= select  "search_by", "id",
                          { l(:label_search_by_login) => "0", l(:label_search_by_name) => "1", l(:label_search_by_email) => "2" },
                           :size => 20 %>
              <%= text_field_tag 'name', params[:name], :size => 30 %>
              <input type="button" class="enterprise" value="<%= l(:label_search) %>" onclick="searchUser();"/>
			<%#= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
			</div>			
			</td>
		</tr>
		<tr>
	        <td >
              <%=link_to l(:field_homepage), home_path %> >
              <a><%= l(:label_software_user)%></a>
            </td>
		</tr>
	</table>
	<% end %>
</div>						
<!-- end -->

<%= sort_user(@s_type, @project_type)%>

<!-- <div class="pagination" style="border-bottom: 1px solid rgb(223,223,223); width: 95%; margin-left: 2%; margin-top: 0px">
<ul style="margin-right:0px">
<li>
<%#= link_to l(:label_sort_by_time), users_path(:user_sort_type => '0') %>
</li>
<li>
<%#= link_to l(:label_sort_by_active), users_path(:user_sort_type => '1') %>
</li>
<li>
<%#= link_to l(:label_sort_by_influence), users_path(:user_sort_type => '2') %>
</li>
</ul>
</div> -->

<%= render :partial => 'user_show' %>

<div class="pagination">
	<ul>
		<%= pagination_links_full @user_pages, @user_count %>
	</ul>
</div>
<% html_title(l(:label_user_plural)) -%>
