<%
    //-----------------------------------------------------------
    // 文件名称: User_UserGroup_Operate.aspx
    // 页面名称: 会员等级添加/编辑
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-06-10
    //-----------------------------------------------------------
%>

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

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

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

</head>
<body>
    <form id="form1" runat="server">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="【会员等级添加】" meta:resourcekey="lblAddResource1" />
                <asp:Label ID="lblEdit" runat="server" Text="【会员等级编辑】" meta:resourcekey="lblEditResource1" />
                <a href='User_UserGroup_Manage.aspx' title="返回文章分类管理">返回列表</a>
            </div>
        </div>
        <div style="text-align:center;">
            <asp:Panel runat="server" ID="PanelShow" Width="100%" meta:resourcekey="PanelShowResource1">
                <div>
                    <table id="OperateTable" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="20%" height="30"  align="right" valign="middle">
                                <asp:Label ID="Label4" runat="server" Text="会员等级ID："/></td>
                            <td width="80%" align="left" valign="middle" style="color: red">
                                <cc1:NumberBox ID="txtID" runat="server" Enabled="False" IsInt="True" TabIndex="1" meta:resourcekey="txtIDResource1" />
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" height="30"  align="right" valign="middle"><asp:Label ID="Label1" runat="server" Text="会员等级名称：" meta:resourcekey="Label1Resource1" /></td>
                            <td width="80%" align="left" valign="middle" style="color: red"><asp:TextBox ID="txtName" runat="server" TabIndex="2" meta:resourcekey="txtNameResource1" MaxLength="50" />
                                <span style="color: #ff0000">*
                                    <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName" Display="Dynamic" ErrorMessage="必段输入" meta:resourcekey="rfvNameResource1"></asp:RequiredFieldValidator></span></td>
                        </tr>
                        <tr>
                            <td width="20%" height="30"  align="right" valign="middle"><asp:Label ID="Label2" runat="server" Text="会员等级图片：" meta:resourcekey="Label2Resource1" /></td>
                            <td width="80%" align="left" valign="middle" style="color: red">
                                <cc1:ImageBox ID="txtICO" runat="server" Text="选择等级图片" ShowSelect="True" meta:resourcekey="txtICOResource1" BoxWidth="300px" />
                            </td>
                        </tr>
                        <tr>
                            <td width="20%"  align="right" valign="middle" style="height: 30px">
                                <cc1:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="等级所需消费金额" ImageURL="images/help.gif"
                                    Text="达到这个消费金额会就属于这个等级,选择是为普通组否为特殊组。" />
                                <asp:Label ID="Label3" runat="server" Text="等级所需消费金额：" /></td>
                            <td width="80%" align="left" valign="middle" style="color: red; height: 30px;">
                                <br />
                                <asp:RadioButton ID="RadioButton1" runat="server" AutoPostBack="True" GroupName="1"
                                    OnCheckedChanged="RadioButton1_CheckedChanged" Text="是" />
                                <asp:RadioButton ID="RadioButton2" runat="server" AutoPostBack="True" GroupName="1"
                                    OnCheckedChanged="RadioButton2_CheckedChanged" Text="否" Checked="True" />
                              <asp:TextBox ID="txtMinMoney" runat="server" MaxLength="8" Visible="False"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtMinMoney"
                                    ErrorMessage="请输入消费金额"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtMinMoney"
                                    ErrorMessage="输入格式错误" ValidationExpression="^(\+)?\d+(\.\d+)?$"></asp:RegularExpressionValidator><br />
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" height="30"  align="right" valign="middle">
                                <cc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="等级折扣" ImageURL="images/help.gif"
                                    Text="等级享有的扣折。" />
                                <asp:Label ID="Label5" runat="server" Text="等级折扣：" meta:resourcekey="Label5Resource1" /></td>
                            <td width="80%" align="left" valign="middle" style="color: red">
                                <cc1:NumberBox ID="txtDiscount" runat="server" IsInt="True" TabIndex="5" Width="45px" Value="100" meta:resourcekey="txtDiscountResource1" />
                                &nbsp;<asp:Label ID="Label11" runat="server" Text="%" meta:resourcekey="Label11Resource1" /></td>
                        </tr>
                        <tr>
                            <td width="20%"  align="right" valign="middle" style="height: 37px">
                                <cc1:HelpCtrl ID="HelpCtrl3" runat="server" FontColor="red" Header="是否默认等级" ImageURL="images/help.gif"
                                    Text="设为默认的会员等级后,添加的会员和注册的会员会自动属于此等级。" />
                                <asp:Label ID="Label8" runat="server" Text="是否默认等级：" meta:resourcekey="Label8Resource1" /></td>
                            <td width="80%" align="left" valign="middle" style="color: red; height: 37px;">
                                <asp:RadioButtonList ID="rblIsDefault" runat="server" CssClass="input2" RepeatDirection="Horizontal" Width="150px" TabIndex="7" meta:resourcekey="rblIsDefaultResource1">
                                    <asp:ListItem Selected="True" Value="1" meta:resourcekey="ListItemResource1" Text="是"></asp:ListItem>
                                    <asp:ListItem Value="0" Selected="True" meta:resourcekey="ListItemResource2" Text="否"></asp:ListItem>
                                </asp:RadioButtonList></td>
                        </tr>
                        <tr style="display:none;">
                            <td width="20%" height="30"  align="right" valign="middle"><asp:Label ID="Label9" runat="server" Text="是否显示等级会员价格：" meta:resourcekey="Label9Resource1" /></td>
                            <td width="80%" align="left" valign="middle" style="color: red">
                                <asp:RadioButtonList ID="rblIsShowPrice" runat="server" CssClass="input2" RepeatDirection="Horizontal" Width="150px" TabIndex="8" meta:resourcekey="rblIsShowPriceResource1">
                                    <asp:ListItem Selected="True" Value="1" meta:resourcekey="ListItemResource3" Text="显   示"></asp:ListItem>
                                    <asp:ListItem Value="0" meta:resourcekey="ListItemResource4" Text="不显示"></asp:ListItem>
                                </asp:RadioButtonList></td>
                        </tr>
                        <tr>
                            <td align="center" style="text-align: center;" colspan="2">
                                <br />
                                <asp:Button ID="btnAddSubmit" runat="server" meta:resourcekey="btnAddResource1" OnClick="btnAddSubmit_Click" Text="确定" CssClass="button" />
                                <input id="iptReset" runat="server" type="reset" value="重置" class="button" />
                                <asp:Button id="btnReturn" onclick="btnReturn_Click" runat="server" Text="返回列表" CssClass="button" CausesValidation="false" />
                                <br />
                            </td>
                        </tr>
                    </table>
                </div>
            </asp:Panel>
            <uc2:PageBottom ID="PageBottom" runat="server" />
        </div>
        <div id="hiddenfield">
            <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
            <asp:HiddenField ID="IsEdit" 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>
    </form>        
	<script type="text/javascript">
    //加TABLE样式
    InitTrClass();
	</script>
</body>
</html>
