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

其他数据库

开发平台:

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. font-size: 12px;
  27. color: #FFFFFF;
  28. font-weight: bold;
  29. }
  30. a:link {
  31. color: #FFFFFF;
  32. }
  33. a:visited {
  34. color: #FFFFFF;
  35. }
  36. .style1 {font-size: 14px}
  37. -->
  38. </style>
  39. </HEAD>
  40. <BODY BGCOLOR=#0D85A6 BACKGROUND="images/bg.gif" >
  41. <br>
  42. <br>
  43. <TABLE WIDTH=750 height="494" BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
  44.   <TR> 
  45.     <TD> <IMG SRC="images/spacer.gif" WIDTH=231 HEIGHT=1></TD>
  46.     <TD> <IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=1></TD>
  47.     <TD> <IMG SRC="images/spacer.gif" WIDTH=75 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=110 HEIGHT=1></TD>
  51.     <TD> <IMG SRC="images/spacer.gif" WIDTH=105 HEIGHT=1></TD>
  52.     <TD> <IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1></TD>
  53.   </TR>
  54.   <TR> 
  55.     <TD COLSPAN=4> <IMG SRC="images/temp_01.jpg" WIDTH=420 HEIGHT=15></TD>
  56.     <TD COLSPAN=4> <IMG SRC="images/temp_02.jpg" WIDTH=330 HEIGHT=15></TD>
  57.   </TR>
  58.   <TR> 
  59.     <TD COLSPAN=8> <IMG SRC="images/temp_03.jpg" WIDTH=750 HEIGHT=5></TD>
  60.   </TR>
  61.   <TR> 
  62.     <TD> 
  63.       <table width="231" border="0" cellspacing="0" cellpadding="0" height="225" background="images/left_top.jpg">
  64.         <tr> 
  65.           <td width="231" height="225" valign="bottom"> 
  66.             <div align="center"> 
  67.               <p>&nbsp;</p>
  68.               <p>成绩查询</p>
  69.               <p>在这里您可以对成绩<br>
  70.                 以及课表进行查询
  71.               </p>
  72.               <p>  <font color="#2DFFFF" size="5"><strong> </strong></font></p>
  73.               <table width="200" border="1">
  74.                 <tr>
  75.                   <td><div align="center"><a href="studentwsxk.jsp">【网上选课】</a></div></td>
  76.                 </tr>
  77.                 <tr>
  78.                   <td><div align="center">【成绩查询】</div></td>
  79.                 </tr>
  80.                
  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" valign="top"><table width="510" border="0" cellspacing="0" cellpadding="0" height="391">
  92.             <tr>
  93.               <td width="510" height="78">
  94.                 <div align="center"><img src="images/blank_banner.gif" width="468" height="60"></div></td>
  95.             </tr>
  96.             <tr>
  97.               <td height="12" valign="top">                 <div align="left"><a href="index1.htm">首页</a>&gt;<a href="index1.jsp">学生</a>&gt;成绩查询</div></td>
  98.             </tr>
  99.             <tr>
  100.               <td height="301" valign="middle"><div align="center">
  101.                 <form name="form1" method="post" action="studentcjcx2.jsp">
  102.                   <table width="350" border="0">
  103.                     <tr>
  104.                       <td colspan="2"><div align="center">按课程查询
  105.                             <select name="select">
  106.                               <option value="0" selected>选择要查询的课程</option>
  107.   
  108.                             <% for (int i = 0; i < length; i++)
  109.    out.print("<option>" + titlelist[i].trim() + "</option>");
  110.   %>
  111.                             </select>
  112.                       </div></td>
  113.                     </tr>
  114.                     <tr>
  115.                       <td width="264"><div align="right">
  116.                         <input type="submit" name="Submit" value="点击查询">
  117.                       </div></td>
  118.                       <td width="76">&nbsp;</td>
  119.                     </tr>
  120.                   </table>
  121.                 </form>
  122.                   <form name="form4" method="post" action="studentcjcx3.jsp">
  123.                   <table width="350" border="0">
  124.                     <tr>
  125.                       <td colspan="2"><div align="center">按学期查询
  126.                           <select name="select2">
  127.                             <option value="0" selected>选择要查询的学期</option>
  128.                             <option value="1">第一学年</option>
  129.                             <option value="2">第二学年</option>
  130.                             <option value="3">第三学年</option>
  131.                             <option value="4">第四学年</option>
  132.                           </select>
  133. </div></td>
  134.                     </tr>
  135.                     <tr>
  136.                       <td width="267"><div align="right">
  137.                         <input type="submit" name="Submit2" value="点击查询">
  138.                       </div></td>
  139.                       <td width="73">&nbsp;</td>
  140.                     </tr>
  141.                   </table>
  142.                   <div align="center"></div>
  143.                 </form>
  144.                   <form name="form2" method="post" action="">
  145.                     <table width="350" border="0">
  146.                       <tr>
  147.                         <td width="145"><div align="right"></div>                          
  148.                           <div align="right"><a href="studentqbkb.jsp">总成绩单</a></div></td>
  149.                         <td width="121">
  150.                           <div align="right"><a href="studentxkd.jsp">总选课单</a></div></td>
  151.                         <td width="70">&nbsp;</td>
  152.                       </tr>
  153.                     </table>                  
  154.                     </form>
  155.               </div></td>
  156.             </tr>
  157.           </table></td>
  158.         </tr>
  159.       </table>
  160.     </TD>
  161.     <TD ROWSPAN=2> <IMG SRC="images/temp_07.jpg" WIDTH=5 HEIGHT=455></TD>
  162.   </TR>
  163.   <TR> 
  164.     <TD> 
  165.       <table width="231" border="0" cellspacing="0" cellpadding="0" height="229" background="images/left_bottom.jpg">
  166.         <tr> 
  167.           <td width="231" height="222"> 
  168.             <div align="center">
  169.               <table width="200" border="1">
  170.                 <tr>
  171.                   <td><div align="center"><a href="lyb.jsp">【留言板】</a></div></td>
  172.                 </tr>
  173.               </table>
  174.               <p>&nbsp;  </p>
  175.               <p> <strong><font color="#2DFFFF" size="5"> </font></strong></p>
  176.               <p class="aaa"><a href="index1.htm" class="style1">[退出系统]</a></p>
  177.             </div>
  178.           </td>
  179.         </tr>
  180.       </table>
  181.     </TD>
  182.   </TR>
  183.   <TR> 
  184.     <TD COLSPAN=8> <IMG SRC="images/temp_09.jpg" WIDTH=750 HEIGHT=5></TD>
  185.   </TR>
  186.   <TR> 
  187.     <TD COLSPAN=8> <img src="images/temp_10.jpg" width=752 height=20></TD>
  188.   </TR>
  189. </TABLE>
  190. </BODY>
  191. </HTML>