<!--#include file="sd_mdb.asp"-->
<%
pn=request("pn")
pr=request("pr")
tj=request("tj")
word=request("word")
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>搜索“<%=word%>”的结果，<%=sd_site%>,<%=sd_fbt%></TITLE>
<meta name="Keywords" content="<%=sd_Keywords%>">
<meta name="Description" content="<%=sd_Description%>">
<link href="sd_style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="container" class="wrapper">
<!--#include file="sd_top.asp"-->
<div id="main" align="center"><div class="linkcontent">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td colspan="2" height="30">声明：在打开对方ＱＱ时，请申明是在 <span class="STYLE5"><%=sd_siteurl%> </span>看到您的链接信息的，否则对方可能以为你的恶意骚扰，而把窗口给关了！</td></tr>
</table>
<%
if request("p")="" then
	currentPage=1
else
	currentPage=request("p")
end if
set rs=server.createobject("adodb.recordset")
MaxPerPage=36
if tj="1" then
sql="select * from sd_web where sd_pr like '%"&pr&"%' and sd_jy like '%"&pn&"%' and sd_webname like '%"&word&"%' order by sd_baidu desc"
elseif tj="2" then
sql="select * from sd_web where sd_pr like '%"&pr&"%' and sd_jy like '%"&pn&"%' and sd_webname like '%"&word&"%' order by sd_baidu asc"
elseif tj="3" then
sql="select * from sd_web where sd_pr like '%"&pr&"%' and sd_jy like '%"&pn&"%' and sd_webname like '%"&word&"%' order by sd_google desc"
elseif tj="4" then
sql="select * from sd_web where sd_pr like '%"&pr&"%' and sd_jy like '%"&pn&"%' and sd_webname like '%"&word&"%' order by sd_google asc"
elseif tj="5" then
sql="select * from sd_web where sd_pr like '%"&pr&"%' and sd_jy like '%"&pn&"%' and sd_webname like '%"&word&"%' order by sd_pr desc"
elseif tj="6" then
sql="select * from sd_web where sd_pr like '%"&pr&"%' and sd_jy like '%"&pn&"%' and sd_webname like '%"&word&"%' order by sd_pr asc"
elseif tj="7" then
sql="select * from sd_web where sd_pr like '%"&pr&"%' and sd_jy like '%"&pn&"%' and sd_webname like '%"&word&"%' order by sd_alexa asc"
elseif tj="8" then
sql="select * from sd_web where sd_pr like '%"&pr&"%' and sd_jy like '%"&pn&"%' and sd_webname like '%"&word&"%' order by sd_alexa desc"
elseif tj="9" then
sql="select * from sd_web where sd_pr like '%"&pr&"%' and sd_jy like '%"&pn&"%' and sd_webname like '%"&word&"%' order by sd_baiduqz desc"
elseif tj="10" then
sql="select * from sd_web where sd_pr like '%"&pr&"%' and sd_jy like '%"&pn&"%' and sd_webname like '%"&word&"%' order by sd_baiduqz asc"
else
sql="select * from sd_web where sd_pr like '%"&pr&"%' and sd_jy like '%"&pn&"%' and sd_webname like '%"&word&"%' order by sd_topendtime desc"
end if

rs.open sql,conn,1,1
if rs.eof then
	mpage=1
	allshu=0
else
	i=0
	rs.pagesize=MaxPerPage 
	mpage=rs.pagecount     
	rs.move  (currentPage-1)*MaxPerPage
	allshu=rs.recordcount

	pageno=currentPage
	if cint(pageno)>1 then
		pagefy=pagefy&"<li style='font-weight:bold'><a href='?p=1"&search&"' title='最前页'>&laquo;</a></li>"
	end if
	if cint(pageno)>1 then
		if cint(pageno)-1<2 then
			pagefy=pagefy&"<li style='font-weight:bold; font-size:9px'><a href='?p=1"&search&"' title='上一页'>&lt;</a></li>"
		else
			pagefy=pagefy&"<li style='font-weight:bold; font-size:9px'><a href='?p="&cint(pageno)-1 &search&"' title='上一页'>&lt;</a></li>"
		end if
	end if
	if cint(pageno)< mpage then
		pagefy=pagefy&"<li style='font-weight:bold; font-size:9px'><a href='?p="&pageno+1 &search&"' title='下一页'>&gt;</a></li>"
		pagefy=pagefy&"<li style='font-weight:bold'><a href='?p="&mpage &search&"'  title='最后页'>&raquo;</a></li>"
	end if
	pagefy=pagefy&"<li class='pagesone'>第 <font color='#FF0000'>"&pageno&"</font> / <font color='#0000FF'>"&mpage&"</font> 页</li>"
