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

教育系统应用

开发平台:

WORD

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