📄 search_sub1.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("admin")="" then
response.write "<script>alert('您无此权限');document.location.href='index.asp';</script>"
response.end
end if
%>
<%
dim subject
subject=trim(request("subject"))
if subject="" then
response.write "输入不能为空"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from subject where subject like '%"&subject&"%'"
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="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">
<center>
<table border="1" width="400" cellspacing="0" cellpadding="5" bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr>
<td width="100%" colspan="5">
<p align="center">查找结果</p>
</td>
</tr>
<tr>
<td width="99" align="center">序号</td>
<td width="99" align="center">科目</td>
<td width="100" align="center">修改</td>
<td width="100" 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("subject")%></td>
<td width="100" align="center"><a href="mod_subject.asp?id=<%=rs("id")%>">修改</a></td>
<td width="100" align="center"><a href="del_subject.asp?id=<%=rs("id")%>">删除</a></td>
</tr>
<%rs.movenext%>
<%loop%>
<%else%>
<tr>
<td width="100%" colspan="5"><marquee>没有您所查找的科目</marquee></td>
</tr>
<%end if%>
</table>
</center>
</div>
<%
rs.close
set rs=nothing
%>
<p></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -