<%@ page language="C#" autoeventwireup="true" inherits="user_Friend_FriendList, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Import Namespace="D.Common"%>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script src="../../js/Common.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../Welcome.aspx">后台首页</a> >> 好友列表
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table align="center" cellpadding="2" cellspacing="1" class="border">
            <tr class="title">
                    <td>好友名称</td>
                    <td>
                        组 名 称
                    </td>
                    <td>
                        成员数量
                    </td>
                    <td>
                        操作
                    </td>
                </tr>
                <asp:Repeater ID="RepFriend" runat="server" OnItemCommand="RepFriend_ItemCommand">
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                            <td>
                                <%#Eval("FriendName")%>
                            </td>
                            <td>
                                <%#GetFriendGroupName(Eval("GroupId","{0}"))%>
                            </td>
                            <td>
                                0
                            </td>
                            <td align="center">
                                <asp:LinkButton ID="lnkDelete" runat="server" Text="删除" CommandName="Delete" CommandArgument='<%#Eval("Id") %>' OnClientClick="return confirm('确定移除该好友吗?')"></asp:LinkButton> ┊ <a href="../message/Write.aspx?UserName=<%#Function.UrlEncode(Eval("FriendName","{0}")) %>">发送短消息</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <table cellpadding="0" cellspacing="1" class="dh" align="center" width="99%">
                <tr>
                    <td>
                        <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页"
                            LastPageText="尾页" NextPageText="下一页" PageSize="20" HorizontalAlign="Right" PrevPageText="上一页"
                            showinputbox="Never" UrlPageIndexName="p" UrlPaging="True" ShowCustomInfoSection="Left"
                            Width="99%" LayoutType="Table" NumericButtonCount="5">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
