<!--#include file=conn.asp-->
<!--#include file=config.asp-->
<!--#include file=const.asp-->
<!--#include file=char.asp-->
<%
 '=========================================================
' File: Artbbs.asp
' Version:3.0
' Date: 2005-10-23
' Script Written by xmrxw
'=========================================================
' Copyright (C) 2004,2005 Xmrxw.Com All rights reserved.
' Web: http://www.xmrxw.com,http://www.xmzxw.com
' Email: info@mssky.com,super@mssky.com
' QQ：10689579　Msn：zdlmicr@hotmail.com
'=========================================================
dim id
id=checkStr(trim(request("id")))'去除特殊字符
	if id="" or not isInteger(id) then
	errmsg=errmsg+"<br>"+"<li>参数错误。"
	founderr=true
	end if
boardid=checkStr(trim(request("boardid")))'去除特殊字符
	if boardid="" or not isInteger(boardid) then
	errmsg=errmsg+"<br>"+"<li>参数错误。"
	founderr=true
	end if	
response.buffer=true
stats="文章评论"
call nav()
if founderr then
	call head_var("","")
	call Mslove_error()
else
	call head_var("玫瑰美文","artindex.asp")
call tumppages()'翻页处理
strFileName="Artbbs.asp?id="&id&"&boardid="&boardid&""
call main()
end if
call activeonline()
call footer()

sub main()
%>
<table width="100%" align=center cellpadding=3 cellspacing=1 class=tableborder1>
  <tr align="left"> 
    <th width="60%" height="28" align="center"  class=tablebody1><%=stats%></th>
  </tr>
  <%set rs=server.createobject("adodb.recordset")
sql="select BoardID,Username,Title,Topic,Content,Addtime from Ms_Artbbs where ID="&id&""
	rs.Open sql,conn,1,1
if not (rs.eof and rs.bof) then
call rspages()
do while not rs.eof and page_count<Cint(MaxPerPage)%>
  <tr align="center"> 
    <td width="100%" height="24" align="left"  class=tablebody2><img src=<%=rs(3)%> border="0"> <%=rs(2)%></td>
  </tr>
  <tr align="center"> 
    <td width="100%" height="80" align="left"  class=tablebody1><%=rs(4)%></td>
  </tr>
  <tr align="center">
    <td  class=tablebody1 align="right">评论者：<a href=dispuser.asp?username=<%=rs(1)%>><%=rs(1)%></a> 时间：<%=rs(5)%></td>
  </tr>
  <%page_count=page_count+1
  rs.movenext
  loop
  else
  response.Write("<tr align=center><td class=tablebody1>没有记录</td></tr>")
  end if
  if totalrec>0 then%>
    <tr align="center">
    <td  class=tablebody1 align="left"><%
		  	call showpage(strFileName)
		  %></td>
  </tr>
  <%end if%>
</table>
<%rs.close
end sub
%>