?? 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">
<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">
<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>
<!--#include file="down.asp"-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -