
 <!--#include file="top.asp"-->
 
 <!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<%
tpe=request("type")
action=request("action")
set rs=server.createobject("adodb.recordset") 
if tpe="" then
if action="hit" then 
sql="select * from data where audit=1 and logo<>'' and vouch<>6 order by hit desc" 
elseif action="vouch" then 
sql="select * from data where audit=1 and logo<>'' and vouch<>6 order by vouch desc"
else
sql="select * from data where audit=1 and logo<>'' and vouch<>6 order by id desc"
end if
else 
if action="hit" then 
sql="select * from data where t_id="&tpe&" and audit=1 and logo<>'' and vouch<>6 order by hit desc" 
elseif action="vouch" then 
sql="select * from data where t_id="&tpe&" and audit=1 and logo<>'' and vouch<>6 order by vouch desc"
else 
sql="select * from data where t_id="&tpe&" and audit=1 and logo<>'' and vouch<>6 order by id desc"
end if
end if
rs.open sql,conn,1,3
rs.pagesize=pagesize
page=request("page")
if not rs.eof then
if page="" or page<1 then page=1
rs.absolutepage=page
end if
%>
 
 
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#66CCFF" bgcolor="#FFFFFF" style="border-collapse: collapse">
  <tr> 
    <td bgcolor="#66ccff" width="1"></td>
    <td width="170" valign="top" bgcolor="f2f2f2"> <table width="100%" border="0" cellspacing="0" cellpadding="2" bordercolor="#008000" style="border-collapse: collapse">
        <tr> 
          <td height="22" bordercolor="#639ACE" bgcolor="#EEEEEE"><div align="center"><strong>友情连接须知</strong></div></td>
        </tr>
        <tr> 
          <td>※ 链接步骤如下：<br>
            一，自行填好相关站点信息。<br>
            二，做好本站链接。<br>
            三，本站管理员将根据贵站的内容、流量验证站点。<br>
            四，合作站点、首页连接请另外说明。</td>
        </tr>
        <tr> 
          <td><font color="#FF0000">注意：提交后，请将本站链接做好。<br>
            <br>
            本站会不定时清理无效链接，如果发现贵站链接被取消，请来信联系。</font></td>
        </tr>
        <tr> 
          <td> <p align="left"><font color="#FF0000">本站LOGO：</font><a href="http://www.jqdy.com/"><img border="0" src="http://www.jqdy.com/images/logo.gif" width="88" height="31"></a><br>
              <font color="#FF0000">连接地址：</font>http://www.jqdy.com/<br>
              <font color="#FF0000">连接说明：</font><br>
              更多文章，更多教程，更多资源，尽在激情电影网。</td>
        </tr>
        <tr> 
          <td>　</td>
        </tr>
      </table></td>
    <td width="1" bgcolor="#C0C0C0"></td>
    <td width="603" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#66ccff" style="border-collapse: collapse">
        <tr> 
          <td>
            <!--#include file="first.asp" -->
            <table border="1" cellpadding="2" cellspacing="0" style="border-collapse: collapse" bordercolor="#999999" width="580">
              <tr> 
                <td width="84" align="center" height="20" bgcolor="#CCCCCC">网站LOGO</td>
                <td align="center" height="20" bgcolor="#CCCCCC">站 长</td>
                <td align="center" height="20" bgcolor="#CCCCCC">网站简介</td>
                <td width="120" align="center" height="20" bgcolor="#CCCCCC">网站类型</td>
                <td width="40" align="center" height="20" bgcolor="#CCCCCC"> <p align="center">
                    <%if tpe="" then%>
                    <a href="index.asp?action=hit">点 击</a>
                    <%else%>
                    <a href="index.asp?type=<%=request("type")%>&action=hit">点 
                    击</a>
                    <%end if%>
                </td>
                <td width="40" align="center" height="20" bgcolor="#CCCCCC">
                  <%if tpe="" then%>
                  <a href="index.asp?action=vouch">推 荐</a>
                  <%else%>
                  <a href="index.asp?type=<%=request("type")%>&action=vouch">推 
                  荐</a>
                  <%end if%>
                </td>
              </tr>
              <% 
if not rs.eof then
for i=1 to rs.pagesize
 if rs.eof then exit for %>
              <tr> 
                <td width="35" align="center"><a href="open.asp?id=<%=rs("id")%>&url=<%=rs("url")%>" target=_blank><img src=<%=rs("logo")%> border=0 width=88 height=31 alt="<%=rs("webname")%>"></a></td>
                <td width="73" align="center" bgcolor="#EFEFEF"><%=rs("name")%>　</td>
                <td width="182" align="center"><%=left(rs("intro"),20)%>　</td>
                <td width="120" align="center"> 
                  <%
sql = "select * from type where t_id="& rs("t_id") &""
set Rs1 = Server.CreateObject("ADODB.Recordset")
Rs1.open sql,conn,1,1
do while not Rs1.eof
%>
                  <%=Rs1("type")%> 
                  <%
Rs1.movenext
loop
Rs1.close
set Rs1 = nothing
%>
                  　</td>
                <td width="40" align="center"><%=rs("hit")%>　</td>
                <td width="40" align="center"><%=rs("vouch")%>星</td>
              </tr>
              <% rs.movenext
next
if rs.pagecount>0 then rs.moveprevious
end if
%>
            </table> </td>
        </tr>
        <tr>
          <td>　</td>
        </tr>
        <tr>
          <td><table width="600" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td align="center"><%=rs.pagesize%>条/页　第<%=page%>页 
                  <% if rs.absolutepage>1 then response.write("<a href='?type=" &tpe& "&action=" &request("action")& "&page=1'>")%>
                  首页</a> 
                  <% if rs.absolutepage>1 then response.write("<a href='?type=" &tpe& "&action=" &request("action")& "&page="&rs.absolutepage-1&"'>")%>
                  上一页</a> 
                  <% if rs.absolutepage<rs.pagecount then response.write("<a href='?type=" &tpe& "&action=" &request("action")& "&page="&rs.absolutepage+1&"'>")%>
                  下一页</a> 
                  <% if rs.absolutepage<rs.pagecount then response.write("<a href='?type=" &tpe& "&action=" &request("action")& "&page="&rs.pagecount&"'>")%>
                  尾页</a></td>
              </tr>
              <tr> 
                <td height="30" align="center"><font color="#FF0000">&nbsp; </font></td>
              </tr>
              <tr>
                <td height="24" align="center"><font color="#FF0000"><a target="_blank" href="link_add.asp">我要连接...<font color="#FF0000">点击进入自助连接系统！</font></a></font></td>
              </tr>
			                
              <tr> 
                <td height="30" align="center">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td>　</td>
        </tr>
      </table></td>
    <td bgcolor="#66ccff" width="1"></td>
  </tr>
</table>
<!--#include file="down.asp"-->
</body>
</html>