/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 & "&amp;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 & "&amp;id=" &  rs("id") & "&amp;i=" & i+1 & "&amp;page=" & page & "'>下页</a>"
   End if
   if cint(i)>0 then 
       Response.Write "&nbsp;" & "<a href='view.asp?ltid=" & ltid & "&amp;id=" &  rs("id") & "&amp;i=" & i-1 & "&amp;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 & "&amp;id=" &  rs("id") & "&amp;i=" & i+1 & "&amp;page=" & page & "'>下页</a>"
   End if
   if cint(i)>0 then 
       Response.Write "&nbsp;" & "<a href='view.asp?ltid=" & ltid & "&amp;id=" &  rs("id") & "&amp;i=" & i-1 & "&amp;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%>&amp;id11=<%=id11%>&amp;idss=<%=idss%>&amp;ltid=<%=ltid%>&amp;id=<%=id%>&amp;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&amp;id="&rs("did")&"' >回到上级</a><br/>")
end if
      rs.close
      set rs=nothing
      conn.close
      set conn=nothing
      %>

<!--#include file="w.asp"-->
</p></card></wml>
字母检索
回到顶部