etms/WEB-INF/view/cetc54/exam/exampaper_edit.ftl

122 lines
6.5 KiB
Plaintext
Raw Normal View History

<div class="ui_dialog" id="dialog">
<form id="grid_form" method="post" style="height: 230px">
</form>
<#include "exampaper_limitation.ftl">
<#-- <#include "exampaper_add.ftl">-->
<#-- <#include "exampaper_project_main_useradd_list.ftl">-->
<#-- <#include "exampaper_project_main_useradd_group_list.ftl">-->
</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>
<#if pg=="1">试卷描述信息</#if>
<#if pg=="2">问卷描述信息</#if>
</div>
<table class="fromTable">
<tr>
<th style="width: 65px">
<#if pg=="1">试卷类别:</#if>
<#if pg=="2">问卷类别:</#if>
</th>
<td>
<#if pg=="1">
<input id="txtcategory" type="text" name="categoryid" class="ui_validate"
ui-config="required:true,tipAfterInput:true,dictKey:'exam_question_cate'" value="{{categoryid}}"/>
</#if>
<#if pg=="2">
<input id="txtcategory" type="text" name="categoryid" class="ui_validate"
ui-config="required:true,tipAfterInput:true,dictKey:'research_exam_cate'" value="{{categoryid}}"/>
</#if>
</td>
<#if pg=="1">
<th>设置及格分数:</th>
<td>
<#-- 限制仅能输入纯数字 type="number" 或者 oninput="value=value.replace(/[^\.\d]/g,'')" 是正则表达式,去掉字符串中除数字和.之外的其它字符 -->
<input id="txtpasspoints" name="passpoints" type="number"
ui-config="required:true,tipAfterInput:true,validType:'length[1,8]'" value="{{passpoints}}" class="ui_validate"/>
</td>
</#if>
</tr>
<tr>
<th>
<#if pg=="1">试卷名称:</#if>
<#if pg=="2">问卷名称:</#if>
</th>
<td colspan="3"><input id="txtname" name="name" class="ui_validate" type="text"
ui-config="required:true,width:600,tipAfterInput:true,validType:'length[1,50]'" value="{{name}}"/></td>
</tr>
<tr>
<th>
<#if pg=="1">试卷描述:</#if>
<#if pg=="2">问卷描述:</#if>
</th>
<td colspan="3"><textarea id="txtdescription" name="description" class="ui_validate" type="text"
ui-config="required:true,width:600,tipAfterInput:true,validType:'length[1,200]'">{{description}}</textarea></td>
</tr>
<tr>
<th>开放时间:</th>
<td>
<input id="startdate" type="text" name="startdate" class="ui_validate"
ui-config="required:true,tipAfterInput:true" value="{{startdate | dateFilter}}">-
<input id="enddate" type="text" name="enddate" class="ui_validate"
ui-config="required:true,tipAfterInput:true" value="{{enddate | dateFilter}}">
</td>
<#if pg=="1">
<th style="width: 120px">考试时长(小时):</th>
<td>
<input id="sc" type="number" name="sc"
ui-config="required:true,tipAfterInput:true,validType:'length[1,8]'" value="{{sc}}" class="ui_validate"/>
</td>
</#if>
</tr>
<tr>
<th>
发放范围:
</th>
<td>
<#if pg_l=="3">
{{if limitation == "1"}}<input name="like1" id="cb3_l" type="radio" checked="checked" ui-config="required:true" onclick="specifiedRange(1)"/><label for="cb3_l" id="cb3_li">全院</label>
{{else}}<input name="like1" id="cb3_l" type="radio" ui-config="required:true" onclick="specifiedRange(1)"/><label for="cb3_l" id="cb3_li">全院</label>
{{/if}}
{{if limitation == "2"}}<input name="like1" id="cb4_l" type="radio" checked="checked" ui-config="required:true" onclick="specifiedRange(2)"/><label for="cb4_l" id="cb4_li">指定部门</label>
{{else}}<input name="like1" id="cb4_l" type="radio" ui-config="required:true" onclick="specifiedRange(2)"/><label for="cb4_l" id="cb4_li">指定部门</label>
{{/if}}
{{if limitation == "3"}}<input name="like1" id="cb5_l" type="radio" checked="checked" ui-config="required:true" onclick="specifiedRange(3)"/><label for="cb5_l" id="cb5_li">指定人员</label>
{{else}}<input name="like1" id="cb5_l" type="radio" ui-config="required:true" onclick="specifiedRange(3)"/><label for="cb5_l" id="cb5_li">指定人员</label>
{{/if}}
</#if>
<#if pg=="1">
<#if pg_l=="3" || pg_l=="4">
{{if limitation == "4"}}<input name="like1" id="cb6_l" type="radio" checked="checked" ui-config="required:true" onclick="specifiedRange(4)"/><label for="cb6_l" id="cb6_li">指定班级</label>
{{else}}<input name="like1" id="cb6_l" type="radio" ui-config="required:true" onclick="specifiedRange(4)"/><label for="cb6_l" id="cb6_li">指定班级</label>
{{/if}}
</#if>
<#if pg_l=="3">
{{if limitation == "5"}}<input name="like1" id="cb7_l" type="radio" checked="checked" ui-config="required:true" onclick="specifiedRange(5)"/><label for="cb7_l" id="cb7_li">指定课程</label>
{{else}}<input name="like1" id="cb7_l" type="radio" ui-config="required:true" onclick="specifiedRange(5)"/><label for="cb7_l" id="cb7_li">指定课程</label>
{{/if}}
</#if>
</#if>
</td>
</tr>
</table>
<#-- <div id="div_corpListtitle_exampaper" class="formTitle" style="display: none;"><span class="icon icon_menu"></span>指定部门:</div>-->
<#-- <div id="div_Listusertitle_exampaper" class="formTitle" style="display: none;"><span class="icon icon_menu"></span>指定人员:</div>-->
<#-- <div id="div_Listcorp_exampaper" style="width: 100%;height: 180px;bottom:0px;"></div>-->
<#-- <div id="div_Listuser_exampaper" style="width: 100%;height: 180px;bottom:0px;"></div>-->
</script>
<#--<form id="grid_form" enctype="multipart/form-data" method="post">-->
<#--</form>-->
<#--<#include "exampaper_project_main_useradd_list.ftl">-->
<#--<#include "exampaper_project_main_useradd_group_list.ftl">-->