28,406
社区成员
发帖
与我相关
我的任务
分享<%
If id="" and page="" Then
serversc=Request.ServerVariables("QUERY_STRING")
id=replace(serversc,"/","")
id=replace(id,".html","")
arr=split(id,"-")
id=arr(0)
page=arr(1)
End If
%> <% '==================================================
'过程名:listbody
'作 用:按要求显示文章内容
'参 数:body ------ 文章内容
'==================================================
Sub listbody(body)
dim arrbody,pages
if Instr(body,"[NextPage]")<=0 then
response.write body
'response.write "</p><p align='center'><font color='red'><b>[1]</b></font></p>"
else
CurPage=request("CurPage")
arrbody=split(body,"[NextPage]")
pages=Ubound(arrbody)+1
if CurPage="" then
CurPage=1
else
CurPage=Cint(CurPage)
end if
if CurPage<1 then CurPage=1
if CurPage>pages then CurPage=pages
response.write arrbody(CurPage-1)
response.write "<div align=center>"
for i=1 to pages
if i=Curpage then response.write "[<font color=red>"&i&"</font>] " else response.write "[<a href=?id="&id&"&CurPage="&i&">"&i&"</a>] "
next
response.write "</div>"
end if
End Sub
%>
<% call(listbody(rsnews("content")))%>