2015-11-25 15:02:32 +08:00
|
|
|
|
<div class="polls_head" style="width:730px;">
|
|
|
|
|
<h2>所有试卷
|
|
|
|
|
<span>(<%= @obj_count%>)</span>
|
|
|
|
|
</h2>
|
|
|
|
|
<% if @is_teacher%>
|
|
|
|
|
<%= link_to "新建试卷 ", new_exercise_path(:course_id => @course.id), :class => "newbtn" %>
|
2016-11-17 09:06:44 +08:00
|
|
|
|
<%= link_to "导入试卷", other_exercise_exercise_index_path(:course_id => @course.id), :remote=>true,:class => "newbtn"%>
|
2015-11-25 15:02:32 +08:00
|
|
|
|
<% end%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div id="polls_list" class="polls_list">
|
2017-02-13 15:58:33 +08:00
|
|
|
|
<% if @exercises.count != 0 %>
|
|
|
|
|
<% @exercises.each_with_index do |exercise,index|%>
|
|
|
|
|
<ul id="exercises_<%= exercise.id %>" class="exercise_list_div" onmouseover="$('#exercise_opr_<%=exercise.id %>').show();" onmouseout="$('#exercise_opr_<%=exercise.id %>').hide();">
|
|
|
|
|
<%= render :partial => 'exercise', :locals => {:exercise => exercise,:index => index} %>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% end%>
|
2015-11-25 15:02:32 +08:00
|
|
|
|
|
2017-02-13 15:58:33 +08:00
|
|
|
|
<ul class="wlist">
|
|
|
|
|
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
|
2015-11-25 15:02:32 +08:00
|
|
|
|
</ul>
|
|
|
|
|
|
2017-02-13 15:58:33 +08:00
|
|
|
|
<div class="cl"></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 %>
|
2015-11-13 17:23:52 +08:00
|
|
|
|
</div><!--列表end-->
|