2015-11-19 17:18:58 +08:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<script type="text/javascript">
|
|
|
|
function clickCanel(){hideModal("#popbox02");}
|
|
|
|
function exercise_submit(){
|
|
|
|
$("#exercise_submit>form")[0].submit();
|
|
|
|
hideModal("#popbox02");
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div id="popbox02">
|
|
|
|
<div class="upload_con">
|
|
|
|
<div class="upload_box">
|
2015-11-20 09:54:46 +08:00
|
|
|
<% current_score = get_current_score exercise %>
|
|
|
|
<% question_count = exercise.exercise_questions.count %>
|
|
|
|
<% mc_count = exercise.exercise_questions.where("question_type=1").count %>
|
|
|
|
<% mcq_count = exercise.exercise_questions.where("question_type=2").count %>
|
|
|
|
<% single_count = exercise.exercise_questions.where("question_type=3").count %>
|
2015-11-25 16:05:02 +08:00
|
|
|
<p class="f14">当前测验<%if question_count >0%>共有<%= question_count %>道题,其中<%end%><%if mc_count > 0%><%=mc_count %>道单选、<%end%><%if mcq_count > 0%><%=mcq_count %>道多选、<%end%><%if single_count > 0%><%=single_count %>道填空,<%end%>总分为<span class="c_red"><%=current_score %></span>分。
|
2015-11-20 09:54:46 +08:00
|
|
|
<br /><br />
|
2015-11-25 16:05:02 +08:00
|
|
|
<% if exercise.publish_time.nil? %>点击提交后测验将立即发布,<% end %>是否确定提交该测验?
|
2015-11-19 17:18:58 +08:00
|
|
|
</p>
|
|
|
|
<div class="polls_btn_box">
|
|
|
|
<a class="upload_btn" onclick="exercise_submit();">
|
|
|
|
确 定
|
|
|
|
</a>
|
|
|
|
<a class="upload_btn upload_btn_grey" onclick="clickCanel();">
|
|
|
|
取 消
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|