📄 search.asp
字号:
<%
' 乘风电影V3.3 Mssql版
' 制 作:乘 风
' 开发网站:乘风原创程序
' 网站网址:http://www.qqcf.com
' 程序演示:http://www.qqcf.com/?action=try
' 最新版本下载:http://www.qqcf.com/?action=down
' 程序安装演示:http://www.qqcf.com/?Action=setup&Setup=cffilmforsql
' 使用帮助:http://www.qqcf.com/?Action=help&Help=cffilmforsql
' 功 能:
' 1.系统做免费或收费的电影网站都可以,支持免费,点数,包月等方式观看和下载电影
' 2.支持全站生成htm静态页面,生成速度极快,全自动生成
' 3.支持防盗链,用户无法获取实际链接,可随时更改所有内部影片的链接地址
' 4.在后台可以自由管理网站上的广告
' 5.支持网站上的注册用户在线支付购买电影点数,也可升级包月等方式
' 6.可以完全整合原有网站上的注册用户使用,无需在电影系统重新注册直接登陆即可
%>
<%
response.expires= -1
response.addheader "pragma","no-cache"
response.AddHeader "cache-control","no-store"
%>
<%
PathLayer=2
If PathLayer=1 Then
Path_Index=""
ElseIf PathLayer=2 Then
Path_Index="../"
End If
%>
<!--#Include File="../Conn.asp"-->
<!--#Include File="../QQCF_MyFunction.asp"-->
<!--#Include File="../QQCF_GetCookie.asp"-->
<%
Keyword=GoBack(ChkStr(Trim(Request("Keyword")),1),"搜索关键字不能为空")
SearchType=CInt(GoBack(ChkStr(Request("SearchType"),2),"搜索类型不能为空"))
%>
<html>
<head>
<title>搜索结果-<%=Rsset("Title")%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="../QQCF_Style.asp"-->
</head>
<body>
<!--#include file="../Top.asp"-->
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="0" style="border-collapse: collapse">
<tr>
<td valign="top">
<TABLE align=center border=0 cellPadding=0 cellSpacing=0
width="100%">
<TBODY>
<TR>
<TD class=td1> </TD>
<TD class=td2> </TD>
<TD class=td3></TD>
</TR>
</TBODY>
</TABLE>
<TABLE align=center bgColor=#cccccc cellPadding=5 cellSpacing=1
style="WORD-BREAK: break-all" width="100%">
<TBODY>
<TR bgColor=#ffffff>
<TD class=tablebody1 colSpan=2 vAlign=top width=778><strong> </strong>
<%
Sql="Select * From CFFilm_Film Where 1=1"
If SearchType=1 Then
Sql=Sql&" And FilmName Like '%"&Keyword&"%'"
ElseIf SearchType=2 Then
Sql=Sql&" And Player Like '%"&Keyword&"%'"
End If
Sql=Sql & " Order By ID Desc"
Set Rs = Server.CreateObject("ADODB.Recordset")
Rs.Open Sql,Conn,1,1
If Not Rs.Eof Then
IF not IsNumeric(Request("page")) Or IsEmpty(Request("page")) Then
page=1
Else
Page=Int(Abs(Request("page")))
End if
rs.pagesize=10
totalrs=rs.RecordCount
totalpage=rs.pageCount
mypagesize=rs.pagesize
rs.absolutepage=page
Else
Response.Write "没有记录"
End If
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<%While Not Rs.Eof And MyPagesize>0%>
<tr>
<td colspan="6" width="100%"> </td>
</tr>
<tr>
<td valign=top>
<table width=330 border=0 cellspacing=6 cellpadding=0>
<tr>
<td width=135 rowspan=2 valign=top><TABLE width=134 height=184 border=0 cellPadding=0 cellSpacing=0 background=../qqcf_pic/e_bg_9.gif>
<TR>
<TD align=center>
<%
AllID=AllID&Rs("ID")&","
If Rs("FilmPic")="-" Then
Pic=Path_Index&"upload/default.gif"
Else
If Instr(Rs("FilmPic"),"http://")=0 Then
Pic=Path_Index&Rs("FilmPic")
Else
Pic=Rs("FilmPic")
End If
End If
Link=""
If RsSet("HtmOpen")=-1 Then
Link=Path_Index&"Htm/Show_"&Rs("ID")&".htm"
Else
Link=Path_Index&"Show/Show.asp?ID="&Rs("ID")
End IF
Response.write "<a target=_blank href="&Link&"><img border=0 height=170 src='"&Pic&"' width=120></a>"
%>
</td>
</TABLE></td>
<td><a target=_blank class=link2 href=<%=Link%>><%=Rs("FilmName")%></a></td>
</tr>
<tr>
<td>
<img src=../qqcf_pic/fang.gif width=15 height=15>别名:<%=Rs("FilmOtherName")%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>类别:<%=ClassName%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>主演:<%=Rs("Player")%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>地区:<%=GetPorduceArea(RS("PorduceArea"))%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>年份:<%If Rs("PorduceYear")>0 Then Response.write Rs("PorduceYear")&"年"%><%If Rs("PorduceMonth")>0 Then Response.write Rs("PorduceMonth")&"月"%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>上传:<%=Rs("AddDate")%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>推荐:<%Response.write "<img src=../qqcf_pic/STAR"&Rs("CommendLevel")&".GIF>"%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>浏览:<span id="clicktotal_<%=Rs("ID")%>"></span>
</td>
</tr>
<tr height=5 >
<td colspan=2 background=qqcf_pic/e_pic_dotlined.gif ><img src=../qqcf_pic/1px.gif width=5 height=5></td>
</tr>
</table>
<%
Rs.MoveNext
MyPagesize=MyPagesize-1
%>
</td>
<td valign=top>
<%If Not Rs.Eof Then%>
<table width=330 border=0 cellspacing=6 cellpadding=0>
<tr>
<td width=135 rowspan=2 valign=top><TABLE width=134 height=184 border=0 cellPadding=0 cellSpacing=0 background=../qqcf_pic/e_bg_9.gif>
<TR>
<TD align=center>
<%
AllID=AllID&Rs("ID")&","
If Rs("FilmPic")="-" Then
Pic=Path_Index&"upload/default.gif"
Else
If Instr(Rs("FilmPic"),"http://")=0 Then
Pic=Path_Index&Rs("FilmPic")
Else
Pic=Rs("FilmPic")
End If
End If
Link=""
If RsSet("HtmOpen")=-1 Then
Link=Path_Index&"Htm/Show_"&Rs("ID")&".htm"
Else
Link=Path_Index&"Show/Show.asp?ID="&Rs("ID")
End IF
Response.write "<a target=_blank href="&Link&"><img border=0 height=170 src='"&Pic&"' width=120></a>"
%>
</td>
</TABLE></td>
<td><a target=_blank class=link2 href=<%=Link%>><%=Rs("FilmName")%></a></td>
</tr>
<tr>
<td>
<img src=../qqcf_pic/fang.gif width=15 height=15>别名:<%=Rs("FilmOtherName")%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>类别:<%=ClassName%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>主演:<%=Rs("Player")%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>地区:<%=GetPorduceArea(RS("PorduceArea"))%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>年份:<%If Rs("PorduceYear")>0 Then Response.write Rs("PorduceYear")&"年"%><%If Rs("PorduceMonth")>0 Then Response.write Rs("PorduceMonth")&"月"%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>上传:<%=Rs("AddDate")%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>推荐:<%Response.write "<img src=../qqcf_pic/STAR"&Rs("CommendLevel")&".GIF>"%><br>
<img src=../qqcf_pic/fang.gif width=15 height=15>浏览:<span id="clicktotal_<%=Rs("ID")%>"></span>
</td>
</tr>
<tr height=5 >
<td colspan=2 background=qqcf_pic/e_pic_dotlined.gif ><img src=../qqcf_pic/1px.gif width=5 height=5></td>
</tr>
</table>
<%
Rs.MoveNext
MyPagesize=MyPagesize-1
End If
%>
</td>
</tr>
<%Wend%>
</table>
<table border="0" align="center" cellpadding="0" cellspacing="2">
<tr>
<td valign="bottom"><div align="right">
<%
Link=""
Link="?Keyword="&Keyword&"&SearchType="&SearchType&"&Page=1"
%>
<a href="<%=Link%>">第一页</a>
<%
if page>1 then
Link=""
Link="?Keyword="&Keyword&"&SearchType="&SearchType&"&Page="&Page-1
%>
<a href='<%=Link%>'>上一页</a>
<%
end if
%>
<%
if page<rs.pagecount then
Link="?Keyword="&Keyword&"&SearchType="&SearchType&"&Page="&Page+1
%>
<a href='<%=Link%>'>下一页</a>
<%
end if
%>
<%
Link=""
Link="?Keyword="&Keyword&"&SearchType="&SearchType&"&Page="&TotalPage
%>
<a href="<%=Link%>">最后一页</a>
页次:<font color="#ff0000"><%=page%></font>/<%=totalpage%> 共<%=rs.pagecount%>条记录 </div></td>
<form name="form1" method="post" action="jczx.asp"><td>
转到第<select name="page" size="1" class=smallselsect id="select" style='BACKGROUND-COLOR:#ffffff;font-family: 宋体; font-size: 9pt;' onChange="window.location=form.page.options[form.page.selectedIndex].value">
<%for i=1 to totalpage
Link=""
Link="?Keyword="&Keyword&"&SearchType="&SearchType&"&Page="&I
response.write "<option value="&Link
if page=i then
response.write " selected"
end if
response.write ">"& i &"</option>"
next
%>
</select>页
</td></form>
</tr>
</table>
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0
width="100%">
<TBODY>
<TR>
<TD class=td4></TD>
<TD class=td5 width=900px></TD>
<TD class=td6></TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
</table>
<!--#include file="../Bottom.asp"-->
<%
If Len(AllID)>0 Then AllID=Left(AllID,Len(AllID)-1)
Response.write "<script src='../CF.aspx?Action=clickshow&AllID="&AllID&"'></script>"
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -