📄 search.asp
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>搜索结果</title>
<style type="text/css">
<!--
body,td,th {font-family: 宋体, Arial;font-size: 12px;}
a {font-size: 12px;}
a:link {text-decoration: none;}
a:visited {text-decoration: none;}
a:hover {text-decoration: none;}
a:active {text-decoration: none;}
-->
</style>
<script language= "javascript">
function newpage(htmlurl) {
var newwin=window.open(htmlurl,"newWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=20,left=200,width=305,height=288");
newwin.focus();
return false;
}
</script>
</head>
<body link="#000033" vlink="#000033" alink="#000033" leftmargin="0" topmargin="0">
<!--#include file="item.asp"-->
<%
set rs = server.CreateObject("adodb.recordset")
name=trim(request("keyword"))
sql="select * from data where (name Like '%"& name &"%' or item Like '%"& name &"%')"
rs.open sql,conn,1,1
if rs.eof then
response.write "<script language=JavaScript>alert('对不起,没有找到您要找的电影!');"
response.write "this.location.href='vbscript:history.back()';</SCRIPT>"
response.end
else
%>
<!--#include file="show.asp"-->
<%
end if
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -