<%@ page language="C#" autoeventwireup="true" inherits="Admin_SalesPromotion_AddCoupon, ShopWe" validaterequest="false" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<!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/my.css" rel="stylesheet" type="text/css" />

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

</head>
<body>
    <form id="form1" runat="server">
        <div class="all">
            <div class="validate">
                <asp:ValidationSummary ID="ValidationSummaryPage" CssClass="val_ys" runat="server"
                    DisplayMode="List" ForeColor="#FF6600" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidaName" runat="server" ErrorMessage="优惠券名称不能为空"
                    ControlToValidate="CouponName" Display="None"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="有效日期不能为空"
                    ControlToValidate="OutDate" Display="None"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="MeetPrice"
                    Display="None" ErrorMessage="满足金额格式不对" ValidationExpression="^[0-9]+(.[0-9]{1,4})?$"></asp:RegularExpressionValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="MortagagePrice"
                    Display="None" ErrorMessage="抵扣金额格式不对" ValidationExpression="^[0-9]+(.[0-9]{1,4})?$"></asp:RegularExpressionValidator>
            </div>
            <div class="come_title">
                <h2>
                    优惠卷基本信息</h2>
                <div class="title_help">
                    <a href="http://www.shopwe.cn/bbs/" target="_blank">
                        <img src="../Themes/Default/Images/help_1.jpg" alt="shopwe论坛" width="50" height="20" /></a>
                    <a href="http://help.shopwe.cn/video/coupon_demo/coupon_demo.htm" target="_blank">
                        <img src="../Themes/Default/Images/video_help.jpg" alt="shopwe视频教程" width="50" height="20" /></a>
                    <a href="http://help.shopwe.cn/help/Show.asp?id=21" target="_blank">
                        <img src="../Themes/Default/Images/help.jpg" alt="shopwe帮助中心" width="50" height="20" /></a></div>
            </div>
            <div class="k_all6">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="bg_1" style="text-align: right; width: 90px;">
                            优惠券名称：
                        </td>
                        <td>
                            <input id="CouponName" runat="server" style="width: 220px" class="input" /><h4>
                                <img src="../css/images/help.png" alt="ico"/>
                                <span style="color: #999999">请输入优惠券的名称，例如：年末大礼，卖100送50。</span></h4>
                        </td>
                    </tr>
                    <tr>
                        <td class="bg_1" style="text-align: right; width: 90px;">
                            有效日期至：
                        </td>
                        <td>
                            <input id="OutDate" type="text" class="input" style="width: 220px" runat="server"
                                onclick="new Calendar('2000', '2100', 1,'yyyy-MM-dd').show(this);" /><h4>
                                    <img src="../css/images/help.png" alt="ico"/>
                                    <span style="color: #999999">此优惠券的有效日期，过了有效日期以后就不能再使用</span></h4>
                        </td>
                    </tr>
                    <tr>
                        <td class="bg_1" style="text-align: right; width: 90px;">
                            满足金额：
                        </td>
                        <td>
                            <input id="MeetPrice" runat="server" value="0" class="input" /><h4>
                                <img src="../css/images/help.png" alt="ico"/>
                                <span style="color: #999999">设置此优惠券只能在客户当次购物金额达到满足金额以后才能使用。</span></h4>
                        </td>
                    </tr>
                    <tr>
                        <td class="bg_1" style="text-align: right; width: 90px;">
                            抵扣金额：
                        </td>
                        <td>
                            <input id="MortagagePrice" type="text" value="0" runat="server" class="input" /><h4>
                                <img src="../css/images/help.png" alt="ico" />
                                <span style="color: #999999">设置此优惠券可以抵多少购物金额</span></h4>
                        </td>
                    </tr>
                  
                </table>
            </div>
            <div class="come_title_bai">
                <h2>
                    优惠券介绍</h2>
            </div>
            <div class="k_all6">
                <FCKeditorV2:FCKeditor ID="Remark" runat="server">
                </FCKeditorV2:FCKeditor>
            </div>
        </div>
        <div class="sub">
            <asp:Button ID="Submit" runat="server" Text="确认提交" OnClick="Submit_Click" CssClass="but_add" />
        </div>
    </form>
</body>
</html>
