lt_list.asp
资源名称:wap.rar [点击查看]
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:7k
源码类别:
手机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="yksb.asp"--><%
- '====================================================================
- ' 请你保留这段说明,这并不会影响你的速度. 电脑交流:http://www.cnscu.cn
- ' 程序制作:横云 掌上校园收倾心整理收集于互联网,感谢你的支持!
- ' 升级时间: 2008-2-5 主页地址:HTTP://wap.cnscu.cn
- ' E-Mail: cnscu@126.com 客服QQ:554904632 QQ群:30493504 QQ群2:46659883
- '====================================================================
- %> <%
- dim dlid
- ltid=usb(request.QueryString("ltid"))
- session("ltid")=request("ltid")
- if ltid="" then ltid="0"
- set npp=Server.CreateObject("ADODB.Recordset")
- rspl="select name,shuo,pag,id,ltlogo from sclt where id="<id
- npp.open rspl,conn,1,2
- if npp.eof then
- Response.write "<wml><card title='出错了'><p>无此论坛!<br/>"
- Else
- dlname=npp("name")
- dljj=npp("shuo")
- pag=lll
- ltlogo=npp("ltlogo")
- %>
- <wml>
- <head>
- <meta http-equiv='Cache-Control' content='no-cache'/>
- </head>
- <card title="<%=dlname%>">
- <p>
- <%
- response.write "<select name='idp'><option>版主列表</option>"
- set rsez=server.createobject("ADODB.Recordset")
- aqlz="select nini,id,gllt,gllt1 from cnscu_gr where gllt="<id&" order by gllt1 desc"
- rsez.open aqlz,conn,1,2
- z=1
- do while not rsez.eof
- dim nini
- nam=rsez("nini")
- if len(nam)>8 then nam=left(nam,8)
- if rsez("gllt1")<>"0" then zzww="[主版]"
- if rsez("gllt1")="0" then zzww="[副版]"
- Response.write "<option onpick='gr_zl.asp?id="&rsez("id")&"&cnscu="&cnscu&"'>" & ubb(zzww) & "" & ubb(nam) & "</option>"
- z=z+1
- rsez.movenext
- loop
- rsez.close
- set rsez=nothing
- Response.write "</select>"%>
- <br/>
- <!--#include file="xxts.asp"-->
- <%if len(ltlogo)>7 then%>
- <img src="<%=ubb(ltlogo)%>" alt="论坛LOGO。。"/><br/>
- <%end if%>
- <%if len(dljj)>3 then%>
- <%=ubb(dljj)%><br/>
- <%end if%>
- <a href="lt_add.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>">发帖</a>|<a href="jh_list.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>">精帖</a>|<a href="czjl.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>">版务</a>|<a href="lt_list.asp?tt=<%=time%>&cnscu=<%=cnscu%>&ltid=<%=ltid%>">刷新</a><br/>
- <%
- if ltmybz1=npp("id") and ltmybz=npp("id") or mycjbz<>"0" then response.write("总版:<a href='bz_gl.asp?cnscu="&cnscu&"&ltid="<id&"'>管理版面</a><br/>")
- response.write("------------<br/>")
- set rsxl=Server.CreateObject("ADODB.Recordset")
- rspl="select * from lttz where CStr(ltid)="<id&" 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
- if page>1 then response.write("<a href='lt_list.asp?cnscu=" & cnscu & "&ltid=" & ltid & "&page=1'>首页</a> ")
- if page*pag<rsxl.recordcount then response.write("<a href='lt_list.asp?cnscu=" & cnscu & "&ltid=" & ltid & "&page=" & page+1 & "'>下页</a> ")
- if page>1 then response.write("<a href='lt_list.asp?cnscu=" & cnscu & "&ltid=" & ltid & "&page=" & page-1 & "'>上页</a>")
- if (int(rsxl.recordcount/pag+1))>1 then response.write("<br/>")
- 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)%>.<%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("yc")="1" and myid<>rsxl("fid") then response.write("[隐]")
- if rsxl("dgtm")="2000-10-10 12:12:12" then response.write("[沉]")
- if rsxl("dj")="1" then response.write("<img src='xxmd.gif' alt='[醒目灯]'/>")
- if rsxl("dj")="2" then response.write("[狼]")
- if rsxl("mtjg")<>"0" then response.write("[卖"&mtjg&"分]")
- tzhf=left(ubb(rsxl("name")),25)
- if len(ubb(rsxl("name")))>25 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
- %>
- <%if rsxl("yc")="1" and ltmybz="0" and rsxl("fid")<>myid and myxcy="0" and mycjbz="0" then%>
- 此帖被管理员隐藏了..<br/>
- <%else%>
- <a href='lt_view.asp?tid=<%=rsxl("id")%>&ppage=<%=page%>&cnscu=<%=cnscu%>'><%=tzhf%></a>
- <%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="hf_view.asp?cnscu=<%=cnscu%>&tid=<%=rsxl("id")%>&ltid=<%=ltid%>"><%=ubb(rsxl("hfs"))%></a><%end if%>)<br/>
- <%else%>
- <%if zzzl("gllt")=rsxl("ltid") then%><img src='img/bz.gif' alt='斑竹'/><%end if%><%=ubb(zzzl("nini"))%>(<%=ubb(rsxl("rc"))%>/<%if rsxl("hfs")="0" then%><%=ubb(rsxl("hfs"))%><%end if%><%if rsxl("hfs")>"0" then%><a href="hf_view.asp?cnscu=<%=cnscu%>&tid=<%=rsxl("id")%>&ltid=<%=ltid%>"><%=ubb(rsxl("hfs"))%></a><%end if%>)
- <br/>
- <%end if%>
- <%
- end if
- rsxl.Movenext
- j=j+1
- loop
- if page>1 then response.write("<a href='lt_list.asp?cnscu=" & cnscu & "&ltid=" & ltid & "&page=1'>首页</a> ")
- if page*pag<rsxl.recordcount then response.write("<a href='lt_list.asp?cnscu=" & cnscu & "&ltid=" & ltid & "&page=" & page+1 & "'>下一页</a>")
- if page>1 then response.write("<a href='lt_list.asp?cnscu=" & cnscu & "&ltid=" & ltid & "&page=" & page-1 & "'>上一页</a>")
- if page*pag<rsxl.recordcount or page>1 then response.write("")
- if page*pag<rsxl.recordcount then response.write("("& page & "/" & (int(rsxl.recordcount/pag+1)) &"/" & rsxl.recordcount & ")<br/>")
- end if
- %>
- 跳到第<input name="i<%=minute(now)%><%=second(now)%>" title="页码" type="text" format="*N" emptyok="true" size="3" value="<%response.write(page+1)%>" maxlength="3"/>页
- <anchor>[GO]
- <go href="lt_list.asp?cnscu=<%=cnscu%>&tid=<%=tid%>&ltid=<%=ltid%>" accept-charset='utf-8'>
- <postfield name="page" value="$(i<%=minute(now)%><%=second(now)%>)"/>
- </go>
- </anchor><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><br/>
- <%end if
- npp.close
- set npp=nothing
- %>
- ------------<br/>
- <!--#include file="w.asp"-->
- </p>
- </card>
- </wml>