<!--#include file="Inc.asp"-->
<!--#include file="ydzq.asp"-->

<%Call head()
Call saycarda("操作日志")
 if myid<>0 then
mz="[url=/bbs/uinfo.asp?id="&myid&"&amp;sid=[sid]]"&myni&"[/url]"
else
mz="游客"
end if
conn.execute("insert into sqdt(shijian,dz)values('"&now&"','"&mz&"看了版务日志')")
dim bbsid
bbsid=request.querystring("bbsid")
if bbsid="" or IsNumeric(bbsid)=False then
  Call Error("ID无效！")
  end if
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open"select nr,tm from board where bbsid="&bbsid&" order by ID desc",conn,1,1 
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10						
	Dim Count,page,pagecount,gopage			
	gopage="logview.asp?bbsid="&bbsid&"&amp;sid="&sid&"&amp;"
	Count=rs.recordcount	
	page=int(request.QueryString ("page"))
	if page<=0 or page="" then page=1		
	pagecount=(count+pagesize-1)\pagesize	
        if page>pagecount then page=pagecount
	rs.move(pagesize*(page-1))					
	For i=1 To PageSize     						
	If rs.eof Then Exit For	
response.write""&i+(page-1)*PageSize&"."&ubb(rs("nr"))&""
response.write("[" & ubb2(rs("tm")) & "]<br/>")   
	rs.moveNext
 	Next
	if page-pagecount<0 then response.write "<a href="""&gopage&"page="&page+1&""">下一页</a>"&chr(13)
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">上一页</a>"&chr(13)

response.write "<br/>["&page&"/"&pagecount&"页 "&count&"条]<br/>"
	if pagecount>1 then response.write "<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""2""/><a href="""&gopage&"page=$(page)"">跳到该页</a><br/>"
Else
response.write"暂无任何操作日志！<br/>"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
Response.write "<a href=""bbs_vip.asp?bbsid="&bbsid&"&amp;sid="&sid&""">返回论坛版务</a>"
response.write"<br/><a href='board.asp?bbsid="&bbsid&"&amp;sid="&sid&"'>返回本版</a>"
%><!--#include file="fanhui.asp"-->
<%call headsay()%>