📄 index2.asp
字号:
<%@ Language=VBScript %>
<% Response.ContentType="text/vnd.wap.wml" %>
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<!--#include file="conn.asp"-->
<%
set rs=server.createobject("adodb.recordset")
sql="SELECT * FROM jiudian WHERE (((jiudian.level)='综合|家庭|校园')) order by id desc;"
rs.open sql,conn,1,1
%>
<wml>
<card id="jiudianfl" title="综合|家庭|校园">
<p align="left">
<%
if rs.eof and rs.bof then str="没有任何文章"
if str="" then
rs.pagesize=10
pages=rs.pagecount
records=rs.recordcount
currentpage=request("currentpage")
if currentpage="" or currentpage<1 then currentpage=1
currentpage=cint(currentpage)
if currentpage>pages then currentpage=pages
rs.absolutepage=currentpage
else
currentpage=1
records=0
pages=1
end if
%>
<%j=1%>
<%linenumber=rs.pagesize%>
<%do while (not rs.eof) and (line<linenumber) and (j<=10) %>
<%=((currentpage-1)*10+j)%>.<a href="view2.asp?id=<%=rs("id")%>"><%=rs("name")%></a><br/>
<%rs.movenext%> <%line=line+1%> <%j=j+1%> <%loop%> <br/>
第<%=currentpage%>页 共<%=Records%>编 共<%=Pages%>页<br/>
<%
ii=currentpage-5
iii=currentpage+5
if ii < 1 then
ii=1
end if
if iii > pages then
iii=pages
end if
if currentpage > 6 then
%><a href="index2.asp?currentpage=1">1</a> ...<%
end if
for i=ii to iii
If i<>currentpage then
%><a href="index2.asp?currentpage=<%=i%>"><%=i%></a><%
else
%> <%=i%> <%
end if
next
if pages > currentpage+5 then
%>... <a href="index2.asp?currentpage=<%=pages%>"><%=pages%></a><%
end if
%><br/>
<a href="index.asp">笑口常开</a>
<br/>
<a href="/lt/">社区首页</a><br/>
<a href="/">网站首页</a>
</p>
</card>
</wml>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -