<%@ page language="C#" autoeventwireup="true" inherits="Admin_SalesPromotion_AddPrivilege, 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="PrivilegeName" Display="None"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="促销活动起始日期不能为空"
                    ControlToValidate="StartDate" Display="None"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="促销活动结束日期不能为空"
                    ControlToValidate="EndDate" Display="None"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="折扣率不能为空"
                    ControlToValidate="MortagagePrice" Display="None"></asp:RequiredFieldValidator>
            </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/help/Show.asp?id=19" 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>
                            <asp:DropDownList ID="PrivilegeType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="PrivilegeType_SelectedIndexChanged"
                                Style="width: 110px">
                                <asp:ListItem Value="全场打折">全场打折</asp:ListItem>
                                <asp:ListItem>全场免运费</asp:ListItem>
                                <asp:ListItem>满额打折</asp:ListItem>
                                <asp:ListItem>满额免运费</asp:ListItem>
                                <asp:ListItem>批发打折</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <asp:Panel ID="PanelPrice" Visible="true" runat="server">
                            <td class="bg_1" style="text-align: right; width: 90px;">
                                <asp:Literal ID="LiteralPrice" Text="打折率：" runat="server"></asp:Literal>
                            </td>
                            <td>
                                <input id="MortagagePrice" type="text" value="10" runat="server" class="input" style="width: 170px" /><h4><img
                                    src="../css/images/help.png" />
                                <span  style="color:999999">打折率</span></h4>
                            </td>
                        </asp:Panel>
                    </tr>
                    <tr>
                        <asp:Panel ID="PanelMeet" Visible="false" runat="server">
                            <td class="bg_1" style="text-align: right; width: 90px;">
                                <asp:Literal ID="LiteralText" Text="全场打折：" runat="server"></asp:Literal>
                            </td>
                            <td>
                                <input id="MeetPrice" runat="server" value="0" class="input" style="width: 170px" /><h4><img
                                    src="../css/images/help.png" />
                                <span style="color:999999">此活动需要满足的条件。</span></h4>
                            </td>
                        </asp:Panel>
                    </tr>
                    <tr>
                        <td class="bg_1" style="text-align: right; width: 90px;">
                            促销活动名称：
                        </td>
                        <td>
                            <input id="PrivilegeName" runat="server" style="width: 170px" class="input" /><h4><img
                                src="../css/images/help.png" />
                            <span style="color:999999">请输入活动名称，例如：年末大礼，全场打折。</span></h4>
                        </td>
                    </tr>
                    <tr>
                        <td class="bg_1" style="text-align: right; width: 90px;">
                            有效起始日期：
                        </td>
                        <td>
                            <input id="StartDate" class="input" style="width: 170px" type="text" runat="server"
                                onclick="new Calendar('2000', '2100', 1,'yyyy-MM-dd').show(this);" /><h4><img
                                    src="../css/images/help.png" />
                            <span style="color: #999999">此活动的起始日期</span></h4>
                        </td>
                    </tr>
                    <tr>
                        <td class="bg_1" style="text-align: right; width: 90px;">
                            活动结束日期：
                        </td>
                        <td>
                            <input id="EndDate" class="input" style="width: 170px" type="text" runat="server"
                                onclick="new Calendar('2000', '2100', 1,'yyyy-MM-dd').show(this);" /><h4><img
                                    src="../css/images/help.png" />
                            <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>
