<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    ValidateRequest="false" CodeBehind="PromotionSetting.aspx.cs" Inherits="PowerEasy.Module.Promotion.WebSite.Admin.Promotion.PromotionSetting"
    Title="推广参数配置" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="server">
    <pe:ExtendedSiteMapPath ID="SmpNavigator" SiteMapProvider="AdminMapProvider" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table width="100%" border="0" cellpadding="2" cellspacing="1" class="border">
        <tr align="center">
            <td colspan="2" class="spacingtitle">
                <strong>推广参数配置</strong>
            </td>
        </tr>
       <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>--%>
                <tr class="tdbg">
                    <td class="tdbgleft" style="width: 40%">
                        <strong>是否开启申请支付： </strong>
                        <br />
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RadlPayType" runat="server" RepeatDirection="Horizontal"
                            AutoPostBack="True">
                            <asp:ListItem Value="false">是</asp:ListItem>
                            <asp:ListItem Value="true">否</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr class="tdbg">
                    <td class="tdbgleft" style="width: 40%">
                        <strong>每次最低提现金额：<pe:RegexValidator ValidateType="Money" ID="VmoneyMinimumAmount"
                            runat="server" ControlToValidate="TxtMinimumAmount" ErrorMessage="请正确输入金额！"></pe:RegexValidator>
                        </strong>
                        <br />
                    </td>
                    <td>
                        <asp:TextBox ID="TxtMinimumAmount" runat="server" MaxLength="14" Columns="30" 
                            Width="50px"></asp:TextBox>&nbsp;元
                    </td>
                </tr>
                <tr class="tdbg">
                    <td class="tdbgleft" style="width: 40%">
                        <strong>每次提现单位额度：<pe:RegexValidator ValidateType="Money" ID="VmoneyUnitAmount" runat="server"
                            ControlToValidate="TxtUnitAmount" ErrorMessage="请正确输入金额！"></pe:RegexValidator>
                        </strong>
                        <br />
                    </td>
                    <td>
                        <asp:TextBox ID="TxtUnitAmount" runat="server" MaxLength="14" Columns="30" 
                            Width="50px"></asp:TextBox>&nbsp;元&nbsp;<asp:CheckBox
                            ID="ChkUnitAmount" runat="server" Text="启用" />&nbsp;
                    </td>
                </tr>
         <%--   </ContentTemplate>
        </asp:UpdatePanel>--%>
        <tr class="tdbg">
            <td class="tdbgleft" style="width: 40%">
                <strong>会员注册推广佣金：<pe:RegexValidator ValidateType="Money" ID="VmonyRegisterAmount" runat="server"
                            ControlToValidate="TxtRegisterCommission" ErrorMessage="请正确输入金额！"></pe:RegexValidator></strong>
            </td>
            <td>
                <asp:TextBox ID="TxtRegisterCommission" runat="server" MaxLength="14" 
                    Columns="30" Width="50px"></asp:TextBox>&nbsp;元
            </td>
        </tr>
        <tr class="tdbg">
            <td class="tdbgleft" style="width: 40%">
                <strong>会员注册推广是否需要管理员审核：</strong>
            </td>
            <td>
                <asp:RadioButtonList ID="RadlIsAdminApproval" runat="server" RepeatDirection="Horizontal"
                    AutoPostBack="False">
                    <asp:ListItem Value="true">是</asp:ListItem>
                    <asp:ListItem Value="false">否</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <%--<asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>--%>
                <tr class="tdbg">
                    <td class="tdbgleft" style="width: 40%">
                        <strong>是否启用会员推广注册IP间隔时间：</strong>
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RadlIsExistIP" runat="server" RepeatDirection="Horizontal"
                            AutoPostBack="True">
                            <asp:ListItem Value="true">是</asp:ListItem>
                            <asp:ListItem Value="false">否</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr class="tdbg">
                    <td class="tdbgleft" style="width: 40%">
                        <strong>IP判断间隔时间：</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="TxtIPIntervalTime" runat="server" MaxLength="14" Columns="30" 
                            Width="50px"></asp:TextBox>
                            <asp:RadioButtonList ID="RadlDateUnits" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"
                            AutoPostBack="False">
                            <asp:ListItem Value="hours">小时</asp:ListItem>
                            <asp:ListItem Value="day">天</asp:ListItem>
                            <asp:ListItem Value="month">月</asp:ListItem>
                            <asp:ListItem Value="year">年</asp:ListItem>
                        </asp:RadioButtonList>
                        <pe:RegexValidator ID="Vreg" runat="server" 
                            ControlToValidate="TxtIPIntervalTime" Display="Dynamic" ErrorMessage="请正确填写数字！" 
                            ValidateType="PositiveNum"></pe:RegexValidator>
                    </td>
                </tr>   
         <%--   </ContentTemplate>
        </asp:UpdatePanel>--%>
        <tr class="tdbgbottom">
            <td colspan="2">
                <asp:Button ID="BtnSubmit" runat="server" Text="保存设置" OnClick="BtnSubmit_Click" />
            </td>
        </tr>
    </table>
    <div id="prompt-note">
        <dl>
            <dt class="prompt-note-tit"><span>提示说明</span> <a>每次最低提现金额</a> <a>每次提现单位额度</a> <a>会员注册推广是否需要管理员审核</a><a>IP判断间隔时间</a>
                <span class="right-line"></span></dt>
            <dd class="prompt-note-con">
                <p>
                    <li>当推广费小于此数值时不允许提现。</li>
                    <li>例：如此项设置成100元，那么当前推广费没有达到最低提现金额（100元）时则不能申请提现。</li>
                </p>
            </dd>
            <dd class="prompt-note-con" style="display: none;">
                <p>
                    <li>此项为可选项，为提现金额的倍数。在满足最低提现金额的前提下每次提现的金额必须是单位额度的整数倍，小于单位额度的余额不能提现。</li>
                    <li>例：如当前设置最低提现金额为100元，单位额度为50元，假设用户的推广金额有120元，则满足最低提现额100元，但是由于120元并不是50的整数倍，所以只能提取100元！</li>
                </p>
            </dd>
            <dd class="prompt-note-con" style="display: none;">
                <p>
                    <li>选择是：每成功推荐一名用户注册后，需要经过管理员审核后才算有效推广。</li>
                    <li>选择否：直接作为有效推广。</li>
                </p>
            </dd>
            <dd class="prompt-note-con" style="display: none;">
                <p>
                    <li>同个IP注册需要的间隔时间，即在间隔时间内不允许重复注册。需要注意的是，此功能有一个前提就是要将“是否启用会员推广注册IP间隔时间”开启！ </li>
                    <li>最小单位为“小时”，最大单位为“年”。</li>
                </p>
            </dd>
            <div class="clearbox">
            </div>
        </dl>
    </div>
    </span>
</asp:Content>
