📄 engageexam_exam.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<base href="http://localhost:8080/accp_hr/"/>
<title>添加试卷</title>
</head>
<body onload="tijiao();" bgcolor="#DADEDD" style="background-image: url('images/accphr/main.jpg');background-attachment :fixed ;">
<html:form action="engageExam" onsubmit="return tijiao();">
<input type="hidden" name="opee" value="doAnswer"/>
<input type="hidden" name="times" value="${alltime }" >
<table align="center" width="100%">
<tr>
<td align="right">
<input type="text" id="currentTime" readonly="readonly">
<html:submit value="提交" />
</td>
</tr>
<tr>
<td>
<table border="1" cellspacing="0" align="center" width="90%" bordercolor="black" style="font-size: 12px">
<tr>
<th>姓名</th>
<td>
${answers.humanName }
</td>
<th>身份证号</th>
<td>${answers.humanIdcard }</td>
</tr>
<tr>
<th>试卷编号</th>
<td>
${answers.examNumber }
</td>
<th>试题数量</th>
<td>
${allqu }
</td>
</tr>
<logic:iterate id="item" name="qlist" indexId="i">
<tr>
<td colspan="4"><font color="blue">(${i+1 })
问题:${item.content }</font>
</td>
</tr>
<tr>
<td colspan="4">
<input type="checkbox" name="answer${i }" value="A">A.${item.keyA }
<br>
<input type="checkbox" name="answer${i }" value="B">B.${item.keyB }
<br>
<input type="checkbox" name="answer${i }" value="C">C.${item.keyC }
<br>
<input type="checkbox" name="answer${i }" value="D">D.${item.keyD }
<br>
<input type="checkbox" name="answer${i }" value="E">E.${item.keyE }
</td>
</tr>
<tr>
<td colspan="4">
<hr>
</td>
</tr>
</logic:iterate>
</table>
</td>
</tr>
</table>
</html:form>
</body>
</html>
<script type="text/javascript">
<!--
var jishi=0;
var allt=0;
function tijiao(){
allt=document.getElementById('times').value;
showtime();
}
function showtime() {
jishi++;
if(parseInt(jishi)==parseInt(allt)){
alert('时间已到,将自动提交');
document.forms[0].submit();
}
document.getElementById("currentTime").value=jishi;
setTimeout("showtime()",1000);
}
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -