<!--#include file="conn.asp"-->
<!--#include file="inc/publicfun.asp"-->
<!--#include file="inc/md5.asp"-->
<!--#include file="bbsuser.asp"-->
<%
userid=request.cookies("clubuser_id")
pltype=request("groupname")
tyname="groupname"
if pltype<>"" then
searchstr=" and groupname='"&pltype&"'"
end if
%>
<!--#include file="memberinfo.asp"-->
<html><head><meta http-equiv=content-type content="text/html; charset=gb2312">
</head>
<body>
<center>
<title><%=username%>的好友管理中心</title>
<link rel="stylesheet" type="text/css" href="<%=cssfile%>">
<!--#include file="usernav.asp" -->
<!--#include file="haoyouhead.asp" -->
<div class="stage">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="layout">
<tr>
<td valign="top" class="c2t3">
<div id="m_blog" class="modbox">
<!--#include file="usercalog.asp" -->
</div>
</td>
<td valign="top" class="c2t1">
<div id="m_blog" class="modbox">
              <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr valign="middle"> 
                  <td height="50" colspan="6" class="f14" align="center"><strong>好友管理</strong></td>
                </tr>
                <tr> 
                  <td height="1" colspan="6" bgcolor="#336699" class=new14><spacer height="1" type="block"></td>
                </tr>
                <tr> 
                  <td width="24%" height="25"> <div align="left"><strong>好友用户名</strong></div></td>
                  <td width="54%" height="25">所属组名</td>
                  <td width="7%" >
<div align="center">隐藏</div></td>
                  <td width="7%" ><div align="center">编辑</div></td>
                  <td width="7%" >
<div align="center">删除</div></td>
                </tr>
                <tr> 
                  <td height="1" colspan="6" background="blogimages/dotbg.gif"><spacer height="1" type="block"></td>
                </tr>
<%
sql="select * from haoyou where userid="&request.cookies("clubuser_id")&searchstr& " order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
   wzrep =30
   wzpage = clng(request.querystring("page"))
   if len(wzpage) = 0 or wzpage = 0 then wzpage = 1
   rs.PageSize=wzrep
   rs.AbsolutePage=wzpage
   wzpagecount=rs.PageCount
   wzcount=rs.RecordCount
   for i = 0 to wzrep-1
   if rs.eof then exit for
%>
                <tr> 
                  <td height="25" ><div class="opt"> <a href="home.asp?userid=<%=rs("userid")%>" target="_blank"><%=rs("haoyouname")%></a></div></td>
                  <td><div class="opt"><a href="?groupname=<%=rs("groupname")%>"><%=rs("groupname")%></a></div></td>
                  <td height="25" align="center"><div class="opt"> 
                      <%if rs("sign")=0 then%>
                      <a href="haoyouop.asp?id=<%=rs("id")%>&op=top&v=1">显示</a> 
                      <%else%>
                      <a href="haoyouop.asp?id=<%=rs("id")%>&op=top&v=0"><font color="#FF0000">隐藏</font></a> 
                      <%end if%>
                    </div></td>
                  <td height="25" align="center"><div class="opt"><a href="friend_edit.asp?id=<%=rs("id")%>">编辑</a></div></td>
                  <td height="25" align="center"><div class="opt"><a href="haoyouop.asp?id=<%=rs("id")%>&op=del">删除</a></div></td>
                </tr>
                <tr> 
                  <td height="1" colspan="6" background="blogimages/dotbg.gif"><spacer height="1" type="block"></td>
                </tr>
<%
rs.movenext
next
rs.close
%>
                <tr> 
                  <td colspan="6" height="35"> &nbsp;共<font color=red><%= wzcount%></font>条 
                    <font color=red><%= wzrep%></font>/页 共<font color=red><%= wzpagecount%></font>页 
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%= pagenar(wzpagecount,userid,tyname,pltype)%></td>
                </tr>
                <%else%>
                <tr> 
                  <td colspan="6" height="25">你还没有任何评论</td>
                </tr>
                <%end if%>
              </table>
            </div>
</td>
</tr></table>
</div>
</div>
<br><center>
    <!--#include file="tail.asp" -->
  </center>
</center>
</body>
</html>
<%closedb%>