92 lines
5.5 KiB
Plaintext
92 lines
5.5 KiB
Plaintext
<% if @members.count != 0 %>
|
|
<table class="muban_table clearfix mb15 t-center" cellpadding="0" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th class="table-td-w30" >姓名</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '已交作品', course_statistics_course_path(@course, :tab => 2, :type => 'committed_work_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "committed_work_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "committed_work_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '未交作品', course_statistics_course_path(@course, :tab => 2, :type => 'un_commit_work_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "un_commit_work_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "un_commit_work_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '迟交作品', course_statistics_course_path(@course, :tab => 2, :type => 'late_commit_work_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "late_commit_work_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "late_commit_work_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '匿评缺评', course_statistics_course_path(@course, :tab => 2, :type => 'absence_evaluation_work_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "absence_evaluation_work_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "absence_evaluation_work_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '被申诉', course_statistics_course_path(@course, :tab => 2, :type => 'appeal_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "appeal_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "appeal_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '平均分', course_statistics_course_path(@course, :tab => 2, :type => 'average_score', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "average_score" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "average_score" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '英雄榜', course_statistics_course_path(@course, :tab => 2, :type => 'total_score', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "total_score" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "total_score" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% boo = !(User.current.allowed_to?(:as_teacher,@course) || User.current.admin?) && course_has_score_open_common_homework(@course) %>
|
|
<% @members.each do |member| %>
|
|
<% is_hidden = boo && User.current.id != member.user_id %>
|
|
<tr>
|
|
<td><%= link_to member.user.show_name, user_path(member.user), :class => 'course_class_users_st_name' %></td>
|
|
<td><%= member.committed_work_num %></td>
|
|
<td><%= member.un_commit_work_num %></td>
|
|
<td><%= member.late_commit_work_num %></td>
|
|
<td><%= member.absence_evaluation_work_num %></td>
|
|
<td><%= member.appeal_num %></td>
|
|
<td><%= is_hidden ? '**' : (member.average_score.nil? ? 0 : format("%.1f", member.average_score < 0 ? 0 : member.average_score)) %></td>
|
|
<td><%= is_hidden ? '**' : (member.total_score.nil? ? 0 : format("%.1f", member.total_score < 0 ? 0 : member.total_score)) %></td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<div style="text-align:center;">
|
|
<div class="pages" style="width:auto; display:inline-block;">
|
|
<ul id="homework_pository_ref_pages">
|
|
<%= pagination_links_full @mem_pages, @members_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true%>
|
|
</ul>
|
|
<div class="cl"></div>
|
|
</div>
|
|
</div>
|
|
<% else%>
|
|
<div class="icons_tishi"><img src="/images/sy/icons_smile.png" width="110" height="110" alt="" ></div>
|
|
<p class="sy_tab_con_p">没有数据可以显示!</p>
|
|
<% end %> |