📄 examdetail.jsp
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ include file="/agt/public/jsp/top.jsp" %>
<% Object sessionRs = request.getAttribute("EXAM-DETAIL");
SysResultSet rs1 = sessionRs == null ?null:(SysResultSet)sessionRs;
rs1.next();
sessionRs = request.getAttribute("EXAM-PARTSTAFFNO");
SysResultSet rs2 = sessionRs == null ?null:(SysResultSet)sessionRs;
sessionRs = request.getAttribute("EXAM-PARTGROUP");
SysResultSet rs3 = sessionRs == null ?null:(SysResultSet)sessionRs;
String[] publicResult ={"否", "是"};
sessionRs = request.getAttribute("EXAM-CLASS");
SysResultSet rs4 = sessionRs == null ?null:(SysResultSet)sessionRs;
sessionRs = request.getAttribute("EXAM-PAPEROFCLASS");
SysResultSet rs5 = sessionRs == null ?null:(SysResultSet)sessionRs;
String[] classOrder ={"一", "二","三","四"};
%>
<!-- title>业务代表管理系统考试安排详细信息</title -->
<br>
<form name="examform" method="POST" action="/ExamMan.do">
<table width="539" border="0" cellpadding="3" cellspacing="1" class="table-cs1">
<% int scope = Integer.parseInt(rs1.getString(13));
if(scope == 3)
{
%>
<tr>
<td height="25" align="center" class="td-cs1">考试形式:</td>
<td height="25" colspan="3" class="td-cs2"> 按班级分组</td>
</tr>
<%}
else
{%>
<tr>
<td height="25" align="center" class="td-cs1">考试形式:</td>
<td height="25" colspan="3" class="td-cs2"> 按参加人</td>
</tr>
<%}%>
<tr>
<td height="25" align="center" class="td-cs1">考试名称:</td>
<td height="25" colspan="3" class="td-cs2"> <%=rs1.getString(3)%></td>
</tr>
<tr>
<td height="25" align="center" class="td-cs1">考试主题:</td>
<td height="25" colspan="3" class="td-cs2"> <%=rs1.getString(4)%></td>
</tr>
<%
if(scope != 3)
{
%>
<tr>
<td height="25" align="center" class="td-cs1" >所用考卷:</td>
<td height="25" colspan="3" class="td-cs2">
<a class="lnk-cs2" href="#" onclick="window.open('/OnlineExam.do?opeType=<%=OperatorFlagCode.ONLINEEXAM_GETPAPER%>&examId=<%=rs1.getString(0)%>&print=ok','考试','menubar=no,location=no,scrollbars=yes,resizable=yes');"><%=rs1.getString(2) %></a>
</td>
</tr>
<%}
else
{%>
<tr>
<td height="25" align="center" class="td-cs1" >班级名称:</td>
<td height="25" colspan="3" class="td-cs2">
<%if(rs4 != null && rs4.getMetaData().getRecordCount() != 0 )
{
//此处是用来显示结果
for(int i=0; rs4.setRecord(i)&&(i<rs4.getMetaData().getRecordCount()); i++)
{
%> <%=rs4.getString(1)%>
<%
}
}
%> </td>
</tr>
<%if(rs5 != null && rs5.getMetaData().getRecordCount() != 0 )
{
//此处是用来显示结果
for(int i=0; rs5.setRecord(i)&&(i<rs5.getMetaData().getRecordCount()); i++)
{
%>
<tr>
<td height="25" align="center" class="td-cs1" >第<%=classOrder[i]%>组考卷:</td>
<td height="25" colspan="3" class="td-cs2">
<a class="lnk-cs2" href="#" onclick="window.open('/OnlineExam.do?opeType=<%=OperatorFlagCode.ONLINEEXAM_GETPAPER%>&examId=<%=rs1.getString(0)%>&paperId=<%=rs5.getString(0)%>&print=ok&scope=3','考试','menubar=no,location=no,scrollbars=yes,resizable=yes');"><%=rs5.getString(1) %></a>
</td>
</tr>
<%
}
}
%>
<%}%>
<tr>
<td height="25" align="center" class="td-cs1">所属类别:</td>
<td height="25" colspan="3" class="td-cs2"> <%=ClassInfo.get(rs1.getString(6))%> </td>
</tr>
<tr>
<td height="25" align="center" class="td-cs1">所属地市:</td>
<td height="25" class="td-cs2"> <%=CityInfo.getCityName(rs1.getString(5))%></td>
<td height="25" align="center" class="td-cs1">及格分数:</td>
<td width="39%" height="25" class="td-cs2"> <%=rs1.getString(9)%> </td>
</tr>
<tr>
<td height="25" align="center" class="td-cs1">最大次数:</td>
<td height="25" class="td-cs2"> <%=rs1.getString(8)%></td>
<td height="25" align="center" class="td-cs1">考试时长:</td>
<%if(rs1.getInt(7) == 0)
{%>
<td height="25" class="td-cs2">不限制 </td>
<%}
else
{%>
<td height="25" class="td-cs2"><%=rs1.getInt(7)%>分钟 </td>
<%}%>
</tr>
<tr>
<td height="25" align="center" class="td-cs1">开始时间:</td>
<td height="25" class="td-cs2"> <%=rs1.getString(11)%></td>
<td height="25" align="center" class="td-cs1">结束时间:</td>
<td height="25" class="td-cs2"> <%=rs1.getString(12)%></td>
</tr>
<tr>
<td height="25" align="center" class="td-cs1">评卷教师:</td>
<td height="25" class="td-cs2"> <%=rs1.getString(10)%> </td>
<td width="80" align="center" class="td-cs1">公开答案:</td>
<td class="td-cs2" ><%=publicResult[rs1.getInt(21)]%></td>
</tr>
<%
if(scope != 3)
{%>
<tr>
<td width="15%" height="25" align="center" class="td-cs1">参与范围:</td>
<%
String scopeStr = "";
if(scope == 0) {scopeStr = "所有员工都参与";}
else {scopeStr = "指定人员与班组";}
%>
<td width="34%" height="25" colspan="3" class="td-cs2"><%=scopeStr%></td> </tr>
<%if(scope == 1){
%>
<tr>
<td height="25" align="center" class="td-cs1">参与人员:</td>
<td height="25" colspan="3" class="td-cs2">
<%if(rs2 != null && rs2.getMetaData().getRecordCount() != 0 )
{
//此处是用来显示结果
for(int i=0; rs2.setRecord(i)&&(i<rs2.getMetaData().getRecordCount()); i++)
{
%> <%=rs2.getString(1)%>(<%=rs2.getString(0)%>),
<%
}
}
%> </td>
</tr>
<tr>
<td height="25" align="center" class="td-cs1">参与组号:</td>
<td height="25" colspan="3" class="td-cs2">
<%if(rs3 != null && rs3.getMetaData().getRecordCount() != 0 )
{
//此处是用来显示结果
for(int i=0; rs3.setRecord(i)&&(i<rs3.getMetaData().getRecordCount()); i++)
{
%> <%=rs3.getString(1)%>(<%=rs3.getString(0)%>),
<%
}
}
%> </td>
</tr>
<%}%>
<%}%>
<tr>
<td height="25" align="center" class="td-cs1">创建者:</td>
<td height="25" colspan="3" class="td-cs2"> <%=rs1.getString(14)%></td>
</tr>
<tr>
<td height="25" align="center" class="td-cs1">审查人:</td>
<td height="25" colspan="3" class="td-cs2"> <%=rs1.getString(16)%></td>
</tr>
<tr>
<td height="25" align="center" class="td-cs1">审查意见:</td>
<td height="25" colspan="3" class="td-cs2"> <%=rs1.getString(18)%></td>
</tr>
<tr>
<td height="25" align="center" class="td-cs1">审批人:</td>
<td height="25" colspan="3" class="td-cs2"> <%=rs1.getString(17)%></td>
</tr>
<tr>
<td height="25" align="center" class="td-cs1">审批意见:</td>
<td height="25" colspan="3" class="td-cs2"> <%=rs1.getString(19)%></td>
</tr>
</table>
<table width="539" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"> <table width="424" height="35" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25%"> </td>
<td width="25%"> <input name="back" type="image" onclick="history.back();return false;" src="/agt/public/images/back.gif" width="82" height="22" border="0" onmouseover="this.src='/agt/public/images/'+ this.name + '_2.gif';" onmouseout="this.src='/agt/public/images/'+ this.name + '.gif'">
</td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</form>
<%@ include file="/agt/public/jsp/bot.jsp" %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -