80 lines
4.5 KiB
Plaintext
80 lines
4.5 KiB
Plaintext
|
|
<div class="ui_dialog" id="dialog">
|
|||
|
|
<form id="grid_form" method="post">
|
|||
|
|
</form>
|
|||
|
|
</div>
|
|||
|
|
<script id="grid_form_temp" type="text/html">
|
|||
|
|
<input type="hidden" id="hdID" value="{{id}}"/>
|
|||
|
|
<div class="formTitle"><span class="icon icon_menu"></span>试题信息</div>
|
|||
|
|
<table class="fromTable">
|
|||
|
|
<tr>
|
|||
|
|
<th>题型:</th>
|
|||
|
|
<#-- input标签中name="questionInfo.type"是其他的写法,应改为name="type"-->
|
|||
|
|
<td><input id="txttype" type="text" name="type" ui-config="required:true,tipAfterInput:true,dictKey:'exam_question_type'" value="{{type}}" class="ui_validate"/></td>
|
|||
|
|
</tr>
|
|||
|
|
<tr>
|
|||
|
|
<th>试卷类别:</th>
|
|||
|
|
<td>
|
|||
|
|
<input id="txtcategory" type="text" name="categoryid" class="ui_validate"
|
|||
|
|
ui-config="required:true,tipAfterInput:true,dictKey:'exam_question_cate'" value="{{categoryid}}"/>
|
|||
|
|
</td>
|
|||
|
|
</tr>
|
|||
|
|
<tr>
|
|||
|
|
<th>题目:</th>
|
|||
|
|
<td colspan="3"><textarea id="txtsubject" name="subject" class="ui_validate" type="text"
|
|||
|
|
ui-config="required:true,width:650,tipAfterInput:true,validType:'length[1,200]'">{{subject}}</textarea></td>
|
|||
|
|
</tr>
|
|||
|
|
<tr id="cho">
|
|||
|
|
<th colspan="3" style="color: gray">选择题请自A(按顺序)填写任意数量选项!</th>
|
|||
|
|
</tr>
|
|||
|
|
<tr id="rowA">
|
|||
|
|
<th>A:</th>
|
|||
|
|
<#-- input标签中value="{{optionA}}与前端不匹配,应改为小写value="{{optiona}}-->
|
|||
|
|
<td colspan="2"><input id="txtoptionA" type="text" name="optionA" ui-config="tipAfterInput:true,width:650,validType:'length[0,100]'" value="{{optiona}}" class="ui_validate"/></td>
|
|||
|
|
<td><input type="checkbox" id="cbA" /><label for="cbA">设为答案</label></td>
|
|||
|
|
</tr>
|
|||
|
|
<tr id="rowB">
|
|||
|
|
<th>B:</th>
|
|||
|
|
<td colspan="2"><input id="txtoptionB" type="text" name="optionB" ui-config="tipAfterInput:true,width:650,validType:'length[0,100]'" value="{{optionb}}" class="ui_validate"/></td>
|
|||
|
|
<td><input type="checkbox" id="cbB" /><label for="cbB">设为答案</label></td>
|
|||
|
|
</tr>
|
|||
|
|
<tr id="rowC">
|
|||
|
|
<th>C:</th>
|
|||
|
|
<td colspan="2"><input id="txtoptionC" type="text" name="optionC" ui-config="tipAfterInput:true,width:650,validType:'length[0,100]'" value="{{optionc}}" class="ui_validate"/></td>
|
|||
|
|
<td><input type="checkbox" id="cbC" /><label for="cbC">设为答案</label></td>
|
|||
|
|
</tr>
|
|||
|
|
<tr id="rowD">
|
|||
|
|
<th>D:</th>
|
|||
|
|
<td colspan="2"><input id="txtoptionD" type="text" name="optionD" ui-config="tipAfterInput:true,width:650,validType:'length[0,100]'" value="{{optiond}}" class="ui_validate"/></td>
|
|||
|
|
<td><input type="checkbox" id="cbD" /><label for="cbD">设为答案</label></td>
|
|||
|
|
</tr>
|
|||
|
|
<tr id="rowE">
|
|||
|
|
<th>E:</th>
|
|||
|
|
<td colspan="2"><input id="txtoptionE" type="text" name="optionE" ui-config="tipAfterInput:true,width:650,validType:'length[0,100]'" value="{{optione}}" class="ui_validate"/></td>
|
|||
|
|
<td><input type="checkbox" id="cbE" /><label for="cbE">设为答案</label></td>
|
|||
|
|
</tr>
|
|||
|
|
<tr id="rowF">
|
|||
|
|
<th>F:</th>
|
|||
|
|
<td colspan="2"><input id="txtoptionF" type="text" name="optionF" ui-config="tipAfterInput:true,width:650,validType:'length[0,100]'" value="{{optionf}}" class="ui_validate"/></td>
|
|||
|
|
<td><input type="checkbox" id="cbF" /><label for="cbF">设为答案</label></td>
|
|||
|
|
</tr>
|
|||
|
|
<tr>
|
|||
|
|
</tr>
|
|||
|
|
<tr id="blank_space">
|
|||
|
|
<th></th>
|
|||
|
|
<td colspan="3"><button type="button" id="btn_space">设为空格</button>输入完整的题目后,从题目开始按顺序依次选中需要填空的文字点击“设为空格”</td>
|
|||
|
|
</tr>
|
|||
|
|
<tr>
|
|||
|
|
<th>试题解析:</th>
|
|||
|
|
<td colspan="3"><textarea id="txtdescription" name="description" class="ui_validate" type="text"
|
|||
|
|
ui-config="width:650,tipAfterInput:true,validType:'length[0,200]'">{{description}}</textarea></td>
|
|||
|
|
</tr>
|
|||
|
|
<tr id="tap">
|
|||
|
|
<th colspan="4" style="color: gray">判断题答案请写:“对”或“错”</th>
|
|||
|
|
</tr>
|
|||
|
|
<tr>
|
|||
|
|
<th>答案:</th>
|
|||
|
|
<td colspan="3"><textarea id="txtanswer" name="answer" class="ui_validate" type="text"
|
|||
|
|
ui-config="required:true,width:650,tipAfterInput:true,validType:'length[0,200]'">{{answer}}</textarea></td>
|
|||
|
|
</tr>
|
|||
|
|
</table>
|
|||
|
|
</script>
|