hf_view.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">
- <wml><%
- '====================================================================
- ' 请你保留这段说明,这并不会影响你的速度. 电脑交流: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="conn.inc"-->
- <head>
- <meta http-equiv="Cache-Control" content="no-Cache"/>
- <meta http-equiv="Cache-Control" content="max-age=0"/>
- <meta http-equiv="Expires" content="Mon, 1 Jan 1990 00:00:00 GMT"/>
- </head>
- <card id="card1" title="所有回复">
- <p>
- <!--#include file="cnscucsb.asp"-->
- <!--#include file="xxts.asp"-->
- <%
- dim id,page
- tid=request.QueryString("tid")
- ltid=request.QueryString("ltid")
- if tid="" then tid="0"
- page=cint(request.QueryString("page"))
- if page="" or page<1 then page=1
- set rsxl=Server.CreateObject("ADODB.Recordset")
- rspl="select * from lthf where CStr(tid)='"&tid&"' order by htm desc"
- rsxl.open rspl,conn,1,2
- if rsxl.eof then
- Response.write "暂无回复!"
- Else
- maxpage=cint((rsxl.recordcount-1)/10)+1
- if page>maxpage then page=maxpage
- rsxl.Move((page-1)*10)
- j=1
- k=rsxl.recordcount
- do while ((not rsxl.EOF) and j<=10)
- y=Month(rsxl("htm"))&""
- r=Day(rsxl("htm"))&""
- if len(r)=1 then r="0"&r
- h=hour(rsxl("htm"))&""
- if len(h)=1 then h="0"&h
- m=minute(rsxl("htm"))&""
- if len(m)=1 then m="0"&m
- tt="" & y & "-" & r &" " & h &":" & m &""
- tzbt=left(rsxl("nr"),200)
- if len(rsxl("nr"))>200 then
- tzbt=tzbt+"。。"
- end if
- %>
- <a href='pl_view.asp?cnscu=<%=cnscu%>&id=<%=ubb(rsxl("id"))%>'><%=(k-(page-1)*10)%><!--%=((page-1)*10+j)%--></a>.<a href='gr_zl.asp?cnscu=<%=cnscu%>&id=<%=ubb(rsxl("fid"))%>'><%=ubb(rsxl("fni"))%></a>:<%=ubb(tzbt)%>(<%=tt%>)<br/>
- <%
- rsxl.Movenext
- j=j+1
- k=k-1
- loop
- end if
- if page*10<rsxl.recordcount then response.write("<a href='hf_view.asp?cnscu=" & cnscu & "&ltid=" & ltid & "&tid=" & tid & "&page=" & page+1 & "'>下一页</a>")
- if page>1 then response.write("|<a href='hf_view.asp?cnscu=" & cnscu & "&ltid=" & ltid & "&tid=" & tid & "&page=" & page-1 & "'>上一页</a>")
- if page*10<rsxl.recordcount or page>1 then response.write("<br/>")
- response.write("(第"& page & "/" & (int((rsxl.recordcount-1)/10)+1) &"页/共" & rsxl.recordcount & "条)<br/>")
- %>
- <%if page*10<rsxl.recordcount or page>1 then%>
- 跳到第<input name="gpage<%=minute(now)%><%=second(now)%>" title="页码" type="text" format="*N" emptyok="true" size="3" value="<%response.write(page+1)%>" maxlength="3"/>页
- <anchor>[GO]
- <go href="hf_view.asp?cnscu=<%=cnscu%>&tid=<%=tid%>&ltid=<%=ltid%>" accept-charset='utf-8'>
- <postfield name="page" value="$(gpage<%=minute(now)%><%=second(now)%>)"/>
- </go>
- </anchor><br/>
- <%end if%>
- <input name="dgly" emptyok="true" maxlength="100" value="不错!"/><br/>
- <anchor title="快速回复">[快速回复]
- <go href="kshf.asp?tid=<%=tid%>&cnscu=<%=cnscu%>" method="post" accept-charset='utf-8'>
- <postfield name="dgly" value="$(dgly)"/></go>
- </anchor><br/>
- <%
- rsxl.close
- set rsxl=nothing
- %>
- **********<br/>
- <a href='lt_list.asp?cnscu=<%=cnscu%>&ltid=<%=ltid%>'>回到论坛</a><br/>
- <!--#include file="w.asp"-->
- </p>
- </card>
- </wml>
- <%
- conn.close
- set conn=nothing
- %>