142 lines
6.2 KiB
Plaintext
142 lines
6.2 KiB
Plaintext
<div class="project_r_h">
|
|
<div id="menu_r">
|
|
<ul class="menu_r">
|
|
<li><a href="javascript:void(0);" class="parent">作业批次</a>
|
|
<ul>
|
|
<% @homework_commons.each_with_index { |homework_common,index |%>
|
|
<li>
|
|
<%= link_to "第#{@homework_commons.count - index}次作业",student_work_index_path(:homework => homework_common.id)%>
|
|
</li>
|
|
<%}%>
|
|
</ul>
|
|
</li><!---level1 end--->
|
|
</ul><!---menu_r end--->
|
|
</div>
|
|
</div><!--contentbox end-->
|
|
|
|
<div class="to_top" id="goTopBtn" style="display: none;">
|
|
返<br/>回<br/>顶<br/>部
|
|
</div>
|
|
<div class="cl"></div>
|
|
|
|
<div id="contentbox">
|
|
<div id="tb_" class="hwork_tb_">
|
|
<ul>
|
|
<li id="tb_1" class="hwork_hovertab" onclick="course_setting(1)">全部作品</li>
|
|
<li id="tb_2" class="hwork_normaltab" onclick="course_setting(2)">作业信息</li>
|
|
</ul>
|
|
</div>
|
|
<div class="cl"></div>
|
|
|
|
<div class="ctt">
|
|
<div class="dis" id="tbc_01">
|
|
<div class="code_list">
|
|
<span class="fl mt3">
|
|
<%= link_to "所有作品(<span class='c_red'>#{@stundet_works.count}</span>)".html_safe,student_work_index_path(:homework => @homework.id), :class => "fl"%>
|
|
</span>
|
|
<% if @is_teacher || @homework.homework_type != 1 || @homework.homework_detail_manual.comment_status == 3%>
|
|
<input type="text" value="<%= @name%>" placeholder="昵称、学号、姓名搜索" class="min_search ml10 fl" onkeypress="SearchByName($(this),'<%= student_work_index_path(:homework => @homework.id)%>',event);">
|
|
<% end%>
|
|
<% if @is_teacher%>
|
|
<div class="fr">
|
|
<% if @homework.student_works.empty?%>
|
|
<%= link_to "附件", "javascript:void(0)", class: "down_btn fr", :onclick => "alert('没有学生提交作业,无法下载附件')" %>
|
|
<% else%>
|
|
<%= link_to "附件", zipdown_assort_path(obj_class: @homework.class, obj_id: @homework, format: :json),
|
|
remote: true, class: "down_btn fr", :id => "download_homework_attachments" %>
|
|
<% end%>
|
|
|
|
<%= link_to l(:label_list), student_work_index_path(:homework => @homework.id,:order => @order, :sort => @b_sort, :name => @name, :format => 'xls'),:class=>'down_btn fr'%>
|
|
<span class="mt3 fr " style="color:#136b3b;">导出全部:</span>
|
|
</div>
|
|
<% end%>
|
|
<div class="cl"></div>
|
|
</div><!---code_list end--->
|
|
<ul class="hwork_ul">
|
|
<li class="w70 ">
|
|
<span href="javascript:void(0);" class="c_dark f14 fb fl ">学号</span>
|
|
</li>
|
|
<li class="w70">
|
|
<span class="c_dark f14 fb fl ">学生姓名</span>
|
|
</li>
|
|
<li class="hwork_tit">
|
|
<span class="c_dark f14 fb fl">作品名称</span>
|
|
</li>
|
|
<li class="w70 mr5" >
|
|
<%= link_to "教师评分",student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name),:class => "c_dark f14 fb fl"%>
|
|
<% if @order == "teacher_score"%>
|
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
|
<% end%>
|
|
</li>
|
|
<li class="w70 mr5">
|
|
<%= link_to "教辅评分",student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name),:class => "c_dark f14 fb fl"%>
|
|
<% if @order == "teaching_asistant_score"%>
|
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
|
<% end%>
|
|
</li>
|
|
<li class="w60 mr5 ml10">
|
|
<%= link_to "匿评",student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name),:class => "c_dark f14 fb fl"%>
|
|
<% if @order == "student_score"%>
|
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
|
<% end%>
|
|
</li>
|
|
<li class="w40 ml10" id="final_sort">
|
|
<%= link_to "成绩",student_work_index_path(:homework => @homework.id,:order => "final_score", :sort => @score, :name => @name),:class => "c_dark f14 fb fl"%>
|
|
<% if @order == "final_score"%>
|
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
|
<% end%>
|
|
</li>
|
|
</ul><!---hwork_ul end-->
|
|
<div class="cl"></div>
|
|
|
|
<% @stundet_works.each do |student_work|%>
|
|
<%= render :partial => 'student_work',:locals => {:student_work => student_work}%>
|
|
<div id="about_hwork_<%= student_work.id%>" ></div>
|
|
<% end%>
|
|
|
|
<div class="cl"></div>
|
|
</div><!---tbc_01 end-->
|
|
|
|
<div class="undis" id="tbc_02">
|
|
<div class="problem_main mt10">
|
|
<%= link_to(image_tag(url_to_avatar(@homework.user), :width => "42", :height => "42"), user_path(@homework.user), :class => "problem_pic fl") %>
|
|
<div class="problem_txt fl mt5">
|
|
<h4 class="r_txt_tit mb5">
|
|
<%= @homework.name%>
|
|
</h4>
|
|
<% if @is_teacher%>
|
|
<%= homework_anonymous_comment(@homework)%>
|
|
<%= link_to(l(:button_edit),edit_homework_common_path(@homework), :class => "fr mr10 work_edit") %>
|
|
<% else%>
|
|
<%= student_anonymous_comment @homework %>
|
|
<%= student_new_homework @homework %>
|
|
<% end %>
|
|
|
|
<div class="cl"></div>
|
|
<div id="bid_description_<%= @homework.id%>" class="mt5 upload_img">
|
|
<%= @homework.description.html_safe %>
|
|
</div>
|
|
<div class="cl"></div>
|
|
<span class="fl">截止时间:<%= @homework.end_time%></span>
|
|
<div >
|
|
<% if betweentime(@homework.end_time) < 0 %>
|
|
<span class='fr mr10 c_red '>
|
|
<%= l(:label_commit_limit)%>
|
|
</span>
|
|
<% else %>
|
|
<script type="text/javascript">
|
|
window.setInterval(function(){show_bid_dead_line(<%= @homework.end_time.year%>,<%= @homework.end_time.month%>,<%= @homework.end_time.day + 1%>,"bid_deadline_<%= @homework.id%>");},1000)
|
|
</script>
|
|
<div id="bid_deadline_<%= @homework.id%>">
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div> <!--problem_txt end-->
|
|
<div class="cl"></div>
|
|
</div><!--problem_main end-->
|
|
</div><!---tbc_02 end-->
|
|
|
|
|
|
</div><!--ctt end-->
|
|
</div><!--contentbox end-->
|