?? 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=760,height=465");
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>
<script language="JavaScript">
var msg = "【華夏世紀影院】http://movie.vdinfo.com 本站電影完全免費,別忘了把本站介紹給您的好友哦! " ;
var interval = 120
var spacelen = 120;
var space10=" ";
var seq=0;
function Helpor_net() {
len = msg.length;
window.status = msg.substring(0, seq+1);
seq++;
if ( seq >= len ) {
seq = 0;
window.status = '';
window.setTimeout("Helpor_net();", interval );
}
else
window.setTimeout("Helpor_net();", interval );
}
Helpor_net();
</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 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%" background="../images/bg.gif" height="30"> <img border="0" src="../images/biao_left.gif" width="15" height="15"> 影片名字</td>
<td width="20%" background="../images/bg.gif" height="30" align="center">在線播放</td>
<td width="10%" background="../images/bg.gif" height="30" align="center">電影類型</td>
<td width="10%" background="../images/bg.gif" height="30" align="center">播放格式</td>
<td width="10%" background="../images/bg.gif" height="30" align="center">點擊</td>
<td width="10%" background="../images/bg.gif" height="30" align="center">加入日期</td>
<td width="10%" background="../images/bg.gif" height="30" align="center">推薦度</td>
</tr>
<%
i=0
do while i< maxperpage and not rs.eof
%>
<tr>
<td height="30"> <img border="0" src="../images/dian.gif"> <%=rs("name")%> <a href=# title='電影報錯' onClick="window.open('err.asp?id=<%=rs("id")%>','errr','scrollbars=no,resizable=no,width=200,height=80,menubar=no,top=168,left=168')"><font color=#CCCCCC>[x]</font></a></td>
<td height="30" align="center">
<%
if rs("address1")<>"" then
response.write "<a href=play1.asp?id="&rs("id")&"&see=1 style='text-decoration: underline' onClick='return newpage(this.href);'>[1]</a> "
end if
if rs("address2")<>"" then
response.write "<a href=play1.asp?id="&rs("id")&"&see=2 style='text-decoration: underline' onClick='return newpage(this.href);'>[2]</a> "
end if
if rs("address3")<>"" then
response.write "<a href=play1.asp?id="&rs("id")&"&see=3 style='text-decoration: underline' onClick='return newpage(this.href);'>[3]</a> "
end if
if rs("address4")<>"" then
response.write "<a href=play1.asp?id="&rs("id")&"&see=4 style='text-decoration: underline' onClick='return newpage(this.href);'>[4]</a> "
end if
if rs("address5")<>"" then
response.write "<a href=play1.asp?id="&rs("id")&"&see=5 style='text-decoration: underline' onClick='return newpage(this.href);'>[5]</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"><font color="red"><%=rs("mark")%></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>
</div>
<!--#include file="foot.asp"-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -