Query_stu_mn.jsp
上传用户:nbluoke
上传日期:2013-08-09
资源大小:4851k
文件大小:22k
源码类别:

教育系统应用

开发平台:

WORD

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" %>
  2. <%@ page import="java.sql.*"%>
  3. <%@ page import="jinghua.*"%>
  4. <%@ page import="java.util.*"%>
  5. <jsp:useBean id="DBCon" class="jinghua.JinghuaConn" scope="session">
  6. </jsp:useBean>
  7. <%!Connection con;
  8. boolean debug=true;
  9. String studentID="";
  10. String gradenote="";
  11. String gradename="";
  12. Statement stmt=null;
  13. ResultSet rs=null;
  14. String sql="";
  15. String sqlCon=null;
  16. int testNumber=0;
  17. int EveryPage=5;//每页显示的记录数;
  18. int OnPage=1; //当前显示的页数;
  19. int Total=0;//记录的总数;
  20. int TotalPage=0;//记录的总页数;
  21. %>
  22. <%
  23. try{
  24.     studentID=(String)session.getAttribute("studentID");
  25.     if(studentID==null){
  26.         throw new Exception();
  27.     }
  28. }catch(Exception e){
  29.     Tools.showalert("您还没有登录,或连接超时,请重新登录!",out);
  30.     Tools.showJS("window.open('../login.jsp','_self')",out);
  31. }
  32. try{
  33.     con=DBCon.getConnection();
  34.     //获取学生的年级信息
  35.     sql=" SELECT   `grade`.`Name`,  `grade`.`note` FROM"+
  36.         "  `grade`  INNER JOIN `UserInfo` ON (`grade`.`note` = `UserInfo`.`gradenote`)"+
  37.         " WHERE  (`UserInfo`.`vcUserNo` = '"+studentID+"')";
  38.     try{
  39.         stmt=con.createStatement();
  40.         rs=stmt.executeQuery(sql);
  41.         if(rs.next()){
  42.             gradenote=rs.getString("note");
  43.             gradename=rs.getString("Name");
  44.             rs.close();
  45.             stmt.close();
  46.         }
  47.         if(debug){
  48.             out.print("<br>stuID="+studentID+"<br>gradenote="+gradenote);
  49.         }
  50.     }
  51.     catch(SQLException se){
  52.         out.print("<br> query grade error sql="+sql);
  53.         out.print("<br>"+se.toString());
  54.     }
  55.     catch(Exception e){
  56.         out.print("<br> query grade error sql="+sql);
  57.         out.print("<br>"+e.toString());
  58.     }
  59.     //查询学生所属年级的错题
  60. %>
  61. <%
  62. //构造查询条件
  63. //String errorpad_grade=(String)session.getAttribute("errorpad_grade");
  64. //String errorpad_sub=(String)session.getAttribute("errorpad_sub");
  65. //String errorpad_knowpoint=(String)session.getAttribute("errorpad_knowpoint");
  66. //String errorpad_testtype=(String)session.getAttribute("errorpad_testtype");
  67. //String errorpad_errorcount=(String)session.getAttribute("errorpad_errorcount");
  68. sqlCon="";
  69. String errorpad_grade=request.getParameter("Grade");
  70. String errorpad_sub=request.getParameter("Subject");
  71. String errorpad_knowpoint=request.getParameter("KnowPoint");
  72. String errorpad_testtype=request.getParameter("testtype");
  73. String errorpad_errorcount=request.getParameter("errorcount");
  74. if(debug){
  75.     out.print("<br>grade="+errorpad_grade+
  76.     "<br>sub="+errorpad_sub+
  77.     "<br>knowpoint="+errorpad_knowpoint+
  78.     "<br>testtype="+errorpad_testtype+
  79.     "<br>errorcunt="+errorpad_errorcount);
  80. }
  81. if(errorpad_grade!=null)
  82. {
  83.     session.setAttribute("errorpad_grade",errorpad_grade);
  84. }
  85. else
  86. {
  87.     errorpad_grade=(String)session.getAttribute("errorpad_grade");
  88. }
  89. if(errorpad_sub!=null)
  90. {
  91.     session.setAttribute("errorpad_sub",errorpad_sub);
  92. }else
  93. {
  94.     errorpad_sub=(String)session.getAttribute("errorpad_sub");
  95. }
  96. if(errorpad_knowpoint!=null)
  97. {
  98.     session.setAttribute("errorpad_knowpoint",errorpad_knowpoint);
  99. }
  100. else
  101. {
  102.     errorpad_knowpoint=(String)session.getAttribute("errorpad_knowpoint");
  103. }
  104. if(errorpad_testtype!=null)
  105. {
  106.     session.setAttribute("errorpad_testtype",errorpad_testtype);
  107. }
  108. else
  109. {
  110.     errorpad_testtype=(String)session.getAttribute("errorpad_testtype");
  111. }
  112. if(errorpad_errorcount!=null)
  113. {
  114.     session.setAttribute("errorpad_errorcount",errorpad_errorcount);
  115. }
  116. else
  117. {
  118.     errorpad_errorcount=(String)session.getAttribute("errorpad_errorcount");
  119. }
  120. if(errorpad_grade==null)
  121.     errorpad_grade="all";
  122. if(errorpad_sub==null)
  123.     errorpad_sub="all";
  124. if(errorpad_knowpoint==null)
  125.     errorpad_knowpoint="all";
  126. if(errorpad_testtype==null)
  127.     errorpad_testtype="all";
  128. if(errorpad_errorcount==null)
  129.     errorpad_errorcount="0";
  130. if(errorpad_grade!=null){
  131.     if(!errorpad_grade.equals("all")){
  132.         if(errorpad_grade.equals("c")){
  133.             sqlCon="(question.gradenote='c1' OR question.gradenote='c2' OR question.gradenote='c3')";
  134.         }else if(errorpad_grade.equals("g")){
  135.             sqlCon="(question.gradenote='g1' OR question.gradenote='g2' OR question.gradenote='g3')";
  136.         }
  137.         else
  138.             sqlCon="(question.gradenote='"+errorpad_grade+"')";
  139.     }
  140. }
  141. if(debug)
  142.     out.println("<br>grade sql="+sqlCon);
  143. if(errorpad_sub!=null){
  144.     if(!errorpad_sub.equals("all")){
  145.         if (!sqlCon.equals(""))
  146.             sqlCon=sqlCon +" AND (question.SubjectID="+errorpad_sub+")";
  147.         else
  148.             sqlCon=" (question.SubjectID="+errorpad_sub+")";
  149.     }
  150. }
  151. if(debug)
  152.     out.println("<br>subject sql="+sqlCon);
  153. if(errorpad_knowpoint!=null){
  154.     if(!errorpad_knowpoint.equals("all")){
  155.         if(!sqlCon.equals(""))
  156.             sqlCon=sqlCon+" AND(question.KnowPointID1="+errorpad_knowpoint +
  157.                 " OR question.KnowPointID2="+errorpad_knowpoint+
  158.                 " OR question.KnowPointID3="+errorpad_knowpoint+")";
  159.         else
  160.             sqlCon=" (question.KnowPointID1="+errorpad_knowpoint +
  161.                 " OR question.KnowPointID2="+errorpad_knowpoint+
  162.                 " OR question.KnowPointID3="+errorpad_knowpoint+")";
  163.     }
  164. }
  165. if(debug)
  166.     out.println("<br>knowpoint sql="+sqlCon);
  167. if(errorpad_testtype!=null){
  168.     if(!errorpad_testtype.equals("all")){
  169.         if(!sqlCon.equals(""))
  170.             sqlCon=sqlCon+ " AND(errorpad.sourcetype="+errorpad_testtype+")";
  171.         else
  172.             sqlCon= " (errorpad.sourcetype="+errorpad_testtype+")";
  173.     }
  174. }
  175. if(debug)
  176.     out.println("<br>testtype sql="+sqlCon);
  177. if(errorpad_errorcount!=null){
  178.     if(!sqlCon.equals(""))
  179.         sqlCon=sqlCon+ " AND(errorpad.errorcount>="+errorpad_errorcount+")";
  180.     else
  181.         sqlCon=" (errorpad.errorcount>="+errorpad_errorcount+")";
  182. }
  183. if(debug)
  184.     out.println("<br>errorcount sql="+sqlCon);
  185. sqlCon="(`errorpad`.`stu_id` = 's11')"+" AND"+sqlCon;
  186. //查询满足条件的错题
  187. sql="SELECT  `errorpad`.`id`, `errorpad`.`question_id`, `question`.`QuestText`, DATE_FORMAT( `errorpad`.`add_date`,"%Y-%m-%e %H:%i:%S") AS add_date, "+
  188.     " `errorpad`.`errorcount`,  ELT(`errorpad`.`sourcetype`,"自由测试","自由单元测试","模拟考试") as sourcename, "+
  189.     " `grade`.`Name` AS `gradename`"+
  190.     " FROM  `errorpad`"+
  191.     "  LEFT OUTER JOIN `question` ON (`errorpad`.`question_id` = `question`.`ID`)"+
  192.     "  LEFT OUTER JOIN `grade` ON (`question`.`gradenote` = `grade`.`note`)"+
  193.     " WHERE  "+sqlCon+
  194.     " ORDER BY  `errorpad`.`add_date` ASC";
  195. session.setAttribute("errorpad_sqlcon",sqlCon);
  196. session.setAttribute("errorpad_sql",sql);
  197. if(debug)
  198.     out.println("<br>at last sql="+sql);
  199. stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
  200. rs=stmt.executeQuery(sql);
  201. //rs.last();//移到最后一条记录;
  202. //Total=rs.getRow();//记录的总数;
  203. //TotalPage=(Total%EveryPage==0)?(Total/EveryPage):(Total/EveryPage+1);
  204. %>
  205. <!--年级,科目,知识点三个下拉列表框联动-->
  206. <%
  207. out.print(Tools.sub_know(con));
  208. out.print(Tools.grade_sub(con));
  209. %>
  210. <script language="JavaScript">
  211. function changegs(locationid){
  212. document.myform.Subject.length =1;
  213.         document.myform.KnowPoint.length =1;
  214.         var locationid=locationid;
  215.         var i;
  216.         for (i=0;i < gscount; i++){
  217.             if (grade_sub[i][0] == locationid) {
  218.             document.myform.Subject.options[document.myform.Subject.length] = new Option(grade_sub[i][2], grade_sub[i][1]);
  219.             }
  220. }
  221. }
  222. function changesk(locationid){
  223. document.myform.KnowPoint.length =1;
  224. var locationid=locationid;
  225. var i;
  226. for (i=0;i < gskcount; i++){
  227. if (grade_sub_know[i][1] == locationid){
  228. document.myform.KnowPoint.options[document.myform.KnowPoint.length] = new Option(grade_sub_know[i][3], grade_sub_know[i][2]);
  229. }
  230. }
  231. }
  232. function delit(myform)
  233. {
  234.   if (confirm("将删除所有选择的知识点数据?"))
  235.   {
  236.     myform.action="errorpaddel.jsp";
  237.     myfrom.target="_self";
  238.     myform.submit();
  239.   }
  240. }
  241. function del_check()
  242. {
  243. var count = errorpad.elements.length;
  244. var noSelect = true;
  245.   for(var i=0;i<count;i++)
  246.   {
  247.      if(errorpad.elements[i].checked)
  248.      {
  249.              noSelect = false;
  250.       break;
  251. }
  252.    }
  253. if(noSelect == true)
  254. {
  255.     alert("您还没有选择要删除的错题!");
  256.     return(false);
  257.  }
  258.    else
  259.    {
  260.          if(confirm("将删除所有选择的错题吗?"))
  261.          {
  262.                 document.errorpad.method = "POST";
  263.                 document.errorpad.action = "errorpad_del.jsp";
  264.                 document.errorpad.target="_self";
  265.                 document.errorpad.submit();
  266.          }
  267.          else
  268.          {
  269.                 document.form3.method = "GET";
  270.                 document.form3.action = "";
  271. }
  272.          }
  273.          return false;
  274. }
  275. function addrate_check()
  276. {
  277. var count = errorpad.elements.length;
  278. var noSelect = true;
  279.   for(var i=0;i<count;i++)
  280.   {
  281.      if(errorpad.elements[i].checked)
  282.      {
  283.              noSelect = false;
  284.       break;
  285. }
  286.    }
  287. if(noSelect == true)
  288. {
  289.     alert("您还没有选择要增加错误级别的错题!");
  290.     return(false);
  291.  }
  292.    else
  293.    {
  294.          if(confirm("增加所有选择的错题的错误级别吗?"))
  295.          {
  296.                 document.errorpad.method = "POST";
  297.                 document.errorpad.action = "errorpad_addrate.jsp";
  298.                 document.errorpad.target="_self";
  299.                 document.errorpad.submit();
  300.          }
  301.          else
  302.          {
  303.                 document.errorpad.method = "GET";
  304.                 document.errorpad.action = "";
  305. }
  306.          }
  307.          return false;
  308. }
  309. function decrate_check()
  310. {
  311. var count = errorpad.elements.length;
  312. var noSelect = true;
  313.   for(var i=0;i<count;i++)
  314.   {
  315.      if(errorpad.elements[i].checked)
  316.      {
  317.              noSelect = false;
  318.       break;
  319. }
  320.    }
  321. if(noSelect == true)
  322. {
  323.     alert("您还没有选择要降低错误级别的错题!");
  324.     return(false);
  325.  }
  326.    else
  327.    {
  328.          if(confirm("降低所有选择的错题的错误级别吗?"))
  329.          {
  330.                 document.errorpad.method = "POST";
  331.                 document.errorpad.action = "errorpad_decrate.jsp";
  332.                 document.errorpad.target="_self";
  333.                 document.errorpad.submit();
  334.          }
  335.          else
  336.          {
  337.                 document.errorpad.method = "GET";
  338.                 document.errorpad.action = "";
  339. }
  340.          }
  341.          return false;
  342. }
  343. function subform(stract)
  344. {
  345. switch (stract){
  346. case "del":
  347.             del_check();
  348. break;
  349. case "addrate":
  350.             addrate_check();
  351. break;
  352. case "decrate":
  353. decrate_check();
  354. break;
  355.         case "test":
  356.             selectid();
  357.             break;
  358. case "print":
  359. printerror();
  360.             break;
  361. }
  362. }
  363. function selectid(){
  364.     var winpoint=window.open('','err_test_type','height=240,width=470,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,depended=yes,alwaysRaised =yes,z-look=yes');
  365.     var toppos=(window.screen.height-240)/2;
  366.     var leftpos=(window.screen.width-470)/2;
  367.     winpoint.moveTo(toppos,leftpos);
  368.     winpoint.focus();
  369.     document.errorpad.method="POST";
  370.     document.errorpad.action="err_test_type.jsp";
  371.     document.errorpad.target="err_test_type";
  372.     document.errorpad.submit();
  373. }
  374. function printerror(){
  375.     var winpoint=window.open('','err_print_type','height=240,width=520,top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,depended=yes,alwaysRaised =yes,z-look=yes');
  376.     var toppos=(window.screen.height-240)/2;
  377.     var leftpos=(window.screen.width-470)/2;
  378.     winpoint.moveTo(toppos,leftpos);
  379.     winpoint.focus();
  380.     document.errorpad.method="POST";
  381.     document.errorpad.action="err_print_type.jsp";
  382.     document.errorpad.target="err_print_type";
  383.     document.errorpad.submit();
  384. }
  385. function openDetail(var1){
  386.     var winpoint=window.open('err_query_detail.jsp?id='+var1,'newwindow','height=400,width=300,top=0,left=0,toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no,depended=yes,alwaysRaised =yes,z-look=yes');
  387.     winpoint.focus();
  388. }
  389. function InitMyform(){
  390.     document.myform.Grade.value='<%=errorpad_grade%>';
  391.     changegs(document.myform.Grade.options[document.myform.Grade.selectedIndex].value);
  392.     document.myform.Subject.value='<%=errorpad_sub%>';
  393.     changesk(document.myform.Subject.options[document.myform.Subject.selectedIndex].value);
  394.     document.myform.KnowPoint.value='<%=errorpad_knowpoint%>';
  395.     document.myform.testtype.value='<%=errorpad_testtype%>';
  396.     document.myform.errorcount.value='<%=errorpad_errorcount%>';
  397. }
  398. </script>
  399. <HTML>
  400. <HEAD>
  401. <META http-equiv=Content-Type content="text/html; charset=gb2312">
  402. <TITLE>共创学堂-错题本</TITLE>
  403. <SCRIPT language=JavaScript>
  404. <!--
  405. function SymError()
  406. {
  407.   return true;
  408. }
  409. window.onerror = SymError;
  410. //-->
  411. </SCRIPT>
  412. <!-- saved from url=(0041)http://jsptestonline.cosoft.org.cn/senior/none_xt.jsp -->
  413. <META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
  414. href="../errorpad/style/style.css" type=text/css rel=stylesheet>
  415. <SCRIPT src=""></SCRIPT>
  416. <SCRIPT src=""></SCRIPT>
  417. <SCRIPT src=""></SCRIPT>
  418. <SCRIPT src=""></SCRIPT>
  419. <SCRIPT src=""></SCRIPT>
  420. <META content="MSHTML 6.00.2462.0" name=GENERATOR>
  421. <link rel="stylesheet" type="text/css" href="../css.css">
  422. </HEAD>
  423. <BODY bgColor=#ffffff text=#000000 onLoad="InitMyform()">
  424. <CENTER>
  425. <TABLE cellSpacing=0 cellPadding=0 width=650 border=0>
  426.   <TBODY>
  427.   <TR>
  428.           <TD><IMG height=27 src="../errorpad/images/test_pop_01.gif" width=102></TD>
  429.           <TD align=right><IMG height=27 src="../errorpad/images/test_pop_02.gif"
  430.       width=134></TD>
  431.         </TR></TBODY></TABLE>
  432.   <strong><font color="#3366FF" size="+2" face="黑体">共创学堂成绩查询</font></strong> 
  433.   <!--begin test -->
  434.   <FORM action=../errorpad/errorpad.jsp method=post name=myform target="_self" id="myform">
  435.     <TABLE width=100% height="145" border=0 cellPadding=0 cellSpacing=0>
  436.       <TBODY>
  437.         <TR>
  438.           <TD height="75"  align=middle valign="bottom">
  439.             <table width="84%" height="56" border="1" align="center" cellspacing="1" bordercolor="#799AE1" id="AutoNumber3" style="border-collapse: collapse">
  440.               <tr> 
  441.                 <td width="87" height="52" align="center" valign="baseline" nowrap background="../errorpad/images/admin_bg_1.gif" bgcolor="#FFFDE8"> 
  442.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  443.                     <tr> 
  444.                       <td>年&nbsp;级:</td>
  445.                     </tr>
  446.                     <tr> 
  447.                       <td height="24" nowrap> <select id=select30 name=Grade onclick="changegs(document.myform.Grade.options[document.myform.Grade.selectedIndex].value)" size="1">
  448.                           <option value="all" selected>-全 部-</option>
  449.                           <%Tools.showGradeOption(con,out);%>
  450.                         </select> </td>
  451.                     </tr>
  452.                   </table>
  453.                   &nbsp; </td>
  454.                 <td width="70" align="center" valign="baseline" nowrap background="../errorpad/images/admin_bg_1.gif" bgcolor="#FFFDE8"> 
  455.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  456.                     <tr> 
  457.                       <td nowrap>科&nbsp;目:</td>
  458.                     </tr>
  459.                     <tr> 
  460.                       <td nowrap> <select id=select29 name=Subject onclick="changesk(document.myform.Subject.options[document.myform.Subject.selectedIndex].value)"
  461. size="1">
  462.                           <option value="all" selected>全 部</option>
  463.                         </select> </td>
  464.                     </tr>
  465.                   </table>
  466.                   <strong> </strong> </td>
  467.                 <td width="126" align="center" valign="baseline" nowrap background="../images/admin_bg_1.gif" bgcolor="#FFFDE8"> 
  468.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  469.                     <tr> 
  470.                       <td nowrap>知识点:</td>
  471.                     </tr>
  472.                     <tr> 
  473.                       <td nowrap> <select name=KnowPoint id="select31">
  474.                           <option value="all" selected>----全 部----</option>
  475.                         </select> </td>
  476.                     </tr>
  477.                   </table></td>
  478.                 <td width="105" align="center" valign="baseline" nowrap background="../errorpad/images/admin_bg_1.gif" bgcolor="#FFFDE8"> 
  479.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  480.                     <tr> 
  481.                       <td nowrap>考试类型:</td>
  482.                     </tr>
  483.                     <tr> 
  484.                       <td nowrap> <select name="testtype" id="select8">
  485.                           <option value="all" selected>全部</option>
  486.                           <option value="2">单元测试</option>
  487.                           <option value="3">模拟测试 </option>
  488.                         </select> </td>
  489.                     </tr>
  490.                   </table></td>
  491.                 <td width="121" align="center" valign="baseline" nowrap background="../images/admin_bg_1.gif" bgcolor="#FFFDE8"> 
  492.                   <table width="94%" border="0" cellspacing="0" cellpadding="0">
  493.                     <tr> 
  494.                       <td nowrap>分数段</td>
  495.                     </tr>
  496.                     <tr> 
  497.                       <td nowrap>从 <input name="mark1" type="text" id="mark1" value="0" size="5" maxlength="5">
  498.                         至 
  499.                         <input name="mark2" type="text" id="mark2" size="5" maxlength="5"></td>
  500.                     </tr>
  501.                   </table></td>
  502.                 <td width="47" nowrap background="../images/admin_bg_1.gif" bgcolor="#FFFDE8"> 
  503.                   <p align="center"> 
  504.                     <input type="submit"  class="s03" name="Submit" value="查询">
  505.                 </td>
  506.                 <td width="53" nowrap background="../images/admin_bg_1.gif" bgcolor="#FFFDE8"><div align="center"><b> 
  507.                     <input name="errPrint" type="button"  class="s03" id="errPrint2" value="打印" onClick=subform("print")>
  508.                     </b></div></td>
  509.               </tr>
  510.             </table>
  511.             </TD>
  512.         </TR>
  513.         <TR>
  514.           <TD  align=middle valign="top">&nbsp; </TD>
  515.         </TR>
  516.       </TBODY>
  517.     </TABLE>
  518. </FORM>
  519.   <FORM method="post" name="errorpad" id="errorpad">
  520.     <%
  521.       testNumber=1;
  522.       while(rs.next()){
  523.   %>
  524.     <TABLE width=80% border=1 align=center cellSpacing=1 bordercolor="#799AE1" style="border-collapse: collapse">
  525.       <TBODY>
  526.       <TR>
  527.           <td width="650" height=22 bgColor=#E3E3E3 class=l>
  528.             <table width="100%" border="0" cellspacing="0" cellpadding="0">
  529.               <tr> 
  530.                 <td width="81" height="20" nowrap>姓名 </td>
  531.                 <td width="60" nowrap><div align="right">注册号</div></td>
  532.                 <td width="43" nowrap><div align="left">年级:</div></td>
  533.                 <td width="100" nowrap>考试名称</td>
  534.                 <td width="100" nowrap><div align="right">考试时间:</div></td>
  535.                 <td width="174" nowrap>分数</td>
  536.                 <td width="155" nowrap>考试类型</td>
  537.                 <td nowrap> <div align="right"> </div></td>
  538.               </tr>
  539.             </table></td>
  540.       </TR>
  541.   <TR>
  542.           <td width="650" height=22 class=l>
  543.             <table width="100%" border="0" cellspacing="0" cellpadding="0">
  544.               <tr> 
  545.                 <td width="81" height="20" nowrap>姓名 </td>
  546.                 <td width="60" nowrap><div align="right">注册号</div></td>
  547.                 <td width="43" nowrap><div align="left">年级:</div></td>
  548.                 <td width="100" nowrap>考试名称</td>
  549.                 <td width="100" nowrap><div align="right">考试时间:</div></td>
  550.                 <td width="173" nowrap>分数</td>
  551.                 <td width="154" nowrap>考试类型</td>
  552.                 <td width="12" nowrap>&nbsp; </td>
  553.                 <td width="45" nowrap> <div align="right"> <img src="../errorpad/images/1026.gif" width="27" height="24" onClick="openDetail(<%=rs.getInt("question_id")%>)"></div></td>
  554.               </tr>
  555.             </table></td>
  556.       </TR>
  557.     </TBODY>
  558.   </TABLE>
  559.   <%
  560. testNumber++;
  561. }
  562. %>
  563. <input name="stu_id" type="hidden" id="studentid2" value="<%=studentID %>">
  564. <input name="selectids" type="hidden" id="studentid2" value="">
  565. <input name="selectcount" type="hidden" id="studentid2" value="">
  566. </FORM>
  567. <p>&nbsp;</p>
  568.  <!--end test --><!--begin bottom -->
  569. <TABLE
  570. style="BORDER-TOP: #dbdbdb 1px solid; MARGIN-TOP: 10px; MARGIN-BOTTOM: 10px; BACKGROUND-COLOR: #f6f6f6"
  571. cellSpacing=0 cellPadding=0 width="100%" border=0>
  572.   <TBODY>
  573.   <TR>
  574.     <TD align=middle colSpan=2 height=30>
  575.       <TABLE cellSpacing=0 cellPadding=0 width=750 border=0>
  576.         <TBODY>
  577.         <TR>
  578.           <TD><A href="http://jsptestonline.cosoft.org.cn/index.html"
  579.             target=_blank>关于我们</A> | <A
  580.             href="http://jsptestonline.cosoft.org.cn/contact/3_ywhz.html"
  581.             target=_blank>联系方式</A> | 网站地图 | <A
  582.             href="http://jsptestonline.cosoft.org.cn/about/service.html"
  583.             target=_blank>服务条款</A> | <A
  584.             href="http://jsptestonline.cosoft.org.cn/about/privacy.html"
  585.             target=_blank>隐私权保护</A> | <A
  586.             href="http://jsptestonline.cosoft.org.cn/about/copyright.html"
  587.             target=_blank>版权声明</A></TD>
  588.           <TD align=middle width=220>版权所有:<A href="http://jsptestonline.cosoft.org.cn/"
  589.             target=_blank>共创教育机构</A></TD></TR></TBODY>
  590. </TABLE></TD></TR></TBODY>
  591. </TABLE><!--end bottom --></CENTER>
  592. </BODY>
  593. </HTML>
  594. <%}
  595. catch(Exception e){
  596.     out.print(e.toString());
  597. }
  598. finally{
  599.     DBCon.dropConnection();
  600. }
  601. %>