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

教育系统应用

开发平台:

WORD

  1. <%@ page contentType="text/html; charset=gb2312" language="java" %>
  2. <%@ page import="java.sql.*" %>
  3. <%@ page import="java.io.*"%>
  4. <%@ page errorPage="QuestGen_error.jsp" %>
  5. <jsp:useBean id="DBCon" class="jinghua.JinghuaConn" scope="session">
  6. </jsp:useBean>
  7. <jsp:useBean id="Tools" class="jinghua.Tools" scope="session">
  8. </jsp:useBean>
  9. <script language="javascript">
  10. function CheckForm(f)
  11. {
  12. if( !(form.testnum[0].checked || form.testnum[1].checked||form.testnum[2].checked||form.testnum[3].checked) ) {
  13. alert("请选择试题个数 !!")
  14. return false;
  15. }
  16. return true;
  17. }
  18. function isNumberString (InString,RefString)
  19. {
  20. if(InString.length==0) return (false);
  21. for (Count=0; Count < InString.length; Count++)  {
  22. TempChar= InString.substring (Count, Count+1);
  23. if (RefString.indexOf (TempChar, 0)==-1)
  24. return (false);
  25. }
  26. return (true);
  27. }
  28. function msg(str)
  29. {
  30.    alert(str);
  31. }
  32. </script>
  33. <HTML><HEAD><TITLE>在线测试</TITLE>
  34. <META http-equiv=Content-Type content="text/html; charset=gb2312">
  35. <META content="MSHTML 6.00.2462.0" name=GENERATOR></HEAD>
  36. <BODY>
  37. <%!Connection con=null;
  38. String studentID="";
  39. %>
  40. <%
  41.   if(con==null){
  42.     con=DBCon.getConnection();
  43.   }
  44.  %>
  45. <FORM name="form" action="NewSelTest.jsp" method="post" onSubmit="return CheckForm(this)">
  46.   <textarea name="content" cols="" rows="" id="textarea" style="display:none"></textarea>
  47. <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  48.   <TBODY>
  49.   <TR>
  50.     <TD>&nbsp;</TD>
  51.     <TD rowSpan=2>
  52.       <DIV align=right><IMG src="../teacher/images/onlinetest.gif"
  53.       width=208 height=97 border="0"></DIV></TD></TR>
  54.   <TR>
  55.         <TD height=55><IMG height=45 src="../teacher/images/logo.gif"
  56.   width=160></TD>
  57.       </TR></TBODY></TABLE>
  58. <TABLE height=15 cellSpacing=0 cellPadding=0 width="100%" align=center
  59. bgColor=#d3add1 border=0>
  60.   <TBODY>
  61.   <TR>
  62.     <TD height=25>
  63.       <DIV
  64. align=center>首页|高考通|中考通|共创题库|学员社区|我的共创|服务中心</DIV></TD></TR></TBODY></TABLE>
  65.     <A
  66. href="http://jsptestonline.cosoft.org.cn/">首页</A>--共创题库--在线考试
  67.   <P align="center"> 选择试题</P>
  68.   <div align="center">
  69.     <table bordercolor=#d3add1 height=226 width="71%" border=1>
  70.       <tbody>
  71.         <tr>
  72.           <td
  73.     height=41 align="center" valign=middle background=../teacher/images/lvbgcolor.gif><br> <div align="left">
  74. <table width="100%" border="0">
  75.                 <tr>
  76.                   <td width="33%"> &nbsp;&nbsp;&nbsp;年 级:
  77.                     <select id=select12 name=Grade>
  78.                       <%Tools.showOption("select * from grade order by id",con,out);%>
  79.                     </select></td>
  80.                   <td width="33%">&nbsp;&nbsp;科 &nbsp;目:
  81.                     <select id=select name=Subject>
  82.                       <%Tools.showOption("select * from subject order by id",con,out);%>
  83.                     </select></td>
  84.                   <td width="34%"> 题目类型:
  85.                     <select id=select3 name=QuestType>
  86. <%Tools.showOption("select * from questtype order by id",con,out);%>
  87.                     </select> </td>
  88.                 </tr>
  89.               </table>
  90.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
  91.         </tr>
  92.         <tr>
  93.           <td
  94.     height=41 align="center" valign=middle background=../teacher/images/lvbgcolor.gif>
  95.             <div align="left"> <br>
  96.               <table width="100%" border="0">
  97.                 <tr>
  98.                   <td width="34%" valign="middle">测试点:
  99.                     <select id=select4 name=TestPoint>
  100.                       <%Tools.showOption("select * from testpoint order by id",con,out);%>
  101.                     </select> &nbsp;&nbsp;&nbsp;</td>
  102.                   <td width="32%" valign="middle">&nbsp;知识点:
  103.                     <select name=KnowPoint id="select5">
  104.                       <% Tools.showOption("select * from knowpoint order by id",con,out);%>
  105.                     </select>
  106.                   </td>
  107.                   <td width="34%" valign="middle">难易度:
  108.                     <select name=Difficulty id="select6">
  109.                       <option value="A" selected>A</option>
  110.                       <option value="B">B</option>
  111.                       <option value="C">C</option>
  112.                       <option value="D">D</option>
  113.                       <option value="E">E</option>
  114.                     </select> </td>
  115.                 </tr>
  116.               </table>
  117.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  118.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  119.             </div></td>
  120.         </tr>
  121.         <tr>
  122.           <td
  123.     height=41 align="center" valign=middle background=../teacher/images/lvbgcolor.gif>
  124. <div align="left"><br>
  125.               <table width="91%" border="0" align="center">
  126.                 <tr valign="middle">
  127.                   <td width="21%" height="27">&nbsp;&nbsp;&nbsp;试题个数:</td>
  128.                   <td width="17%" align="center">
  129.                     <input name="testnum" type="radio" value="5" checked>
  130.                     5 &nbsp;&nbsp;</td>
  131.                   <td width="15%" align="center">
  132.                     <input type="radio" name="testnum" value="10">
  133.                     10 </td>
  134.                   <td width="16%" align="center">
  135.                     <input name="testnum" type="radio" value="25">
  136.                     25 &nbsp;</td>
  137.                   <td width="15%" align="center">
  138.                     <input type="radio" name="testnum" value="50">
  139.                     50&nbsp;&nbsp;&nbsp;</td>
  140.                   <td width="16%">&nbsp;</td>
  141.                 </tr>
  142.               </table>
  143.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  144.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div></td>
  145.         </tr>
  146.         <tr>
  147.           <td
  148.     height=41 align="center" valign=center background=../teacher/images/lvbgcolor.gif>
  149. <div align="left"> <br>
  150.               <table width="100%" border="0">
  151.                 <tr>
  152.                   <td width="51%" align="right">
  153.                     <input type="submit" name="Submit" value="提交">
  154.                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
  155.                   <td width="49%"><input name="Reset_Quest" type="reset" id="Reset_Quest2" value="重置"></td>
  156.                 </tr>
  157.               </table>
  158.               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div></td>
  159.         </tr>
  160.       </tbody>
  161.     </table>
  162.   </div>
  163.   <P> </P>
  164. <P>&nbsp;</P>
  165. <P>&nbsp;</P></FORM>
  166. </BODY></HTML>