<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageVIPGrade.aspx.cs" Inherits="admin_VipGrade_ManageVIPGrade" %>

<%@ Register Src="../../Control/PageNo.ascx" TagName="PageNo" TagPrefix="uc1" %>
<!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 id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>会员组管理</title>
    <link rel="stylesheet" href="../skin/style.css" type="text/css" />

    <script type="text/javascript" src="../../js/jquery.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="itemtitle">
            <h3>
                操作提示</h3>
        </div>
        <div class="itemtitle_tect">
            <ul>
                <li>通过会员组管理，您可以进行编辑会员组名称、标志图征、权限设置、是否允许注册以及删除会员组等操作；</li>
            </ul>
        </div>
        <div class="clr">
            <asp:Panel ID="plMove" runat="server" Visible="false">
                <div class="itemtitle_tect">
                    <p>
                        请选择分类名称：
                        <asp:DropDownList ID="dropMove" runat="server">
                        </asp:DropDownList>
                        <asp:Button ID="btnMove" runat="server" Text="转移" CssClass="i_button" OnClientClick="javascript: return check()"
                            OnClick="btnMove_Click" />
                        <asp:Button ID="btnBank" runat="server" CssClass="i_button" Text="取消" OnClick="btnBank_Click" />
                    </p>
                </div>
            </asp:Panel>
        </div>
        <div class="partition">
            <div class="Option">
                <span><strong>快捷操作</strong></span> <span class="pl">
                    <asp:HyperLink ID="Add" runat="server" NavigateUrl="AddVipGrade.aspx">添加会员组</asp:HyperLink></span>
            </div>
        </div>
        <div class="clr">
        </div>
        <div class="talbe_border">
            <asp:GridView ID="gdvVipGrade" runat="server" DataKeyNames="id" AutoGenerateColumns="False"
                CellPadding="0" GridLines="None" CssClass="talbe_list" OnRowDataBound="gdvVipGrade_RowDataBound">
                <Columns>
                    <asp:TemplateField Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblId" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle CssClass="nolet" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="Name" HeaderText="等级名称">
                        <ItemStyle CssClass="left2" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="排序">
                        <ItemTemplate>
                            <asp:TextBox ID="TxtSort" runat="server" Text='<%# Eval("Sort") %>' Width="80px">
                            </asp:TextBox>
                        </ItemTemplate>
                        <HeaderStyle CssClass="th180" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="等级标志">
                        <ItemTemplate>
                            <asp:Image ID="imgFlag" ImageUrl='<%# Eval("Flag")%>' runat="server" Width="80px"
                                Height="50px" />
                        </ItemTemplate>
                        <HeaderStyle CssClass="th180" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作选项">
                        <ItemTemplate>
                            <a href='VipGradeRights.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID")%>'>权限管理</a>
                            | <a href='EditVipGrade.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID")%>'>编辑</a>
                            |
                            <asp:LinkButton ID="lbtnUpdate" Text="删除" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID")+"|"+DataBinder.Eval(Container.DataItem, "Name")%>'
                                runat="server" OnCommand="lbtnUpdate_Command"></asp:LinkButton></ItemTemplate>
                        <HeaderStyle CssClass="th180" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="header" />
            </asp:GridView>
            <div class="Paging">
                <p>
                    <uc1:PageNo ID="PageNo1" runat="server" />
                </p>
                <asp:Button ID="btnSort" runat="server" Font-Size="9pt" Text="排序" CssClass="i_button"
                    OnClick="btnSort_Click" />
            </div>
            <div class="talbe_border">
                <div>
                    <asp:RadioButtonList ID="radlGrade" runat="server" RepeatDirection="Horizontal" OnSelectedIndexChanged="radlRole_SelectedIndexChanged"
                        AutoPostBack="true" Visible="false">
                        <asp:ListItem Value="转移">转移</asp:ListItem>
                        <asp:ListItem Value="删除">删除</asp:ListItem>
                    </asp:RadioButtonList>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
