<!--#include file="Inc.asp"-->
<!--#include file="ydzq.asp"-->
<%call head()
call saycardd("我的黑名单")

%>

<!--#INCLUDE file="newguest.asp"-->
<%
if myid<>0 then
mz="[url=uinfo.asp?id="&myid&"&amp;saytk="&saytk&"&sid=[sid]]"&myni&"[/url]"
else
mz="游客"
end if
conn.execute("insert into sqdt(shijian,dz)values('"&now&"','"&mz&"管理了(url=/bbs/myhait.asp?saytk="&saytk&"&sid=[sid])好友黑名单(/url)')")
set rs=Server.CreateObject("ADODB.Recordset")
rs.open"select * from myhait where jid="&myid&" order by id desc",conn,1,1
If Not rs.eof	Then
	Dim PageSize,i
	PageSize=10						
	Dim Count,page,pagecount,gopage			
	gopage="blacklist.asp?saytk="&saytk&"&amp;sid="&sid&"&amp;bbsid="&bbsid&"&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	
dim username
set rs1=Server.CreateObject("ADODB.Recordset")
  rs1.open"select name from Users where id="&rs("bid"),conn,1,1
username=rs1("name")
  rs1.close
  set rs1=nothing
response.write""&i+(page-1)*PageSize&"."
response.write"<a href='uinfo.asp?id=" & rs("bid") & "&amp;saytk="&saytk&"&amp;sid="&sid&"'>" & ubb(username) & "</a>"
response.write"[<a href='getsave.asp?Action=h&amp;ids="&rs("bid")&"&amp;saytk="&saytk&"&amp;sid="&sid&"'>解黑</a>]<br/>"
rs.moveNext
 	Next
	if page-pagecount<0 then response.write "<a href="""&gopage&"page="&page+1&""">下页</a>"
	if page>1 then response.write "<a href="""&gopage&"page="&page-1&""">上页</a>"
	if pagecount>1 then response.write "<br/><b>"&page&"</b>/"&pagecount&"页<input name=""page"" format=""*N"" value="""&page&""" type=""text"" maxlength=""5"" emptyok=""true"" size=""3""/><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/>"
response.write"<a href='get.asp?action=h&amp;saytk="&saytk&"&amp;sid="&sid&"'>添加黑名单</a>"&chr(13)
response.write"<br/><a href=""myfriend.asp?saytk="&saytk&"&amp;sid="&sid&""">我的好友</a>"&chr(13)
%>
<!--#include file="fanhui.asp"-->
<%call headsay()%>