gg_index.asp
资源名称:wap.rar [点击查看]
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:2k
源码类别:
手机WAP编程
开发平台:
ASP/ASPX
- <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><?xml version="1.0" encoding="utf-8"?>
- <%response.buffer=true%>
- <%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
- <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
- <!--#include file="conn.inc"-->
- <!--#include file="cnscucsb.asp"--><%
- '====================================================================
- ' 请你保留这段说明,这并不会影响你的速度. 电脑交流:http://www.cnscu.cn
- ' 程序制作:横云 掌上校园收倾心整理收集于互联网,感谢你的支持!
- ' 升级时间: 2008-2-5 主页地址:HTTP://wap.cnscu.cn
- ' E-Mail: cnscu@126.com 客服QQ:554904632 QQ群:30493504 QQ群2:46659883
- '====================================================================
- %> <wml>
- <head><meta http-equiv='Cache-Control' content='no-cache'/>
- </head>
- <card title="**公告列表**">
- <p>
- <%set rsxl=Server.CreateObject("ADODB.Recordset")
- rspl="select * from cnscu_gg order by tm desc"
- rsxl.open rspl,conn,1,2
- pag=10
- if rsxl.eof then
- Response.write "暂无公告!<br/>"
- Else
- page=cint(request.QueryString("page"))
- if page="" or page<1 then page=1
- maxpage=int((rsxl.recordcount-1)/pag)+1
- if page>maxpage then page=maxpage
- rsxl.Move((page-1)*pag)
- dim j
- j=1
- do while ((not rsxl.EOF) and j <=cint(pag))
- %>
- <%=((page-1)*pag+j)%>.<a href='gg_view.asp?cnscu=<%=cnscu%>&id=<%=rsxl("id")%>'><%=ubb(rsxl("name"))%></a>
- <br/>
- <%
- rsxl.Movenext
- j=j+1
- loop
- if page*pag<rsxl.recordcount then response.write("<a href='cnscu_ly.asp?page=" & page+1 & "'>下一页</a>")
- if page>1 then response.write("<a href='cnscu_ly.asp?page=" & page-1 & "'>上一页</a>")
- if page*pag<rsxl.recordcount or page>1 then response.write("<br/>")
- if page*pag<rsxl.recordcount then response.write("----------<br/>(第"& page & "页/共" & (int(rsxl.recordcount/pag+1)) &"页/总" & rsxl.recordcount & "条)<br/>")
- end if
- %>
- **********<br/>
- <!--#include file="w.asp"-->
- </p>
- </card>
- </wml>