2015-06-25 16:06:32 +08:00
|
|
|
<script type="text/javascript">
|
2015-09-16 15:51:35 +08:00
|
|
|
$(function(){
|
2015-09-17 09:20:35 +08:00
|
|
|
$("#RSide").removeAttr("id");
|
|
|
|
$("#homework_page_right").css("min-height",$("#LSide").height()-30);
|
2015-09-16 15:51:35 +08:00
|
|
|
$("#Container").css("width","1000px");
|
|
|
|
});
|
|
|
|
|
|
|
|
// 匿评弹框提示
|
2015-09-17 09:20:35 +08:00
|
|
|
<% if @is_evaluation && !@stundet_works.empty?%>
|
2015-06-25 16:06:32 +08:00
|
|
|
$(function(){
|
|
|
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'student_work/praise_alert') %>');
|
|
|
|
showModal('ajax-modal', '500px');
|
|
|
|
$('#ajax-modal').siblings().remove();
|
|
|
|
$('#ajax-modal').before("<span style='float: right;cursor:pointer;'>" +
|
|
|
|
"<a href='javascript:' onclick='clickCanel();'><img src='/images/bid/close.png' width='26px' height='26px' /></a></span>");
|
|
|
|
$('#ajax-modal').parent().css("top","").css("left","");
|
|
|
|
$('#ajax-modal').parent().addClass("anonymos");
|
|
|
|
});
|
|
|
|
<% end%>
|
2015-09-17 16:04:16 +08:00
|
|
|
|
|
|
|
// $(function(){
|
|
|
|
// $('.animated').autosize();
|
|
|
|
// });
|
2015-06-25 16:06:32 +08:00
|
|
|
</script>
|
|
|
|
|
2015-09-16 15:51:35 +08:00
|
|
|
<div class="homepageRight mt0 ml10">
|
2015-09-17 09:20:35 +08:00
|
|
|
<div class="resources" id="homework_page_right">
|
2015-09-16 15:51:35 +08:00
|
|
|
<div class="hworkListBanner">
|
|
|
|
<div id="menu_r" class="fl">
|
|
|
|
<ul class="menu_r">
|
|
|
|
<li><a href="javascript:void(0);" class="parent">作业批次</a>
|
|
|
|
<ul>
|
|
|
|
<% @homework_commons.each_with_index do |homework_common,index |%>
|
|
|
|
<li>
|
|
|
|
<%= link_to "第#{@homework_commons.count - index}次作业",student_work_index_path(:homework => homework_common.id)%>
|
|
|
|
</li>
|
|
|
|
<% end%>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<!---level1 end--->
|
2015-05-21 15:52:27 +08:00
|
|
|
</ul>
|
2015-09-16 15:51:35 +08:00
|
|
|
<!---menu_r end--->
|
|
|
|
</div>
|
|
|
|
<!--div class="hworkInfor"><a href="javascript:void(0);" class="linkBlue">作业信息</a></div-->
|
2015-09-17 14:16:13 +08:00
|
|
|
<% if @is_teacher%>
|
|
|
|
<div class="fr mt5">
|
|
|
|
<ul class="resourcesSelect">
|
|
|
|
<li class="resourcesSelected">
|
|
|
|
<a href="javascript:void(0);" class="resourcesIcon"></a>
|
|
|
|
<ul class="hworkMenu">
|
2015-09-17 17:20:29 +08:00
|
|
|
<li>
|
|
|
|
<%= link_to "导出作业成绩", student_work_index_path(:homework => @homework.id,:order => @order, :sort => @b_sort, :name => @name, :format => 'xls'),:class=>'hworkExport postTypeGrey'%>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<% if @homework.student_works.empty?%>
|
|
|
|
<%= link_to "导出作业附件", "javascript:void(0)", class: "hworkExport resourcesGrey", :onclick => "alert('没有学生提交作业,无法下载附件')" %>
|
|
|
|
<% else%>
|
|
|
|
<%= link_to "导出作业附件", zipdown_assort_path(obj_class: @homework.class, obj_id: @homework, format: :json),
|
|
|
|
remote: true, class: "hworkExport resourcesGrey", :id => "download_homework_attachments" %>
|
|
|
|
<% end%>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<%= link_to("导出缺评情况", absence_penalty_list_student_work_index_path(:homework => @homework.id, :format => 'xls'),:class=>'hworkExport resourcesGrey') if @homework.homework_type == 1%>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<%= link_to("导出匿评情况", evaluation_list_student_work_index_path(:homework => @homework.id, :format => 'xls'),:class=>'hworkExport resourcesGrey') if @homework.homework_type == 1%>
|
|
|
|
</li>
|
2015-09-17 14:16:13 +08:00
|
|
|
<li><a href="javascript:void(0);" class="hworkSetting resourcesGrey">评分设置</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2015-09-16 15:51:35 +08:00
|
|
|
</ul>
|
2015-09-17 14:16:13 +08:00
|
|
|
</div>
|
|
|
|
<% end%>
|
2015-05-21 15:52:27 +08:00
|
|
|
<div class="cl"></div>
|
2015-09-16 15:51:35 +08:00
|
|
|
</div>
|
|
|
|
<div class="hworkListContainer">
|
|
|
|
<div class="ctt2">
|
|
|
|
<div class="dis" id="tbc_01">
|
|
|
|
<div class="codeList">
|
|
|
|
<span class="fl mt3">
|
2015-09-17 14:16:13 +08:00
|
|
|
<%= link_to "所有作品<font class='f12 c_red'>[共#{@homework.student_works.count}份]</font>".html_safe,student_work_index_path(:homework => @homework.id),:class => "fl f14"%>
|
2015-09-16 15:51:35 +08:00
|
|
|
</span>
|
2015-09-17 14:16:13 +08:00
|
|
|
<%if @is_teacher || @homework.homework_detail_manual.comment_status == 3%>
|
|
|
|
<form class="resourcesSearchloadBox fr">
|
|
|
|
<input type="text" id="course_student_name" value="<%= @name%>" placeholder="输入资源关键词进行搜索" class="searchResource" onkeypress="SearchByName('<%= student_work_index_path(:homework => @homework.id)%>',event);"/>
|
|
|
|
<a class="homepageSearchIcon" onclick="SearchByName_1('<%= student_work_index_path(:homework => @homework.id)%>');" href="javascript:void(0)"></a>
|
|
|
|
</form>
|
|
|
|
<% end%>
|
2015-07-04 12:07:21 +08:00
|
|
|
<div class="cl"></div>
|
2015-09-16 15:51:35 +08:00
|
|
|
</div>
|
|
|
|
<!---code_list end--->
|
|
|
|
<div class="fl">
|
2015-09-17 09:20:35 +08:00
|
|
|
<% if @is_evaluation && !@stundet_works.empty?%>
|
|
|
|
<%= render :partial => "evaluation_title"%>
|
|
|
|
<% else%>
|
|
|
|
<%= render :partial => "evaluation_un_title"%>
|
|
|
|
<% end%>
|
2015-09-16 15:51:35 +08:00
|
|
|
</div>
|
|
|
|
<!---hwork_ul end--->
|
|
|
|
<div class="cl"></div>
|
2015-09-17 09:20:35 +08:00
|
|
|
<% @stundet_works.each do |student_work|%>
|
|
|
|
<% if @is_evaluation%>
|
|
|
|
<%= render :partial => "evaluation_work", :locals => {:student_work => student_work}%>
|
|
|
|
<% else%>
|
|
|
|
<%= render :partial => "evaluation_un_work", :locals => {:student_work => student_work}%>
|
|
|
|
<% end%>
|
2015-09-16 15:51:35 +08:00
|
|
|
<div class="cl"></div>
|
2015-09-17 09:20:35 +08:00
|
|
|
<!---hwork_ul end--->
|
2015-09-17 11:41:24 +08:00
|
|
|
<div id="about_hwork_<%= student_work.id%>"></div>
|
2015-09-16 15:51:35 +08:00
|
|
|
<div class="cl"></div>
|
2015-09-17 09:20:35 +08:00
|
|
|
<% end%>
|
2015-05-21 15:52:27 +08:00
|
|
|
</div>
|
2015-09-16 15:51:35 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|