450 lines
26 KiB
Plaintext
450 lines
26 KiB
Plaintext
|
|
<div xmlns:width="http://www.w3.org/1999/xhtml" style="height: 60px">
|
|||
|
|
<div style="padding: 10px;"><span>选择添加题目方式:</span>
|
|||
|
|
<input name="like1" id="cb3" type="radio" ui-config="required:true" onclick="selectaddtype('0') "/><label for="cb3">Excel导入</label>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<input name="like1" id="cb4" type="radio" ui-config="required:true" onclick="selectaddtype('1') "/><label for="cb4">随机生成</label>
|
|||
|
|
</#if>
|
|||
|
|
<input name="like1" id="cb5" type="radio" ui-config="required:true" onclick="selectaddtype('2') "/>
|
|||
|
|
<label for="cb5">
|
|||
|
|
<#if pg=="1">选择历史试卷</#if>
|
|||
|
|
<#if pg=="2">选择历史问卷</#if>
|
|||
|
|
</label>
|
|||
|
|
|
|||
|
|
<span id="exceldr" style="display: none; margin-left: 30px; ">
|
|||
|
|
<#-- <input type="file" id="txtFile" name="taskFile" style="width: 300px;" class="ui_validate" ui-config="required:true,width:240,missingMessage: '请导入*.xlsx格式的数据文件!'" />-->
|
|||
|
|
<#-- <button type="button" class="button button_primary">添加</button>-->
|
|||
|
|
<form id="fileform_edit" enctype="multipart/form-data" method="post">
|
|||
|
|
</form>
|
|||
|
|
<script id="grid_form_temp2_edit" type="text/html">
|
|||
|
|
<table class="fromTable">
|
|||
|
|
<tr id="uploadAcc_edit">
|
|||
|
|
<th>上传附件:</th>
|
|||
|
|
<td colspan="3">
|
|||
|
|
<input type="file" id="txtFile" name="taskFile" class="ui_validate" onchange="checkSize(this)"
|
|||
|
|
ui-config="width:300,missingMessage: '请选择Excel文件!'"/><input id="hidFile_edit" type="hidden"/>
|
|||
|
|
</td>
|
|||
|
|
<th>
|
|||
|
|
<button type="button" id="btnUpload_edit" ui-config="style:'button_submit'">导入</button>
|
|||
|
|
</th>
|
|||
|
|
<#-- </tr>-->
|
|||
|
|
<#-- <tr id="accList_edit">-->
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<th >下载试卷模板:</th>
|
|||
|
|
<td>
|
|||
|
|
<a title="下载" href="${asset_path}/_temp/exam.xls">试卷模板</a>
|
|||
|
|
</td>
|
|||
|
|
</#if>
|
|||
|
|
<#if pg=="2">
|
|||
|
|
<th>下载问卷模板:</th>
|
|||
|
|
<td>
|
|||
|
|
<a title="下载" href="${asset_path}/_temp/research.xls">问卷模板</a>
|
|||
|
|
</td>
|
|||
|
|
</#if>
|
|||
|
|
</tr>
|
|||
|
|
</table>
|
|||
|
|
</script>
|
|||
|
|
</span>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<span id="sj" style="display: none;margin-left: 30px;">
|
|||
|
|
试卷类别:<input id="categoryRand" type="text" name="categoryRand" class="ui_validate"
|
|||
|
|
ui-config="required:true,tipAfterInput:true,dictKey:'exam_question_cate'" />
|
|||
|
|
单选题数量<input id="singleNum" style="width:25px" />
|
|||
|
|
多选题数量<input id="multipleNum" style="width:25px" />
|
|||
|
|
判断题数量<input id="judgementNum" style="width:25px" />
|
|||
|
|
填空题数量<input id="blankNum" style="width:25px" />
|
|||
|
|
问答题数量<input id="essayNum" style="width:25px" />
|
|||
|
|
<button type="button" class="button button_primary" onclick="randomAdd()">随机添加</button>
|
|||
|
|
</span>
|
|||
|
|
</#if>
|
|||
|
|
<span id="sls" style="display: none;margin-left: 30px;">
|
|||
|
|
<select id="name" name="name" class="ui_validate"
|
|||
|
|
ui-config="required:true,width:200,panelHeight:350,valueField:'id',textField:'name'">
|
|||
|
|
</select>
|
|||
|
|
<#-- <select id="sel" value="0" ui-config="required:true">-->
|
|||
|
|
<#-- <option value="-1">请选择</option>-->
|
|||
|
|
<#-- <option value="0">2018年项目管理培训试卷2</option>-->
|
|||
|
|
<#-- <option value="1">2018年项目管理培训试卷1</option>-->
|
|||
|
|
<#-- <option value="2">2017年项目管理培训试卷2</option>-->
|
|||
|
|
<#-- <option value="3">2017年项目管理培训试卷1</option>-->
|
|||
|
|
<#-- </select>-->
|
|||
|
|
<#--<button id="save_history" type="button" class="button button_primary" onclick="saveHistoryExam()">保存</button>-->
|
|||
|
|
</span>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
<div class="formTitle" style="height: 30px"><span class="icon icon_menu"></span>题目内容如下:</div>
|
|||
|
|
|
|||
|
|
<table style="margin-left: 20px;width: 96%;height: 86px;">
|
|||
|
|
<tr>
|
|||
|
|
<td style="text-align: center;font-size: 24px;">
|
|||
|
|
<span id="title_name"></span>
|
|||
|
|
</td>
|
|||
|
|
</tr>
|
|||
|
|
<tr>
|
|||
|
|
<td>
|
|||
|
|
<span id="title_description"></span>
|
|||
|
|
</td>
|
|||
|
|
</tr>
|
|||
|
|
</table>
|
|||
|
|
|
|||
|
|
<div id="eqlist2" style="margin-left: 40px;height: calc(100% - 180px);">
|
|||
|
|
<table class="grid_data">
|
|||
|
|
<thead>
|
|||
|
|
<tr style="display: none">
|
|||
|
|
<td style="width: 0px;padding: 0"></td>
|
|||
|
|
<td>
|
|||
|
|
</td>
|
|||
|
|
</tr>
|
|||
|
|
</thead>
|
|||
|
|
<tbody>
|
|||
|
|
<tr>
|
|||
|
|
<td style="width: 0px;padding: 0"></td>
|
|||
|
|
<td>
|
|||
|
|
<div class="q_question">
|
|||
|
|
<span id="editexampaper_id" style="display: none" class="qid">{{value.id}}</span>
|
|||
|
|
<#-- <span style="display: none" class="qxh">{{i+1}}</span><span style="display: none"></span>-->
|
|||
|
|
<#-- <span class="qxh">{{i+1}}</span><span>、</span>-->
|
|||
|
|
<span>Q</span><span id="q_numid" class="qxh">{{value.num}}</span><span>、</span>
|
|||
|
|
<#-- {{if value.isparagraph=="0" }}<span id="q_numid" style="display: none">{{i+1}}</span>{{/if}}-->
|
|||
|
|
<span class="qtm" style="width:80%;word-break:normal;white-space:pre-wrap;overflow:hidden;">{{value.subject}}</span>
|
|||
|
|
<span style="font-weight: bold">
|
|||
|
|
{{if value.type=="单选题"}}单选题{{/if}}
|
|||
|
|
{{if value.type=="多选题"}}多选题{{/if}}
|
|||
|
|
{{if value.type=="判断题"}}判断题{{/if}}
|
|||
|
|
{{if value.type=="问答题"}}问答题{{/if}}
|
|||
|
|
{{if value.type=="填空题"}}填空题{{/if}}
|
|||
|
|
<#-- {{if value.type=="1"}}单选题{{/if}}-->
|
|||
|
|
<#-- {{if value.type=="2"}}多选题{{/if}}-->
|
|||
|
|
<#-- {{if value.type=="3"}}判断题{{/if}}-->
|
|||
|
|
<#-- {{if value.type=="4"}}问答题{{/if}}-->
|
|||
|
|
</span>
|
|||
|
|
<span class="qtype" style="display: none" >{{value.type}}</span>
|
|||
|
|
<span style="font-weight: bold">
|
|||
|
|
{{if value.ismust=="1"}}(必答){{/if}}
|
|||
|
|
{{if value.ismust=="0"}}(选答){{/if}}
|
|||
|
|
</span>
|
|||
|
|
<span class="qbd" style="display: none" >{{value.ismust}}</span>
|
|||
|
|
<span id="sdf" class="icon icon_rowedit" onclick="editquestion(this)" title="编辑" ></span>
|
|||
|
|
<#-- <span id="sdf" class="icon save_as" onclick="alert('已将此题保存至题库')" title="保存至题库" ></span>-->
|
|||
|
|
<span id="sdfup" class="icon icon_arrow_up" onclick="moveUp(this)" title="上移" ></span>
|
|||
|
|
<span id="sdfdown" class="icon icon_arrow_down" onclick="moveDown(this)" title="下移"></span>
|
|||
|
|
<#-- <span id="sdfd" class="icon icon_rowdelete" style="margin-left: 20px;" onclick="deletequestion(this,value.position)"></span>-->
|
|||
|
|
<span id="sdfd" class="icon icon_rowdelete" style="margin-left: 20px;" onclick="deletequestion(this)" ></span>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<span style="float:right">分</span>
|
|||
|
|
<span id = "sco" class="score" style="float:right;">{{value.score}}</span>
|
|||
|
|
</#if>
|
|||
|
|
</div>
|
|||
|
|
<#-- {{if value.type=="1"}}-->
|
|||
|
|
{{if value.type=="单选题"}}
|
|||
|
|
{{if value.optiona.length}}<div class="q_item">A <span id="a" class="a">{{ value.optiona}}</span></div>{{/if}}
|
|||
|
|
{{if (value.optionb.length)}}<div class="q_item">B <span id="b" class="b">{{ value.optionb}}</span></div>{{/if}}
|
|||
|
|
{{if (value.optionc.length)}}<div class="q_item">C <span id="c" class="c">{{ value.optionc}}</span></div>{{/if}}
|
|||
|
|
{{if (value.optiond.length)}}<div class="q_item">D <span id="d" class="d">{{ value.optiond}}</span></div>{{/if}}
|
|||
|
|
{{/if}}
|
|||
|
|
<#-- {{if value.type=="2"}}-->
|
|||
|
|
{{if value.type=="多选题"}}
|
|||
|
|
{{if value.optiona.length}}<div class="q_item">A <span id="a" class="a">{{ value.optiona}}</span></div>{{/if}}
|
|||
|
|
{{if (value.optionb.length)}}<div class="q_item">B <span id="b" class="b">{{ value.optionb}}</span></div>{{/if}}
|
|||
|
|
{{if (value.optionc.length)}}<div class="q_item">C <span id="c" class="c">{{ value.optionc}}</span></div>{{/if}}
|
|||
|
|
{{if (value.optiond.length)}}<div class="q_item">D <span id="d" class="d">{{ value.optiond}}</span></div>{{/if}}
|
|||
|
|
{{if (value.optione.length)}}<div class="q_item">E <span id="e" class="e">{{ value.optione}}</span></div>{{/if}}
|
|||
|
|
{{if (value.optionf.length)}}<div class="q_item">F <span id="f" class="f">{{ value.optionf}}</span></div>{{/if}}
|
|||
|
|
{{/if}}
|
|||
|
|
<#-- {{if value.type=="3"}}-->
|
|||
|
|
{{if value.type=="判断题"}}
|
|||
|
|
<div class="q_item">A 对</div>
|
|||
|
|
<div class="q_item">B 错</div>
|
|||
|
|
{{/if}}
|
|||
|
|
<#-- {{if value.type=="4"}}-->
|
|||
|
|
{{if value.type=="判断题"}}
|
|||
|
|
<#-- <textarea class="q_item" readonly="readonly" style="width:80%;background:#F3F0F0;margin-left: 40px;"></textarea>-->
|
|||
|
|
{{/if}}
|
|||
|
|
|
|||
|
|
{{if value.type=="问答题"}}
|
|||
|
|
答案:<span id="answer" class="answer">{{value.answer}}</span>
|
|||
|
|
<#-- 答案:<span id="answer" class="q_item">{{value.answer}}</span>-->
|
|||
|
|
{{/if}}
|
|||
|
|
|
|||
|
|
{{if value.type=="填空题"}}
|
|||
|
|
答案:<span id="answer" class="answer">{{value.answer}}</span>
|
|||
|
|
<#--答案:<span id="answer" class="q_item">{{value.answer}}</span>-->
|
|||
|
|
{{/if}}
|
|||
|
|
|
|||
|
|
{{if value.type!="问答题"}}
|
|||
|
|
{{if value.type!="填空题"}}
|
|||
|
|
<span id="answer" style="display: none" class="answer">{{value.answer}}</span>
|
|||
|
|
<#-- <span id="answer" style="display: none" class="q_item">{{value.answer}}</span>-->
|
|||
|
|
{{/if}}
|
|||
|
|
{{/if}}
|
|||
|
|
|
|||
|
|
</td>
|
|||
|
|
</tr>
|
|||
|
|
</tbody>
|
|||
|
|
</table>
|
|||
|
|
<div style="margin: 10px;">
|
|||
|
|
<span class="icon icon_add16"></span>
|
|||
|
|
<a onclick="addquestion(this,'1')"><span class="icon icon_radio_button"></span>添加单选题</a>
|
|||
|
|
<a onclick="addquestion(this,'2')"><span class="icon icon_check_box_uncheck"></span>添加多选题</a>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<a onclick="addquestion(this,'3')"><span class="icon icon_tick_button"></span>添加判断题</a>
|
|||
|
|
</#if>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<a onclick="addquestion(this,'4')"><span class="icon icon_report"></span>添加填空题</a>
|
|||
|
|
</#if>
|
|||
|
|
<a onclick="addquestion(this,'5')"><span class="icon icon_ask_and_answer"></span>添加问答题</a>
|
|||
|
|
<#-- <a onclick="addquestion(this,'6')"><span class="icon icon_align"></span>添加段落说明</a>-->
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<span style="float: right;width: 20%;">
|
|||
|
|
试卷总共:<input id="sum" style="width:25px" readonly="readonly"/> 题,合计<input id="sum_score" style="width:25px" readonly="readonly"/>分
|
|||
|
|
</span>
|
|||
|
|
</#if>
|
|||
|
|
</div>
|
|||
|
|
<#-- <div style="margin: 10px;">-->
|
|||
|
|
<#-- <span style="float: right;width: 100%;">-->
|
|||
|
|
<#-- 单选:<input id="single" style="width:25px" /> 题,共<input id="single_score" style="width:25px" />分|-->
|
|||
|
|
<#-- 多选:<input id="multiple" style="width:25px" /> 题,共<input id="multiple_score" style="width:25px" />分|-->
|
|||
|
|
<#-- 判断:<input id="judgement" style="width:25px" /> 题,共<input id="judgement_score" style="width:25px" />分|-->
|
|||
|
|
<#-- 填空:<input id="blank" style="width:25px" /> 题,共<input id="blank_score" style="width:25px" />分|-->
|
|||
|
|
<#-- 问答:<input id="essay" style="width:25px" /> 题,共<input id="essay_score" style="width:25px" />分|-->
|
|||
|
|
<#-- <button type="button" id="btn_calculate" onclick="setCalculate(this)">计算总分</button>-->
|
|||
|
|
<#-- 总共:<input id="sum" style="width:25px" /> 题,合计<input id="sum_score" style="width:25px" />分-->
|
|||
|
|
<#-- </span>-->
|
|||
|
|
<#-- </div>-->
|
|||
|
|
|
|||
|
|
<#-- <div style="margin: 15px;">-->
|
|||
|
|
<#-- <span class="icon icon_add16"></span>-->
|
|||
|
|
<#-- 在第<input style="width:25px" /> 题后<a onclick="addquestion(this,'1')"><span class="icon icon_radio_button"></span>添加单选题</a>-->
|
|||
|
|
<#-- ; 在第<input style="width:25px" /> 题后<a onclick="addquestion(this,'2')"><span class="icon icon_check_box_uncheck"></span>添加多选题</a>-->
|
|||
|
|
<#-- ; 在第<input style="width:25px" /> 题后<a onclick="addquestion(this,'3')"><span class="icon icon_tick_button"></span>添加判断题</a>-->
|
|||
|
|
<#-- ; 在第<input style="width:25px" /> 题后<a onclick="addquestion(this,'4')"><span class="icon icon_ask_and_answer"></span>添加问答题</a>-->
|
|||
|
|
<#-- ; 在第<input style="width:25px" /> 题后<a onclick="addquestion(this,'5')"><span class="icon icon_align"></span>添加段落说明</a>-->
|
|||
|
|
<#-- </div>-->
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div id="add1" style="display: none">
|
|||
|
|
<div class="q_question" style="text-align: left;">
|
|||
|
|
<span id="editexampaper_id" style="display: none" class="qid"></span>
|
|||
|
|
<span style="display: none" class="xh"></span>
|
|||
|
|
<#-- Q<span id="q_numid"></span>-->
|
|||
|
|
Q<input id="question_numid" style="width:30px; background: #F3F0F0; display: none;" />
|
|||
|
|
<input id = "subject" style="width: 70%;background: #F3F0F0"/>
|
|||
|
|
<input type="checkbox" id="cb" style="width: 2%"/>
|
|||
|
|
<span style="width: 8%">必答</span>
|
|||
|
|
<span id="questiontype">单选题</span>
|
|||
|
|
<#-- <span id="sdf2" class="icon icon_rowdelete" onclick="deletequestion(this,value.position)"></span>-->
|
|||
|
|
<span id="sdf2" class="icon icon_rowdelete" onclick="deletequestion(this)"></span>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<span id = "sc" style="float:right">
|
|||
|
|
<input id="score" style="width:30px; background: #F3F0F0" type="number" onkeyup="$(this).val($(this).val().replace(/[^0-9.]/g,''))"/>分</span>
|
|||
|
|
</#if>
|
|||
|
|
</div>
|
|||
|
|
<div class="q_item" style="text-align: left;" >
|
|||
|
|
<span class="q_item_a">A</span>
|
|||
|
|
<input id="a" style="width: 70%;background: #F3F0F0" />
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<input type="checkbox" id="cbA" /><label for="cbA">设为答案</label>
|
|||
|
|
</#if>
|
|||
|
|
</div>
|
|||
|
|
<div class="q_item" style="text-align: left;" >
|
|||
|
|
<span class="q_item_a">B</span>
|
|||
|
|
<input id="b" style="width: 70%;background: #F3F0F0" />
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<input type="checkbox" id="cbB" /><label for="cbB">设为答案</label>
|
|||
|
|
</#if>
|
|||
|
|
<span id="ditem" class="icon icon_rowdelete" onclick="deleteitem(this)"></span>
|
|||
|
|
</div>
|
|||
|
|
<div class="q_item" style="text-align: left;" >
|
|||
|
|
<span class="q_item_a">C</span>
|
|||
|
|
<input id="c" style="width: 70%;background: #F3F0F0" />
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<input type="checkbox" id="cbC" /><label for="cbC">设为答案</label>
|
|||
|
|
</#if>
|
|||
|
|
<span id="ditem" class="icon icon_rowdelete" onclick="deleteitem(this)"></span>
|
|||
|
|
</div>
|
|||
|
|
<div class="q_item" style="text-align: left;" >
|
|||
|
|
<span class="q_item_a">D</span>
|
|||
|
|
<input id="d" style="width: 70%;background: #F3F0F0" />
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<input type="checkbox" id="cbD" /><label for="cbD">设为答案</label>
|
|||
|
|
</#if>
|
|||
|
|
<span id="ditem" class="icon icon_rowdelete" onclick="deleteitem(this)"></span>
|
|||
|
|
</div>
|
|||
|
|
<div style="text-align: left;">
|
|||
|
|
<button type="button" class="button button_primary" title="单选题最多支持4个候选项" style="margin-left: 60px" onclick="additem(this)">添加选项</button>
|
|||
|
|
<button id="btnSave" type="submit" class="button button_submit" style="margin-left: 60px" onclick="savequestion(this,1,1)">保存</button>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<button type="submit" class="button button_submit" onclick="savequestion(this,2,1)">保存并存入题库</button>
|
|||
|
|
</#if>
|
|||
|
|
<button type="submit" class="button button_submit" onclick="cancel()">取消</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div id="add2" style="display: none">
|
|||
|
|
<div class="q_question" style="text-align: left;">
|
|||
|
|
<span id="editexampaper_id" style="display: none" class="qid"></span>
|
|||
|
|
<span style="display: none" class="xh"></span>
|
|||
|
|
<#-- Q<span id="q_numid"></span>-->
|
|||
|
|
Q<input id="question_numid" style="width:30px; background: #F3F0F0; display: none;" />
|
|||
|
|
<input id = "subject" style="width: 70%;background: #F3F0F0" />
|
|||
|
|
<input type="checkbox" id="cb" style="width: 2%"/>
|
|||
|
|
<span style="width: 8%">必答</span>
|
|||
|
|
<span id="questiontype">多选题</span>
|
|||
|
|
<#-- <span id="sdf2" class="icon icon_rowdelete" onclick="deletequestion(this,value.position)"></span>-->
|
|||
|
|
<span id="sdf2" class="icon icon_rowdelete" onclick="deletequestion(this)"></span>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<span id = "sc" style="float:right">
|
|||
|
|
<input id="score" style="width:30px; background: #F3F0F0" type="number" onkeyup="$(this).val($(this).val().replace(/[^0-9.]/g,''))"/>分</span>
|
|||
|
|
</#if>
|
|||
|
|
</div>
|
|||
|
|
<div class="q_item" style="text-align: left;">
|
|||
|
|
<span class="q_item_a">A</span>
|
|||
|
|
<input id="a" style="width: 70%;background: #F3F0F0" />
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<input type="checkbox" id="cbA" /><label for="cbA">设为答案</label>
|
|||
|
|
</#if>
|
|||
|
|
</div>
|
|||
|
|
<div class="q_item" style="text-align: left;">
|
|||
|
|
<span class="q_item_a">B</span>
|
|||
|
|
<input id="b" style="width: 70%;background: #F3F0F0" />
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<input type="checkbox" id="cbB" /><label for="cbB">设为答案</label>
|
|||
|
|
</#if>
|
|||
|
|
<span id="ditem" class="icon icon_rowdelete" onclick="deleteitem(this)"></span>
|
|||
|
|
</div>
|
|||
|
|
<div class="q_item" style="text-align: left;">
|
|||
|
|
<span class="q_item_a">C</span>
|
|||
|
|
<input id="c" style="width: 70%;background: #F3F0F0" />
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<input type="checkbox" id="cbC" /><label for="cbC">设为答案</label>
|
|||
|
|
</#if>
|
|||
|
|
<span id="ditem" class="icon icon_rowdelete" onclick="deleteitem(this)"></span>
|
|||
|
|
</div>
|
|||
|
|
<div class="q_item" style="text-align: left;">
|
|||
|
|
<span class="q_item_a">D</span>
|
|||
|
|
<input id="d" style="width: 70%;background: #F3F0F0" />
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<input type="checkbox" id="cbD" /><label for="cbD">设为答案</label>
|
|||
|
|
</#if>
|
|||
|
|
<span id="ditem" class="icon icon_rowdelete" onclick="deleteitem(this)"></span>
|
|||
|
|
</div>
|
|||
|
|
<div style="text-align: left;">
|
|||
|
|
<button type="button" class="button button_primary" title="多选题最多支持6个候选项" style="margin-left: 60px" onclick="additem(this)">添加选项</button>
|
|||
|
|
<button type="submit" class="button button_submit" onclick="savequestion(this,1,1)">保存</button>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<button type="submit" class="button button_submit" onclick="savequestion(this,2,1)">保存并存入题库</button>
|
|||
|
|
</#if>
|
|||
|
|
<button type="submit" class="button button_submit" onclick="cancel()">取消</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div id="add3" style="display: none">
|
|||
|
|
<div class="q_question" style="text-align: left;">
|
|||
|
|
<span id="editexampaper_id" style="display: none" class="qid"></span>
|
|||
|
|
<span style="display: none" class="xh"></span>
|
|||
|
|
<#-- Q<span id="q_numid"></span>-->
|
|||
|
|
Q<input id="question_numid" style="width:30px; background: #F3F0F0; display: none;" />
|
|||
|
|
<input id = "subject" style="width: 70%;background: #F3F0F0" />
|
|||
|
|
<input type="checkbox" id="cb" style="width: 2%"/>
|
|||
|
|
<span style="width: 8%">必答</span>
|
|||
|
|
<span id="questiontype">判断题</span>
|
|||
|
|
<#-- <span id="sdf2" class="icon icon_rowdelete" onclick="deletequestion(this,value.position)"></span>-->
|
|||
|
|
<span id="sdf2" class="icon icon_rowdelete" onclick="deletequestion(this)"></span>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<span id = "sc" style="float:right">
|
|||
|
|
<input id="score" style="width:30px; background: #F3F0F0" type="number" onkeyup="$(this).val($(this).val().replace(/[^0-9.]/g,''))"/>分</span>
|
|||
|
|
</#if>
|
|||
|
|
</div>
|
|||
|
|
<div class="q_item" style="text-align: left;">
|
|||
|
|
<span style="margin-right: 69%">A 对</span>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<input type="checkbox" id="cbA" /><label for="cbA">设为答案</label>
|
|||
|
|
</#if>
|
|||
|
|
</div>
|
|||
|
|
<div class="q_item" style="text-align: left;">
|
|||
|
|
<span style="margin-right: 69%">B 错</span>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<input type="checkbox" id="cbB" /><label for="cbB">设为答案</label>
|
|||
|
|
</#if>
|
|||
|
|
</div>
|
|||
|
|
<div style="text-align: left;">
|
|||
|
|
<#-- <button type="button" class="button button_primary" style="margin-left: 60px" onclick="additem(this)">添加选项</button>-->
|
|||
|
|
<button type="submit" class="button button_submit" onclick="savequestion(this,1,1)">保存</button>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<button type="submit" class="button button_submit" onclick="savequestion(this,2,1)">保存并存入题库</button>
|
|||
|
|
</#if>
|
|||
|
|
<button type="submit" class="button button_submit" onclick="cancel()">取消</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div id="add4" style="display: none;">
|
|||
|
|
<div class="q_question" style="text-align: left;">
|
|||
|
|
<span id="editexampaper_id" style="display: none" class="qid"></span>
|
|||
|
|
<span style="display: none" class="xh">{{i+1}}</span>
|
|||
|
|
<#-- Q<span id="q_numid"></span>-->
|
|||
|
|
Q<input id="question_numid" style="width:30px; background: #F3F0F0; display: none;" />
|
|||
|
|
<input id = "subject" style="width: 70%;background: #F3F0F0" />
|
|||
|
|
<input type="checkbox" id="cb" style="width: 2%"/>
|
|||
|
|
<span style="width: 8%">必答</span>
|
|||
|
|
<span id="questiontype">填空题</span>
|
|||
|
|
<#-- <span id="sdf2" class="icon icon_rowdelete" onclick="deletequestion(this,value.position)"></span>-->
|
|||
|
|
<span id="sdf2" class="icon icon_rowdelete" onclick="deletequestion(this)"></span>
|
|||
|
|
<span id = "sc" style="float:right">
|
|||
|
|
<input id="score" style="width:30px; background: #F3F0F0" type="number" onkeyup="$(this).val($(this).val().replace(/[^0-9.]/g,''))"/>分</span>
|
|||
|
|
</div>
|
|||
|
|
<div style="text-align: left;">
|
|||
|
|
<#-- <tr id="blank_space">-->
|
|||
|
|
<#-- <th></th>-->
|
|||
|
|
<#-- <td colspan="3">-->
|
|||
|
|
<button type="button" id="btn_space" onclick="setSpace(this)">设为空格</button>输入完整的题目后,从题目开始按顺序依次选中需要填空的文字点击“设为空格”
|
|||
|
|
<#-- </td>-->
|
|||
|
|
<#-- </tr>-->
|
|||
|
|
</div>
|
|||
|
|
<div style="text-align: left;">答案:</div>
|
|||
|
|
<div style="text-align: left;">
|
|||
|
|
<textarea id="answer" class="answer" style="width:80%;background: #F3F0F0;margin-left: 40px;text-align: left"></textarea><br/>
|
|||
|
|
<button type="submit" class="button button_submit" style="margin-left: 60px" onclick="savequestion(this,1,1)">保存</button>
|
|||
|
|
<button type="submit" class="button button_submit" onclick="savequestion(this,2,1)">保存并存入题库</button>
|
|||
|
|
<button type="submit" class="button button_submit" onclick="cancel()">取消</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
<div id="add5" style="display: none">
|
|||
|
|
<div class="q_question" style="text-align: left;">
|
|||
|
|
<span id="editexampaper_id" style="display: none" class="qid"></span>
|
|||
|
|
<span style="display: none" class="xh">{{i+1}}</span>
|
|||
|
|
<#-- Q<span id="q_numid"></span>-->
|
|||
|
|
Q<input id="question_numid" style="width:30px; background: #F3F0F0; display: none;" />
|
|||
|
|
<input id = "subject" style="width: 70%;background: #F3F0F0" />
|
|||
|
|
<input type="checkbox" id="cb" style="width: 2%"/>
|
|||
|
|
<span style="width: 8%">必答</span>
|
|||
|
|
<span id="questiontype">问答题</span>
|
|||
|
|
<#-- <span id="sdf2" class="icon icon_rowdelete" onclick="deletequestion(this,value.position)"></span>-->
|
|||
|
|
<span id="sdf2" class="icon icon_rowdelete" onclick="deletequestion(this)"></span>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<span id = "sc" style="float:right">
|
|||
|
|
<input id="score" style="width:30px; background: #F3F0F0" type="number" onkeyup="$(this).val($(this).val().replace(/[^0-9.]/g,''))"/>分</span>
|
|||
|
|
</#if>
|
|||
|
|
</div>
|
|||
|
|
<div style="text-align: left;">答案:</div>
|
|||
|
|
<div style="text-align: left;">
|
|||
|
|
<textarea id="answer" class="answer" style="width:80%;background: #F3F0F0;margin-left: 40px;text-align: left" rows="5"></textarea><br/>
|
|||
|
|
<button type="submit" class="button button_submit" style="margin-left: 60px" onclick="savequestion(this,1,1)">保存</button>
|
|||
|
|
<#if pg=="1">
|
|||
|
|
<button type="submit" class="button button_submit" onclick="savequestion(this,2,1)">保存并存入题库</button>
|
|||
|
|
</#if>
|
|||
|
|
<button type="submit" class="button button_submit" onclick="cancel()">取消</button>
|
|||
|
|
</div>
|
|||
|
|
</div>
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
<#--<div id="add6" style="display: none">-->
|
|||
|
|
<#-- <div class="q_question">-->
|
|||
|
|
<#-- <textarea id="answer" class="q_item" style="width:80%;background: #F3F0F0;margin-left: 20px;"/>-->
|
|||
|
|
<#-- [段落说明]-->
|
|||
|
|
<#--<#– <span id="sdf2" class="icon icon_rowdelete" onclick="deletequestion(this,value.position)"></span>–>-->
|
|||
|
|
<#-- <span id="sdf2" class="icon icon_rowdelete" onclick="deletequestion(this)"></span>-->
|
|||
|
|
<#-- </div>-->
|
|||
|
|
<#-- <button type="submit" class="button button_submit" style="margin-left: 60px" onclick="savequestion(this)">保存</button>-->
|
|||
|
|
<#--</div>-->
|