⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 search.asp

📁 一心FLASH动画欣赏系统
💻 ASP
字号:
<!--#include file="conn.asp"-->
<!--#include file="inc_menu.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 gequ WHERE name Like '%"& name &"%' or address Like '%"& name &"%' 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 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>歌曲欣赏 - 搜索结果</title>
<SCRIPT language=JavaScript>
<!--
function expandingWindow(website) {
var heightspeed = 2; // vertical scrolling speed (higher = slower)
var widthspeed = 7; // horizontal scrolling speed (higher = slower)
var leftdist = 0; // distance to left edge of window
var topdist = 0; // distance to top edge of window
var winwidth = window.screen.availWidth - leftdist;
var winheight = window.screen.availHeight - topdist;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist + ",width=1,height=1,scrollbars=yes");
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed) {
sizer.resizeTo("1", sizeheight);
}
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed) {
sizer.resizeTo(sizewidth, sizeheight);
}
sizer.location = website;
}
-->
</SCRIPT>
<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>
</head>

<body>
<!--#include file="head.asp"-->
<br>
<div align="center">
<center>
<table border="0" width="755" cellspacing="0" cellpadding="0">
  <tr>

    <td width="565" valign="top">
      <table border="0" width="100%"  cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%">

<%
'else
const maxperpage=90
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
i=0
do while i< maxperpage and not rs.eof
	red_name = replace(rs("name"),name,"<font color=#ff0000>"&name&"</font>")
%>

         [<A href="javascript:;" onclick="expandingWindow('<%=rs("address")%>')"><%=red_name%></A>]        
       
    <%                         
    i=i+1                          
    rs.movenext                       
    if i mod 6=0 then                      
	response.write "<br>"                                          
	end if                        
    loop                         
    end if                         
    %>        
          </td>        
        
        </tr>        
      </table>        
  <table border="0" width="100%" cellspacing="0" cellpadding="0">        
   <tr>        
    <td height="1">                            
      .............................................................................................                            
      </td>                      
   <tr>   
    <td height="30"><p align="center">页数:<%=currentpage%>/<% =n%>        
   	<%k=currentpage                                  
   	if k<>1 then%>              
   	<a href="index.asp?pageid=1">首页</a>                                  
   	<a href="index.asp?pageid=<%=k-1%>">上一页</a>                                  
   	<%else%>              
   	首页&nbsp;上一页                                  
   	<%end if%>              
   	<%if k<>n then%>                                  
   	<a href="index.asp?pageid=<%=k+1%>">下一页</a>                                  
   	<a href="index.asp?pageid=<%=n%>">尾页</a>                                  
   	<%else%>              
   	下一页&nbsp;尾页                                  
   	<%end if%>              
        共找到<font color="red"><%=totalput%></font>首歌曲</p>                                 
      </td>                           
   </tr>        
  </table>                      
    </td>              
        <td width="1" style="background-color: #C0C0C0">     
     
     
        </td>             
        <td width="184" valign="top">     
     
         <div align="center">       
  <center>       
  <table border="0" width="97%" cellspacing="0" cellpadding="0">       
    <tr>       
      <td width="100%"><form action="search.asp" method="post" name="search" target="_blank" >            
<p align="center">           
<input  maxLength="30" name="keyword" onfocus="this.value=''" size="10"  value="输入关键字">       
<input  type="submit" width="20" height="20" value="搜索" style="font-size: 12px">       
</form>                 
<p align="center">                 
<p align="center"><a href="login.asp">管理员登录</a>                 
</td>      
    </tr>      
  </table>      
  </center>      
</div>      
        </td>             
  </tr>             
</table> 
</center>
</div>
<br>            
<!--#include file="foot.asp"-->             
</body>                    
</html>                    
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -