126 lines
5.3 KiB
Plaintext
126 lines
5.3 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 @show_all%>
|
|
<input type="text" value="<%= @name%>" placeholder="昵称、学号、姓名搜索" class="min_search ml10 fl" onkeypress="SearchByName($(this),'<%= student_work_index_path(:homework => @homework.id)%>',event);">
|
|
<a class="student_work_search fl" onclick="SearchByName_1($(this).prev(),'<%= student_work_index_path(:homework => @homework.id)%>');" href="javascript:void(0)">搜索</a>
|
|
<%= link_to "缺评情况",student_work_absence_penalty_student_work_index_path(:homework => @homework.id), :class => "student_work_search fl", :target => "_blank" if @is_teacher%>
|
|
<% 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">
|
|
<% if @is_evaluation.nil?%>
|
|
<%= render :partial => 'student_work_title'%>
|
|
<% else%>
|
|
<%= render :partial => 'evaluation_work_title'%>
|
|
<% end%>
|
|
</ul><!---hwork_ul end-->
|
|
<div class="cl"></div>
|
|
|
|
<% @stundet_works.each do |student_work|%>
|
|
<%= render :partial => (@is_evaluation ? 'evaluation_work' :'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>
|
|
<div class="mt5">
|
|
<% unless @homework.attachments.empty?%>
|
|
<span class="tit_fb" style="width: auto;"> 附件:</span>
|
|
<div class="fl mb5">
|
|
<%= render :partial => 'student_work/work_attachments', :locals => {:attachments => @homework.attachments} %>
|
|
</div>
|
|
<% end%>
|
|
</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-->
|