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