<%@ page language="C#" autoeventwireup="true" inherits="ECMe_Promotions_AddCoupon, ECMe_Deploy" %>

<!-- Put IE into quirks mode -->
<!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/Admin/CSS/ECMe.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Admin/CSS/body63.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/Admin/CSS/AdminIndex.css" rel="stylesheet" type="text/css" />
    <link href="../JS/DatePicker/datePicker.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JS/jquery.js"></script>
    <script type="text/javascript" src="../JS/DatePicker/date.js"></script>
    <script type="text/javascript" src="../JS/DatePicker/jquery.datePicker.js"></script>
    <script type="text/javascript">
        $(function () {
            Date.firstDayOfWeek = 0;
            Date.format = 'yyyy/mm/dd';
            $('.top_date').datePicker({ clickInput: true, startDate: '2001/01/01' });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:RequiredFieldValidator ID="RFV_TCouponName" runat="server" ErrorMessage="优惠卷名称不能为空"
        ControlToValidate="TCouponName" Display="None"></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="RFV_TNumber" runat="server" ErrorMessage="生成卷数量不能为空"
        ControlToValidate="TNumber" Display="None"></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="RFV_TPrice" runat="server" ErrorMessage="优惠卷金额不能为空"
        ControlToValidate="TPrice" Display="None"></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="RFV_TMeetPrice" runat="server" ErrorMessage="满足金额不能为空"
        ControlToValidate="TMeetPrice" Display="None"></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="RFV_TStartDate" runat="server" ErrorMessage="起始日期不能为空"
        ControlToValidate="TStartDate" Display="None"></asp:RequiredFieldValidator>
    <asp:RequiredFieldValidator ID="RFV_TEndDate" runat="server" ErrorMessage="结束日期不能为空"
        ControlToValidate="TEndDate" Display="None"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="REV_TPrice" runat="server" ErrorMessage="抵扣金额格式不对"
        ValidationExpression="^[0-9]+(.[0-9]{1,4})?$" ControlToValidate="TPrice" Display="None"></asp:RegularExpressionValidator>
    <asp:RegularExpressionValidator ID="REV_TMeetPrice" runat="server" ErrorMessage="抵扣金额格式不对"
        ValidationExpression="^[0-9]+(.[0-9]{1,4})?$" ControlToValidate="TMeetPrice"
        Display="None"></asp:RegularExpressionValidator>
        <asp:RegularExpressionValidator ID="REV_TStartDate" runat="server" ControlToValidate="TStartDate"
    Display="None" ErrorMessage="起始日期时间格式不对" ValidationExpression="^(?:(?:1[6-9]|[2-9][0-9])[0-9]{2}([-/.]?)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:(?:1[6-9]|[2-9][0-9])(?:0[48]|[2468][048]|[13579][26])|(?:16|[2468][048]|[3579][26])00)([-/.]?)0?2\2(?:29))$"></asp:RegularExpressionValidator>
<asp:RegularExpressionValidator ID="REV_TEndDate" runat="server" ControlToValidate="TEndDate"
    Display="None" ErrorMessage="结束日期时间格式不对" ValidationExpression="^(?:(?:1[6-9]|[2-9][0-9])[0-9]{2}([-/.]?)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:(?:1[6-9]|[2-9][0-9])(?:0[48]|[2468][048]|[13579][26])|(?:16|[2468][048]|[3579][26])00)([-/.]?)0?2\2(?:29))$"></asp:RegularExpressionValidator>
    <div class="header">
        <h2>
            营销管理 &gt; <a href="#" class="admin_blue">添加优惠卷</a></h2>
    </div>
    <div class="container">
        <asp:ValidationSummary ID="MainValidationSummary" DisplayMode="List" CssClass="error"
            runat="server" />
        <div class="all_1">
            <table border="0" cellspacing="0" cellpadding="0" style="width: 100%">
                <tr>
                    <td valign="top">
                        <div class="right">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ADDGood_table_1">
                                <tr>
                                    <th style="width: 80px">
                                        优惠卷名称：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TCouponName" CssClass="input_1" Width="200px" runat="server"></asp:TextBox>
                                        <img src="../CSS/Admin/images/help.png" alt=" " width="10" height="10" />
                                        请输入优惠卷的名称，例如：50元无条件抵扣卷，满200送100优惠卷
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        生成卷数量：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TNumber" CssClass="input_1" Width="200px" runat="server"></asp:TextBox>
                                        <img src="../CSS/Admin/images/help.png" alt=" " width="10" height="10" />
                                        生成优惠卷的数量。
                                    </td>
                                </tr>
                               
                                <tr>
                                    <th>
                                        满足金额：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TMeetPrice" Text="0" CssClass="input_1" Width="200px" runat="server"></asp:TextBox>
                                        <img src="../CSS/Admin/images/help.png" alt=" " width="10" height="10" />
                                        使用此优惠卷需要购物车满足的金额。
                                    </td>
                                </tr>
                                <tr>
                                    <th style="width: 70px">
                                        抵扣金额：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TPrice" Text="0" CssClass="input_1" Width="200px" runat="server"></asp:TextBox>
                                        <img src="../CSS/Admin/images/help.png" alt=" " width="10" height="10" />
                                        使用此卡后抵扣的金额。
                                    </td>
                                </tr>
								 <tr>
                                    <th>
                                        起始日期至：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TStartDate" CssClass="top_date" Width="200px" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        有效日期至：
                                    </th>
                                    <td>
                                        <asp:TextBox ID="TEndDate" CssClass="top_date" Width="200px" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        是否免运费：
                                    </th>
                                    <td>
                                        <asp:CheckBox ID="CIsFreeFreight" runat="server" />
                                        <img src="../CSS/Admin/images/help.png" alt=" " width="10" height="10" />
                                        使用此优惠卷是否免运费。
                                    </td>
                                </tr>
								
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div class="footer">
        <div class="footer_button">
            <asp:Button ID="BSubmit" runat="server" Text="保存当前操作" CssClass="footer_but" OnClick="BSubmit_Click" />
        </div>
    </div>
    </form>
</body>
</html>
