<%
    //-----------------------------------------------------------
    // 文件名称: User_UserGroup_Manage.aspx
    // 页面名称: 会员等级管理
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-06-10
    // 修改标识: Add By 钟治宇 2008-11-11 <script language="javascript" src="js/showimg.js"></script> 位置没放对
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.User_UserGroup_Manage, V5Shop.Shop.User" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/ManageHeader.ascx" TagName="ManageHeader" TagPrefix="uc3" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<!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 href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />

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

    <style type="text/css">
    #dhtmltooltip
    {
        font-size: 9pt;
        BORDER-RIGHT: gray 1px solid; 
        PADDING-RIGHT: 4px; 
        BORDER-TOP: gray 1px solid; 
        PADDING-LEFT: 4px; 
        Z-INDEX: 100; 
        FILTER: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=120); 
        VISIBILITY: hidden; 
        PADDING-BOTTOM: 4px; 
        BORDER-LEFT: gray 1px solid; 
        PADDING-TOP: 4px; 
        BORDER-BOTTOM: gray 1px solid; 
        POSITION: absolute; 
        BACKGROUND-COLOR: #cccccc
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div id='dhtmltooltip' style="left: 0px; top: 0px">
            <img src="" alt="" /></div>

        <script language="javascript" src="js/showimg.js"></script>

        <div>
            <uc3:ManageHeader ID="PageHead" runat="server" />
            <div id="search">
                <!-- 查询部 -->
                <div style="padding-right: 20px; padding-left: 20px; padding-bottom: 20px; padding-top: 20px;
                    border-bottom: #f7f7f7 4px solid">
                    <input id="CheckAllBox" onclick="CheckAll()" type="checkbox" class="checkbox" />全选
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnAdd" runat="server" ForeColor="#4B6888" meta:resourcekey="btnAddResource2"
                        OnClick="btnAdd_Click"><img src="images/icon/key_add.gif" alt="Read/Write Property"/> 添加</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnEdit" runat="server" ForeColor="#4B6888" meta:resourcekey="btnEditResource2"
                        OnClick="btnEdit_Click" OnClientClick="return CheckEdit()" CausesValidation="False"><img src="images/icon/key_edit.gif" alt="Read/Write Property"/> 编辑</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="btnDelStatus" runat="server" CausesValidation="False" ForeColor="#4B6888"
                        meta:resourcekey="btnDelResource2" OnClick="btnDel_Click" OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" alt="Read/Write Property"/> 删除</asp:LinkButton></div>
            </div>
            <div id="content">
                <!-- 明细数据 -->
                <div class="listborder">
                    <cc1:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CssClass="datalist" HeaderStyle-ForeColor="#000000"
                        EmptyDataText="没有任何可用信息！">
                        <PagerSettings Mode="NumericFirstLast" />
                        <Columns>
                            <asp:TemplateField meta:resourcekey="DetilData">
                                <itemtemplate>
                                <input runat="server" value='<%# Eval("ID") %>' id="CheckBoxID" type="checkbox" class="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" />
                            </itemtemplate>
                                <itemstyle horizontalalign="Center" width="5%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID">
                                <itemstyle width="5%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Name" HeaderText="等级名称" SortExpression="Name">
                                <itemstyle width="14%" />
                            </asp:BoundField>
                            <asp:TemplateField>
                                <headertemplate>等级图片</headertemplate>
                                <itemtemplate>
                                    <img src="images/icon-viewpic.gif" onmouseover="javascript:ddrivetip('<img src=../<%# Eval("Ico") %>>','#ffffff')" onmouseout="hideddrivetip()" />

                                </itemtemplate>
                                <itemstyle horizontalalign="Center" width="8%" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <headertemplate>等级所需消费金额</headertemplate>
                                <itemtemplate>
                                    <%# Eval("NewValue")%>
                                </itemtemplate>
                                <itemstyle horizontalalign="Center" width="8%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="Discount" HeaderText="等级折扣" SortExpression="Discount">
                                <itemstyle width="10%" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="DetilData" HeaderText="是否默认等级" SortExpression="IsDefault">
                                <itemtemplate>
                                    <asp:Label ID="lblIsDefault" runat="server" Text='<%# FormatDefaultState(DataBinder.Eval(Container, "DataItem(IsDefault)","{0}")) %>' />
                                </itemtemplate>
                                <itemstyle width="10%" />
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle CssClass="category" ForeColor="Black" />
                    </cc1:V5ShopGridView>
                </div>
                <div style="margin:10px;">
                ·新会员注册时为[默认组]会员，[默认组]不能删除；<br>
                ·会员消费金额达到<font color="#FF4500">【等级所需消费金额】</font>时，自动升级到该组；<font color="#FF4500">【等级所需消费金额】</font>为负则表示不能自动升级到该组；<br>
                ·<font color="#FF4500">【等级折扣】</font>会员购物时的价格折扣率；
                </div>
            </div>
            <uc2:PageBottom ID="PageBottom" runat="server" />
            <div id="hiddenfield">
                <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                <uc1:HiddenField ID="Alert" runat="server" />
            </div>
        </div>
    </form>
</body>
</html>
