📄 class_manager.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
response.write "<script>alert('您无此权限');document.location.href='index.asp';</script>"
response.end
end if
%>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from class"
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>班级信息管理</title>
<link rel="stylesheet" href="style.css">
</head>
<body topmargin="0">
<!--#include file="top.asp"-->
<div align="center">
<center>
<table width="738" height="35">
<td background="images/top_1.jpg"> <a href="class_manager.asp">班级信息列表</a>
| <a href="add_class.asp">添加班级信息</a> | <a href="search_class.asp">查询班级信息</a>
| <a href="add_test.asp">添加考试信息</a></td></table>
</center>
</div>
<div align="center">
<center>
<table border="1" width="400" bordercolorlight="#000000" cellspacing="0" cellpadding="4" bordercolordark="#FFFFFF">
<tr>
<td width="99" align="center">序号</td>
<td width="99" align="center">班级名称</td>
<td width="100" align="center">班级人数</td>
<td width="50" align="center">修改</td>
<td width="50" align="center">删除</td>
</tr>
<%if not rs.eof then%>
<%do while not rs.eof%>
<tr>
<td width="99" align="center"><%=rs("id")%></td>
<td width="99" align="center"><%=rs("stclass")%></td>
<td width="100" align="center"><%=rs("class_number")%></td>
<td width="50" align="center"><a href="mod_class.asp?id=<%=rs("id")%>">修改</a></td>
<td width="50" align="center"><a href="del_class.asp?id=<%=rs("id")%>">删除</a></td>
</tr>
<%rs.movenext%>
<%loop%>
<%else%>
<tr>
<td width="388" colspan="5"><marquee>暂无班级添加</marquee></td>
</tr>
<%end if%>
</table>
</center>
</div>
<p></p>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -