teacherkccx.jsp
上传用户:mkymky1985
上传日期:2014-06-23
资源大小:754k
文件大小:7k
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page language="java" import="java.sql.*"%>
- <%@ page import="java.util.*"%>
- <%@ page import="java.io.*"%>
- <%@ page import="java.lang.*"%>
- <jsp:useBean id="subject" scope="page" class="wsxk.ConDB"/>
- <% String teaname = new String();
- String couid1 = new String();
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link href="_notes/aaa.css" rel="stylesheet" type="text/css">
- <style type="text/css">
- <!--
- @import url("_notes/ccc");
- body,td,th {
- font-size: 12px;
- color: #FFFFFF;
- font-weight: bold;
- }
- a {
- font-size: 12px;
- color: #FFFFFF;
- }
- a:visited {
- color: #FFFFFF;
- }
- .style1 {font-size: 14px}
- -->
- </style>
- </HEAD>
- <BODY BGCOLOR=#0D85A6 BACKGROUND="images/bg.gif" >
- <br>
- <br>
- <TABLE WIDTH=750 height="494" BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
- <TR>
- <TD> <IMG SRC="images/spacer.gif" WIDTH=231 HEIGHT=1></TD>
- <TD> <IMG SRC="images/spacer.gif" WIDTH=4 HEIGHT=1></TD>
- <TD> <IMG SRC="images/spacer.gif" WIDTH=75 HEIGHT=1></TD>
- <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
- <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
- <TD> <IMG SRC="images/spacer.gif" WIDTH=110 HEIGHT=1></TD>
- <TD> <IMG SRC="images/spacer.gif" WIDTH=105 HEIGHT=1></TD>
- <TD> <IMG SRC="images/spacer.gif" WIDTH=5 HEIGHT=1></TD>
- </TR>
- <TR>
- <TD COLSPAN=4> <IMG SRC="images/temp_01.jpg" WIDTH=420 HEIGHT=15></TD>
- <TD COLSPAN=4> <IMG SRC="images/temp_02.jpg" WIDTH=330 HEIGHT=15></TD>
- </TR>
- <TR>
- <TD COLSPAN=8> <IMG SRC="images/temp_03.jpg" WIDTH=750 HEIGHT=5></TD>
- </TR>
- <TR>
- <TD>
- <table width="231" border="0" cellspacing="0" cellpadding="0" height="226" background="images/left_top.jpg">
- <tr>
- <td width="231">
- <div align="center">
- <p> </p>
- <p> </p>
- <p>课程查询</p>
- <p> <font color="#2DFFFF" size="5"><strong> </strong></font></p>
- <table width="200" border="1">
- <tr>
- <td><div align="center">【课程查询】</div></td>
- </tr>
- <tr>
- <td><div align="center"><a href="teacherqbkb.jsp">【全部课表】</a></div></td>
- </tr>
- </table>
- <p> <strong><font color="#2DFFFF" size="5"> </font></strong></p>
- </div> </td>
- </tr>
- </table>
- </TD>
- <TD ROWSPAN=2> <IMG SRC="images/temp_05.jpg" WIDTH=4 HEIGHT=455></TD>
- <TD COLSPAN=5 ROWSPAN=2>
- <table width="510" border="0" cellspacing="0" cellpadding="0" height="455" background="images/main_bg.jpg">
- <tr>
- <td width="510">
- <table width="510" border="0" cellspacing="0" cellpadding="0" height="455">
- <tr>
- <td width="510" height="78">
- <div align="center"><img src="images/blank_banner.gif" width="468" height="60"></div>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <div align="left"></div> <table width="91%" height="66" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td height="2" colspan="5">
- <p> <a href="index1.htm">首页</a>><a href="index2.jsp">教师</a>>课程查询<br>
- <br>
- </p>
- <div align="center"></div></td>
- </tr>
- <tr>
- <td height="3" colspan="5"><% String sql = "select teaname from teacher where teaid = '"+session.getValue("wnum")+"'";
- ResultSet rs=subject.executeQuery(sql);
- while (rs.next())
- {
- out.print(rs.getString("teaname"));
- teaname = rs.getString("teaname");
- }
- %>
- 老师 :</td>
- </tr>
- <tr>
- <td height="5" colspan="5"><div align="center">您这学期所开的课程如下<br>
- <br>
- </div></td>
- </tr>
- <tr>
- <td width="20%" height="11"><div align="center"></div></td>
- <td width="21%"><div align="center">课程编号</div></td>
- <td width="24%"><div align="center">课程名称</div></td>
- <td width="24%"><div align="center">学分</div></td>
- <td width="11%"><div align="center"></div></td>
- </tr>
- <tr>
- <td height="22" colspan="5"><br>
- <% //String sql2 = "select couid,couname,coumark,couback from course where couid in (select couid from tc where teaid = '"+session.getValue("wnum")+"')";
- String sql2 = "select couid from tc where teaid = '"+session.getValue("wnum")+"'";
- ResultSet rs2=subject.executeQuery(sql2);
- while (rs2.next())
- {
- couid1 = rs2.getString("couid");
- //out.print("tttt");
- String sql3 = "select couid,couname,coumark,couback from course where couid = '"+couid1+"'";
- ResultSet rs3=subject.executeQuery(sql3);
- while (rs3.next())
- {out.print(" ");
- out.print(rs3.getString("couid"));
- out.print(" ");
- out.print(rs3.getString("couname"));
- out.print(" ");
- out.print(rs3.getString("coumark"));
- //out.print(rs3.getString("couback"));
- } %>
- <br>
- <%
- //couid1 = rs2.getString("couid");
- //teaname = rs.getString("teaname");
- }
- /*String sql3 = "select couid,couname,coumark,couback from course where couid = '"+couid1+"'";
- ResultSet rs3=subject.executeQuery(sql3);
- while (rs3.next())
- {
- out.print("tttt");
- }*/
- %></td>
- </tr>
- <tr>
- <td colspan="5"> </td>
- </tr>
- </table></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </TD>
- <TD ROWSPAN=2> <IMG SRC="images/temp_07.jpg" WIDTH=5 HEIGHT=455></TD>
- </TR>
- <TR>
- <TD>
- <table width="231" border="0" cellspacing="0" cellpadding="0" height="229" background="images/left_bottom.jpg">
- <tr>
- <td width="231" height="222">
- <div align="center">
- <p> <font color="#2DFFFF" size="5"> </font></p>
- <p> </p>
- <p> <strong><font color="#2DFFFF" size="5"> </font></strong></p>
- <p class="aaa"><a href="index1.htm" class="style1">[退出系统]</a></p>
- </div>
- </td>
- </tr>
- </table>
- </TD>
- </TR>
- <TR>
- <TD COLSPAN=8> <IMG SRC="images/temp_09.jpg" WIDTH=750 HEIGHT=5></TD>
- </TR>
- <TR>
- <TD COLSPAN=8> <img src="images/temp_10.jpg" width=752 height=20></TD>
- </TR>
- </TABLE>
- </BODY>
- </HTML>