📄 mod_class.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
response.write "<script>alert('您无此权限');document.location.href='index.asp';</script>"
response.end
end if
%>
<%
dim id
id=trim(request("id"))
set rs=server.createobject("adodb.recordset")
sql="select * from class where id="& id
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>
<div align="center">
<table border="0" width="400" bordercolorlight="#000000" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF">
<tr>
<td width="100%">
<form method="POST" action="mod_class1.asp">
<table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
<tr>
<td width="100%" colspan="2">
<p align="center">修改班级信息</td>
</tr>
<tr>
<td width="37%" align="right">班级名称:</td>
<td width="63%" align="left"><input type="text" name="stclass" size="20" value="<%=rs("stclass")%>"></td>
</tr>
<tr>
<td width="37%" align="right">班级人数:</td>
<td width="63%" align="left"><input type="text" name="class_number" size="20" value="<%=rs("class_number")%>"></td>
</tr><input type="hidden" value="<%=id%>" name="id">
<tr>
<td width="100%" colspan="2">
<p align="center"><input type="submit" value="提交" name="B1"><input type="reset" value="全部重写" name="B2"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -