public.jsp
上传用户:ht0805
上传日期:2013-10-20
资源大小:384k
文件大小:1k
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="errorpgae.jsp" %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title>挑选您的学生</title>
- </head>
- <jsp:useBean id="deter" scope="page" class="determine"/>
- <body bgcolor="#0099FF" text="#FFFFFF" link="#00FF00">
- <%
- String tea_id=(String)session.getAttribute("id");
- %>
- <div align="center">
- <p><font color="#00FF00" size="+3" face="方正舒体">您所带的班级</font></p>
- <p> </p>
- <table width="75%" border="1">
- <tr>
- <td>班级号</td>
- <td>课程名</td>
- <td> 学生</td>
- </tr>
- <%
- String class_id=null;
- String cour_name=null;
- ResultSet rs=deter.getClass(tea_id);
- while(rs.next()){
- class_id=rs.getString("id");
- cour_name=rs.getString("name");
- %>
- <tr>
- <td><%=class_id%></td>
- <td><%=cour_name%></td>
- <td><a href="MarkSvlt?class_id=<%=class_id%>&cour_name=<%=cour_name%>&action=score ">学生</a></td>
- </tr>
- <%
- }
- %>
- </table>
- <p align="left"><a href="admin.jsp"><<Back</a></p>
- </div>
- </body>
- </html>