<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_AdminGroup, mallz" title="权限组管理" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:GridView id="GridView1" runat="server" CssClass="adminlist" EnableViewState="False" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="AdminGourpID" AutoGenerateColumns="False">
        <Columns>
        <asp:BoundField ReadOnly="True" DataField="AdminGourpID" InsertVisible="False" SortExpression="Admin_ID" HeaderText="组ID"/>
        <asp:BoundField DataField="AdminGroupName" SortExpression="UserName" HeaderText="组名称"/>
        <asp:TemplateField  HeaderText="类型" HeaderStyle-Width="8%">
            <ItemTemplate>
                <asp:Literal ID="ShopRecommend" Text='<%# (Convert.ToInt32(Eval("Access"))==1)?"超级管理员组":"普通管理员组" %>' runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="AdminNum" HeaderText="组人数" />
        <asp:BoundField DataField="remark" HeaderText="备注"/>
        <asp:TemplateField HeaderText="操作">
            <ItemTemplate>
               <asp:HyperLink id="LinkButton2" runat="server" Text="修改" NavigateUrl='<%#"Admin_AddAdminGroup.aspx?AdminGroupID=" + Eval("AdminGourpID") %>'/> 
               <asp:LinkButton id="btnDelete" runat="server" OnCommand="DeleteAdminGroup" Text="删除" CommandName='<%# Eval("AdminGourpID") %>' OnClientClick="return confirm('您真的要删除?')"/> 
            </ItemTemplate>
        </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
               <tr>
		         <th scope="col">组ID</th><th scope="col">组名称</th><th scope="col" style="width:15%;">类型</th><th scope="col">备注</th><th scope="col">操作</th><th scope="col">删除</th>
	           </tr>
	           <tr>
	             <td colspan="6">暂无记录</td>
	           </tr>
        </EmptyDataTemplate>
    </asp:GridView> 

</asp:Content>

