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

121 lines
5.7 KiB
Plaintext
Raw Normal View History

<div id="grid">
<div class="grid_toolbar">
<table style="width:100%;">
<tr>
<td style="width:100%;">
<button type="button" id="btn1" ui-config="style:'button_submit'">
<#if pg=="1">新建试卷</#if>
<#if pg=="2">新建问卷</#if>
</button>
<button type="button" id="btn2" ui-config="style:'button_danger'">删除
</button>
<button type="button" id="btn3" ui-config="style:'button_submit'">
<#if pg=="1">编辑试卷内容</#if>
<#if pg=="2">编辑问卷内容</#if>
</button>
<button type="button" id="btn4" ui-config="style:'button_submit'">
<#if pg=="1">导入新试卷</#if>
<#if pg=="2">导入新问卷</#if>
</button>
<button type="button" id="btn5" ui-config="style:'button_submit'">
<#if pg=="1">导出试卷</#if>
<#if pg=="2">导出问卷</#if>
</button>
<button type="button" id="btn6" ui-config="style:'button_danger'">
<#if pg=="1">撤销试卷</#if>
<#if pg=="2">撤销调研问卷</#if>
</button>
<button type="button" id="btn7" ui-config="style:'button_submit'">
<#if pg=="1">发布考试</#if>
<#if pg=="2">发布调研问卷</#if>
</button>
<#if pg=="2">
<button type="button" id="btn8" ui-config="style:'button_submit'">调研信息汇总</button>
</#if>
<button type="button" id="btn9" ui-config="style:'button_submit'">
<#if pg=="1">预览试卷内容</#if>
<#if pg=="2">预览调研问卷</#if>
</button>
<button type="button" id="btn10" ui-config="style:'button_submit'">
<#if pg=="1">考试详情</#if>
<#if pg=="2">调研详情</#if>
</button>
<#if pg=="1">
<button type="button" id="btn11" ui-config="style:'button_submit'">重新考试</button>
</#if>
<input type="hidden" id="pg" value="${pg}"/>
<input type="hidden" id="pg" value="${pg_l}"/>
</td>
<td>
<input id="searchbox" type="text">
</td>
</tr>
</table>
</div>
<table class="grid_data">
<thead>
<tr>
<td style="width: 20px;"><input class="grid_selector" type="checkbox" id="cbAll"/></td>
<td style="width: 44px;">操作</td>
<td style="width: 28px;">序号</td>
<td sortfield="name" style="width: 200px">
<#if pg=="1">试卷名称</#if>
<#if pg=="2">问卷名称</#if>
</td>
<td sortfield="category">
<#if pg=="1">试卷类别</#if>
<#if pg=="2">问卷类别</#if>
</td>
<td sortfield="description" style="width: 200px">
<#if pg=="1">试卷描述</#if>
<#if pg=="2">问卷描述</#if>
</td>
<td sortfield="edittime">最后编辑时间</td>
<td sortfield="creatperson">创建人</td>
<td sortfield="createdepartment">部门</td>
<td sortfield="state">状态</td>
</tr>
</thead>
<tbody>
<tr class="row{{i%2}}">
<td>
<#-- {{if value.state=="未开始"}}-->
<input class="grid_selector" type="checkbox" id="cb{{i}}"/>
<#-- {{else}}<input class="grid_selector" type="checkbox" id="cb{{i}}" disabled="disabled" />-->
<#-- {{/if}}-->
</td>
<td class="tableCenterTd">
{{if value.state=="未开始"}}
<a class="icon icon_rowedit" title="编辑" href="javascript:void(0);"
onclick="editRow('{{value.id}}');"></a>
<a class="icon icon_rowdelete" title="删除" href="javascript:void(0);"
onclick="deleteRow('{{value.id}}');"></a>
{{else}}
<a class="icon icon_rowedit" title="该试卷不允许编辑" href="javascript:void(0);"
onclick="return false" style="opacity: 0.2"></a>
<a class="icon icon_rowdelete" title="该试卷不允许删除" href="javascript:void(0);"
onclick="return false" style="opacity: 0.2"></a>
{{/if}}
</td>
<td>{{i+1}}</td>
<td><a title="{{value.name}}" href="javascript:void(0);"
onclick="viewRow('{{value.id}}','{{value.name}}');">{{value.name}}</a></td>
<td title="{{value.category}}">{{value.category}}</td>
<td title="{{value.description}}">{{value.description}}</td>
<td title="{{value.edittime | dateTimeFilter}}">{{value.edittime | dateTimeFilter}}</td>
<td title="{{value.creatperson}}">{{value.creatperson }}</td>
<td title="{{value.createdepartment}}">{{value.createdepartment }}</td>
<td title="{{value.state}}">{{value.state}}</td>
</tr>
</tbody>
</table>
<div class="grid_pagination"></div>
</div>