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

📄 listtype.asp

📁 三鸟个人网站源码。
💻 ASP
字号:
<!--#include file="dbinc/dbpath.asp" -->
<%
const MaxPrePage=27  '每页显示记录数

if (request.querystring("page")<>"") and (IsNumeric(request.querystring("page"))) then  '检查页号
  intPage=CLng(request.querystring("page"))
else
  intPage=1
end if

strSql="select * from zkpick "
if (request.querystring("type")<>"") and (IsNumeric(request.querystring("type"))) then  '检查是否分类
  intType=CLng(request.querystring("type"))
  strSql=strSql& " where picktype="&CLng(request.querystring("type"))
else
  intType=0
end if

strSql=strSql&" order by pickvote desc,pickid asc"
%>
<html>
<head>
<title>3鸟设社网站评测—类型分类</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="link.css">
<script language="JavaScript">
<!--
function winpop(id)
{
  window.open('showinfo.asp?id='+id,'','toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable=yes,width=520,height=200,top=100,left=100');
}
// --> 
</script>
</head>

<body topmargin="0" marginheight="2" leftmargin="0" marginwidth="2" bgcolor="#FFFFFF">
<!--#include file="top.htm" -->
<table width="764" border="0" cellspacing="2" cellpadding="0" align="center" class="9p" style="border-left: 1 dotted #000000; border-right: 1 dotted #000000" bgcolor="#FFFFFF">
  <tr> 
    <td width="164" valign="top" bgcolor="#EDB7D1"> 
      <table width="100%" border="0" class="9p" cellpadding="0" cellspacing="0" align="center">
        <tr> 
          <td bgcolor="#CC3366" height="22"> 
            <div align="center"><font color="#FFFFFF">类 型 分 类</font></div>
          </td>
        </tr>
        <tr> 
          <td> 
            <table width="90%" border="0" cellspacing="1" cellpadding="2" class="9p" align="center">
              <tr> 
                <td> 
                  <div align="left"><img src="image/j1.gif" width="9" height="10"> 
                    <a href="listtype.asp?type=1">电脑网络</a></div>
                </td>
                <td><img src="image/j1.gif" width="9" height="10"> <a href="listtype.asp?type=12">综合网站</a></td>
              </tr>
              <tr> 
                <td> 
                  <div align="left"><img src="image/j1.gif" width="9" height="10"> 
                    <a href="listtype.asp?type=2">免费资源</a></div>
                </td>
                <td><img src="image/j1.gif" width="9" height="10"> <a href="listtype.asp?type=11">社会公益</a></td>
              </tr>
              <tr> 
                <td> 
                  <div align="left"><img src="image/j1.gif" width="9" height="10"> 
                    <a href="listtype.asp?type=3">休闲娱乐</a></div>
                </td>
                <td><img src="image/j1.gif" width="9" height="10"> <a href="listtype.asp?type=10">科技咨讯</a></td>
              </tr>
              <tr> 
                <td> 
                  <div align="left"><img src="image/j1.gif" width="9" height="10"> 
                    <a href="listtype.asp?type=4">文学艺术</a></div>
                </td>
                <td><img src="image/j1.gif" width="9" height="10"> <a href="listtype.asp?type=9">商贸金融</a></td>
              </tr>
              <tr> 
                <td> 
                  <div align="left"><img src="image/j1.gif" width="9" height="10"> 
                    <a href="listtype.asp?type=5">游戏世界</a></div>
                </td>
                <td><img src="image/j1.gif" width="9" height="10"> <a href="listtype.asp?type=8">程序设计</a></td>
              </tr>
              <tr> 
                <td> 
                  <div align="left"><img src="image/j1.gif" width="9" height="10"> 
                    <a href="listtype.asp?type=6">音乐天堂</a></div>
                </td>
                <td><img src="image/j1.gif" width="9" height="10"> <a href="listtype.asp?type=7">体育生活</a></td>
              </tr>
              <tr> 
                <td> 
                  <div align="left"></div>
                </td>
                <td>&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
    <td width="594" valign="top"> 
      <%  
set rs=createobject("adodb.recordset")  
rs.open strSql,conn,1,3  
if rs.eof and rs.bof then  
  response.write "<div align='center'><font color='#cc3366'>对不起,暂时还没有相关加盟网站,欢迎您的加入!</font></div>"  
else  
  
rs.pagesize=MaxPrePage  
if intPage>rs.pagecount then   
  intPage=rs.pagecount  
end if   
%>
      <table width="594" border="0" cellspacing="0" cellpadding="0" class="9p" bgcolor="#FFFFFF">
        <tr bgcolor="#FFCC99" valign="bottom"> 
          <td height="22" bgcolor="#CC3366"> 
            <div align="right"><font color="#FFFFFF"> 
              <% displayPagelinks rs,intPage,intType %>
              </font>&nbsp;</div>
          </td>
        </tr>
        <tr> 
          <td class="4p">&nbsp;</td>
        </tr>
        <tr> 
          <td> 
            <table width="592" border="0" cellspacing="1" cellpadding="2" bordercolorlight="#999999" bordercolordark="#FFFFFF" class="9p" bgcolor="#EDB7D1" align="center">
              <tr bgcolor="#EDB7D1"> 
                <td width="143"> 
                  <div align="center"><font color="#999999">网站名称</font></div>
                </td>
                <td width="94"> 
                  <div align="center"><font color="#999999">网站所有</font></div>
                </td>
                <td width="39"> 
                  <div align="center"><font color="#999999">地域</font></div>
                </td>
                <td width="64"> 
                  <div align="center"><font color="#999999">类型</font></div>
                </td>
                <td width="202"> 
                  <div align="center"><font color="#999999">简介</font></div>
                </td>
                <td width="47"> 
                  <div align="center"><font color="#999999">得票数</font></div>
                </td>
              </tr>
              <%  
rs.absolutepage=intPage  
for i=1 to rs.pagesize  
%>
              <tr bgcolor="#FFFFFF"> 
                <td width="143">&nbsp;  
                  <% response.write ("<a href='showinfo.asp?id="&rs("pickid")&"'target='_blank'>"&rs("picksite")&"</a>")%>
                </td>
                <td width="94"> 
                  <div align="center"><font color="#FFFFFF"><font color="#000000"> 
                    <%=rs("pickname")%></font></font>&nbsp;</div>
                </td>
                <td width="39"> 
                  <div align="center"><font color="#FFFFFF"><font color="#000000"> 
                    <% 
typestr=rs("pickdiyu")   
select case typestr 
  case 1: typestr="海口" 
  case 2: typestr="琼山" 
  case 3: typestr="澄迈" 
  case 4: typestr="临高" 
  case 5: typestr="儋州" 
  case 6: typestr="琼海" 
  case 7: typestr="定安" 
  case 8: typestr="万宁" 
  case 9: typestr="屯昌" 
  case 10: typestr="文昌" 
  case 11: typestr="昌江" 
  case 12: typestr="东方"
  case 13: typestr="三亚" 
  case 14: typestr="陵水"
  case 15: typestr="保亭" 
  case 16: typestr="琼中" 
  case 17: typestr="白沙" 
  case 18: typestr="乐东"
  case 19: typestr="五指山" 
  case 20: typestr="其它"    
  case else: typestr="海口" 
end select 
response.write typestr 
%>
                    </font></font></div>
                </td>
                <td width="64"> 
                  <div align="center"><font color="#000000"> 
                    <%typestr=rs("picktype")   
select case typestr 
  case 1: typestr="电脑网络" 
  case 2: typestr="免费资源" 
  case 3: typestr="休闲娱乐" 
  case 4: typestr="文学艺术" 
  case 5: typestr="游戏世界" 
  case 6: typestr="音乐天堂" 
  case 7: typestr="体育生活" 
  case 8: typestr="程序设计" 
  case 9: typestr="商贸金融" 
  case 10: typestr="科技咨讯" 
  case 11: typestr="社会公益" 
  case 12: typestr="综合网站" 
  case else: typestr="电脑网络" 
end select 
response.write typestr 
%>
                    </font></div>
                </td>
                <td width="202"> <%=rs("pickmemo")%> </td>
                <td width="47"> 
                  <div align="center"><%=rs("pickvote")%></div>
                </td>
              </tr>
              <%  
rs.movenext  
if rs.eof then exit for  
next %>
            </table>
          </td>
        </tr>
        <tr> 
          <td class="4p">&nbsp;</td>
        </tr>
        <tr bgcolor="#FFCC99" valign="bottom"> 
          <td height="22" bgcolor="#CC3366"> 
            <div align="right"><font color="#FFFFFF"> 
              <% displayPagelinks rs,intPage,intType %>
              &nbsp;</font></div>
          </td>
        </tr>
      </table>
      <% end if %>
    </td>
  </tr>
</table>
<!--#include file="bottom.htm" -->
</body> 
</html> 
<% 
Sub DisplayPagelinks(rs,intPage,intType)   '页面导航条 
'------------------------------- 
response.write "共"&rs.RecordCount&"个分类网站 " 
 
if  intPage>1 then 
  if intType<>0 then 
    response.write "<a href="""&request.ServerVariables("SCRIPT_NAME")&"?type="&intType&"&page=1""><font color='#FFFFFF'>首页</font></a> " 
    response.write "<a href="""&request.ServerVariables("SCRIPT_NAME")&"?type="&intType&"&page="&intPage-1&"""><font color='#FFFFFF'>上一页</font></a> "     
  else 
    response.write "<a href="""&request.ServerVariables("SCRIPT_NAME")&"?page=1""><font color='#FFFFFF'>首页</font></a> " 
    response.write "<a href="""&request.ServerVariables("SCRIPT_NAME")&"?page="&intPage-1&"""><font color='#FFFFFF'>上一页</font></a> " 
  end if 
else 
  response.write "首页 "   
  response.write "上一页 " 
end if 
 
if intPage < rs.PageCount then 
  if intType<>0 then 
    response.write "<a href="""&request.ServerVariables("SCRIPT_NAME")&"?type="&intType&"&page="&intPage+1&"""><font color='#FFFFFF'>下一页</font></a> " 
    response.write "<a href="""&request.ServerVariables("SCRIPT_NAME")&"?type="&intType&"&page="&rs.PageCount&"""><font color='#FFFFFF'>尾页</font></a> " 
  else 
    response.write "<a href="""&request.ServerVariables("SCRIPT_NAME")&"?page="&intPage+1&"""><font color='#FFFFFF'>下一页</font></a> " 
    response.write "<a href="""&request.ServerVariables("SCRIPT_NAME")&"?page="&rs.PageCount&"""><font color='#FFFFFF'>尾页</font></a> " 
  end if 
else 
  response.write "下一页 " 
  response.write "尾页 " 
end if 
 
'------------------------------- 
End Sub 
%> 
<% 
rs.close 
set rs=nothing 
conn.close 
set conn=nothing 
%> 

⌨️ 快捷键说明

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