📄 tchcourselist.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="tchpurview.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="function.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="100%" border="0">
<tr>
<td colspan="5">所教课程</td>
</tr>
<tr>
<td>课程编号</td>
<td>课程名称</td>
<td>上课时间</td>
<td>任课教师</td>
<td>操作</td>
</tr>
<%
dim tchno
tchno=session("user")
set rs=server.CreateObject("adodb.recordset")
sql="SELECT course.CourseNo, course.CourseName, course.CourseTime, Teacher.TeacherName, Teacher.TeacherID, course.CourseID FROM Teacher INNER JOIN course ON Teacher.TeacherID = course.teacherID where teacherno='" & tchno & "'"
rs.open sql,conn,1,1
do while not rs.eof
%>
<tr>
<td><%=rs("courseno")%></td>
<td><%=rs("coursename")%></td>
<td><%=rs("coursetime")%></td>
<td><%=rs("teachername")%></td>
<td><a href="tchcoursedetail.asp?cid=<%=rs("courseid")%>" target="mainFrame">详细</a></td>
</tr>
<%
rs.movenext
loop
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -