admintc.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.                   <form name="form1" method="post" action="admintc2.jsp">
  118.                     <table width="500" border="1" bordercolor="#006666">
  119.                       <tr>
  120.                         <td width="250"><div align="center">授课的教师</div></td>
  121.                         <td width="234"><div align="center">已开的课程</div></td>
  122.                       </tr>
  123.                       <tr>
  124.                         <td height="248"><div align="center">
  125.                             <table width="250" border="0">
  126.                               <tr>
  127.                                 <td width="96">授课的教师:</td>
  128.                                 <td colspan="2" valign="top"><select name="select2">
  129.                                     <option value="0" selected>选择教师</option>
  130.                                     <% for (int i = 0; i < length1; i++)
  131.    out.print("<option>" + titlelist1[i].trim() + "</option>");
  132.   %>
  133.                                 </select></td>
  134.                               </tr>
  135.                               <tr>
  136.                                 <td>
  137.                                   <p><br>
  138.                                       <br>
  139.                                       <br>
  140.                                       <br>
  141.                                       <br>
  142.                                       <br>
  143.                                 </p></td>
  144.                                 <td colspan="2">&nbsp;</td>
  145.                               </tr>
  146.                               <tr>
  147.                                 <td>&nbsp;</td>
  148.                                 <td colspan="2">&nbsp;</td>
  149.                               </tr>
  150.                               <tr>
  151.                                 <td>&nbsp;</td>
  152.                                 <td colspan="2">&nbsp;</td>
  153.                               </tr>
  154.                               <tr>
  155.                                 <td>&nbsp;</td>
  156.                                 <td width="33">
  157.                                   <div align="left"> </div></td>
  158.                                 <td width="107">&nbsp;</td>
  159.                               </tr>
  160.                             </table>
  161.                         </div></td>
  162.                         <td>
  163.                           <table width="244" border="0">
  164.                             <tr>
  165.                               <td width="96">已开的课程:</td>
  166.                               <td colspan="2" valign="top"><select name="select">
  167.                                   <option value="0" selected>选择课程</option>
  168.                                   <% for (int i = 0; i < length; i++)
  169.    out.print("<option>" + titlelist[i].trim() + "</option>");
  170.   %>
  171.                               </select></td>
  172.                             </tr>
  173.                             <tr>
  174.                               <td>
  175.                                 <p><br>
  176.                                     <br>
  177.                                     <br>
  178.                                     <br>
  179.                                     <br>
  180.                                     <br>
  181.                               </p></td>
  182.                               <td colspan="2">&nbsp;</td>
  183.                             </tr>
  184.                             <tr>
  185.                               <td>&nbsp;</td>
  186.                               <td colspan="2">&nbsp;</td>
  187.                             </tr>
  188.                             <tr>
  189.                               <td>&nbsp;</td>
  190.                               <td colspan="2">&nbsp;</td>
  191.                             </tr>
  192.                             <tr>
  193.                               <td>&nbsp;</td>
  194.                               <td width="33">
  195.                                 <div align="left"> </div></td>
  196.                               <td width="101"><input name="shanchu" type="submit" id="shanchu3" value="提交"></td>
  197.                             </tr>
  198.                         </table></td>
  199.                       </tr>
  200.                     </table>
  201.                     </form>
  202.                 </div></td>
  203.               </tr>
  204.             </table>
  205.           </td>
  206.         </tr>
  207.       </table>
  208.     </TD>
  209.     <TD ROWSPAN=2> <IMG SRC="images/temp_07.jpg" WIDTH=5 HEIGHT=455></TD>
  210.   </TR>
  211.   <TR> 
  212.     <TD> 
  213.       <table width="231" border="0" cellspacing="0" cellpadding="0" height="229" background="images/left_bottom.jpg">
  214.         <tr> 
  215.           <td width="231" height="222" valign="top"><div align="center">
  216.             <p><font color="#2DFFFF" size="5"> </font></p>
  217.               <table width="200" border="1">
  218.                 <tr>
  219.                   <td><div align="center"><a href="admincourse.jsp">【课程管理】</a></div></td>
  220.                 </tr>
  221.                 <tr>
  222.                   <td><div align="center"><a href="adminscore.jsp">【成绩录入】</a></div></td>
  223.                 </tr>
  224.                 
  225.               </table>
  226.               <br>
  227.               <br>
  228.               <table width="200" border="0">
  229.                 <tr>
  230.                   <td><div align="center"><a href="adminlyb.jsp">查看留言</a></div></td>
  231.                 </tr>
  232.               </table>
  233.               <p align="center"><br>
  234.               <a href="index1.htm" class="ccc">[退出系统]</a></p>
  235.               </div>
  236.           </td>
  237.         </tr>
  238.       </table>
  239.     </TD>
  240.   </TR>
  241.   <TR> 
  242.     <TD COLSPAN=8> <IMG SRC="images/temp_09.jpg" WIDTH=750 HEIGHT=5></TD>
  243.   </TR>
  244.   <TR> 
  245.     <TD COLSPAN=8> <img src="images/temp_10.jpg" width=752 height=20></TD>
  246.   </TR>
  247. </TABLE>
  248. </BODY>
  249. </HTML>