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

其他数据库

开发平台:

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