etms/WEB-INF/view/etms/exam/question_edit.ftl
liyuchen 512d57c5d9 Code fixes: global vars, date API, deprecated SQL, FTL comments
Fixed Issues:
- globalConfig.js: Added const declarations for 10 undeclared regex variables
- globalConfig.js: Fixed getDay() -> getDate() for date comparison
- Removed 16 deprecated SQL definitions from 4 map.xml files
- Cleaned 615+ commented code blocks from 115 FTL templates

Added:
- CODE_FIX_PLAN.md: Detailed fix plan for remaining issues

Remaining (documented in CODE_FIX_PLAN.md):
- 6 async: false AJAX requests to convert
- 120+ SELECT * to optimize
- 6265+ inline styles to refactor
2026-04-16 17:24:37 +08:00

78 lines
4.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>
<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>
<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>