<!--#include file="Inc.asp"-->
<!--#include file="ydzq.asp"-->
<%   Response.write "<card title=""回复管理""><p>"

Response.write "会员I D:<input name='ids"&tt&"' value=''/>"
Response.write "<anchor>搜回复"
Response.write "<go href=""relist.asp?saytk="&saytk&"&amp;sid="&sid&""" method=""post"" accept-charset=""utf-8"">"
Response.write "<postfield name=""ids"" value=""$(ids"&tt&")""/>"
Response.write "</go></anchor><br/>"
dim ids
ids=request("ids")
if ids<>"" then
if ids="" or Isnumeric(ids)=False then
  Call Error("会员ID无效！")
  end if
  
'检查ID是否存在
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "SELECT id,name FROM users where id="&ids,conn,1,1
if rs.eof then
  rs.close
  set rs=Nothing
  Call Error("会员ID不存在！")
end if
username=rs("name")
  rs.close
  set rs=Nothing
  end if
  
if ids<>"" then

   Response.write "会员"&username&"("&ids&")的回复<br/>"
   gettxt="where fid="&ids&""
end if
set rs=Server.CreateObject("ADODB.Recordset")

rs.open"select * from users  "&id&"  order by  id desc",conn,1,1

If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10				
	Dim Count,page,pagecount,gopage			
	gopage="relist.asp?ids="&ids&"&amp;saytk="&saytk&"&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 "[<a href='topicdel.asp?action=siddel&amp;ids="&rs("id")&"&amp;id="&ids&"&amp;saytk="&saytk&"&amp;sid="&sid&"'>删</a>]"

response.write ""&i+(page-1)*PageSize&"."
response.write ubb(rs("nr"))&fordate2(rs("htm"))&"<br/>"
rs.moveNext
 	Next
	'response.write "<br/>"&chr(13)
	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"<br/><a href='relistdel.asp?saytk="&saytk&"&amp;sid="&sid&"'>回复处理</a>"%>
<!--#include file="fanhui.asp"-->
</p></card>
</wml>