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

📄 index3.asp

📁 一个笑话的wap源码
💻 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="view3.asp?id=<%=rs("id")%>"><%=rs("name")%></a><br/>
     
 <%rs.movenext%> <%line=line+1%> <%j=j+1%> <%loop%> <br/>
  
 第<%=currentpage%>页 共<%=Records%>编&nbsp;共<%=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="index3.asp?currentpage=1">1</a>&nbsp;...<%
 end if
 for i=ii to iii
   If i<>currentpage then
  %><a href="index3.asp?currentpage=<%=i%>"><%=i%></a><%
   else
 %>&nbsp;<%=i%>&nbsp;<%
   end if
 next
 if pages > currentpage+5 then
 %>...&nbsp;<a href="index3.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 + -