📄 student_course_list.asp
字号:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!--#include file="verifyTeacher.asp"-->
<%
var Rs;
var StudentId;
var i;
var j;
var InfFlag;
var InfStart;
var InfEnd;
StudentId=Request("studentmessage");
var professionId = Request("professionId");
Rs=Server.CreateObject("ADODB.Recordset");
Rs.ActiveConnection=Conn;
Rs.Source="select c.id,c.name courseName,t.name teacherName from course c,teacher t where c.teacherId = t.id and c.professionId="+professionId;
Rs.CursorLocation=3;
Rs.Open();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>学生信息修改查找显示</title>
<!--#include file="link.asp"-->
<style type="text/css">
body{
text-align:center;
}
</style>
</head>
<body>
<!--#include file="top.asp"-->
<%
if(!Rs.EOF)
{
Response.Write("<table border='1' width='760' cellPadding=0 cellSpacing=0 bgcolor='#00ffff' borderColor='#111111' borderColorDark=#0072b3 borderColorLight=#0072b3 style='BORDER-COLLAPSE: collapse'>");
Response.Write("<tr>");
Response.Write("<td width='50' height='20'><div align=center><font size='2' color='#ff0000'>序号</font></div></td>");
Response.Write("<td width='50' height='20'><div align=center><font size='2' color='#ff0000'> 课程名</font></div></td>");
Response.Write("<td width='50' height='20'><div align=center><font size='2' color='#ff0000'>授课教师</font></div></td>");
Response.Write("<td width='50' height='20'><div align=center><font size='2' color='#ff0000'>操作</font></div></td>");
Response.Write("</tr>");
while(!Rs.EOF){
%>
<tr>
<td width='760' height='20'>
<%=Rs("id")%>
</td>
<td width='760' height='20'>
<%=Rs("courseName")%>
</td>
<td width='760' height='20'>
<%=Rs("teacherName")%>
</td>
<td width='760' colspan='6' height='20'>
<a href="student_score_add.asp?studentNo=<%=StudentId%>&courseId=<%=Rs("id")%>">添加成绩</a>
<a href="student_score_modify.asp?studentNo=<%=StudentId%>&courseId=<%=Rs("id")%>">修改成绩</a>
</td>
</tr>
<%
Rs.MoveNext;
}
Response.Write("<tr>");
Response.Write("<td width='760' colspan='6' height='20'>");
Response.Write("</td>");
Response.Write("</tr>");
Response.Write("</table>");
}
else
{
Response.Write("<div align=center><font size=6 color='#ff0000'>对不起!数据库中没找到您所需要的数据!</font></div>");
Rs.Close();
Rs=null;
Conn.Close();
Conn=null;
}
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -