|
|
|
@ -38,68 +38,131 @@
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="user_bg_shadow bor-grey-e mb20 answer_Temp edu-back-white practicalTemp" id="answer_Temp">
|
|
|
|
|
|
|
|
|
|
<div class="fl mt15 font-16 mb10 padding10 practicalTitlefont">实训题</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ul class="fl" id="ul">
|
|
|
|
|
<li id="0">
|
|
|
|
|
<div class="fl font-16 mb10 practicalTitle">
|
|
|
|
|
|
|
|
|
|
<span class="Titlefont">初级题</span>
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
<span class="color-red mr5 shixun-title-font">*</span>分值:
|
|
|
|
|
<input id="minute0" class="borderFF8121"/> 分/题
|
|
|
|
|
<div class="colorFF8121sum none" id="scoregreater0">*大于等于0,且不能大于100</div>
|
|
|
|
|
<div class="colorFF8121sum none" id="scorenull0">*不能为空</div>
|
|
|
|
|
<div class="colorFF8121sum none" id="scorezero0">*必须大于等于0</div>
|
|
|
|
|
<div class="colorFF8121sum none" id="scoreone0">*不能大于100</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
<span class="color-red mr5 shixun-title-font">*</span>
|
|
|
|
|
随机出题量:<input id="topic0" class="borderFF8121"/> 题
|
|
|
|
|
<div class="colorFF8121 none" id="topicnull0">*不能为空</div>
|
|
|
|
|
<div class="colorFF8121 none" id="topicinteger0">*必须为正整数</div>
|
|
|
|
|
<div class="colorFF8121 none" id="topicreater0">*不能大于可用题数</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
<span class="color-orange mr5 shixun-title-font">3</span>
|
|
|
|
|
题可用
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fl mb10 shixunsbox" id="shixunsbox0">
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="shixunsboxfont">命令加密ZPI压缩文件解压</a>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<i data-tip-down="删除" class="fa fa-times-circle mr10 color-afafaf" onclick="shixunboxdelete(0,0)"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="shixunsboxfont">命令加密ZPI压缩文件解压</a>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<i data-tip-down="删除" class="fa fa-times-circle mr10 color-afafaf" onclick="shixunboxdelete(0,1)"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="shixunsboxfont">命令加密ZPI压缩文件解压</a>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<i data-tip-down="删除" class="fa fa-times-circle mr10 color-afafaf" onclick="shixunboxdelete(0,2)"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li id="1">
|
|
|
|
|
<div class="fl font-16 mb10 practicalTitle">
|
|
|
|
|
|
|
|
|
|
<span class="Titlefont">中级题</span>
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
<span class="color-red mr5 shixun-title-font">*</span>分值:
|
|
|
|
|
<input id="minute1" class="borderFF8121"/> 分/题
|
|
|
|
|
<div class="colorFF8121sum none" id="scoregreater1">*大于等于0,且不能大于100</div>
|
|
|
|
|
<div class="colorFF8121sum none" id="scorenull1">*不能为空</div>
|
|
|
|
|
<div class="colorFF8121sum none" id="scorezero1">*必须大于等于0</div>
|
|
|
|
|
<div class="colorFF8121sum none" id="scoreone1">*不能大于100</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
<span class="color-red mr5 shixun-title-font">*</span>
|
|
|
|
|
随机出题量:<input id="topic1" class="borderFF8121"/> 题
|
|
|
|
|
<div class="colorFF8121 none" id="topicnull1">*不能为空</div>
|
|
|
|
|
<div class="colorFF8121 none" id="topicinteger1">*必须为正整数</div>
|
|
|
|
|
<div class="colorFF8121 none" id="topicreater1">*不能大于可用题数</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
<span class="color-orange mr5 shixun-title-font">3</span>
|
|
|
|
|
题可用
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fl font-16 mb10 practicalTitle">
|
|
|
|
|
|
|
|
|
|
<span class="Titlefont">初级题</span>
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
<span class="color-red mr5 shixun-title-font">*</span>分值:<input class="borderFF8121"/> 分/题
|
|
|
|
|
<div class="colorFF8121sum">*大于等于0,且不能大于100</div>
|
|
|
|
|
<div class="colorFF8121sum">*不能为空</div>
|
|
|
|
|
<div class="colorFF8121sum">*必须大于等于0</div>
|
|
|
|
|
<div class="colorFF8121sum">*不能大于100</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
<span class="color-red mr5 shixun-title-font">*</span>
|
|
|
|
|
随机出题量:<input class="borderFF8121"/> 题
|
|
|
|
|
<div class="colorFF8121">*不能为空</div>
|
|
|
|
|
<div class="colorFF8121">*必须为正整数</div>
|
|
|
|
|
<div class="colorFF8121">*不能大于可用题数</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fr mr40 shixun-title-font">
|
|
|
|
|
<span class="color-orange mr5 shixun-title-font">3</span>
|
|
|
|
|
题可用
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fl mb10 shixunsbox">
|
|
|
|
|
<div class="fl mb10 shixunsbox">
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="shixunsboxfont">命令加密ZPI压缩文件解压</a>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<i data-tip-down="删除" class="fa fa-times-circle mr10 color-afafaf"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="shixunsboxfont">命令加密ZPI压缩文件解压</a>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<i data-tip-down="删除" class="fa fa-times-circle mr10 color-afafaf"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="shixunsboxfont">命令加密ZPI压缩文件解压</a>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<i data-tip-down="删除" class="fa fa-times-circle mr10 color-afafaf"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="shixunsboxfont">命令加密ZPI压缩文件解压</a>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<i data-tip-down="删除" class="fa fa-times-circle mr10 color-afafaf"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="shixunsboxfont">命令加密ZPI压缩文件解压</a>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<i data-tip-down="删除" class="fa fa-times-circle mr10 color-afafaf"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<a class="shixunsboxfont">命令加密ZPI压缩文件解压</a>
|
|
|
|
|
<span class="shixundelect">
|
|
|
|
|
<i data-tip-down="删除" class="fa fa-times-circle mr10 color-afafaf"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="fl mb10 shixunsboxs">
|
|
|
|
|
<div class="newshixunbox">
|
|
|
|
|
<div class="newshixunboxfont">新增实训题</div>
|
|
|
|
|
<div class="newshixunboxfont" onclick="newshixuns()">新增实训题</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
@ -122,8 +185,60 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function(){
|
|
|
|
|
//保存
|
|
|
|
|
$("#add_new_question").one('click', function(){
|
|
|
|
|
add_ex_question($(this),5);
|
|
|
|
|
// add_ex_question($(this),5);
|
|
|
|
|
var Uarry=$("#ul li");//获取ul中所有的li元素
|
|
|
|
|
var arr = [] //数组存放值
|
|
|
|
|
|
|
|
|
|
for(var i = 0; i < Uarry.length; i++){
|
|
|
|
|
|
|
|
|
|
var first = parseInt($("#minute"+i).val())
|
|
|
|
|
var last = parseInt($("#topic"+i).val())
|
|
|
|
|
|
|
|
|
|
console.log(first) //分数
|
|
|
|
|
console.log(last) //题数
|
|
|
|
|
|
|
|
|
|
if(first<0){
|
|
|
|
|
$("#scorezero"+i).show()
|
|
|
|
|
|
|
|
|
|
}else if(isNaN(first)){
|
|
|
|
|
$("#scorenull"+i).show()
|
|
|
|
|
|
|
|
|
|
}else if(first>100){
|
|
|
|
|
$("#scoreone"+i).show()
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(last<0){
|
|
|
|
|
$("#topicnull"+i).show()
|
|
|
|
|
|
|
|
|
|
}else if(isNaN(last)){
|
|
|
|
|
$("#topicinteger"+i).show()
|
|
|
|
|
|
|
|
|
|
}else if(last>100){
|
|
|
|
|
$("#topicreater"+i).show()
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log(arr)
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function shixunboxdelete(num,key){
|
|
|
|
|
var div=$("#shixunsbox"+num+" div");//获取所有子元素
|
|
|
|
|
$("#shixunsbox"+num+" div")[key].remove();
|
|
|
|
|
console.log(div)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function newshixuns(){
|
|
|
|
|
|
|
|
|
|
var oDiv = document.getElementById('li');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|