97 lines
4.4 KiB
Plaintext
97 lines
4.4 KiB
Plaintext
<script type="text/javascript">
|
|
$(function(){
|
|
$("#RSide").removeAttr("id");
|
|
$("#homework_page_right").css("min-height",$("#LSide").height()-30);
|
|
$("#Container").css("width","1000px");
|
|
});
|
|
|
|
// 匿评弹框提示
|
|
<%# if @is_evaluation && !@stundet_works.empty?%>
|
|
// $(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%>
|
|
|
|
//设置评分规则
|
|
function set_score_rule(){
|
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'student_work/set_score_rule',:locals => {:homework => @homework}) %>');
|
|
showModal('ajax-modal', '350px');
|
|
$('#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","25%").css("left","35%").css("position","fixed");
|
|
}
|
|
|
|
</script>
|
|
|
|
<div class="homepageRight mt0 ml10">
|
|
<div class="resources" id="homework_page_right">
|
|
<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--->
|
|
</ul>
|
|
<!---menu_r end--->
|
|
</div>
|
|
<!--div class="hworkInfor"><a href="javascript:void(0);" class="linkBlue">作业信息</a></div-->
|
|
<% if @is_teacher%>
|
|
<div class="fr mt5">
|
|
<ul class="resourcesSelect">
|
|
<li class="resourcesSelected">
|
|
<a href="javascript:void(0);" class="resourcesIcon"></a>
|
|
<ul class="hworkMenu">
|
|
<li>
|
|
<%= link_to "导出作业成绩", student_work_index_path(:homework => @homework.id,:order => @order, :sort => @b_sort, :name => @name, :group => @group, :format => 'xls'),:class=>'hworkExport postTypeGrey', :id => "export_student_work"%>
|
|
</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')%>
|
|
</li>
|
|
<li>
|
|
<%= link_to("导出匿评情况", evaluation_list_student_work_index_path(:homework => @homework.id, :format => 'xls'),:class=>'hworkExport resourcesGrey')%>
|
|
</li>
|
|
<li>
|
|
<a href="javascript:void(0);" class="hworkSetting resourcesGrey" onclick="set_score_rule();">评分设置</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<% end%>
|
|
<div class="cl"></div>
|
|
</div>
|
|
|
|
<div class="hworkListContainer">
|
|
<div class="ctt2">
|
|
<div class="dis" id="homework_student_work_list">
|
|
<%= render :partial => "student_work/student_work_list"%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
</div>
|
|
</div>
|
|
<div class="cl"></div> |