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.

123 lines
3.9 KiB

1 year ago
<%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%>
<%@page import="com.zky.manager.Login"%>
<%@page import="com.zky.zhyw.smsj.WorkDB" %>
<%@page import="java.sql.*" %>
<%@page import="com.zky.zhyw.smsj.WorkDB" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
Login login_obj;
login_obj = (Login)session.getAttribute("login");
String optrid = login_obj.optrid;
String username = getPara.getDesc("TAB_EMPLOYEE","empId","EMPNAME",optrid);
%>
<html>
<head>
<title><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></title>
<link rel="stylesheet" type="text/css" href="../../css/font.css">
<script src="/js/check.js"></script>
<link rel="stylesheet" type="text/css" href="../../js/2k3Grid.css">
<link rel="stylesheet" type="text/css" href="../../js/2k3Menu.css">
<link rel="stylesheet" type="text/css" href="../../js/2k3Dialog.css">
<style type="text/css">
select
{
width:155px;
}
</style>
</head>
<body >
<form name="form1" method="post" action="/servlet/StatManage">
<br>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" class="box">
<tr>
<td valign="top">
<table width="100%" height="23" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="25%" background="/images/tab_search_01.jpg">
<table width="80%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="3%"><img src="/images/little_red.jpg" width="12" height="12"></td>
<td width="97%" class="font12b">&nbsp;<3B>ɼ<EFBFBD><C9BC><EFBFBD><EFBFBD><EFBFBD></td>
</tr>
</table>
</td>
<td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
</tr>
</table>
<input type="hidden" name="operate" value=""/>
<table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
<tr bgcolor="#FFFFFF">
<td align="center"><b>
<20>û<EFBFBD>:
<%=username %><3E><>id=<%=optrid %><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD>ɼ<EFBFBD><C9BC>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݿ<EFBFBD>.
<jsp:useBean id="q" scope="session" class="com.zky.zhyw.smsj.Question"/>
<%
String tklxtypes=request.getParameter("tklxtypes");
int sum=0;
String userName=String.valueOf(session.getAttribute(username));
String id=String.valueOf(session.getAttribute(optrid));
String [] s=new String[200];
for(int t=0;t<50;t++){
int t1=t+1;
String m=String.valueOf(t1);
s[t]=request.getParameter(m);
}
try{
WorkDB w=new WorkDB();
w.setConnection();
if(tklxtypes.equals("2")){
w.setSql("select * from td_question where TYPEID="+tklxtypes+" order by id ");
}else if(tklxtypes.equals("1")){
w.setSql("select * from td_question1 where TYPEID="+tklxtypes+" order by id ");
}
ResultSet rs=w.getResult();
int i=-1;
String [] a=new String [200];
while(rs.next()){
i++;
String d="";
d=rs.getString("note");
a[i]=d;
}
if(tklxtypes.equals("1")){
for(int u=1;u<=50;u++){
if(a[u].equals(s[u]))
sum+=2;
}
String sum2=String.valueOf(sum);
String [] b={sum2,optrid };
out.print("רҵ<D7A8><D2B5><EFBFBD><EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><C4B1>ο<EFBFBD><CEBF>Գɼ<D4B3>Ϊ<EFBFBD><CEAA>"+sum2+"<22><>");
w.setCan(b);
w.setSql("insert into tab_examnum(radioResult,empid,type,radioResult1)values (?,?,1,now())");
1 year ago
w.insertRecord();
}else if(tklxtypes.equals("2")){
for(int u=1;u<=50;u++){
if(a[u].equals(s[u]))
sum+=2;
}
String sum2=String.valueOf(sum);
String [] b={sum2,optrid };
out.print("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><C4B1>ο<EFBFBD><CEBF>Գɼ<D4B3>Ϊ<EFBFBD><CEAA>"+sum2+"<22><>");
w.setCan(b);
w.setSql("insert into tab_examnum(radioResult,empid,type,radioResult1)values (?,?,2,now())");
1 year ago
w.insertRecord();
}
}catch(Exception e){}
%>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="99%" align="center">
<tr align="center">
<td>
<a href="/zhyw/smsj/TryBookMain.jsp"><img src="../../images1/gb.png" alt="<22>ر<EFBFBD>" border="0" /></a>
</td>
</tr>
</table>
</form>
<%@include file="/foot.jsp"%>
</body>
</html>