search.asp
资源名称:qnmov30.rar [点击查看]
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:19k
源码类别:
家庭/个人应用
开发平台:
ASP/ASPX
- <!--#include file="articleconn.asp"-->
- <HTML><HEAD>
- <%set rs=conn.execute("select * from [home]")%>
- <TITLE><%=rs("homes")%></TITLE>
- <META http-equiv=Content-Type content="text/html; charset=gb2312">
- <LINK href="img/style.css" type=text/css rel=stylesheet>
- <META content="MSHTML 6.00.2800.1505" name=GENERATOR>
- <script language="JavaScript">
- <!--
- function checkinput()
- {
- if (document.search.keyword.value=="")
- {
- alert("请输入想查询的内容!");
- document.search.keyword.focus();
- return false;
- }
- return true;
- }
- -->
- </script>
- <SCRIPT language=javascript>
- <!--
- function MM_openBrWindow(theURL,winName,features) { //v2.0
- mediaWindow = window.open(theURL,winName,features);
- mediaWindow.focus();
- }
- //-->
- </SCRIPT>
- <script language="javascript">kstatus();function kstatus(){self.status="<%=rs("Description")%>";setTimeout("kstatus()",0);}</script>
- <SCRIPT language=JavaScript1.2>
- <!--
- function Show(divid) {
- divid.filters.revealTrans.apply();
- divid.style.visibility = "visible";
- divid.filters.revealTrans.play();
- }
- function Hide(divid) {
- divid.filters.revealTrans.apply();
- divid.style.visibility = "hidden";
- divid.filters.revealTrans.play();
- }
- //-->
- </SCRIPT>
- <script>
- function OpenWindow(htmurl,widths,heights)
- {
- var paramet = 'toolbar=no,resizable=no,scrollbars=no,width='+ widths + ',height=' + heights;
- newWindow = window.open(htmurl,"yule21",paramet);
- newWindow.focus();
- }
- </script>
- <script>
- IEver=navigator.appVersion.substring(navigator.appVersion.indexOf('MSIE')+5,navigator.appVersion.indexOf(';',17));
- if(IEver=="6.0")
- {
- ie6 = true;
- width_add = 10;
- height_add = 29;
- hand_add = -14;
- }
- else
- {
- ie6 = false;
- width_add = 10;
- height_add = 29;
- hand_add = 14;
- }
- function OpenWindow(PlayerURL)
- {
- if (ie6)
- newwindow=window.open('','','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=-1');
- else
- newwindow=window.open('','','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=-1');
- newwindow.moveTo(100,100);
- newwindow.resizeTo(440+width_add,428+height_add+hand_add);
- newwindow.focus();
- newwindow.location=PlayerURL;
- }
- function play(id)
- {
- OpenWindow('look.asp?id1='+id);
- }
- </script></HEAD>
- <BODY >
- <!--#include file=top.asp-->
- <TABLE cellSpacing=0 cellPadding=0 width=993 border=0>
- <TBODY>
- <TR>
- <TD bgColor=#7d7d7d height=1></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=0 cellPadding=0 width=993 border=0>
- <TBODY>
- <TR>
- <TD bgColor=#ffffff height=2></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=0 cellPadding=0 width=993 bgColor=#ffffff border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle>
- <TABLE cellSpacing=0 cellPadding=0 width=977 border=0>
- <TBODY>
- <TR>
- <TD background=img/2.gif height=8></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=1 cellPadding=0 width=977 bgColor=#b7b7b7 border=0>
- <TBODY>
- <TR>
- <TD bgColor=#ffffff>
- <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD>
- <TABLE height=94 cellSpacing=0 cellPadding=1 width="100%" border=0>
- <TBODY>
- <TR>
- <TD align=right width=189><IMG height=90 src="img/channel_title_movie.gif" width=188></TD>
- <TD>
- <OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 height=90 width=780 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>
- <PARAM NAME="movie" VALUE="img/banner_780x90.swf">
- <PARAM NAME="quality" VALUE="High">
- <embed src="img/banner_780x90.swf" quality="High" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" height="90"></embed></OBJECT></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD background=img/1.jpg height=12></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=0 cellPadding=0 width=977 border=0>
- <TBODY>
- <TR>
- <TD height=2></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=0 cellPadding=0 width=993 bgColor=#ffffff border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle height=173>
- <TABLE height=36 cellSpacing=0 cellPadding=0 width=977 border=0>
- <TBODY>
- <TR>
- <TD vAlign=top width=191 height=25>
- <!--#include file=left.asp--></TD>
- <TD width=2 valign="top"></TD>
- <TD width=1 bgColor=#c6c6c6 valign="top"></TD>
- <TD vAlign=top width=783>
- <TABLE cellSpacing=0 cellPadding=0 width=783 border=0>
- <TBODY>
- <TR>
- <TD><A href="/bfqxz/RealPlayer.exe"><IMG height=60 src="img/dl_01.jpg" width=179 border=0></A></TD>
- <TD><A href="/bfqxz/Windows Media Player.exe"><IMG height=60 src="img/dl_02.jpg" width=171 border=0></A></TD>
- <TD><A href="/bfqxz/ffdshow.exe"><IMG height=60 src="img/dl_03.jpg" width=168 border=0></A></TD>
- <TD><A href="/bfqxz/ie6setup.exe"><IMG height=60 src="img/dl_04.jpg" width=160 border=0></A></TD>
- <TD><A href="#"><IMG height=60 src="img/dl_05.jpg" width=105 border=0></A></TD></TR></TBODY></TABLE>
- <TABLE height=40 cellSpacing=0 cellPadding=0 width="100%" background=img/5.gif border=0>
- <TBODY>
- <TR>
- <TD width=116 valign="top">
- <img border="0" src="img/19.gif" width="116" height="32"></TD>
- <TD align=right><TABLE height=24 cellSpacing=0 cellPadding=0 border=0>
- <TBODY>
- <TR>
- <TD width=2><img src height=1 width=2></TD>
- </TR></TBODY></TABLE></TD>
- <TD align=right valign="top"><IMG height=31 src="img/7.gif" width=83></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR align=right>
- <TD><table border="0" cellspacing="0" width="100%" cellpadding="0" id="table8">
- <tr bordercolor="#111111">
- <TD vAlign=top align=left><table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="2"><%
- dim rstype
- dim typesql
- dim okname,typename1
- '---------------------------search----------------------
- name=trim(request("keyword"))
- name=replace(name,"'","''")
- 'Response.Write name
- if request("typeid")="片名" then
- sql="select * from learning where title Like '%"& name &"%' or title like title Like '%"& name &"%' or title Like '%"& name &"%'order by articleid desc"
- else
- sql="select * from learning where name Like '%"& name &"%' or name like name Like '%"& name &"%' or name Like '%"& name &"%'order by articleid desc"
- end if
- set rs=conn.execute(sql)
- 'Rsponse.Write rs.RecordCount
- if name="" then
- 'response.redirect"index.asp"
- response.write"<script>alert('查找字符不能为空格,请重输入查找的内容!请您返回重查');</Script><script Language=Javascript>location.href = '';</script>"
- response.end
- elseif rs.eof then
- response.write"<script>alert('对不起,暂时还没有你要查找的演员或影片! 请您返回重查');</Script><script Language=Javascript>location.href = '';</script>"
- response.end
- else
- Set rs= Server.CreateObject("ADODB.Recordset")
- rs.open sql,conn,1,1
- 'set rs=server.createobject("ADODB.recordset")
- 'rs.open sql,conn
- 'searchsub rs
- end if
- %>
- <%
- const MaxPerPage=6
- dim totalPut
- dim CurrentPage
- dim TotalPages
- dim i,j
- dim typename
- typename="软件搜索结果"
- if not isempty(request("page")) then
- currentPage=cint(request("page"))
- else
- currentPage=1
- end if
- set rst=server.CreateObject("ADODB.RecordSet")
- %>
- <%
- ' dim sql
- 'dim rs
- 'if request("hits")="1" then
- ' sql="select * from learning order by hits desc"
- 'else
- ' sql="select * from learning order by articleid desc"
- 'end if
- 'Set rs= Server.CreateObject("ADODB.Recordset")
- 'rs.open sql,conn,1,1
- if rs.eof and rs.bof then
- response.write "<script>alert('暂时还没有您要找的影片,请与管理员联系!')</Script>"
- response.end
- else
- totalPut=rs.recordcount
- totalPut=rs.recordcount
- if currentpage<1 then
- currentpage=1
- end if
- if (currentpage-1)*MaxPerPage>totalput then
- if (totalPut mod MaxPerPage)=0 then
- currentpage= totalPut MaxPerPage
- else
- currentpage= totalPut MaxPerPage + 1
- end if
- end if
- if currentPage=1 then
- showpage totalput,MaxPerPage,"search.asp"
- showContent
- showpage totalput,MaxPerPage,"search.asp"
- else
- if (currentPage-1)*MaxPerPage<totalPut then
- rs.move (currentPage-1)*MaxPerPage
- dim bookmark
- bookmark=rs.bookmark
- showpage totalput,MaxPerPage,"search.asp"
- showContent
- showpage totalput,MaxPerPage,"search.asp"
- else
- currentPage=1
- showpage totalput,MaxPerPage,"search.asp"
- showContent
- showpage totalput,MaxPerPage,"search.asp"
- end if
- end if
- end if
- sub showContent
- 'Split("Sun,Mon,Tue,Wed,Thu,Fri,Sat",",")
- BgImg1 = "06,04,08,09"
- BgImg2 = "12,11,14,15"
- dim i
- i=0
- %>
- <%i=0
- do while not rs.eof
- If i mod 2 = 0 Then MyBgImg = BgImg1 Else MyBgImg = BgImg2
- MyBgImg = Split(MyBgImg,",")
- %>
- </td>
- </tr>
- <tr>
- <td width="374" valign="top"><table width="295" height="100%" border="0" cellspacing="1" cellpadding="5" bgcolor="#DBDBDB">
- <tr>
- <td bgcolor="#ffffff" width="110"><a target="_blank" title="影片名称:<%=rs("title")%>
- 主演:<%content=rs("name")
- if len(content)>8 then content=left(content,8)&"?-"
- response.write content
- %>
- 上传时间:<%=rs("dateandtime")%>
- 观看次数:<%=rs("hits")%>′?
- 站长:<%=webname%>
- " href="movie.asp?id=<%=rs("articleid")%>"><img border="0" height="152" src="<%if rs("domurl")="" then%>img/w.gif<%else%><%=rs("domurl")%><%end if%>" width="110"></a></td>
- <td bgcolor="#ffffff" valign="top"><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td align="center" bgcolor="#E9E9E9"><span class="style2"></span></td>
- <td colspan="2" align="center" bgcolor="#E9E9E9"><div align="left"><span class="style2"> <strong> <span class="3dfont2"></span></strong><strong><span class="3dfont2"><a target="_blank" title="影片名称:<%=rs("title")%>
- 主演:<%content=rs("name")
- if len(content)>8 then content=left(content,8)&"?-"
- response.write content
- %>
- 上传时间:<%=rs("dateandtime")%>
- 观看次数:<%=rs("hits")%>′?
- 站长:<%=webname%>" href="movie.asp?id=<%=rs("articleid")%>"><strong>
- <%content=rs("title")
- if len(content)>13 then content=left(content,13)&""
- response.write content
- %>
- </strong></a></span> </strong></span></div></td>
- </tr>
- <tr>
- <td colspan="3">类别: <%=rs("typeid")%></td>
- </tr>
- <tr>
- <td colspan="3">主演:
- <%content=rs("name")
- if len(content)>5 then content=left(content,5)&"?-"
- response.write content
- %></td>
- </tr>
- <tr>
- <td colspan="3">级别:
- <% if rs("canlook")=1 then%>
- 普通电影
- <%elseif rs("canlook")=3 then%>
- 黄金电影
- <%elseif rs("canlook")=0 then%>
- 免费电影
- <%end if%></td>
- </tr>
- <tr>
- <td colspan="3">观看:<%=rs("hits")%>次</td>
- </tr>
- <tr>
- <td width="10%" align="center"> </td>
- <td width="45%" align="center"><div align="left"><a href="movie.asp?id=<%=rs("articleid")%>" target="_blank"><img src="images/online.gif" width="82" height="23" border="0"></a> </div></td>
- <td width="45%" align="center"><a href="movie.asp?id=<%=rs("articleid")%>" target="_blank"><img src="images/download.gif" width="82" height="23" border="0"></a></td>
- </tr>
- </table></td>
- </table>
- <%rs.movenext%></td>
- <td width="396"><% If not rs.eof Then %>
- <table width="295" height="100%" border="0" cellspacing="1" cellpadding="5" bgcolor="#DBDBDB">
- <tr>
- <td bgcolor="#ffffff" width="110"><a target="_blank" title="影片名称:<%=rs("title")%>
- 主演:<%content=rs("name")
- if len(content)>8 then content=left(content,8)&"?-"
- response.write content
- %>
- 上传时间:<%=rs("dateandtime")%>
- 观看次数:<%=rs("hits")%>′?
- 站长:<%=webname%>
- " href="movie.asp?id=<%=rs("articleid")%>"><img border="0" height="152" src="<%if rs("domurl")="" then%>img/w.gif<%else%><%=rs("domurl")%><%end if%>" width="110"></a></td>
- <td bgcolor="#ffffff" valign="top"><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td align="center" bgcolor="#E9E9E9"><span class="style2"></span></td>
- <td colspan="2" align="center" bgcolor="#E9E9E9"><div align="left"><span class="style2"> <strong> <span class="3dfont2"></span></strong><strong><span class="3dfont2"><a target="_blank" title="影片名称:<%=rs("title")%>
- 主演:<%content=rs("name")
- if len(content)>8 then content=left(content,8)&"?-"
- response.write content
- %>
- 上传时间:<%=rs("dateandtime")%>
- 观看次数:<%=rs("hits")%>′?
- 站长:<%=webname%>" href="movie.asp?id=<%=rs("articleid")%>"><strong>
- <%content=rs("title")
- if len(content)>13 then content=left(content,13)&""
- response.write content
- %>
- </strong></a></span> </strong></span></div></td>
- </tr>
- <tr>
- <td colspan="3">类别: <%=rs("typeid")%></td>
- </tr>
- <tr>
- <td colspan="3">主演:
- <%content=rs("name")
- if len(content)>5 then content=left(content,5)&"?-"
- response.write content
- %></td>
- </tr>
- <tr>
- <td colspan="3">级别:
- <% if rs("canlook")=1 then%>
- 普通电影
- <%elseif rs("canlook")=3 then%>
- 黄金电影
- <%elseif rs("canlook")=0 then%>
- 免费电影
- <%end if%></td>
- </tr>
- <tr>
- <td colspan="3">观看:<%=rs("hits")%>次</td>
- </tr>
- <tr>
- <td width="10%" align="center"> </td>
- <td width="45%" align="center"><div align="left"><a href="movie.asp?id=<%=rs("articleid")%>" target="_blank"><img src="images/online.gif" width="82" height="23" border="0"></a> </div></td>
- <td width="45%" align="center"><a href="movie.asp?id=<%=rs("articleid")%>" target="_blank"><img src="images/download.gif" width="82" height="23" border="0"></a></td>
- </tr>
- </table></td>
- </table>
- <%rs.movenext%>
- </td>
- </tr>
- <tr>
- <% End If %>
- </tr>
- <tr>
- <td colspan="2"><% i=i+2
- if i>=MaxPerPage then exit do
- loop
- %>
- </td>
- </tr>
- </table>
- <%
- end sub
- function showpage(totalnumber,maxperpage,filename)
- dim n
- if totalnumber mod maxperpage=0 then
- n= totalnumber maxperpage
- else
- n= totalnumber maxperpage+1
- end if
- %>
- <table border="0" cellspacing="0" height="25" width="591" background="images/top-bg3.gif">
- <form method=Post action="<%=filename%>?typeid=<%=typeid%>">
- <tr>
- <td>
- <font color="000000" class="fontshadow">〓 <%=typeid%> 〓 共有<font color="ff0000"><b><%=totalnumber%></b></font>部 当前:第<font color="ff0000"><strong><%=CurrentPage%></strong></font>页/共<font color="ff0000"><strong><%=n%></strong></font>页
- <td><div align="right">
- <%if CurrentPage<2 then%>
- <font color="888888">首页 上一页
- <%else%>
- <a class=left href="<%=filename%>?typeid=<%=typeid%>&page=1&"><font color="000000">首页</font></a><font color="000000"> <a class=left href="<%=filename%>?typeid=<%=typeid%>&page=<%=CurrentPage-1%>"><font color="000000">上一页</font></a><font color="000000">
- <%
- end if
- if n-currentpage<1 then
- %>
- <font color="888888">下一页 尾页
- <%else%>
- <a class=left href="<%=filename%>?typeid=<%=typeid%>&page=<%=(CurrentPage+1)%>"><font color="000000">下一页</font></a><font color="000000"> <a class=left href="<%=filename%>?typeid=<%=typeid%>&page=<%=n%>"><font color="000000">尾页</font></a><font color="000000">
- <%end if%>
- </font></font></font></font></font></font></div>
- <font color="888888"><font color="000000"><font color="000000"><font color="888888"><font color="000000"><font color="000000">
- <td align="center"><select name="page" style="color:#000000;font-size: 9pt" onchange="javascript:submit()">
- <%for i = 1 to n%>
- <option value="<%=i%>" <%if cint(CurrentPage)=cint(i) then%> selected <%end if%>>第<%=i%>页</option>
- <%next%>
- </select></td>
- </font></font></font></font></font></font></font></tr>
- </form>
- </table>
- <%
- end function
- %>
- <%
- sub gotopage
- end sub
- %>
- <tr>
- <td> </td>
- </tr>
- </table>
- </TD>
- </TR></TBODY></TABLE>
- </TD>
- </TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
- <!--#include file=bottom.asp-->
- </BODY></HTML>