%>
  <table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" style="border:#FE962F solid 1px;BACKGROUND: #ffffff; ">
    <tr class="tr2">
      <td width="35" height="30">置顶</td>
      <td>类型</td>
      <td>友情链接名称</td>
      <td width="50">价格</td>
      <td width="74">链接分类</td>
      <td width="70">百度快照</td>
      <td width="80">百度权重</td>
      <td width="72">PageRank</td>
      <td width="80">百度收录</td>
      <td width="80">Google收录</td>
      <td width="80">Alexa排名</td>
      <td width="70">更新时间</td>
      <td width="90">联系QQ</td>
    </tr>
<%
	do while not rs.eof
%>
    <tr class="tr1" id="tr1_<%=i%>" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#f0f0f0'" style="CURSOR: hand">
      <td height="30"><%if rs("sd_TopEndTime")<now() then%><img src='images/common.gif' width='16' height='18' /><%else%><img src='images/top3.gif' title='置顶到<%=right(year(rs("sd_topendtime")),2)%>-<%=right("0" &month(rs("sd_topendtime")),2)%>-<%=right("0" &day(rs("sd_topendtime")),2)%>' width='20' height='22' /><%end if%></td>
      <td><img src="images/lx<%=rs("sd_jy")%>.gif"></td>
      <td><a href="<%if sd_sd=1 then%>html/<%=rs("sd_weburl")%>.html<%else%>sd_show.asp?id=<%=rs("sd_id")%><%end if%>" target="_blank" class="wdys<%=rs("sd_rgb")%>"><%=rs("sd_webname")%></a> <a href="http://<%=rs("sd_WEBURL")%>" title="访问网站" target="_blank">Go</a></td>
      <td><%if rs("sd_jg")=0 then%>商议<%else%><%=rs("sd_jg")%>元/月<%end if%></td>
      <td><%set rsc = Server.CreateObject("ADODB.RecordSet")
sql = "select classid,sd_classname from sd_class where classid="&rs("sd_classid")&""
rsc.open sql, conn,1,1
%><%=rsc("sd_classname")%><%rsc.close
set rsc=nothing%></td>
      <td><%=rs("sd_kz")%></td>
      <td><img src="images/brs/<%=rs("sd_baiduqz")%>.gif" width="35" height="20"></td>
      <td><img src="images/pr/<%=rs("sd_Pr")%>.gif"></td>
      <td class="green"><a href="http://www.baidu.com/s?wd=site:<%=rs("sd_WEBURL")%>" target="_blank" title="点击查看百度详细收录" class="green"><%=rs("sd_Baidu")%></a></td>
      <td class="green"><a href="http://www.google.cn/search?hl=zh-CN&q=site%3A<%=rs("sd_WEBURL")%>" target="_blank" title="点击查看GOOGLE详细收录"  class="green"><%=rs("sd_Google")%></a></td>
      <td class="greenalexa"><%=rs("sd_Alexa")%></td>
      <td><span style='font-size:10px; color:#666666'><%=year(rs("sd_regtime"))%>-<%=right("0" &month(rs("sd_regtime")),2)%>-<%=right("0" &day(rs("sd_regtime")),2)%></span></td>
      <td><a href="tencent://message/?uin=<%=rs("sd_QQ")%>&Site=<%=rs("sd_WEBURL")%>&Menu=yes" target="_blank"><img src="http://wpa.qq.com/pa?p=1:<%=rs("sd_QQ")%>:16" align="middle" border="0" width="77" height="17" /></a></td>
    </tr>
<%
rs.movenext
line=line-1
loop
end if
%>
    </table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:5px;border:#CBD7DE solid 1px;" background="images/menubg.gif">
<tr><td class="pages" align="center"><ul><%=pagefy%></ul></td></tr>
</table>
</div></div>
<!--#include file="sd_foot.asp"-->
</div>
</body>
</html>