📄 mod_teacher.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 teacher 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_teacher1.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="teacher_name" size="20" value="<%=rs("teacher_name")%>"></td>
</tr>
<tr>
<td width="37%" align="right">任课教师工号:</td>
<td width="63%" align="left"><input type="text" name="teacher_number" size="20" value="<%=rs("teacher_number")%>"></td>
</tr>
<tr>
<td width="37%" align="right">任课教师职称:</td>
<td width="63%" align="left"><input type="text" name="teacher_zc" size="20" value="<%=rs("teacher_zc")%>"></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 + -