viewqw.asp
资源名称:wap.rar [点击查看]
上传用户:sking1122
上传日期:2020-09-24
资源大小:1005k
文件大小:3k
源码类别:
手机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"-->
- <wml><%
- '====================================================================
- ' 请你保留这段说明,这并不会影响你的速度. 电脑交流:http://www.cnscu.cn
- ' 程序制作:横云 掌上校园收倾心整理收集于互联网,感谢你的支持!
- ' 升级时间: 2008-2-5 主页地址:HTTP://wap.cnscu.cn
- ' E-Mail: cnscu@126.com 客服QQ:554904632 QQ群:30493504 QQ群2:46659883
- '====================================================================
- %> <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>
- <%
- id=usb(request("id"))
- set rs=Server.CreateObject("ADODB.Recordset")
- rspl="select * from wap_lm where id="&id
- rs.open rspl,conn,1,2
- if rs.eof then
- response.write("<card id='main' title='错误'><p>无此文章!<br/>")
- else
- nxn=ubb(rs("nxn"))
- txt=ubb(rs("txt"))
- dq=ubb(rs("dq"))
- if dq="" then dq="left"
- %>
- <card id="main" title="<%=nxn%>">
- <p>
- <%
- dim pageWordNum,StartWord,Content,Length,PageAll,i
- pageWordNum=50000
- StartWord = 1
- Content=rs("txt")
- Length=len(Content)
- PageAll=(Length+PageWordNum-1)PageWordNum
- i=request("i")
- if isnull(i) or i="" then i=0
- Content = mid(Content,StartWord+i*PageWordNum,PageWordNum)
- if PageAll>1 then
- response.write("<a href='viewqw.asp?ltid=" & ltid & "&id=" & id & "'>[查看全文]</a><br/>")
- end if
- response.write("标题:" & ubb(rs("nxn")) & "<br/>")
- response.write("-----------<br/>" & ubb2(content) & "")
- if 0<=i<PageAll then
- Response.Write "<br/>"
- end if
- if cint(i)<cint(PageAll)-1 then
- Response.Write "<a href='view.asp?ltid=" & ltid & "&id=" & rs("id") & "&i=" & i+1 & "&page=" & page & "'>下一页</a>"
- End if
- if cint(i)>0 then
- Response.Write " " & "<a href='view.asp?ltid=" & ltid & "&id=" & rs("id") & "&i=" & i-1 & "&page=" & page & "'>上一页</a>"
- End if
- if PageAll>1 then
- response.write "<br/>(" & i+1 & "/" & PageAll & ")"
- %>
- <br/>
- 跳到第<input name="i<%=minute(now)%><%=second(now)%>" title="页码" type="text" format="*N" emptyok="true" size="3" value="<%response.write(i+1)%>" maxlength="3"/>页
- <anchor>[GO]
- <go href="view.asp?myid=<%=myid%>&id11=<%=id11%>&idss=<%=idss%>&ltid=<%=ltid%>&id=<%=id%>&page=<%=page%>" accept-charset='utf-8'>
- <postfield name="i" value="$(i<%=minute(now)%><%=second(now)%>)"/>
- </go>
- </anchor><br/>
- <%end if%>
- <a href="fbpl.asp?id=<%=id%>">发表评论</a>|
- <%if rs("pl")="0" then%>
- 查看评论(0)<br/>
- <%else%>
- <a href="ckpl.asp?id=<%=id%>">查看评论(<%=ubb(rs("pl"))%>)</a><br/>
- <%end if%>
- <%
- if rs("did")<>"0" then response.write("<a href='wlist.asp?page=1&id="&rs("did")&"' >回到上级</a><br/>")
- end if
- rs.close
- set rs=nothing
- conn.close
- set conn=nothing
- %>
- <!--#include file="w.asp"-->
- </p></card></wml>