📄 search_teacher.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
response.write "<script>alert('您无此权限');document.location.href='index.asp';</script>"
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<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="subject_manager.asp">科目列表</a>
| <a href="add_subject.asp">添加科目</a> | <a href="search_sub.asp">科目查询</a>
| <a href="teacher_manager.asp">任课教师列表</a> | <a href="add_teacher.asp">添加任课教师</a>
| <a href="search_teacher.asp">任课教师查询</a></table>
</center>
</div>
<div align="center">
<table border="0" width="500" cellspacing="0" cellpadding="0">
<tr>
<td width="100%">
<form method="POST" action="search_teacher1.asp">
<table border="1" width="100%" bordercolorlight="#000000" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF">
<tr>
<td width="33%" align="right">按任课教师工号查询:</td>
<td width="33%" align="center"><input type="text" name="teacher_number" size="20"></td>
<td width="34%" align="center"><input type="submit" value="提交" name="B1"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</div>
<%
set rs=server.createobject("adodb.recordset")
sql="select top 10 * from teacher order by id desc"
rs.open sql,conn,1,1
%>
<div align="center">
<center>
<table border="1" width="500" bordercolorlight="#000000" cellspacing="0" cellpadding="4" bordercolordark="#FFFFFF">
<tr>
<td width="100%" colspan="2">最新添加的任课教师信息列表(10条)</td>
</tr>
</table>
<table border="1" width="500" bordercolorlight="#000000" cellspacing="0" cellpadding="4" bordercolordark="#FFFFFF">
<tr>
<td width="49" align="center">序号</td>
<td width="99" align="center">教师名称</td>
<td width="99" align="center">教师工号</td>
<td width="99" align="center">教师职称</td>
<td width="75" align="center">修改</td>
<td width="75" align="center">删除</td>
</tr>
<%if not rs.eof then%>
<%do while not rs.eof%>
<tr>
<td width="49" align="center"><%=rs("id")%></td>
<td width="99" align="center"><%=rs("teacher_name")%></td>
<td width="99" align="center"><%=rs("teacher_number")%></td>
<td width="99" align="center"><%=rs("teacher_zc")%></td>
<td width="75" align="center"><a href="mod_teacher.asp?id=<%=rs("id")%>">修改</a></td>
<td width="75" align="center"><a href="del_teacher.asp?id=<%=rs("id")%>">删除</a></td>
</tr>
<%rs.movenext%>
<%loop%>
<%else%>
<tr>
<td width="388" colspan="6"><marquee>暂无教师信息添加</marquee></td>
</tr>
<%end if%>
</table>
</center>
</div>
<p></p>
<!--#include file="down.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -