<div class="project_r_h">
  <h2 class="project_h2">
    缺评情况
  </h2>
</div>
<div class="cl"></div>

<div class="st_box">
  <ul class="st_box_top">
    <li  class="ml10" style="padding-right: 15px;">
      <a href="javascript:void(0)">学号</a>
    </li>
    <li  class="ml90" style="padding-right: 5px;">
      <a href="javascript:void(0)">姓名</a>
    </li>
    <li class="ml320">
      <a href="javascript:void(0)"><%= l(:lable_all_penalty)%></a>
    </li>
    <li class="ml30">
      <a href="javascript:void(0)"><%= l(:lable_has_penalty)%></a>
    </li>
    <li class="ml30">
      <%= link_to l(:lable_absence_penalty),student_work_absence_penalty_student_work_index_path(:homework => @homework.id,:order => @order)%>
      <a href="javascript:void(0);" class="<%= @order == 'desc' ? 'st_up' : 'st_down'%>" ></a>
    </li>
  </ul>
  <div class="cl"></div><!--st_box_top end-->

  <% @stundet_works.each do |student_work|%>
      <ul class="hwork_ul <%= cycle("b_grey", "") %>" id="student_work_<%= student_work.id%>">
        <li class="hwork_num_ab mr10 ml10">
            <span>
              <%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
            </span>
        </li>
        <li class=" hwork_name_ab ">
          <%= link_to student_work.user.show_name,user_path(student_work.user),:title => student_work.user.show_name, :class => "c_blue02"%>
        </li>
        <li class="absence c_grey">
          <%= student_work.all_count%>
        </li>
        <li class="absence c_grey">
          <%= student_work.has_count%>
        </li>
        <li class="absence <%= student_work.absence == 0 ? 'c_green' : 'c_red'%>">
          <%= student_work.absence%>
        </li>
      </ul>
  <% end%>
</div>