/view.asp代码页
<%@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"))
ii=usb(request("ii"))
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
dddlll=rs("did")
nxn=ubb(rs("nxn"))
txt=ubb(rs("txt"))
dq=ubb(rs("dq"))
if dq="" then dq="left"
set rsn=Server.CreateObject("ADODB.Recordset")
rsstrn="select nxn,id,lx,did from [wap_lm] where [did]="& dddlll &" and [ID]<"& ID &" and lx=6 order by [ID] desc"
rsn.open rsstrn,conn,1,2
set rspr=Server.CreateObject("ADODB.Recordset")
rsstrpr="select nxn,id,lx,did from [wap_lm] where [did]="& dddlll &" and [ID]>"& ID &" and lx=6 order by [ID] asc"
rspr.open rsstrpr,conn,1,2
%>
<card id="main" title="<%=nxn%>">
<p>
<%
dim pageWordNum,StartWord,Content,Length,PageAll,i
pageWordNum=500
StartWord = 1
Content=rs("txt")
Length=len(Content)
PageAll=(Length+PageWordNum-1)\PageWordNum
i=request("i")
if ii<>"" then i=ii-1
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>(每页50000字)<br/>")
end if
if 0<=i<PageAll then
Response.Write ""
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><br/>"
End if
response.write("" & 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 "(" & i+1 & "/" & PageAll & ")"
%>
<br/>
第<input name="i<%=minute(now)%><%=second(now)%>" title="页码" type="text" format="*N" emptyok="true" size="2" value="<%response.write(i+1)%>" maxlength="2"/>
<anchor>跳页
<go href="view.asp?myid=<%=myid%>&id11=<%=id11%>&idss=<%=idss%>&ltid=<%=ltid%>&id=<%=id%>&page=<%=page%>" accept-charset='utf-8'>
<postfield name="ii" value="$(i<%=minute(now)%><%=second(now)%>)"/>
</go>
</anchor>
<br/>
<%end if%>
<a href="fbpl.asp?id=<%=id%>">发表评论</a>|
<%if rs("pl")="0" then%>
查看评论(0)
<%else%>
<a href="ckpl.asp?id=<%=id%>">查看评论(<%=ubb(rs("pl"))%>)</a>
<%end if%>
<%if rsn.recordcount>0 then%>
<br/>下篇:<a href='view.asp?id=<%=rsn("ID")%>'><%=ubb(rsn("nxn"))%></a>
<%end if%>
<%if rspr.recordcount>0 then%>
<br/>上篇:<a href='view.asp?id=<%=rspr("ID")%>'><%=ubb(rspr("nxn"))%></a>
<%end if%>
<br/>
<%
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>
对应源码下载地址
相关源码
- /webadmin/inc/conn.asp
- /admin/sqcl.asp
- /webadmin/admin_plugins.asp
- /bbs/jh_list.asp
- /admin/room.asp
- /admin/xipx.asp
- /admin/wap_pl.asp
- /admin/room_qk.asp
- /bbs/cnscucsb.asp
- /admin/bj_you.asp
- /bbs/room_gh.asp
- /admin/hfgl.asp
- /webadmin/lmc2l.asp
- /admin/ro_gl.asp
- /admin/tjbz.asp
- /bbs/cnscu/upload.inc
- /webadmin/admin_db_compact.asp
- /admin/tjok.asp
- /bbs/2200cl.asp
- /admin/yd_lc.asp
- /bbs/add.asp
- /bbs/roomt.asp
- /admin/rooml.asp
- /admin/hszx.asp
- /bbs/zszbcl.asp
- /admin/passok.asp
- /bbs/tzfs.asp
- /webadmin/admin_menu1.asp
- /bbs/mmcll.asp
- /admin/tjlmok.asp
- /admin/bbzzcl.asp
- /bbs/dl.asp
- /bbs/z.asp
- /bbs/fs_list.asp
- /admin/hfsj.asp
- /bbs/room_zx.asp
- /bbs/lt_list.asp
- /bbs/hf_view.asp
- /admin/cnscu_lm.asp
- /admin/delok.asp
- /webadmin/conn.inc
- /bbs/zdzc.asp



