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

其他数据库

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page language="java" import="java.sql.*"%>
  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. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  10. <link href="_notes/aaa.css" rel="stylesheet" type="text/css">
  11. <style type="text/css">
  12. <!--
  13. @import url("_notes/ccc");
  14. body,td,th {
  15. font-size: 12px;
  16. color: #FFFFFF;
  17. font-weight: bold;
  18. }
  19. a {
  20. font-size: 12px;
  21. color: #FFFFFF;
  22. }
  23. a:visited {
  24. color: #FFFFFF;
  25. }
  26. .style1 {font-size: 12px}
  27. .style2 {font-size: 14px}
  28. -->
  29. </style>
  30. </HEAD>
  31. <BODY BGCOLOR=#0D85A6 BACKGROUND="images/bg.gif" >
  32. <br>
  33. <br>
  34. <TABLE WIDTH=750 height="494" BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
  35.   <TR>
  36.     <TD> <IMG SRC="images/spacer.gif" WIDTH=231 HEIGHT=1></TD>
  37.     <TD> <IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=1></TD>
  38.     <TD> <IMG SRC="images/spacer.gif" WIDTH=75 HEIGHT=1></TD>
  39.     <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
  40.     <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
  41.     <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
  42.     <TD> <IMG SRC="images/spacer.gif" WIDTH=105 HEIGHT=1></TD>
  43.     <TD> <IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1></TD>
  44.   </TR>
  45.   <TR>
  46.     <TD COLSPAN=4> <IMG SRC="images/temp_01.jpg" WIDTH=420 HEIGHT=15></TD>
  47.     <TD COLSPAN=4> <IMG SRC="images/temp_02.jpg" WIDTH=330 HEIGHT=15></TD>
  48.   </TR>
  49.   <TR>
  50.     <TD COLSPAN=8> <IMG SRC="images/temp_03.jpg" WIDTH=750 HEIGHT=5></TD>
  51.   </TR>
  52.   <TR>
  53.     <TD>
  54.       <table width="231" border="0" cellspacing="0" cellpadding="0" height="226" background="images/left_top.jpg">
  55.         <tr>
  56.           <td width="231">
  57.             <div align="center">
  58.               <p>&nbsp;</p>
  59.               <p>&nbsp;</p>
  60.               <p>&nbsp;</p>
  61.               <p>  <font color="#2DFFFF" size="5"><strong> </strong></font></p>
  62.               <table width="200" border="1">
  63.                 <tr>
  64.                   <td><div align="center"><a href="teacherkccx.jsp" class="style1">【课程查询】</a></div></td>
  65.                 </tr>
  66.                 <tr>
  67.                   <td><div align="center"><a href="teacherqbkb.jsp">【全部课表】</a></div></td>
  68.                 </tr>
  69.               </table>
  70.               <p>  <strong><font color="#2DFFFF" size="5"> </font></strong></p>
  71.             </div>          </td>
  72.         </tr>
  73.       </table>
  74.     </TD>
  75.     <TD ROWSPAN=2> <IMG SRC="images/temp_05.jpg" WIDTH=4 HEIGHT=455></TD>
  76.     <TD COLSPAN=5 ROWSPAN=2>
  77.       <table width="510" border="0" cellspacing="0" cellpadding="0" height="455" background="images/main_bg.jpg">
  78.         <tr>
  79.           <td width="510">
  80.             <table width="510" border="0" cellspacing="0" cellpadding="0" height="455">
  81.               <tr>
  82.                 <td width="510" height="78">
  83.                   <div align="center"><img src="images/blank_banner.gif" width="468" height="60"></div>
  84.                 </td>
  85.               </tr>
  86.               <tr>
  87.                 <td valign="top">
  88.                   <div align="center">
  89.                     <table width="82%" height="158" border="0" cellpadding="0" cellspacing="0">
  90.                       <tr>
  91.                         <td height="68">
  92.                           <p class="aaa">&nbsp;</p>
  93.                           <div align="center"></div></td>
  94.                       </tr>
  95.                       <tr>
  96.                         <td height="30">欢迎您 
  97.                           <% String sql = "select teaname from teacher where teaid = '"+session.getValue("wnum")+"'";
  98. ResultSet rs=subject.executeQuery(sql);
  99. while (rs.next())
  100. {
  101. out.print(rs.getString("teaname"));
  102. }
  103. %>
  104.                         老师:</td>
  105.                       </tr>
  106.                       <tr>
  107.                         <td height="30">点击左面的菜单进行所授课程查询</td>
  108.                       </tr>
  109.                       <tr>
  110.                         <td height="30">&nbsp;</td>
  111.                       </tr>
  112.                     </table>
  113.                     <table width="82%" height="65" border="0" cellpadding="0" cellspacing="0">
  114.                       <tr>
  115.                         <td height="65">
  116.                         <div align="center"></div>                          <p>&nbsp;</p></td>
  117.                       </tr>
  118.                     </table>
  119.                   </div>
  120.                 </td>
  121.               </tr>
  122.             </table>
  123.           </td>
  124.         </tr>
  125.       </table>
  126.     </TD>
  127.     <TD ROWSPAN=2> <IMG SRC="images/temp_07.jpg" WIDTH=5 HEIGHT=455></TD>
  128.   </TR>
  129.   <TR>
  130.     <TD>
  131.       <table width="231" border="0" cellspacing="0" cellpadding="0" height="229" background="images/left_bottom.jpg">
  132.         <tr>
  133.           <td width="231" height="222">
  134.             <div align="center">
  135.               <p>  <font color="#2DFFFF" size="5"> </font></p>
  136.               <p>&nbsp;  </p>
  137.               <p> <strong><font color="#2DFFFF" size="5"> </font></strong></p>
  138.               <p class="aaa"><a href="index1.htm" class="style2">[退出系统]</a></p>
  139.             </div>
  140.           </td>
  141.         </tr>
  142.       </table>
  143.     </TD>
  144.   </TR>
  145.   <TR>
  146.     <TD COLSPAN=8> <IMG SRC="images/temp_09.jpg" WIDTH=750 HEIGHT=5></TD>
  147.   </TR>
  148.   <TR>
  149.     <TD COLSPAN=8> <img src="images/temp_10.jpg" width=752 height=20></TD>
  150.   </TR>
  151. </TABLE>
  152. </BODY>
  153. </HTML>