<%@page import="com.zky.para.Para"%> <%@page import="com.zky.zhyw.smsj.WorkDB"%> <%@include file="/auth.jsp"%> <%@page import="java.util.Date"%> <%@page import="java.util.*" %> <%@page language="java" pageEncoding="gbk" %> <jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/> <% login_obj = (Login)session.getAttribute("login"); //受理点 String acptsiteid = login_obj.acptsiteid; String acptsitename = getPara.getDesc("TAB_DEPARTMENT","DEPARTID","DEPARTNAME",acptsiteid); //员工姓名,编号 String optrid = login_obj.optrid; String optrname = getPara.getDesc("TAB_EMPLOYEE","EMPID","EMPNAME",optrid); String optrsubmit = getPara.getDesc("TAB_EMPLOYEE","EMPID","SUBMITBTN",optrid); HashFmlBuf buf = (HashFmlBuf)request.getAttribute("trybookId"); Login login = (Login) request.getSession().getAttribute("login"); %> <html> <head> <title>试卷管理</title> <link href="../../css/font.css" rel="stylesheet" type="text/css"> <script src="../../js/date.js"></script> <script src="../../js/check.js"></script> <script> function textToUpperCase(){ if(event.keyCode>=65 && event.keyCode<=90 || event.type=="change"){ event.srcElement.value = event.srcElement.value.toUpperCase(); } } function check(operate) { form1.operate.value = operate; if (operate == "addTryBook") { if (form1.tklxtype.value=='') { alert("请选择相关考题!"); return false; } form1.action = "/zhyw/smsj/TryBook.jsp"; } form1.button1.disabled=true; form1.submit(); } function selectChange(i) { form1.action = "/zhyw/smsj/TryBook.jsp"; form1.submit(); } </script> <style type="text/css"> .aselect{ width: 155px; } .unnamed1{ font-size:14px; color:red; } </style> </head> <body onload="time1()"> <center> <% Calendar ca = Calendar.getInstance(); session.setAttribute("time_start",ca.getTime().toString()); ca.add(Calendar.MINUTE,45); session.setAttribute("time_over",ca.getTime().toString()); String time_end=String.valueOf(ca.get(Calendar.MINUTE)); session.setAttribute("time_end",time_end); %> <script type="text/javascript"> function time1() { var now,n,y,r,h,m,s; now=new Date(); n = now.getYear(); y = now.getMonth()+1; r = now.getDate(); h = now.getHours(); m =now.getMinutes(); s = now.getSeconds(); if(y<10) y="0"+y; if(r<10) r="0"+r; if(h<10) h="0"+h; if(m<10) m="0"+m; if(s<10) s="0"+s; document.getElementById("time1").innerHTML="<font color=red>"+n + "-" + y + "-" + r + " "+ h + ":" + m + ":" + s+"</font>"; setTimeout("time1();", 1000); if(m==<%=session.getAttribute("time_end").toString()%>) { window.location.href="do_Score.jsp" } } </script> <form name="form1" method="post" action=""> <input type="hidden" name="operate" value=""/> <br> <table width="90%" style="margin-top: 100px;" align="center" cellpadding="2" cellspacing="1" class="table02"> <tr bgcolor="#FFFFFF"> <td class="cell1"> <div align="center"> <table width="600" style="border: 1px solid medium;"> <tr> <td colspan="3" ><br><h5>您的相关信息:</h5></td> </tr> <tr> <td width="38%" class="table" align="left"><b>人员编号:</b> <%=optrid %><hr width="48%" /></td> <% String disabled=""; String tmpsex=buf.fget("sex",0); if (tmpsex.equals("0")) { tmpsex = "女"; disabled = ""; } else { tmpsex = "男"; disabled = "disabled"; } %> <td class="table" align="left"><b>性别:</b> <%=tmpsex %><hr width="48%" /></td> <td class="table" align="left"><b>选择相关考题</b><hr width="48%" /></td> </tr> <tr> <td width="39%" class="table" align="left"><b>人员姓名:</b> <%=optrname %><hr width="48%" /></td> <td class="table" align="left"><b>单位:</b> <%=acptsitename %><hr width="48%" /></td> <td class="table" align="left"> <select class='aselect' name="tklxtype" id="tklxtype"> <%=Para.getTKLXType(getPara,"TKLX")%> </select> <hr width="48%" /></td> </tr> <tr> <td colspan="3"><p align="center" class="unnamed1">友情提示</p> <p align="center" class="unnamed1">答题过程不能中断!不能作弊和抄袭,</p> <p align="center" class="unnamed1">考试时间为:45分钟,到考试结束时间没有交卷的,系统将强制交卷!</p> <p align="center"> <input type="button" name="button1" value=" 开始答卷" class="box_button" onclick="check('addTryBook')" /> </p></td> </tr> </table> </div> </td> </tr> </table> </form> <%@include file="/foot.jsp"%> </body> </html>