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

📄 search.asp

📁 一个带有后台管理的小偷程序
💻 ASP
字号:
<!--#include file=bty888.inc--><!--#include file=Config.asp-->
<%
Server.ScriptTimeOut=120
dim id
on error resume next 
	page=request("page")
	if page="" then
	page=1
	url="http://www.skycn.com/search.php?ss_name="&request("ss_name")&"&sor="&request("sor")
	else
	offset=20*(page-1)
	url="http://www.skycn.com/search.php?offset="&offset&"&ss_name="&request("ss_name")&"&sor="&request("sor")
	end if
	searchcode=getHTTPPage(url)
	if err.number=0 then
	start=Instr(searchcode,"找到</b>:")+7
	over=Instr(searchcode,"<b>显示")
	totalnum=mid(searchcode,start,over-start)
	start=Instr(searchcode,"共")+1
	over=Instr(searchcode,"页 |")
	totalpage=mid(searchcode,start,over-start)
	start=Instr(searchcode,"</font></td></tr><tr><td align=left>")+17
	over=Instr(searchcode,"</td></tr></td></tr></table>        </td></tr>")
	listcode=mid(searchcode,start,over-start)
	listarr=split(listcode,"<tr><td align=left>")
	for i=1 to ubound(listarr)
	over=Instr(listarr(i),"<tr><td bgcolor=#FFCC00 colspan=4>")
	softlistcode=mid(listarr(i),1,over-1)
	softlistcode=replace(softlistcode,"soft/","soft.asp?id=")
	softlistcode=replace(softlistcode,"article/","article.asp?id=")
	softlistcode=replace(softlistcode,".html","")
	start=Instr(softlistcode,"[<a")+1
	over=Instr(softlistcode,"</a>]<br>")+4
	typecode=mid(softlistcode,start,over-start)
	typestr=right(typecode,15)
	typea=left(typestr,4)
	softlistcode=replace(softlistcode,typecode,typea)
	softcode=softcode&"<tr bgcolor=#F5F5F5><td align=left><img src='images/aer.gif' align='absmiddle'>"&softlistcode
	next
	Erase softlistarr
	else 
		wscript.echo err.description 
	end if
	myCache.makeEmpty()
	set myCache=nothing
%>
<HTML>
<HEAD>
<TITLE>软件搜索 → <%=DownName%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK href="<%=WebUrl%>/favicon.ico" rel="shortcut icon">
<meta name=description content="软件搜索 软件更新 程序在线升级<%=Downdescription%>"><meta name="keywords"content="软件搜索 软件更新 程序在线升级<%=Downkeywords%>">
<meta name=robots content=all><meta name=Keywords><LINK href="images/style.css" type=text/css rel=stylesheet>
<BODY leftMargin=0 topMargin=0>
<DIV id=hint style="DISPLAY: none"></DIV>
<!--#include file="head.asp" --></HEAD>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0" class=2b>
  <tr> 
    <td width="772" height="24" bgcolor="#FFFFFF"><img src="images/tp009.gif" width="15" height="15" align="absmiddle"> 
      当前位置:<a href="index.asp">软件下载</a> → 搜索结果→ 列表</td>
  </tr>
</table>
<tr>
  <td bgcolor="#FFFFFF"> <table width="770" border="0" align="center" cellpadding="0" cellspacing="0" class=2b>
      <tr bgcolor="#CCCCCC"> 
        <td height="1" colspan="2"></td>
      </tr>
      <tr> 
        <td height="2" colspan="2"></td>
      </tr>
      <tr>
        <form name="form1" method="post" action="search.asp">
          <td width="113" height="22" bgcolor="#eeeeee"><img src="images/zxgg.gif" width="113" height="22"></td>
          <td bgcolor="#eeeeee"> <input type="text" name="ss_name" size="16" maxlength="40"> 
            <select name="sor" >
              <option value="00" >全部软件</option>
              <option value="01">国产软件</option>
              <option value="02">国外软件</option>
              <option value="03">汉化补丁</option>
              <option value="wz" >软件资讯</option>
            </select> <input type="submit" name="Submit" value=" 搜 索 "> </td>
        </form>
      </tr>
      <tr> 
        <td height="3" colspan="2" bgcolor="#CCCCCC"></td>
      </tr>
    </table>
    <table width="770" border="0" align="center" cellpadding="0" cellspacing="0" class=4b>
      <tr> 
        <td bgcolor="#F5F5F5">软件名称</td>
        <td align="center" bgcolor="#F5F5F5">整理日期</td>
        <td align="center" bgcolor="#F5F5F5">人气</td>
        <td align="center" bgcolor="#F5F5F5">软件大小</td>
      </tr>
      <%=softcode%> 
      <tr bgcolor="#FCFCFC"> 
        <td colspan="5"><table width="100%">
            <tr> 
              <td>共搜索到:<b><%=totalnum%></b> 条记录 页次:<b><%=page%></b>/<b><%=totalpage%></b>页 
                每页<b>20</b></td>
              <td align="right">分页: 
                <%
for i=1 to totalpage
if i=page then
response.write "<font color=#ff0000>["&i&"]</font>"
else
response.write "<a href='?page="&i&"&ss_name="&request("ss_name")&"&sor="&request("sor")&"'>["&i&"]</a>"
end if
next
%>
              </td>
            </tr>
          </table></td>
      </tr>
    </table>
    <!-- 页面内容结束 -->
    <!-- 页面底部开始 -->
     <!--#include file="footer.asp" -->
</BODY>
</HTML>
<%
	  function getHTTPPage(url) 
		on error resume next 
		dim http 
		set http=Server.createobject("Microsoft.XMLHTTP") 
		Http.open "GET",url,false 
		Http.send() 
		if Http.readystate<>4 then
			exit function 
		end if 
		getHTTPPage=bytes2BSTR(Http.responseBody) 
		set http=nothing
		if err.number<>0 then err.Clear  
	end function 
	Function bytes2BSTR(vIn) 
		dim strReturn 
		dim i1,ThisCharCode,NextCharCode 
		strReturn = "" 
		For i1 = 1 To LenB(vIn) 
			ThisCharCode = AscB(MidB(vIn,i1,1)) 
			If ThisCharCode < &H80 Then 
				strReturn = strReturn & Chr(ThisCharCode) 
			Else 
				NextCharCode = AscB(MidB(vIn,i1+1,1)) 
				strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode)) 
				i1 = i1 + 1 
			End If 
		Next 
		bytes2BSTR = strReturn 
	End Function 
%>

⌨️ 快捷键说明

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