📄 kelist.asp
字号:
<!--#include file="conn.asp"-->
<%dim rs,conn
number=session("number")
passwd=session("Passwd")
Set rs=server.CreateObject("ADODB.Recordset")
sql="select * from admin1 where number='"&number&"'and passwd='"&Passwd&"'"
rs.open sql,conn,3,3
if rs.eof then
response.redirect "index.asp"
response.end
end if
key1=rs("oskey")
IF not(KEY1="super") THEN
response.redirect "error.asp?id=065"
response.end
END IF
%>
<%
Set rs=server.CreateObject("ADODB.Recordset")
sql="select * from kecheng"
rs.Open sql,conn,1,1
%>
<!--#include file="top.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css">
<title>理学院成绩查询系统-课程列表</title>
<style type="text/css">
<!--
.style1 {color: #0000FF}
-->
</style>
</head>
<body leftmargin="0" Topmargin="0" marginwidth="0" marginheight="0" background="images/greystrip.gIf">
<table width="760" border="0" cellspacing="0" cellpadding="0">
<tr><td><div align="right"><a href="manage.asp"><font color="red">返回管理首页</font></a> </div></td></tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#316395" vspace="0" hspace="0" bordercolor="#316395" bordercolordark="#FFFFFF" bordercolorlight="#316395" background="images/titbg.gIf" height="26" align="center">
<tr>
<td><div align="center"><font color="green">理学院课程列表</font></div></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td width="142"><div align="center" class="style1">课程名称</div></td>
<td width="142"><div align="center" class="style1">授课教师</div></td>
</tr>
</table>
<% do while not rs.eof %>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="760"><div align="center">------------------------------------------------------------------------------------------------------------</div></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td width="142"><div align="center"><%=rs("ke")%></div></td>
<td width="142"><div align="center"><%=rs("teacher")%></div></td>
</tr>
</table>
<% i=i+0
rs.movenext
if i>=rs.PageSize then exit do
loop
rs.close
set rs=nothing
conn.close
set conn=nothing %>
</body>
</html><!--#include file="bottom.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -