📄 search.asp
字号:
<!--#include file="conn.asp"-->
<%
Set rs = Server.CreateObject("ADODB.Recordset")
name=trim(request("keyword"))
if name="" then
response.write "<SCRIPT language=JavaScript>alert('查找字符不能为空!');"
response.write "this.location.href='vbscript:history.back()';</SCRIPT>"
response.end
end if
sql="select * from data WHERE (name Like '%"& name &"%' or item Like '%"& name &"%') and yesno='1' order by id desc"
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
%>
<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>
<style type="text/css">
<!--
td { font-size: 12px; line-height: 17px }
body { font-size: 12px; line-height: 17px }
p { margin-top: 1px; margin-bottom: 1px }
a:link { text-decoration: none; color: black }
a:visited { text-decoration: none; color: black }
a:active { text-decoration: none }
a:hover { text-decoration: underline; color: red }
-->
</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=400,height=350");
newwin.focus();
return false;
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--//
function checkadd()
{
if (document.search.keyword.value.length<1)
{
alert("请输入查询关键字!");
document.search.keyword.focus();
return false;
}
if (document.search.keyword.value=="输入关键字")
{
alert("请输入查询关键字!");
document.search.keyword.focus();
return false;
}
}
//-->
</SCRIPT>
</head>
<body leftmargin="0" topmargin="0">
<div align="center">
<center>
<%
const maxperpage=50
dim currentpage
rs.pagesize=maxperpage
currentpage=request.querystring("pageid")
if currentpage="" then
currentpage=1
elseif currentpage<1 then
currentpage=1
else
currentpage=clng(currentpage)
if currentpage > rs.pagecount then
currentpage=rs.pagecount
end if
end if
if not isnumeric(currentpage) then
currentpage=1
end if
dim totalput,n
totalput=rs.recordcount
if totalput mod maxperpage=0 then
n=totalput\maxperpage
else
n=totalput\maxperpage+1
end if
if n=0 then
n=1
end if
rs.move(currentpage-1)*maxperpage
%>
<!--#include file="head.asp"-->
<table width="760" border="0" cellpadding="3" cellspacing="1" bgcolor="#D78311">
<tr bgcolor="#FFFFFF">
<td width="17%"><div align="center"><a href="http://www.089.cn" target="_blank">089免费电影</a></div></td>
<td width="17%"><div align="center"><a href="http://www.265vod.com" target="_blank">秋风免费电影网</a></div></td>
<td width="17%"><div align="center"><a href="http://www.e999.com" target="_blank"><strong>免费电影之家</strong></a></div></td>
<td width="17%"><div align="center"><a href=http://www.juedui.com/link/in.asp?user=jhtcao target=_blank>[绝对网址]</a></div></td>
<td width="17%"><div align="center"><a href="http://www.ynebook.com" target="_blank">天天免费电影网</a></div></td>
<td><div align="center"><a href="http://www.e393.com" target="_blank">E393免费电影</a></div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="center"><a href="http://www.hqss.com">环球搜索免费电影</a><br>
</div></td>
<td><div align="center"><a href="http://www.yyfilm.com" target="_blank">永远完全免费电影</a></div></td>
<td><div align="center"><a href="http://www.66qu.net" target="_blank">66全免费电影</a></div></td>
<td><div align="center"><a href="http://www.39cc.com" target="_blank">39完全免费电影</a></div></td>
<td><div align="center"><a href="http://www.265vod.com" target="_blank">秋风免费电影网</a></div></td>
<td><div align="center"><a href="http://www.f263.com">超级精选图库</a></div></td>
</tr>
</table>
<table border="1" width="760" cellspacing="0" cellpadding="0" bordercolorlight="#F1F1F1" bordercolordark="#FFFFFF">
<tr>
<td width="758" colspan="6" height="30">
<p align="left"> 页数:<%=currentpage%>/<% =n%>
<%k=currentpage
if k<>1 then%>
<a href="search.asp?pageid=1">首页</a>
<a href="search.asp?pageid=<%=k-1%>">上一</a>
<%else%>
首页 上一页
<%end if%>
<%if k<>n then%>
<a href="search.asp?pageid=<%=k+1%>">下一</a>
<a href="search.asp?pageid=<%=n%>">尾页</a>
<%else%>
下一页 尾页
<%end if%>
共搜索到<%=totalput%>部影片</p>
</td>
</tr>
<center>
<tr>
<td width="30%" height="30" background="../images/bak12.gif"> <img border="0" src="../images/biao_left.gif" width="15" height="15">
影片名字</td>
<td width="20%" height="30" align="center" background="../images/bak12.gif">在线播放</td>
<td width="10%" height="30" align="center" background="../images/bak12.gif">电影类型</td>
<td width="10%" height="30" align="center" background="../images/bak12.gif">播放格式</td>
<td width="10%" height="30" align="center" background="../images/bak12.gif">点击</td>
<td width="10%" height="30" align="center" background="../images/bak12.gif">加入日期</td>
<td width="10%" height="30" align="center" background="../images/bak12.gif">推荐度</td>
</tr>
<%
i=0
do while i< maxperpage and not rs.eof
%>
<tr>
<td height="30"><div align="left"> <img border="0" src="../images/dian.gif"> <%=rs("name")%></div></td>
<td height="30" align="center">
<%
if rs("address1")<>"" then
response.write "<a href=html/"&rs("id")&".htm target=_blank>[播放]</a> "
end if
%>
</td>
<td height="30" align="center"><%=rs("item")%></td>
<td height="30" align="center"><%=rs("type")%></td>
<td height="30" align="center"><%=rs("hits")%></td>
<td height="30" align="center"><%=rs("date")%></td>
<td height="30" align="center"><a href=http://www.rmbchina.com/movie/vvsms.htm target=_blank>千G电影下载</a></td>
</tr>
<%
i=i+1
rs.movenext
loop
end if
set rs=nothing
%>
</center>
<tr>
<td width="758" colspan="6" height="30">
<p align="left"> 页数:<%=currentpage%>/<% =n%>
<%k=currentpage
if k<>1 then%>
<a href="search.asp?pageid=1&keyword=<%=name%>">首</a>
<a href="search.asp?pageid=<%=k-1%>&keyword=<%=name%>">上一页</a>
<%else%>
首页 上一页
<%end if%>
<%if k<>n then%>
<a href="search.asp?pageid=<%=k+1%>&keyword=<%=name%>">下一页</a>
<a href="search.asp?pageid=<%=n%>&keyword=<%=name%>">尾</a>
<%else%>
下一页 尾页
<%end if%>
共搜索到<%=totalput%>部影片</p>
</td>
</tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><script language="Javascript">var vid=13458;</script> <script language="Javascript" src="http://imgu.21cn.com/v/js/union_login_8_1.js"></script></td>
</tr>
</table>
</div>
<!--#include file="foot.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -