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

📄 list.asp

📁 wapgo网址导航整站源码,WAP源码,更多登陆http://xywap.cn
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%response.buffer=true%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<!--#include file="conn.asp"-->
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<%
ids=request.QueryString("ids")
p=cint(request.QueryString("p"))
if p="" or p<1 then p=1

set rsad=Server.CreateObject("ADODB.Recordset")
rsadstr="select * from [ad] where classid=" & ids
rsad.open rsadstr,conn,1,2

set rsn=Server.CreateObject("ADODB.Recordset")
rsstrn="select * from [class] where ClassID=" & ids & " order by [ClassID] " & action
rsn.open rsstrn,conn,1,2
%>

<card title='<%=rsn("ClassName")%>'>
<p>
<%
if rsad.recordcount > 0 then
ad=1
do while not rsad.eof
%>
<a href="<%=rsad("adurl")%>"><%=rsad("adtitle")%></a><br/>
<%
ad=ad+1
rsad.movenext
loop
end if

set rs=Server.CreateObject("ADODB.Recordset")
rsstr="select * from [urls] where classid=" & ids & "and check=1 and show=0 order by [showorder] asc"
rs.open rsstr,conn,1,2

set rsc=Server.CreateObject("ADODB.Recordset")
rsstrc="select * from [urls] where check=0"
rsc.open rsstrc,conn,1,2

maxpage=int((rs.recordcount-1)/10)+1
if p>maxpage then p=maxpage

if rs.recordcount = 0 and rsc.recordcount = 0 then response.write("暂无网站!<br/>")

if rs.recordcount > 0 or rsc.recordcount > 0 then
response.write("本类共" & rs.recordcount & "个网站," & rsc.recordcount & "个待审网站<br/>")
response.write("-----<br/>")


if rs.recordcount > 0 then
rs.Move((p-1)*10)
dim j
j=1

if p*10<rs.recordcount then response.write("<a href='list.asp?ids=" & ids & "&amp;p=" & p+1 & "'>[下页]</a>&nbsp;")
if p>1 then response.write("<a href='list.asp?ids=" & ids & "&amp;p=" & p-1 & "'>[上页]</a>&nbsp;")
if p*10<rs.recordcount or p>1 then response.write("(" & p & "/" & (int((rs.recordcount-1)/10)+1) & ")<br/>")
do while ((not rs.EOF) and j<=10)
%>
<%=((p-1)*10+j)%>.<a href='view.asp?ids=<%=ids%>&amp;p=<%=p%>&amp;wid=<%=rs("wid")%>'><%=rs("site")%></a><br/>
<%
rs.MoveNext
j=j+1
loop
end if
end if

if p*10<rs.recordcount then response.write("<a href='list.asp?ids=" & ids & "&amp;action=" & action & "&amp;p=" & p+1 & "'>[下页]</a>&nbsp;")
if p>1 then response.write("<a href='list.asp?ids=" & ids & "&amp;action=" & action & "&amp;p=" & p-1 & "'>[上页]</a>&nbsp;")
if p*10<rs.recordcount or p>1 then response.write("(" & p & "/" & (int((rs.recordcount-1)/10)+1) & ")<br/>")
%>
<%if p*10<rs.recordcount or p>1 then%>
<input name="page" title="页码" type="text" format="*N" emptyok="true" size="3" maxlength="4" value="<%if p>=maxpage then response.write(p-1) else response.write(p+1)%>"/>
<anchor>[跳转页面]
    <go href="list.asp?ids=<%=ids%>" accept-charset='utf-8'>
        <postfield name="p" value="$(page)"/>
    </go>
</anchor><br/>
<%end if%>
-----<br/>
<a href="index.asp">[网站首页]</a><br/><br/>
</p>
</card>
</wml>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

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