137 lines
6.7 KiB
Plaintext
137 lines
6.7 KiB
Plaintext
<% if @members.count != 0 %>
|
|
<table class="muban_table clearfix mb15 t-center" cellpadding="0" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th class="table-td-w20" >姓名</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '发布资源', course_statistics_course_path(@course, :type => 'resource_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "resource_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "resource_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '发布帖子', course_statistics_course_path(@course, :type => 'message_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "message_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "message_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '帖子回复', course_statistics_course_path(@course, :type => 'message_reply_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "message_reply_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "message_reply_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '发布通知', course_statistics_course_path(@course, :type => 'news_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "news_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "news_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '通知回复', course_statistics_course_path(@course, :type => 'news_reply_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "news_reply_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "news_reply_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '作业回复', course_statistics_course_path(@course, :type => 'homework_journal_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "homework_journal_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "homework_journal_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '班级留言', course_statistics_course_path(@course, :type => 'journal_num', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "journal_num" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "journal_num" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
<th class="table-td-w10">
|
|
<%= link_to '活跃度', course_statistics_course_path(@course, :type => 'act_score', :order => (@order == "desc" ? "asc" : "desc")), method: 'get', remote: true, :style => 'color:#000000;'%>
|
|
<% if @type == "act_score" && @order == 'desc' %>
|
|
<a href="javascript:" class= "sy_sortupbtn"></a>
|
|
<% elsif @type == "act_score" && @order == 'asc' %>
|
|
<a href="javascript:" class= "sy_sortdownbtn"></a>
|
|
<% end %>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @members.each do |member| %>
|
|
<tr>
|
|
<td><%= link_to member.user.show_name, user_path(member.user), :class => 'course_class_users_st_name' %></td>
|
|
<td><%= member.resource_num %></td>
|
|
<td><%= member.message_num %></td>
|
|
<td><%= member.message_reply_num %></td>
|
|
<td><%= member.news_num %></td>
|
|
<td><%= member.news_reply_num %></td>
|
|
<td><%= member.homework_journal_num %></td>
|
|
<td><%= member.journal_num %></td>
|
|
<td class="pr">
|
|
<span><%= member.act_score %></span>
|
|
<div class="st_tips_box_inner undis" style="text-align:left;">
|
|
<em></em>
|
|
<span></span>
|
|
<p>资源发布数*5=<%= member.resource_num %>*5=<%= member.resource_num.to_i * 5 %><br/>
|
|
帖子发布数*2=<%= member.message_num %>*2=<%= member.message_num.to_i * 2 %><br/>
|
|
帖子回复数*1=<%= member.message_reply_num %>*1=<%= member.message_reply_num.to_i * 1 %><br/>
|
|
通知发布数*1=<%= member.news_num %>*1=<%= member.news_num.to_i * 1 %><br/>
|
|
通知回复数*1=<%= member.news_reply_num %>*1=<%= member.news_reply_num.to_i * 1 %><br/>
|
|
作业留言数*1=<%= member.homework_journal_num %>*1=<%= member.homework_journal_num.to_i * 1 %><br/>
|
|
班级留言数*1=<%= member.journal_num %>*1=<%= member.journal_num.to_i * 1 %><br/>
|
|
总得分:<%= member.act_score %>
|
|
</p>
|
|
</div>
|
|
</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 %>
|
|
|
|
<script>
|
|
$(".muban_table tbody tr").each(function(){
|
|
$(this).mouseenter(function(){
|
|
$(".st_tips_box_inner").hide();
|
|
$(this).children().eq(8).children().eq(1).stop();
|
|
$(this).children().eq(8).children().eq(1).show();
|
|
});
|
|
$(this).mouseleave(function(){
|
|
$(this).children().eq(8).children().eq(1).delay(500).hide(0);
|
|
});
|
|
});
|
|
|
|
$(".st_tips_box_inner").each(function(){
|
|
$(this).mouseover(function(){
|
|
$(this).stop();
|
|
$(this).show();
|
|
});
|
|
$(this).mouseout(function(){
|
|
$(this).delay(500).hide(0);
|
|
});
|
|
});
|
|
</script> |