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

其他数据库

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page language="java" import="java.sql.*,wsxk.*"%>
  3. <%@ page import="java.util.*"%>
  4. <%@ page import="java.io.*"%>
  5. <%@ page import="java.lang.*"%>
  6. <jsp:useBean id="subject" scope="page" class="wsxk.ConDB"/>
  7. <% String  teaname = new String();
  8.    String  couid1   = new String();
  9.    String  teaid1 = new String();
  10. int temscid = 0;
  11. %>
  12. <html>
  13. <head>
  14. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  15. <link href="_notes/aaa.css" rel="stylesheet" type="text/css">
  16. <style type="text/css">
  17. <!--
  18. @import url("_notes/ccc");
  19. body,td,th {
  20. font-size: 12px;
  21. color: #FFFFFF;
  22. font-weight: bold;
  23. }
  24. a {
  25. font-size: 12px;
  26. color: #FFFFFF;
  27. }
  28. a:visited {
  29. color: #FFFFFF;
  30. }
  31. .style1 {font-size: 14px}
  32. -->
  33. </style>
  34. </HEAD>
  35. <BODY BGCOLOR=#0D85A6 BACKGROUND="images/bg.gif" >
  36. <br>
  37. <br>
  38. <TABLE WIDTH=750 height="494" BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
  39.   <TR>
  40.     <TD> <IMG SRC="images/spacer.gif" WIDTH=231 HEIGHT=1></TD>
  41.     <TD> <IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=1></TD>
  42.     <TD> <IMG SRC="images/spacer.gif" WIDTH=75 HEIGHT=1></TD>
  43.     <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
  44.     <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
  45.     <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
  46.     <TD> <IMG SRC="images/spacer.gif" WIDTH=105 HEIGHT=1></TD>
  47.     <TD> <IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1></TD>
  48.   </TR>
  49.   <TR>
  50.     <TD COLSPAN=4> <IMG SRC="images/temp_01.jpg" WIDTH=420 HEIGHT=15></TD>
  51.     <TD COLSPAN=4> <IMG SRC="images/temp_02.jpg" WIDTH=330 HEIGHT=15></TD>
  52.   </TR>
  53.   <TR>
  54.     <TD COLSPAN=8> <IMG SRC="images/temp_03.jpg" WIDTH=750 HEIGHT=5></TD>
  55.   </TR>
  56.   <TR>
  57.     <TD>
  58.       <table width="231" border="0" cellspacing="0" cellpadding="0" height="226" background="images/left_top.jpg">
  59.         <tr>
  60.           <td width="231">
  61.             <div align="center">
  62.               <p>&nbsp;</p>
  63.               <p>&nbsp;</p>
  64.               <p> 总选课单 <br>
  65.                 <br>
  66.                 <br>
  67.               <font color="#2DFFFF" size="5"><strong> </strong></font></p>
  68.               <table width="200" border="1">
  69.                 <tr>
  70.                   <td><div align="center"><a href="studentwsxk.jsp">【网上选课】</a></div></td>
  71.                 </tr>
  72.                 <tr>
  73.                   <td><div align="center"><a href="studentcjcx.jsp">【成绩查询】</a></div></td>
  74.                 </tr>
  75.                 
  76.               </table>
  77.               <p>  <strong><font color="#2DFFFF" size="5"> </font></strong></p>
  78.             </div>          </td>
  79.         </tr>
  80.       </table>
  81.     </TD>
  82.     <TD ROWSPAN=2> <IMG SRC="images/temp_05.jpg" WIDTH=4 HEIGHT=455></TD>
  83.     <TD COLSPAN=5 ROWSPAN=2>
  84.       <table width="510" border="0" cellspacing="0" cellpadding="0" height="455" background="images/main_bg.jpg">
  85.         <tr>
  86.           <td width="510">
  87.             <table width="510" border="0" cellspacing="0" cellpadding="0" height="455">
  88.               <tr>
  89.                 <td width="510" height="78">
  90.                   <div align="center"><img src="images/blank_banner.gif" width="468" height="60"></div>
  91.                 </td>
  92.               </tr>
  93.               <tr>
  94.                 <td valign="top">
  95.                   <div align="left"></div>                  <table width="91%" height="66" border="0" cellpadding="0" cellspacing="0">
  96.                     <tr>
  97.                       <td height="2" colspan="7">
  98.                         <p>                          <a href="index1.htm">首页</a>&gt;<a href="index1.jsp">学生</a>&gt;选课单<br>
  99.                           <br>
  100. </p>
  101.                         <div align="center"></div></td>
  102.                     </tr>
  103.                     <tr>
  104.                       <td height="3" colspan="7"><% String sql = "select stuname from student where stuid = '"+session.getValue("wnum")+"'";
  105. ResultSet rs=subject.executeQuery(sql);
  106. while (rs.next())
  107. {
  108. out.print(rs.getString("stuname"));
  109. teaname = rs.getString("stuname");
  110. }
  111. %>
  112. 同学 :</td>
  113.                     </tr>
  114.                     <tr>
  115.                       <td height="5" colspan="7"><div align="center">您这学期总选课单如下<br>
  116.                         <br>
  117.                       </div></td>
  118.                     </tr>
  119.                     <tr>
  120.                       <td width="10%" height="11"><div align="center"></div></td>
  121.                       <td width="12%">点击退选</td>
  122.                       <td width="19%"><div align="center">授课教师</div></td>
  123.                       <td width="23%"><div align="center">课程说明</div></td>
  124.                       <td width="13%"><div align="center">课程名称</div></td>
  125.                       <td width="12%"><div align="center">学分</div></td>
  126.                       <td width="11%"><div align="center"></div></td>
  127.                     </tr>
  128.                     <tr>
  129.                       <td height="22" colspan="7"><br>
  130.                         <% //String sql2 = "select couid,couname,coumark,couback from course where couid in (select couid from tc where teaid = '"+session.getValue("wnum")+"')";
  131.    String sql2 = "select scid,teaid,couid from sc where stuid = '"+session.getValue("wnum")+"'";
  132. ResultSet rs2=subject.executeQuery(sql2);
  133. while (rs2.next())
  134. { temscid = rs2.getInt("scid");
  135. out.print ("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
  136. out.print ("<a href='studentxkd2.jsp?tuixuan=" +temscid + "'>退选</a>");
  137. teaid1 = rs2.getString("teaid");
  138. String  sql4 = "select teaname from teacher where teaid = '"+teaid1+"'";
  139. ResultSet rs4 = subject.executeQuery(sql4);
  140. while (rs4.next())
  141. {
  142. out.print ("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
  143. out.print (rs4.getString("teaname"));
  144. }
  145. couid1 = rs2.getString("couid");
  146. //out.print("tttt");
  147. String sql3 = "select couid,couname,coumark,couback from course where couid = '"+couid1+"'";
  148. ResultSet rs3=subject.executeQuery(sql3);
  149. while (rs3.next())
  150. {out.print("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
  151. out.print(rs3.getString("couback"));
  152. out.print("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
  153. out.print(rs3.getString("couname"));
  154. out.print("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
  155. out.print(rs3.getString("coumark"));
  156. //out.print(rs3.getString("couback"));
  157. }  %>
  158.                         <br> <br>
  159.                         <%
  160. //couid1 = rs2.getString("couid");
  161. //teaname = rs.getString("teaname");
  162. }
  163. /*String sql3 = "select couid,couname,coumark,couback from course where couid = '"+couid1+"'";
  164. ResultSet rs3=subject.executeQuery(sql3);
  165. while (rs3.next())
  166. {
  167. out.print("tttt");
  168. }*/
  169.   %></td>
  170.                     </tr>
  171.                     <tr>
  172.                       <td colspan="7">&nbsp;</td>
  173.                     </tr>
  174.                                         </table></td>
  175.               </tr>
  176.             </table>
  177.           </td>
  178.         </tr>
  179.       </table>
  180.     </TD>
  181.     <TD ROWSPAN=2> <IMG SRC="images/temp_07.jpg" WIDTH=5 HEIGHT=455></TD>
  182.   </TR>
  183.   <TR>
  184.     <TD>
  185.       <table width="231" border="0" cellspacing="0" cellpadding="0" height="229" background="images/left_bottom.jpg">
  186.         <tr>
  187.           <td width="231" height="222">
  188.             <div align="center">
  189.               <table width="200" border="1">
  190.                 <tr>
  191.                   <td><div align="center"><a href="lyb.jsp">【留言板】</a></div></td>
  192.                 </tr>
  193.               </table>
  194.               <p>  <font color="#2DFFFF" size="5"> </font></p>
  195.               <p>&nbsp;  </p>
  196.               <p> <strong><font color="#2DFFFF" size="5"> </font></strong></p>
  197.               <p class="aaa"><a href="index1.htm" class="style1">[退出系统]</a></p>
  198.             </div>
  199.           </td>
  200.         </tr>
  201.       </table>
  202.     </TD>
  203.   </TR>
  204.   <TR>
  205.     <TD COLSPAN=8> <IMG SRC="images/temp_09.jpg" WIDTH=750 HEIGHT=5></TD>
  206.   </TR>
  207.   <TR>
  208.     <TD COLSPAN=8> <img src="images/temp_10.jpg" width=752 height=20></TD>
  209.   </TR>
  210. </TABLE>
  211. </BODY>
  212. </HTML>