You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

207 lines
5.8 KiB

<%@page import="java.sql.ResultSet"%>
<%@page import="com.zky.zhyw.smsj.WorkDB"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@page language="java" pageEncoding="gbk" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>考生试卷</title>
</head>
<link href="../../css/font.css" rel="stylesheet" type="text/css">
<body onload="time1()">
<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";
from1.submit();
}
}
</script>
<%
String tklxtype=request.getParameter("tklxtype");
String tmptklx=tklxtype;
if (tmptklx.equals("1")) {
tmptklx = "专业题库";
} else {
tmptklx = "基础题库";
}
%>
<form action="do_Score.jsp" name="from1">
<input type="hidden" name="tklxtypes" value="<%=tklxtype%>"/>
<div align="center">
<TABLE width=1024>
<TR ><TD align=center ><br/><h1>考生<%=tmptklx %>试卷</h1></TD></TR>
<TR><TD align=left><hr Color=#000000 noshade size="1"></TD></TR>
<TR><TD align=left >
<table align=center border=1 cellpadding="1" cellspacing="0" width="510" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<tr style="background-color:#336699; color:white;">
<td>
<b>题库类型:</b><%=tmptklx %>&nbsp;&nbsp;
<b>科目总分:</b>100&nbsp;&nbsp;<b>通过分数:</b>60<br>
<b>北京时间:<span id="time1"></span></b><br>
<b>
<%
out.print("考试开始时间:"+session.getAttribute("time_start"));
out.print("<br>");
out.print("考试结束时间:"+session.getAttribute("time_over"));
%>
</b>
</td>
</tr>
<%
int i=0;
try{
WorkDB t=new WorkDB();
t.setConnection();
if(tklxtype.equals("2")){
t.setSql("select * from td_question where TYPEID="+tklxtype+" order by id");
}else{
t.setSql("select * from td_question1 where TYPEID="+tklxtype+" order by id");
}
ResultSet rs=t.getResult();
Operate oper=new Operate();
oper.operatesmrypxksLog(request);
while(rs.next()){
i++;
int u=Integer.valueOf(rs.getString(1));
if(tklxtype.equals("2")){
if(u>=51)
break;
}else if(tklxtype.equals("1")){
if(u>=51)
break;
}
%>
<tr>
<td ><font size="2">
<input type=hidden name=ks_id1 value=69353>
<input type=hidden name=tm_tx1 value=danx>
<B>题号:<%=rs.getString(1)%></B>&nbsp;&nbsp;<B>题型:<%=rs.getString(2)%></B>单选题(请在以下几个选项中选择唯一正确答案)&nbsp;&nbsp;<b>本题分数:</b>2分<br>
<B>内容:</B><%=rs.getString(3)%><br>
<input type="radio" id="tm_da1" name="<%=rs.getString(1) %>" value="A">
<label id="lbl_1">A、<%=rs.getString(5)%></label><br>
<input type="radio" id="tm_da1" name="<%=rs.getString(1) %>" value="B">
<label id="lbl_2">B、<%=rs.getString(6)%></label><br>
<input type="radio" id="tm_da1" name="<%=rs.getString(1) %>" value="C">
<label id="lbl_3">C、<%=rs.getString(7)%></label><br>
<input type="radio" id="tm_da1" name="<%=rs.getString(1) %>" value="D">
<label id="lbl_4">D、<%=rs.getString(8)%></label><br>
<br>
<tr>
<% }}
catch(Exception e){}
%>
</table>
</td>
<tr>
</table>
</div>
<DIV id=divStay style="POSITION: absolute">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD vAlign=top width="7%"></TD></TR></TBODY></TABLE></DIV>
<SCRIPT language=javascript>
function picsize(obj,MaxWidth){
img=new Image();
img.src=obj.src;
if (img.width>MaxWidth)
{
return MaxWidth;
}
else
{
return img.width;
}
}
function CloseQQ()
{
divStayTopleft.style.display="none";
return true;
}
var online= new Array();
</SCRIPT>
<div id="divStayTopleft" style="POSITION: absolute; margin-left: -20px;" >
<table cellspacing="0" cellpadding="0" width="185px" border="0">
<tr>
<td background="../../images/1.png" height="85px">
</td>
</tr>
<tr>
<td background="../../images/2.png" height="76px" align="center"><br/>
<h5>斗 志 昂 扬</h5><h5>情 绪 饱 满</h5><h5>头 脑 冷 静</h5>
</td>
</tr>
<tr>
<td background="../../images/3.png" height="48px">
<table width="0" border="0" align="center">
<tr>
<td><a href=" form1.action"><input name="button" type="image" src="../../images/4.png" width="66" height="22" ></a></td>
<td>&nbsp;</td>
<td><a href="/zhyw/smsj/TryBookMain.jsp"><img src="../../images/5.png" width="66" height="22" border="0"></a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<br/>
<script type="text/javascript">
function FloatTop()
{
var startX1 =document.body.offsetWidth-125 ,startY1 = 5;
var startX2 =0,startY2 = 95;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id,startX,startY)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
el.y = startY;
return el;
}
window.stayTopLeft=function()
{
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY1 - ftlObj.y)/8;
ftlObj1.y += (pY + startY2 - ftlObj1.y)/8;
ftlObj.sP(document.body.scrollLeft+document.body.offsetWidth-125, ftlObj.y);
ftlObj1.sP(ftlObj1.x, ftlObj1.y);
setTimeout("stayTopLeft()", 30);
}
ftlObj = ml("divStay",(document.body.scrollLeft+document.body.offsetWidth)/2+379,0);
ftlObj1 = ml("divStayTopLeft",(document.body.scrollLeft+document.body.offsetWidth)/2+379,30);
stayTopLeft();
}
FloatTop();
</script>
</form>
</body>
</HTML>