admincourse.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 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. <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="adminstudent.jsp">【学生管理】</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="admincourse2.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="couid" type="text" id="couid">
  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="couname" type="text" id="couname">
  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" align="left">
  134.                                         <div align="left">                                        </div>
  135.                                         <div align="left"><span class="bbb">
  136.                                             <select name="coumark" id="coumark">
  137.                                               <option value="1" selected>一学分</option>
  138.                                               <option value="2">二学分</option>
  139.                                               <option value="3">三学分</option>
  140.                                               <option value="4">四学分</option>
  141.                                             </select>
  142.                                         </span> </div></td>
  143.                                     <td width="33" class="bbb"><div align="right"></div></td>
  144.                                     <td width="72" class="bbb">&nbsp;</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.                                 <textarea name="couback" rows="3" id="couback"></textarea></td>
  153.                             </tr>
  154.                             <tr>
  155.                               <td>&nbsp;</td>
  156.                               <td>
  157.                                 <div align="right">
  158.                                   <input name="tijiao" type="submit" id="tijiao" value="提交">
  159.                                 </div></td>
  160.                               <td bordercolor="#006666"><div align="left">
  161.                                 <input name="chongzhi" type="reset" id="chongzhi" value="重置">
  162.                               </div></td>
  163.                             </tr>
  164.                           </table>
  165.                           </form>
  166.                         </div></td>
  167.                       <td><form name="form2" method="post" action="admincourse3.jsp">
  168.                         <table width="250" border="0">
  169.                           <tr>
  170.                             <td width="90">删改的课程:</td>
  171.                             <td colspan="2" valign="top"><select name="select">
  172.                             <option value="0" selected>选择课程</option>
  173.                             <% for (int i = 0; i < length; i++)
  174.    out.print("<option>" + titlelist[i].trim() + "</option>");
  175.   %>
  176.                             </select></td>
  177.                           </tr>
  178.                           <tr>
  179.                             <td>
  180.                               <p><br>
  181.                                 <br>
  182.                                 <br>
  183.                                 <br>
  184.                                 <br>
  185.                                 <br>
  186.                                 </p></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 colspan="2">&nbsp;</td>
  196.                           </tr>
  197.                           <tr>
  198.                             <td>&nbsp;</td>
  199.                             <td width="110">
  200.                               <div align="left">
  201.                                 <input type="submit" name="Submit" value="修改/删除">
  202. </div></td>
  203.                             <td width="36">&nbsp;</td>
  204.                           </tr>
  205.                         </table>
  206.                       </form></td>
  207.                     </tr>
  208.                   </table>
  209.                   <br>
  210.                 </div></td>
  211.               </tr>
  212.             </table>
  213.           </td>
  214.         </tr>
  215.       </table>
  216.     </TD>
  217.     <TD ROWSPAN=2> <IMG SRC="images/temp_07.jpg" WIDTH=5 HEIGHT=455></TD>
  218.   </TR>
  219.   <TR> 
  220.     <TD> 
  221.       <table width="231" border="0" cellspacing="0" cellpadding="0" height="229" background="images/left_bottom.jpg">
  222.         <tr> 
  223.           <td width="231" height="222" valign="top"><div align="center">
  224.             <p><font color="#2DFFFF" size="5"> </font></p>
  225.               <table width="200" border="1">
  226.                 <tr>
  227.                   <td><div align="center"><a href="admintc.jsp">【课程分配】</a></div></td>
  228.                 </tr>
  229.                 <tr>
  230.                   <td><div align="center"><a href="adminscore.jsp">【成绩录入】</a></div></td>
  231.                 </tr>
  232.                
  233.               </table>
  234.               <br>
  235.               <br>
  236.               <table width="200" border="0">
  237.                 <tr>
  238.                   <td><div align="center"><a href="adminlyb.jsp">查看留言</a></div></td>
  239.                 </tr>
  240.               </table>
  241.               <p align="center"><br>
  242.               <a href="index1.htm" class="ccc">[退出系统]</a></p>
  243.               </div>
  244.           </td>
  245.         </tr>
  246.       </table>
  247.     </TD>
  248.   </TR>
  249.   <TR> 
  250.     <TD COLSPAN=8> <IMG SRC="images/temp_09.jpg" WIDTH=750 HEIGHT=5></TD>
  251.   </TR>
  252.   <TR> 
  253.     <TD COLSPAN=8> <img src="images/temp_10.jpg" width=752 height=20></TD>
  254.   </TR>
  255. </TABLE>
  256. </BODY>
  257. </HTML>