adminscore.jsp
上传用户:mkymky1985
上传日期:2014-06-23
资源大小:754k
文件大小:11k
源码类别:

其他数据库

开发平台:

Java

  1. <%@ page language = "java" contentType = "text/html;charset=gb2312"%>
  2. <%@ page import = "java.sql.*, java.io.*" %>
  3. <jsp:useBean id="subject" scope="page" class="wsxk.ConDB"/>
  4. <%
  5. String titlelist[];
  6. titlelist = new String[99999];
  7. String strSQL = "select stuid ,stuname from student ";
  8. ResultSet rs = subject.executeQuery(strSQL);
  9. int length = 0;
  10. while(rs.next())
  11. {
  12. String id = rs.getString("stuid");
  13. String title = rs.getString("stuname").trim();
  14. titlelist[length] = title;
  15. length++;
  16. }
  17. %>
  18. <%
  19. String titlelist1[];
  20. titlelist1 = new String[99999];
  21. String strSQL1 = "select teaid ,teaname from teacher ";
  22. ResultSet rs1 = subject.executeQuery(strSQL1);
  23. int length1 = 0;
  24. while(rs1.next())
  25. {
  26. String id1 = rs1.getString("teaid");
  27. String title1 = rs1.getString("teaname").trim();
  28. titlelist1[length1] = title1;
  29. length1++;
  30. }
  31. %>
  32. <%
  33. String titlelist2[];
  34. titlelist2 = new String[99999];
  35. String strSQL2 = "select couid ,couname from course ";
  36. ResultSet rs2 = subject.executeQuery(strSQL2);
  37. int length2 = 0;
  38. while(rs2.next())
  39. {
  40. String id2 = rs2.getString("couid");
  41. String title2 = rs2.getString("couname").trim();
  42. titlelist2[length2] = title2;
  43. length2++;
  44. }
  45. %>
  46. <html>
  47. <head>
  48. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  49. <link href="_notes/aaa.css" rel="stylesheet" type="text/css">
  50. <style type="text/css">
  51. <!--
  52. @import url("_notes/ccc");
  53. body,td,th {
  54. color: #FFFFFF;
  55. font-weight: bold;
  56. font-size: 12px;
  57. }
  58. a:link {
  59. color: #FFFFFF;
  60. }
  61. a:visited {
  62. color: #FFFFFF;
  63. }
  64. -->
  65. </style>
  66. </HEAD>
  67. <BODY BGCOLOR=#0D85A6 BACKGROUND="images/bg.gif" >
  68. <br>
  69. <br>
  70. <TABLE WIDTH=750 height="494" BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
  71.   <TR> 
  72.     <TD> <IMG SRC="images/spacer.gif" WIDTH=231 HEIGHT=1></TD>
  73.     <TD> <IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=1></TD>
  74.     <TD> <IMG SRC="images/spacer.gif" WIDTH=75 HEIGHT=1></TD>
  75.     <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
  76.     <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
  77.     <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
  78.     <TD> <IMG SRC="images/spacer.gif" WIDTH=105 HEIGHT=1></TD>
  79.     <TD> <IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1></TD>
  80.   </TR>
  81.   <TR> 
  82.     <TD COLSPAN=4> <IMG SRC="images/temp_01.jpg" WIDTH=420 HEIGHT=15></TD>
  83.     <TD COLSPAN=4> <IMG SRC="images/temp_02.jpg" WIDTH=330 HEIGHT=15></TD>
  84.   </TR>
  85.   <TR> 
  86.     <TD COLSPAN=8> <IMG SRC="images/temp_03.jpg" WIDTH=750 HEIGHT=5></TD>
  87.   </TR>
  88.   <TR> 
  89.     <TD> 
  90.       <table width="231" border="0" cellspacing="0" cellpadding="0" height="226" background="images/left_top.jpg">
  91.         <tr> 
  92.           <td width="231" valign="bottom"> 
  93.             <div align="center">
  94.               <p><br>
  95.               </p>
  96.               <p>【成绩录入】</p>
  97.               <p align="center"> 在这里您可以对学<br>
  98.               生的成绩进行录入<br>
  99.               <br>
  100.               <br>
  101.               </p>
  102.               <table width="200" border="1">
  103.                 <tr>
  104.                   <td><div align="center"><a href="adminteacher.jsp">【教师<strong>管理</strong>】</a></div></td>
  105.                 </tr>
  106.                 <tr>
  107.                   <td><div align="center"><a href="admincourse.jsp">【课程<strong>管理</strong>】</a></div></td>
  108.                 </tr>
  109.               </table>
  110.               <p>  <strong><font color="#2DFFFF" size="5"> </font></strong></p>
  111.           </div>          </td>
  112.         </tr>
  113.       </table>
  114.     </TD>
  115.     <TD ROWSPAN=2> <IMG SRC="images/temp_05.jpg" WIDTH=4 HEIGHT=455></TD>
  116.     <TD COLSPAN=5 ROWSPAN=2> 
  117.       <table width="510" border="0" cellspacing="0" cellpadding="0" height="455" background="images/main_bg.jpg">
  118.         <tr> 
  119.           <td width="510"> 
  120.             <table width="510" border="0" cellspacing="0" cellpadding="0" height="455">
  121.               <tr> 
  122.                 <td width="510" height="78"> 
  123.                   <div align="center"><img src="images/blank_banner.gif" width="468" height="60"></div>
  124.                 </td>
  125.               </tr>
  126.               <tr> 
  127.                 <td valign="top">                  <div align="left"><a href="index1.htm">首页</a>&gt;<a href="index3.jsp">后台管理</a>&gt;成绩录入<br>
  128.                   <br>
  129.                   <br>
  130.                   <br>
  131.                   <table width="500" border="1" bordercolor="#006666">
  132.                     <tr>
  133.                       <td><div align="center">学生成绩录入</div>                        <div align="center"></div></td>
  134.                       </tr>
  135.                     <tr>
  136.                       <td height="248"><div align="center">
  137.                         <form name="form1" method="post" action="adminscore2.jsp">
  138.                           <table width="253" border="0" bordercolor="#006666">
  139.                             <tr bordercolor="#006666">
  140.                               <td width="67" height="28" background="images/bg.gif" class="bbb">
  141.                                 <div align="right">学生姓名</div></td>
  142.                               <td colspan="2" background="images/bg.gif">
  143.                                     <div align="left">
  144.                                       <select name="select" id="select">
  145.                                        <option value="0" selected>请选择学生</option>
  146.                             <% for (int i = 0; i < length; i++)
  147.    out.print("<option>" + titlelist[i].trim() + "</option>");
  148.   %>
  149.                                       </select>
  150.                                     </div></td>
  151.                             </tr>
  152.                             <tr bordercolor="#006666">
  153.                               <td height="28" background="images/bg.gif" class="bbb">
  154.                                 <div align="right">教师姓名</div></td>
  155.                               <td colspan="2" background="images/bg.gif">
  156.                                   <div align="left">
  157.                                     <select name="select2" id="select2">
  158.                                       <option selected>请选择教师</option>
  159.                                       <% for (int i = 0; i < length1; i++)
  160.    out.print("<option>" + titlelist1[i].trim() + "</option>");
  161.   %>
  162.                                     </select>                              
  163.                                       </div></td>
  164.                             </tr>
  165.                             <tr>
  166.                               <td height="28" background="images/bg.gif" class="bbb">
  167.                                 <div align="right">课程名称</div></td>
  168.                               <td colspan="2" bordercolor="#006666" background="images/bg.gif">
  169.                                   <div align="left">
  170.                                     <select name="select3" id="select3">
  171.                                         <option selected>请选择课程</option><% for (int i = 0; i < length2; i++)
  172.    out.print("<option>" + titlelist2[i].trim() + "</option>");
  173.   %>
  174.                                     </select>
  175.                                   </div></td>
  176.                             </tr>
  177.                             <tr bordercolor="#006666">
  178.                               <td height="28" background="images/bg.gif" class="bbb">
  179.                                 <div align="right">学期</div></td>
  180.                               <td colspan="2" background="images/bg.gif">
  181.                                 <table width="174" height="28" border="0" cellpadding="0" cellspacing="0">
  182.                                   <tr>
  183.                                     <td width="69">
  184.                                       <div align="left">
  185.                                         <select name="select4" id="select4">
  186.                                           <option value="1">第一学年</option>
  187.                                           <option value="2">第二学年</option>
  188.                                           <option value="3">第三学年</option>
  189.                                           <option value="4">第四学年</option>
  190.                                           <option selected>选择学年</option>
  191.                                         </select>
  192. </div>
  193.                                       <div align="right"> </div></td>
  194.                                     <td width="33" class="bbb"><div align="right">成绩</div></td>
  195.                                     <td width="72" class="bbb"><input name="select5" type="text" id="select5" size="4"></td>
  196.                                   </tr>
  197.                               </table></td>
  198.                             </tr>
  199.                             <tr>
  200.                               <td>&nbsp;</td>
  201.                               <td width="65">
  202.                                     <div align="right">
  203.                                       <input name="tijiao" type="submit" id="tijiao" value="提交">
  204.                                     </div></td>
  205.                               <td width="107" bordercolor="#006666"><div align="left">
  206.                                   <input name="chongzhi" type="reset" id="chongzhi" value="重置">
  207.                               </div></td>
  208.                             </tr>
  209.                           </table>
  210.                         </form>
  211.                         </div></td>
  212.                       </tr>
  213.                   </table>
  214.                   <br>
  215.                 </div></td>
  216.               </tr>
  217.             </table>
  218.           </td>
  219.         </tr>
  220.       </table>
  221.     </TD>
  222.     <TD ROWSPAN=2> <IMG SRC="images/temp_07.jpg" WIDTH=5 HEIGHT=455></TD>
  223.   </TR>
  224.   <TR> 
  225.     <TD> 
  226.       <table width="231" border="0" cellspacing="0" cellpadding="0" height="229" background="images/left_bottom.jpg">
  227.         <tr> 
  228.           <td width="231" height="222" valign="top"><div align="center">
  229.             <p><font color="#2DFFFF" size="5"> </font></p>
  230.               <table width="200" border="1">
  231.                 <tr>
  232.                   <td><div align="center"><a href="admincourse.jsp">【课程分配】</a></div></td>
  233.                 </tr>
  234.                 <tr>
  235.                   <td><div align="center"><a href="adminstudent.jsp">【学生管理】</a></div></td>
  236.                 </tr>
  237.                 
  238.               </table>
  239.               <br>
  240.               <br>
  241.               <table width="200" border="0">
  242.                 <tr>
  243.                   <td><div align="center"><a href="adminlyb.jsp">查看留言</a></div></td>
  244.                 </tr>
  245.               </table>
  246.               <p align="center"><br>
  247.               <a href="index1.htm" class="ccc">[退出系统]</a></p>
  248.               </div>
  249.           </td>
  250.         </tr>
  251.       </table>
  252.     </TD>
  253.   </TR>
  254.   <TR> 
  255.     <TD COLSPAN=8> <IMG SRC="images/temp_09.jpg" WIDTH=750 HEIGHT=5></TD>
  256.   </TR>
  257.   <TR> 
  258.     <TD COLSPAN=8> <img src="images/temp_10.jpg" width=752 height=20></TD>
  259.   </TR>
  260. </TABLE>
  261. </BODY>
  262. </HTML>