<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FriendGroupManage.aspx.cs"
    Inherits="PowerEasy.Module.General.WebSite.User.UserFriend.FriendGroupManage" %>

<!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>
</head>
<body>
    <pe:ExtendedSiteMapPath ID="YourPosition" SiteMapProvider="UserMapProvider" runat="server" />
    <form id="MainForm" runat="server">
    <div class="model_info_list">
        <div class="model_info_sate mtop10">
            <ul>
                <li class="hover"><span><a href="javascript:void(0)">
                    <asp:Localize ID="Localize1" Text=" <%$ Res: User_Shop_FriendGroupManage_Page, 好友组管理 %>"
                        runat="server" /></a></span></li>
            </ul>
        </div>
        <div class="model_info_content">
            <pe:MemberExtendedGridView ID="EgvFriendGroup" runat="server" SerialText="ID" DataKeyNames="FriendGroupID"
                OnRowCommand="EgvFriendGroup_RowCommand" AutoGenerateSerialColumn="true" AutoGenerateColumns="false"
                OnRowDataBound="EgvFriendGroup_RowDataBound">
                <Columns>
                    <pe:BoundField HeaderText="<%$ Res: User_Shop_FriendGroupManage_BoundField1,成员组名 %>"
                        DataField="FriendGroupName" HeaderStyle-Width="50%">
                    </pe:BoundField>
                    <pe:BoundField HeaderText="<%$ Res: User_Shop_FriendGroupManage_BoundField2,成员数量 %>"
                        HeaderStyle-Width="15%">
                    </pe:BoundField>
                    <pe:TemplateField HeaderText="<%$ Res: User_Shop_FriendGroupManage_TemplateField1,操 作 %>">
                        <ItemTemplate>
                            <asp:HyperLink Enabled='<%#Convert.ToInt32(Eval("FriendGroupID"))==0?false:true %>'
                                ID="HyperLink1" NavigateUrl='<%#string.Format("FriendGroup.aspx?Action=Modify&GroupID={0}&GroupName={1}",Eval("FriendGroupID"), Server.UrlEncode(Convert.ToString(Eval("FriendGroupName"))) )%>'
                                runat="server" Text="<%$ Res: User_Shop_FriendGroupManage_HyperLink1,修改 %>"></asp:HyperLink>
                            <asp:LinkButton ID="LinkButton1" OnClientClick="<%$ Res: User_Shop_FriendGroupManage_LinkButton1_OnClientClick,if(!this.disabled){return confirm('删除该分组后，该分组下面的好友也会删除，确定要删除吗？');} %>"
                                Enabled='<%#Convert.ToInt32(Eval("FriendGroupID"))==0||Convert.ToInt32(Eval("FriendGroupID"))==1?false:true %>'
                                CommandName="Del" CommandArgument='<%#Eval("FriendGroupID") %>' runat="server"
                                Text="<%$ Res: User_Shop_FriendGroupManage_LinkButton1,删除 %>"></asp:LinkButton>
                            <asp:HyperLink ID="HyperLink2" NavigateUrl='<%#string.Format("FriendManage.aspx?GroupID={0}",Eval("FriendGroupID")) %>'
                                runat="server">
                                <asp:Localize ID="Localize2" Text="<%$ Res: User_Shop_FriendGroupManage_Localize2,列出成员名单 %>"
                                    runat="server" /></asp:HyperLink>
                        </ItemTemplate>
                    </pe:TemplateField>
                </Columns>
            </pe:MemberExtendedGridView>
        </div>
    </div>
    <asp:Localize ID="Localize3" Text="<%$ Res: User_Shop_FriendGroupManage_Localize3,注意： 默认组黑名单，拒收所有来自黑名单的短消息。 %>"
        runat="server" />
    </form>
</body>
</html>
