<%@ page language="C#" autoeventwireup="true" inherits="admin_user_UserGroupList, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<!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" />
</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="../info.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" width="99%" class="border">
                <tr class="title" id="dd" runat="server">
                    <td class="t1">ID
                    </td>
                    <td>用户组名称
                    </td>
                    <td width="10%">所属模型</td>
                    <td>用户数量</td>
                    <td>管理操作</td>
                </tr>
                <asp:Repeater ID="RepUserGroup" runat="server" 
                    onitemcommand="RepUserGroup_ItemCommand" 
                    onitemdatabound="RepUserGroup_ItemDataBound">
                    <ItemTemplate>
                        <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                            <td class="t1"><%#Eval("UserGroupId")%>
                            </td>
                            <td><%#Eval("GroupName")%>
                            </td>
                            <td align="center"><%#GetUserModelName(Eval("ModelId","{0}"))%></td>
                            <td align="center"><%#GetUserNum(Eval("UserGroupId","{0}"))%></td>
                            <td align="center"><asp:LinkButton ID="LinkButton1" runat="server" Text="设置注册默认组" CommandName="setusergroup" CommandArgument='<%#Eval("ModelId")+","+Eval("UserGroupId") %>'></asp:LinkButton> ┊ <a href="UserGroup.aspx?UserGroupId=<%#Eval("UserGroupId") %>">修改</a> ┊ <asp:LinkButton ID="lnkDelete" runat="server" Text="删除" CommandName="delete" CommandArgument='<%#Eval("UserGroupId") %>'></asp:LinkButton> ┊ <a href='UserList.aspx?ModelId=<%#Eval("ModelId","{0}")%>&field=UserGroupId&keyword=<%#Eval("UserGroupId","{0}")%>'>列出会员</a></td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
