<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CouponAdd.aspx.cs" Inherits="XpShop.Manage.CouponAdd" %>
<!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>
	<!--#include file="../inc/head2.inc"-->
    <title>添加优惠券</title>
    <script type="text/javascript" src="../inc/commond.js"></script>
	<script src="inc/CouponAdd.js" type="text/javascript"></script>
	<script src="inc/ui.datepicker.cn.js" type="text/javascript"></script>
	<script src="../../inc/jquery.query.js" type="text/javascript"></script>
	<script src="../../inc/jquery.validate.js" type="text/javascript"></script>
	<script src="../../inc/jquery.metadata.js" type="text/javascript"></script>
	<script src="../../inc/jquery.form.js" type="text/javascript"></script>
	<script src="../../inc/messages_cn.js" type="text/javascript"></script>
	<link type="text/css" rel="stylesheet" href="inc/ui.datepicker.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="../style/cmxform.css" />
</head>
<body>
    <div class="container">
		<div class="sub_container">
		    <form class="cmxform" id="Form1" method="post" runat="server">
		    <div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img alt="" src="../images/admin_title.jpg" height="9px" width="8px" align="absmiddle" />优惠券添加</div>
            <div class="sub_container_content" id="sub_container">
                <div class="frame">
                    <div class="frame_content">
                        <table cellSpacing="0" cellPadding="0" class="ptable">
                            <tr>
                                <th class="tl">优惠券名称：</th>
                                <td class="tr"><asp:TextBox ID="txtCouponName" runat="server" Width="400px" Height="18px" style="line-height:18px;"></asp:TextBox> <em>*</em><span class="input-remark">30个汉字（60个字符）内</span></td>
                            </tr>
                            <tr class="hide">
                                <th class="tl">优惠券号码：</th>
                                <td class="tr"><asp:TextBox ID="txtCouponPrefix" runat="server" Width="192px" Height="18px" style="line-height:18px;"></asp:TextBox> <em>*</em></td>
                            </tr>
                            <tr>
                                <th class="tl">优惠券面值：</th>
                                <td class="tr"><asp:TextBox ID="txtCouponValue" runat="server" Width="50px" Height="18px" style="line-height:18px;" onkeyup="value=value.replace(/[^(\d|\.)]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^(\d|\.)]/g,''))"></asp:TextBox> <em>*</em></td>
                            </tr>
                            <tr>
                                <th class="tl">计划发放数量：</th>
                                <td class="tr"><asp:TextBox ID="txtTotalNum" runat="server" Width="50px" Height="18px" style="line-height:18px;" onkeyup="value=value.replace(/[^(\d|\.)]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^(\d|\.)]/g,''))">0</asp:TextBox><span class="input-remark">留空为不限制数量</span></td>
                            </tr>
                             <tr>
                                <th class="tl">订单使用优惠券条件：</th>
                                <td class="tr">
                                    <asp:TextBox ID="txtOrderMoneyFrom" runat="server" Height="18px" Style="line-height: 18px;" Width="80px" onkeyup="value=value.replace(/[^(\d|\.)]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^(\d|\.)]/g,''))"></asp:TextBox>
                                    ≤ 订单金额 <em>*</em>
                                </td>
                            </tr>
                            <tr>
                                <th class="tl">优惠券适用类型：</th>
                                <td class="tr">
                                    <asp:DropDownList ID="ddlSuitType" runat="server">
                                        <asp:ListItem Value="所有">所有</asp:ListItem>
                                        <asp:ListItem Value="类别">类别</asp:ListItem>
                                        <asp:ListItem Value="品牌">品牌</asp:ListItem>
                                        <asp:ListItem Value="商品">商品</asp:ListItem>
                                    </asp:DropDownList>
                                    <span id="suittypename" class="hide"></span><asp:TextBox ID="tbSuitValue" runat="server" class="hide"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <th class="tl">优惠券开始时间：</th>
                                <td class="tr"><asp:TextBox ID="txtTimeBegin" runat="server" Width="120px" Height="18px" style="line-height:18px;background-image:url(../images/calendar.gif);background-repeat:no-repeat;padding-left:20px;" ReadOnly="true"></asp:TextBox> <em>*</em></td>
                            </tr>
                            <tr>
                                <th class="tl">优惠券结束时间：</th>
                                <td class="tr"><asp:TextBox ID="txtTimeEnd" runat="server" Width="120px" Height="18px" style="line-height:18px;background-image:url(../images/calendar.gif);background-repeat:no-repeat;padding-left:20px;" ReadOnly="true"></asp:TextBox> <em>*</em></td>
                            </tr>
                            <tr>
                                <th class="tl">状态：</th>
                                <td class="tr">
                                    <asp:RadioButton ID="rbtnStatusOn" runat="server" Text="启用" Checked="true" GroupName="Status" />
                                    <asp:RadioButton ID="rbtnStatusOff" runat="server" Text="禁用" GroupName="Status" />
                                </td>
                            </tr>
                            <tr>
                                <th class="tl">优惠券描述：</th>
                                <td class="tr"><asp:TextBox ID="txtDescription" runat="server" Width="100%" Height="100px" TextMode="MultiLine" style="line-height:18px;"></asp:TextBox><br/><span class="input-remark1">50个汉字（100个字符）内</span></td>
                            </tr>
                            <tr class="hide">
                                <th class="tl">类型：</th>
                                <td class="tr">
									<asp:RadioButton ID="rbtnTpyeB" runat="server" Text="多张只能使用一次的优惠券" Checked="true" GroupName="Type" />
                                    <asp:RadioButton ID="rbtnTpyeA" runat="server" Text="一张可无限使用的优惠券" GroupName="Type" />                                    
                                </td>
                            </tr>
                        </table>		                    
                    </div>
                </div>
            </div>		    
            <div class="save">
                <asp:Button ID="btnSave" OnClick="btnSave_Click" runat="server" Text="完 成" class="inputbtn" />
                <asp:Button ID="btnCancel" onclick="btnCancel_Click" runat="server" Text="取 消" class="inputbtn" />
            </div>
         </form>
	    </div>
	</div>
</body>
</html>