jh_list.asp
资源名称:wap.rar [点击查看]
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:4k
源码类别:
手机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"--><%
- '====================================================================
- ' 请你保留这段说明,这并不会影响你的速度. 电脑交流:http://www.cnscu.cn
- ' 程序制作:横云 掌上校园收倾心整理收集于互联网,感谢你的支持!
- ' 升级时间: 2008-2-5 主页地址:HTTP://wap.cnscu.cn
- ' E-Mail: cnscu@126.com 客服QQ:554904632 QQ群:30493504 QQ群2:46659883
- '====================================================================
- %> <!--#include file="yksb.asp"-->
- <%
- dim dlid
- ltid=usb(request.QueryString("ltid"))
- set npp=Server.CreateObject("ADODB.Recordset")
- rspl="select name,shuo,pag from sclt where id="<id
- npp.open rspl,conn,1,2
- dlname=npp("name")
- dljj=npp("shuo")
- pag=npp("pag")
- npp.close
- set npp=nothing
- %>
- <wml>
- <head>
- <meta http-equiv='Cache-Control' content='no-cache'/>
- </head>
- <card title="<%=dlname%>">
- <p>
- <!--#include file="xxts.asp"-->
- <%=dljj%><br/>
- <a href="lt_add.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>">发帖</a>|<a href="tp_add.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>">投票</a>|<a href="sou.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>">搜贴</a>|<a href="lt_list.asp?tt=<%=time%>&cnscu=<%=cnscu%>&ltid=<%=ltid%>">返回</a><br/>
- ***********<br/>
- <%
- set rsxl=Server.CreateObject("ADODB.Recordset")
- rspl="select * from lttz where CStr(ltid)="<id&" and CStr(jj)=1 order by dgtm desc"
- rsxl.open rspl,conn,1,2
- 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))
- mtjg=rsxl("mtjg")%>
- <%=((page-1)*pag+j)%>.<a href='lt_view.asp?tid=<%=rsxl("id")%>&pagegg=<%=page%>&cnscu=<%=cnscu%>'><%if rsxl("dgtm")="2100-10-10 12:12:12" then response.write("[顶]")
- if rsxl("jj")="1" then response.write("[精]")
- if rsxl("st")="1" then response.write("[锁]")
- if rsxl("dgtm")="2000-10-10 12:12:12" then response.write("<img src='/sc/img/tzgd.gif' alt='[沉]'/>")
- if rsxl("dj")="1" then response.write("<img src='/sc/img/xxmd.gif' alt='[醒目灯]'/>")
- if rsxl("dj")="2" then response.write("[狼]")
- if rsxl("mtjg")<>"0" then response.write("[卖"&mtjg&"分]")
- tzhf=left(ubb(rsxl("name")),8)
- if len(ubb(rsxl("name")))>8 then
- tzhf=tzhf+"。。"
- end if
- fdid=rsxl("fid")
- set zzzl=Server.CreateObject("ADODB.Recordset")
- rsplzzzl="select nini,id,gllt from cnscu_gr where CStr(id)="&fdid
- zzzl.open rsplzzzl,conn,1,2
- %><%=tzhf%></a><br/>
- <%if rsxl("dj")="4" then%>
- [蒙面人][阅<%=ubb(rsxl("rc"))%>/<%if rsxl("hfs")="0" then%>复<%=ubb(rsxl("hfs"))%><%end if%><%if rsxl("hfs")>"0" then%><a href="ckhf.asp?cnscu=<%=cnscu%>&tid=<%rsxl("id")%>">复<%=ubb(rsxl("hfs"))%></a><%end if%>]<br/>
- <%else%>
- <%if zzzl("gllt")=rsxl("ltid") then%><img src='/sc/img/bz.gif' alt='斑竹'/><%end if%><a href="gr_zl.asp?id=<%=ubb(zzzl("id"))%>&cnscu=<%=cnscu%>"><%=ubb(zzzl("nini"))%></a>[阅<%=ubb(rsxl("rc"))%>/<%if rsxl("hfs")="0" then%>复<%=ubb(rsxl("hfs"))%><%end if%><%if rsxl("hfs")>"0" then%><a href="ckhf.asp?cnscu=<%=cnscu%>&tid=<%=rsxl("id")%>">复<%=ubb(rsxl("hfs"))%></a><%end if%>]
- <br/>
- <%end if%>
- <%
- rsxl.Movenext
- j=j+1
- loop
- if page*pag<rsxl.recordcount then response.write("<a href='jh_list.asp?cnscu=" & cnscu & "&dlid=" & dlid & "&page=" & page+1 & "'>下一页</a>")
- if page>1 then response.write("<a href='jh_list.asp?cnscu=" & cnscu & "&dlid=" & dlid & "&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>