<!-- 加入分班 -->
<div style="margin-left: 15px">
  <% if User.current.logged? && User.current.member_of_course?(@course) && @group  %>
      <%= join_in_course_group(@course.course_groups,@group, User.current) unless @canShowCode %>
      <span style="font-size: 12px; float: left; margin-right: 5px">
      <%= l(:label_current_group)%>:&nbsp;
        <%= @group.name %>
    </span>
  <% end %>
</div>
<div class="cl"></div>

<% if members.any? %>
    <% if @result_count %>
        <p style="font-size: 18px;">
          <%= l(:label_search_member_count) %>
          <%= @result_count %>
          <%= l(:label_member_people) %>
        </p>
        <div class="cl"></div>
    <% end %>

    <div class="st_box">
      <ul class="st_box_top">
        <li  class="ml50" style="padding-right: 5px;"><a href="">姓名</a></li>
        <li  class="ml10" style="padding-right: 15px;"><a href="">学号</a></li>
        <li class="ml358">
          <%= link_to '作业积分', member_score_sort_course_path(:sort_by => (@score_sort_by == "desc" ? "asc" : "desc"), :group_id => (@group ? @group.id : 0),:search_name => (@search_name ? @search_name : nil)) ,:result => members,method: 'get', remote: true%>
          <% if @score_sort_by == 'desc' %>
              <a id="pic" href="javascript:" class= "st_down"></a>
          <% else %>
              <a id="pic" href="javascript:" class= "st_up"></a>
          <% end %>
        </li>
        <li class="ml50"><a href="javascript:void(0)" >加入时间</a></li>
      </ul>
      <div class="cl"></div><!--st_box_top end-->

      <% members.each do |member| %>
          <div class="st_boxlist">
            <a href="javascript:" class="st_img">
              <%= member.user.nil? ? '' : (image_tag(url_to_avatar(member.user), :width => 32, :height => 32))  %>
            </a>
            <ul>
              <% if @canShowCode %>
                  <li>
                      <% if member.user.show_name == ''%>
                          <%= link_to("#{l(:label_bidding_user_studentname)}：<span >#{member.user.name}</span>".html_safe,user_path(member.user)) %>
                      <% else%>
                          <%= link_to("#{l(:label_bidding_user_studentname)}：<span >#{member.user.show_name}</span>".html_safe,user_path(member.user)) %>
                      <%end%>
                  </li>
              <% else %>
                  <li><%= link_to("#{l(:label_bidding_user_studentname)}：<span >#{member.user.name}</span>".html_safe, user_path(member.user)) %></li>
              <% end %>
              <br/>
              <% unless member.user.user_extensions.student_id == ''%>
                  <li><%= link_to("#{l(:label_bidding_user_studentcode)}：<span >#{member.user.user_extensions.student_id}</span>".html_safe,user_path(member.user)) %></li>
              <% end%>
            </ul>
            <%= link_to format("%0.2f",member.score.nil? ? 0 : member.score.to_s), {
                     :action => 'show_member_score',
                     :member_id => member.id,
                     :remote => true},
                     :class => 'ml258 c_red' %>
            <span class="fr mr15 c_grey"><%= format_date(member.created_on)%></span>
            <%= call_hook(:view_projects_settings_members_table_row, { :course => @course, :member => member}) %>
          </div>
          <div class="cl"></div>
      <% end; reset_cycle %>
    </div>

    <!--<ul class="wlist">
      <% #= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => @is_remote, :flag => true%>
    </ul>-->
<% else%>
    <p class="nodata">
      <%= l(:label_no_data) %>
    </p>
<% end%>

