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

其他数据库

开发平台:

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 teaid ,teaname from teacher ";
  8. ResultSet rs = subject.executeQuery(strSQL);
  9. int length = 0;
  10. while(rs.next())
  11. {
  12. String id = rs.getString("teaid");
  13. String title = rs.getString("teaname").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="adminstudent.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="adminteacher2.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="teaid" type="text" id="teaid">
  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="teaname" type="text" id="teaname">
  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"><input name="teapsw" type="text" id="teapsw" value="123"></td>
  131.                             </tr>
  132.                             <tr bordercolor="#006666">
  133.                               <td height="28" background="images/bg.gif" class="bbb">
  134.                                 <div align="right"></div></td>
  135.                               <td valign="bottom" bordercolor="#006666" background="images/bg.gif"><div align="right">
  136.                                 <input name="tijiao" type="submit" id="tijiao3" value="提交">
  137. </div></td>
  138.                               <td valign="bottom" bordercolor="#006666" background="images/bg.gif"><input name="chongzhi" type="reset" id="chongzhi3" value="重置"></td>
  139.                             </tr>
  140.                             <tr>
  141.                               <td>&nbsp;</td>
  142.                               <td>
  143.                                 <div align="right">                                </div></td>
  144.                               <td bordercolor="#006666"><div align="left">
  145.                               </div></td>
  146.                             </tr>
  147.                           </table>
  148.                           </form>
  149.                         </div></td>
  150.                       <td><form name="form2" method="post" action="adminteacher3.jsp">
  151.                         <table width="250" border="0">
  152.                           <tr>
  153.                             <td width="90">删改的教师:</td>
  154.                             <td colspan="2"><select name="select">
  155.                             <option value="0" selected>选择教师</option>
  156.                             <% for (int i = 0; i < length; i++)
  157.    out.print("<option>" + titlelist[i].trim() + "</option>");
  158.   %>
  159.                             </select></td>
  160.                           </tr>
  161.                           <tr>
  162.                             <td>
  163.                               <p><br>
  164.                                 <br>
  165.                                 <br>
  166.                                 <br>
  167.                                   </p></td>
  168.                             <td colspan="2">&nbsp;</td>
  169.                           </tr>
  170.                           <tr>
  171.                             <td>&nbsp;</td>
  172.                             <td colspan="2">&nbsp;</td>
  173.                           </tr>
  174.                           <tr>
  175.                             <td>&nbsp;</td>
  176.                             <td valign="top"><input type="submit" name="Submit" value="修改/删除"></td>
  177.                             <td>&nbsp;</td>
  178.                           </tr>
  179.                           <tr>
  180.                             <td height="15">&nbsp;</td>
  181.                             <td width="83">
  182.                               <div align="left"></div></td>
  183.                             <td width="63">&nbsp;</td>
  184.                           </tr>
  185.                         </table>
  186.                       </form></td>
  187.                     </tr>
  188.                   </table>
  189.                   <br>
  190.                 </div></td>
  191.               </tr>
  192.             </table>
  193.           </td>
  194.         </tr>
  195.       </table>
  196.     </TD>
  197.     <TD ROWSPAN=2> <IMG SRC="images/temp_07.jpg" WIDTH=5 HEIGHT=455></TD>
  198.   </TR>
  199.   <TR> 
  200.     <TD> 
  201.       <table width="231" border="0" cellspacing="0" cellpadding="0" height="229" background="images/left_bottom.jpg">
  202.         <tr> 
  203.           <td width="231" height="222" valign="top"><div align="center">
  204.             <p><font color="#2DFFFF" size="5"> </font></p>
  205.               <table width="200" border="1">
  206.                 <tr>
  207.                   <td><div align="center"><a href="admincourse.jsp">【课程分配】</a></div></td>
  208.                 </tr>
  209.                 <tr>
  210.                   <td><div align="center"><a href="adminscore.jsp">【成绩录入】</a></div></td>
  211.                 </tr>
  212.                
  213.               </table>
  214.               <br>
  215.               <br>
  216.               <table width="200" border="0">
  217.                 <tr>
  218.                   <td><div align="center"><a href="adminlyb.jsp">查看留言</a></div></td>
  219.                 </tr>
  220.               </table>
  221.               <p align="center"><br>
  222.               <a href="index1.htm" class="ccc">[退出系统]</a></p>
  223.               </div>
  224.           </td>
  225.         </tr>
  226.       </table>
  227.     </TD>
  228.   </TR>
  229.   <TR> 
  230.     <TD COLSPAN=8> <IMG SRC="images/temp_09.jpg" WIDTH=750 HEIGHT=5></TD>
  231.   </TR>
  232.   <TR> 
  233.     <TD COLSPAN=8> <img src="images/temp_10.jpg" width=752 height=20></TD>
  234.   </TR>
  235. </TABLE>
  236. </BODY>
  237. </HTML>