|
|
|
@ -11,7 +11,7 @@
|
|
|
|
|
<!-- <a href="<%#= update_question_num_exercise_path(@exercise, :ques_id => exercise_question.id, :opr => 'up') %>" data-remote="true" class="up_question"><i data-tip-down="上移" class="fa fa-arrow-circle-up mr10 color-orange05"></i></a>-->
|
|
|
|
|
<%# end %>
|
|
|
|
|
<!-- <a href="javascript:void(0)" class="add_question" onclick="insert_SHIXUN(<%#=exercise_question.id%>,this);"><i data-tip-down="向下插入简答题" class="fa fa-plus-circle mr10 color-orange05"></i></a>-->
|
|
|
|
|
<!-- <a href="javascript:void(0)" onclick="delete_confirm_box('<%= delete_exercise_question_exercise_index_path(:exercise_question => exercise_question.id, :quest_num => exercise_question.question_number) %>', '确定要删除该题目吗?')"><i data-tip-down="删除" class="fa fa-times-circle mr10 color-orange05"></i></a>-->
|
|
|
|
|
<!-- <a href="javascript:void(0)" onclick="delete_confirm_box('<%#= delete_exercise_question_exercise_index_path(:exercise_question => exercise_question.id, :quest_num => exercise_question.question_number) %>', '确定要删除该题目吗?')"><i data-tip-down="删除" class="fa fa-times-circle mr10 color-orange05"></i></a>-->
|
|
|
|
|
<!-- <a href="javascript:void(0)" onclick="exQuestionEdit(<%#= exercise_question.id%>, <%#= exercise_question.question_type %>);"><i data-tip-down="编辑" class="fa fa-pencil color-orange05"></i></a>-->
|
|
|
|
|
<!-- </p>-->
|
|
|
|
|
<%# end %>
|
|
|
|
@ -27,87 +27,60 @@
|
|
|
|
|
<!-- </li>-->
|
|
|
|
|
<%# end %>
|
|
|
|
|
|
|
|
|
|
<div class="user_bg_shadow bor-grey-e mb20 answer_Temp edu-back-white practicalTemp" id="answer_Temp">
|
|
|
|
|
<div class="user_bg_shadow bor-grey-e mb20 answer_Temp edu-back-white practicalTemp <%= @exercise.has_shixun_questions? ? '' : 'none' %>">
|
|
|
|
|
|
|
|
|
|
<div class="fl mt15 font-16 mb10 padding10 practicalTitlefont">
|
|
|
|
|
<span class="colorFF8121s">[实训题]</span>(100分)
|
|
|
|
|
<span class="colorFF8121s">[实训题]</span>(<%= @exercise.shixun_question_score %>分)
|
|
|
|
|
<!-- 试卷列表不展示三个按钮-->
|
|
|
|
|
<i data-tip-down="编辑" class="fa fa-pencil color-orange05 fr mr10"></i>
|
|
|
|
|
<i data-tip-down="删除" class="fa fa-times-circle mr10 color-orange05 fr"></i>
|
|
|
|
|
<i data-tip-down="向下插入实训题" class="fa fa-plus-circle mr10 color-orange05 fr"></i>
|
|
|
|
|
<% if @exercise.exercise_status == 1 %>
|
|
|
|
|
<a href="javascript:void(0)" onclick="shixunQuestionEdit();"><i data-tip-down="编辑" class="fa fa-pencil color-orange05 fr mr10"></i></a>
|
|
|
|
|
<a href="javascript:void(0)" onclick="delete_confirm_box('<%= delete_shixun_question_exercise_path(@exercise) %>', '确定要删除该题目吗?')">
|
|
|
|
|
<i data-tip-down="删除" class="fa fa-times-circle mr10 color-orange05 fr"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<ul class="fl">
|
|
|
|
|
<% for i in 1..4 %>
|
|
|
|
|
<% questions_list = @exercise.exercise_questions.where(question_type: 5, level: i) %>
|
|
|
|
|
|
|
|
|
|
<ul class="fl" id="ul">
|
|
|
|
|
<li id="0">
|
|
|
|
|
<div class="fl font-16 mb10 practicalTitle">
|
|
|
|
|
<li class="<%= questions_list.try(:count).to_i > 0 ? '' : 'none' %>">
|
|
|
|
|
<div class="fl font-16 mb10 practicalTitle">
|
|
|
|
|
|
|
|
|
|
<span class="Titlefont">初级题</span>
|
|
|
|
|
<span class="Titlefont"><%= shixun_question_level i %></span>
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
分值:10 分/题
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font width200">
|
|
|
|
|
随机出题量:2
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fl mb10 shixunsbox" id="shixunsbox0">
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="shixunsboxfont">命令加密ZPI压缩文件解压</a>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<a class="white-btn orange-btn fr mr20 mt3" onclick="">+ 实训详情</a>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
分值:<%= @exercise.level_setting(i).try(:score) %> 分/题
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="shixunsboxfont">命令加密ZPI压缩文件解压</a>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<a class="white-btn orange-btn fr mr20 mt3" onclick="">+ 实训详情</a>
|
|
|
|
|
</span>
|
|
|
|
|
<div class="fr mr40 shixun-title-font width200">
|
|
|
|
|
随机出题量:<%= @exercise.level_setting(i).try(:num) || questions_list.try(:count) %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="shixunsboxfont">命令加密ZPI压缩文件解压</a>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<a class="white-btn orange-btn fr mr20 mt3" onclick="">+ 实训详情</a>
|
|
|
|
|
</span>
|
|
|
|
|
<div class="fl mb10 shixunsbox">
|
|
|
|
|
<% questions_list.each_with_index do |question| %>
|
|
|
|
|
<div>
|
|
|
|
|
<span class="shixunsboxfont"><%= question.question_title %></span>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<a href="<%= shixun_path(question.shixun) %>" class="white-btn orange-btn fr mr20 mt3" target="_blank">+ 实训详情</a>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 新增问题 -->
|
|
|
|
|
<div id="insert_new_poll_question_<%=exercise_question.id%>">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function insert_SHIXUN(quest_id,item){
|
|
|
|
|
var forms = $("form.new_exercise_question");
|
|
|
|
|
if($.trim($("#insert_new_poll_question_"+quest_id).html()) == "") {
|
|
|
|
|
if(forms.length > 0){
|
|
|
|
|
notice_box("请先保存正在编辑的题目再新建。");
|
|
|
|
|
} else {
|
|
|
|
|
$.get("/exercise/<%= @exercise.id %>/choose_shixuns?quest_id="+quest_id);
|
|
|
|
|
}
|
|
|
|
|
set_position(item);
|
|
|
|
|
} else {
|
|
|
|
|
$("#insert_new_poll_question_"+quest_id).html("");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
<script>
|
|
|
|
|
function shixunQuestionEdit(){
|
|
|
|
|
$("#show_shixun_questions").hide();
|
|
|
|
|
$("#edit_shixun_questions").show();
|
|
|
|
|
}
|
|
|
|
|
</script>
|