<%@ Page Language="C#" EnableEventValidation="false"  MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Admin.Shop.Admin_ShopCoupon" Title="优惠券红包" Codebehind="KS.Coupon.aspx.cs" %>
<%@ Import Namespace="Kesion.BLL" %>
<%@ Import Namespace="Kesion.Publics" %>
<%@ Import Namespace="Kesion.APPCode" %>
<%@ Import Namespace="Kesion.Cache" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
    <asp:Panel ID="CouponList" runat="server" Width="100%">
         <div class="content-area mt20">
               <div class="myTitle"><asp:LinkButton ID="addCoupon" runat="server" OnClick="addCoupon_Click" CssClass="fr button button_on mr20">添加优惠券|红包</asp:LinkButton><a href="KS.CouponMsgTp.aspx" class="fr mr20 button">通知模板</a>优惠券 & 红包 </div>
               <KS:KSGV ID="list" cssclass="CTable" runat="server" AutoGenerateColumns="False" Width="99%" EmptyDataText="没有添加任何优惠券!" GridLines="None" OnRowDataBound="list_RowDataBound" OnRowCommand="list_RowCommand" OnRowCreated="list_RowCreated" >
                  <Columns>
                     <asp:TemplateField HeaderText="选择">
                         <itemstyle horizontalalign="Center" width="30px" />
                         <itemtemplate>
                             <input type="checkbox"  name="ids" id="ids" value='<%#Eval("Couponid") %>' />
                         </itemtemplate>
                     </asp:TemplateField>
                     
                     
                     <asp:TemplateField HeaderText="优惠券|红包名称">
                         <itemtemplate>
                            <%# Eval("Couponname") %> 
                         </itemtemplate>
                     </asp:TemplateField> 
                     <asp:TemplateField HeaderText="使用范围">
                         <itemstyle horizontalalign="Center" width="100px" />
                         <itemtemplate>
                            <span style="color:#666"><%# GetRangeType(Utils.StrToInt(Convert.ToString(Eval("RangeType"))))%></span>  
                         </itemtemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="发放方式">
                         <itemstyle horizontalalign="Center" width="150px" />
                         <itemtemplate>
                            <%# Convert.ToString(Eval("Coupontype")) == "1" ? "红包" : "优惠券"%>  
                         </itemtemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="有效期">
                         <itemstyle horizontalalign="Center" width="230px" />
                         <itemtemplate>
                             <%# GetExpireDate(Convert.ToString(Eval("BeginDate")),Convert.ToString(Eval("EndDate")))%>
                         </itemtemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="面值">
                        <itemstyle horizontalalign="Center" width="150px" />
                        <itemtemplate>
                        <%=MyCache.GetCurrencySymbol%><%# Public.ReturnShopPrice(Utils.StrToDecimal(Eval("FaceValue")))%>
                        </itemtemplate>
                     </asp:TemplateField> 
                     <asp:TemplateField HeaderText="状态">
                         <itemstyle width="30px" horizontalalign="Center"/>
                         <itemtemplate>
                             <a href="?action=status&Couponid=<%#Eval("Couponid")%>" <%# Convert.ToString(Eval("status"))=="0"?"class='redFont' title='停用'":"class='greenFont' title='正常'" %>><%# Convert.ToString(Eval("status"))=="0"?"停用":"正常" %></a>
                         </itemtemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="发放数量">
                         <itemstyle horizontalalign="Center" width="300px" />
                         <itemtemplate>
                             
                          已发放<span style="color:Red"> <%# Eval("TotalNum") %></span> 张<%#Convert.ToString(Eval("Coupontype")) == "2" ?"|未发放 <span style='color:Red'>"+DataFactory.GetOnlyValue("select count(1) From KS_ProCouponUser U,KS_ProCouPon C Where U.CouponID=C.CouponID and IsExtend=0 and U.CouponID="+Eval("Couponid"))+"</span> 张":"" %>             
                          <a href='KS.CouponItem.aspx?couponId=<%# Eval("CouponID") %>&CouponType=<%#Eval("CouponType") %>' class="greenFont">(查看)</a>
                         </itemtemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="发放">
                         <itemstyle width="60px" horizontalalign="Center" />
                         <itemtemplate>
                             <asp:LinkButton ID="pubBtn" runat="server" CommandArgument=<%#Eval("Couponid") %>  CommandName="pub" CssClass="greenFont">发放</asp:LinkButton>
                         </itemtemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="生成">
                         <itemstyle width="60px" horizontalalign="Center" />
                         <itemtemplate>
                             <asp:LinkButton ID="pubBtn1" runat="server" CommandArgument=<%#Eval("Couponid") %>  CommandName="make" CssClass="greenFont"><%# Convert.ToString(Eval("Coupontype")) == "1" ? "---" : "生成"%> </asp:LinkButton>
                         </itemtemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="编辑">
                         <itemstyle width="30px" CssClass="Ctd" horizontalalign="Center"/>
                         <itemtemplate>
                             <asp:LinkButton ID="LinkButton1" ToolTip="编辑" CssClass="edit" runat="server" commandargument=<%#Eval("Couponid") %> commandname="modify"></asp:LinkButton>
                         </itemtemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="删除">
                         <itemstyle width="30px" horizontalalign="Center"/>
                         <itemtemplate>
                             <asp:LinkButton runat="server" id="delete" ToolTip="删除" CssClass="delete" commandargument=<%#Eval("Couponid") %> commandname="del"></asp:LinkButton>
                         </itemtemplate>
                     </asp:TemplateField>
                     
                  </Columns>
                  <HeaderStyle CssClass="CTitle" />
                  <EmptyDataRowStyle CssClass="emptycss" />
              </KS:KSGV>
              <asp:Panel ID="Panel1" runat="server" Height="30px" Width="741px">
                  <div class="listedit">
                    <input type="checkbox" name="chkall" id="chkall" onclick="CheckAll(this.form);"/><label for="chkall">全选</label>
                    <input type="button" value="删除选中的优惠券|红包" class="button" onclick="if (GetIDS('del')){this.form.action='?action=del';this.form.submit()}" id="Button1" />
                    <asp:LinkButton ID="editCoupon" runat="server" OnClick="editCoupon_Click" CssClass="button">编辑优惠券|红包</asp:LinkButton>                  
                  </div>
              </asp:Panel>  
              <KS:Page ID="Page1" runat="server" />
         </div>
    </asp:Panel>
    <asp:Panel ID="CouponManage" runat="server" Width="100%" Visible="false">
	<!--<KS:TopNav ID="TopNav1" runat="server" />-->
<div class="content-area mt20">        
        <div class="myTitle">添加优惠券|红包</div>
		<script type="text/javascript">
            function addOption(str, id){
                if (id==undefined){
                    if (str!=''){
                        var arr=str.split(',');
                        var ostr='';
                        for(var i=0;i<arr.length;i++)
                        {
                            var oarr=arr[i].split('|');
                            if (jQuery("#<%=this.LsbLimitIds.ClientID%> option").length==0){
                                jQuery("#<%=this.LsbLimitIds.ClientID %>").append("<option value='"+oarr[0]+"'>"+oarr[1]+"</option>");
                            }
                            var has=false;
                            jQuery("#<%=this.LsbLimitIds.ClientID%> option").each(function(){
                                if (jQuery(this).val()==oarr[0]){
                                    has=true;
                                }
                            });
                            if (has==false){
                                ostr+="<option value='"+oarr[0]+"'>"+oarr[1]+"</option>";
                            }
                     
                        }
                        jQuery("#<%=this.LsbLimitIds.ClientID %>").append(ostr);
                    }

                    jQuery("#<%=this.LsbLimitIds.ClientID%> option").attr("selected",true);
                    parent.box.close();
                }
               else if (id == 0) {
                    if (str != '') {
                        var arr = str.split(',');
                        var ostr = '';
                        for (var i = 0; i < arr.length; i++) {
                            var oarr = arr[i].split('|');
                            if (jQuery("#<%=this.LsbCourseLimitIds.ClientID%> option").length == 0) {
                                jQuery("#<%=this.LsbCourseLimitIds.ClientID %>").append("<option value='" + oarr[0] + "'>" + oarr[1] + "</option>");
                            }
                            var has = false;
                            jQuery("#<%=this.LsbCourseLimitIds.ClientID%> option").each(function () {
                                if (jQuery(this).val() == oarr[0]) {
                                    has = true;
                                }
                            });
                            if (has == false) {
                                ostr += "<option value='" + oarr[0] + "'>" + oarr[1] + "</option>";
                            }

                        }
                        jQuery("#<%=this.LsbCourseLimitIds.ClientID %>").append(ostr);
                    }
                    jQuery("#<%=this.LsbCourseLimitIds.ClientID%> option").attr("selected", true);
                    parent.box.close();
                }
                else if (id == 1) {

                    if (str != '') {
                        var arr = str.split(',');
                        var ostr = '';
                        for (var i = 0; i < arr.length; i++) {
                            var oarr = arr[i].split('|');
                          
                            var has = false;
                           
                            if (has == false) {
                                ostr += "<option value='" + oarr[0] + "'>" + oarr[1] + "</option>";
                            }

                        }
                    }
                    parent.box.close();

                }
            }
            function removeOption(id) {
                if (id == 0) {
                    var dest = document.getElementById('<%=this.LsbCourseLimitIds.ClientID%>');
                    for (var i = dest.options.length - 1; i >= 0 ; i--) {
                        if (dest.options[i].selected) {
                            dest.options[i] = null;
                        }
                    }
                }
                else if (id == 1) {

                    for (var i = dest.options.length - 1; i >= 0 ; i--) {
                        if (dest.options[i].selected) {
                            dest.options[i] = null;
                        }
                    }
                }else if (id==2){
                    var dest = document.getElementById('<%=this.LsbLimitIds.ClientID%>');
                    for (var i = dest.options.length - 1; i >= 0 ; i--){
                        if (dest.options[i].selected)
                        {
                            dest.options[i] = null;
                        }
                    }
                }
            }
            function removeAllOption(id) {
                if (id == 0) {
                    jQuery("#<%=this.LsbCourseLimitIds.ClientID%>").empty();
                }
                else if (id==2){
                    jQuery("#<%=this.LsbLimitIds.ClientID%>").empty();
                }
            }
            function showModel() {
              var checkrad =  $("input[name='ctl00$KSContent$RBRangeType']:checked").val();            // jQuery("#<%=RBRangeType.ClientID %> :radio[checked]").val();
              <%if (BaseFun.CheckModulePower("edu")==false)
               { %>
              checkrad=3;
              $("#showRangeType").hide();
              <%}%>
					if (checkrad == 1) {
						$("#coursetype").show();
						$("#coursefacetype").hide();
						$("#malltype").hide();
						showCousreType();
					} else if (checkrad == 2) {
						$("#coursetype").hide();
						$("#coursefacetype").show();
						$("#malltype").hide();
						showFaceCousreType();
					} else if (checkrad == 3) {
						$("#coursetype").hide();
						$("#coursefacetype").hide();
						$("#malltype").show();
						showPro();
					} else {
						$("#coursetype").hide();
						$("#coursefacetype").hide();
						$("#malltype").hide();
					}
					if (checkrad!=3 || jQuery("#<%=this.RBLCouponType.ClientID %> :radio[checked]").val() == "1") {
						jQuery("#showtips").hide();
					} else {
						jQuery("#showtips").show();
					}

            }
            function showCousreType(){
				  var checkrad= $("input[name='ctl00$KSContent$RBSiteCourseType']:checked").val();        //jQuery("#<%=RBSiteCourseType.ClientID %> :radio[checked]").val();
				  if (checkrad==1){
					  jQuery("#showCourseClass").show();
					jQuery("#showCourse").hide();
				  }else if (checkrad==2){
					  jQuery("#showCourseClass").hide();
					  jQuery("#showCourse").show();
				  }else{
					  jQuery("#showCourseClass").hide();
					  jQuery("#showCourse").hide();
				  }
            }
          
            function showPro(){
				  var checkrad= $("input[name='ctl00$KSContent$RBLLimitType']:checked").val();    //      jQuery("#<%=RBLLimitType.ClientID %> :radio[checked]").val();
				  if (checkrad==1){
					jQuery("#showProClass").show();
					jQuery("#showPro").hide();
				  }else if (checkrad==2){
					  jQuery("#showProClass").hide();
					jQuery("#showPro").show();
				  }else{
					  jQuery("#showProClass").hide();
					jQuery("#showPro").hide();
				  }
			 }
			 function showSelect(s,id){
				  if (s=='') return;
				  var idArr=s.split(',');
				  for(var i=0;i<idArr.length;i++){
				   jQuery("#"+id+" option[value="+idArr[i]+"]").attr("selected",true);
				  }
			 }
		 
			jQuery(document).ready(function () {
				showModel();
			});
            </script>
                 
           
        
        <table width="99%"  border="0" cellpadding="0" cellspacing="0" class="CTable no-borderTable"> 
          <tr>
            <td class="lefttd" height="30" align="right" style="width: 198px"><strong>优惠券发放方式：</strong></td>
            <td class="righttd">
                <asp:RadioButtonList ID="RBLCouponType" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
                    <asp:ListItem Selected="True" Value="1">红包发放</asp:ListItem>
                    <asp:ListItem Value="2">优惠券发放</asp:ListItem>
                </asp:RadioButtonList>
            </td>
          </tr>
            <tr>
                <td align="right" class="lefttd" height="30" style="width: 198px"><strong>优惠券|红包名称：</strong></td>
                <td class="righttd">&nbsp;<asp:TextBox ID="TxtCouponName" runat="server" CssClass="textbox"></asp:TextBox>
                    如: 5<%=MyCache.GetCurrencyUnit%>代金券等 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtCouponName" ErrorMessage="请输入优惠券|红包名称!"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right" class="lefttd" height="30" style="width: 198px">
                 <strong>使用起始日期：</strong>
                </td>
                <td class="righttd">&nbsp;<asp:TextBox  CssClass="textbox Wdate" ID="TxtBeginDate" runat="server" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});"></asp:TextBox> 至 <asp:TextBox  CssClass="textbox Wdate" ID="TxtEndDate" runat="server" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});"></asp:TextBox>&nbsp;
                    说明过了这个期限不能再使用</td>
            </tr>
            <tr>
                <td align="right" class="lefttd" height="30" style="width: 198px">
                    <strong>封面：</strong></td>
                <td class="righttd"><table cellspacing="0" cellpadding="0"><tr><td>&nbsp;<asp:TextBox ID="TxtDefaultPic" runat="server" CssClass="textbox" Width="480px"></asp:TextBox>
                    &nbsp;<input type="button" class="button" onclick="SelectFiles('<%=this.TxtDefaultPic.ClientID %>',0);" value="选择图片"></td>
                            <%if (Kesion.BLL.KSSecurity.CheckCommonUploadPower()){ %>
                            <td style="padding-left:4px;padding-top:15px; vertical-align:middle; *padding-top:12px;"> <%=Kesion.APPCode.UploadAPI.EchoUpload("classpic",this.TxtDefaultPic.ClientID,150) %></td>
                            <%} %>
                            <td><img id="show<%=TxtDefaultPic.ClientID %>" src="<%=TxtDefaultPic.Text %>" width="60" height="60" style="border:1px solid #f1f1f1;" onerror="this.src='../../sysimg/nopic.gif'"/></td>
                          </tr></table>
                         <span class="tips">用于在栏目页显示指定的图片</span></td>
            </tr>
            <tr>
                <td align="right" class="lefttd" height="30" style="width: 198px"><strong>描述：</strong></td>
                <td class="righttd">
                    &nbsp;<asp:TextBox ID="TxtDescribe" runat="server" Height="96px" TextMode="MultiLine" Width="481px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" class="lefttd" height="30" style="width: 198px">
                    <strong>面值：</strong></td>
                <td class="righttd">&nbsp;<asp:TextBox  CssClass="textbox" ID="TxtFaceValue" Text="10" runat="server" Width="56px"></asp:TextBox><span style="color: #ff0000">*可以抵销的最大金额,一旦设定建议不要再修改。</span></td>
            </tr>
            <tr id="showtips" style="display:none">
                <td align="right" class="lefttd" height="30" style="width: 198px"><strong>优惠券最大抵扣订单总金额的百分数：</strong></td>
                <td class="righttd">&nbsp;<asp:TextBox ID="TxtMaxDiscount" runat="server" CssClass="textbox" Text="0" Width="56px"></asp:TextBox>
                    %<span style="color: #ff0000">*不限制请输入0,如一张200<%=MyCache.GetCurrencyUnit%>的优惠券,最大抵用金额为订单总金额的50%,假设购物中订单总金额为240<%=MyCache.GetCurrencyUnit%>， 这时系统只能使用优惠券抵扣 240 * 50% =120<%=MyCache.GetCurrencyUnit%>，这样这张 200<%=MyCache.GetCurrencyUnit%>的优惠券就剩 80<%=MyCache.GetCurrencyUnit%>。只要在有效期内，剩余的80<%=MyCache.GetCurrencyUnit%>优惠券 还可以用在其它订单当中。</span></td>
            </tr>
            <tr>
                <td align="right" class="lefttd" height="30" style="width: 198px">
                    <strong>最小订单金额：</strong></td>
                <td class="righttd">&nbsp;<asp:TextBox  CssClass="textbox" ID="TxtMinAmount" Text="1000" runat="server" Width="56px"></asp:TextBox><span style="color: #ff0000">*只有商品总金额达到这个数的订单才能使用这种优惠券，请不要设置小于优惠券面值。</span></td>
            </tr>
            <tr id="showRangeType">
                <td align="right" class="lefttd" height="30" style="width: 198px">
                    <strong><span style="background-color: #f0f9fe">使用范围</span>：</strong></td>
                <td class="righttd">
                    <asp:RadioButtonList ID="RBRangeType" onclick="showModel()" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="0" Selected="True" >不限制</asp:ListItem>
                        <asp:ListItem Value="1">课程订单</asp:ListItem>
                        <asp:ListItem Value="3">商城订单</asp:ListItem>
                    </asp:RadioButtonList></td>
            </tr>



             <tbody id="coursetype" style="display: none">
                <tr>
                    <td align="right" class="lefttd" height="30" style="width: 198px">
                        <strong><span style="background-color: #f0f9fe">限制方式</span>：</strong></td>
                    <td class="righttd">
                        <asp:RadioButtonList ID="RBSiteCourseType" onclick="showCousreType()" runat="server">
                            <asp:ListItem Selected="True" Value="0">不限制(购买任何课程都可使用)</asp:ListItem>
                            <asp:ListItem Value="1">按课程分类限制(只有购买指定课程分类下的课程才可以使用)</asp:ListItem>
                            <asp:ListItem Value="2">限制购买以下课程才可以使用</asp:ListItem>
                        </asp:RadioButtonList></td>
                </tr>
                <tr id="showCourseClass" style="display: none">
                    <td align="right" class="lefttd" height="30" style="width: 198px">
                        <strong><span style="background-color: #f0f9fe">课程分类限制</span>：</strong></td>
                    <td class="righttd">
                        <%if (BaseFun.CheckModulePower("edu"))
                            { %>
                        <select name="CourseClassIDs" id="CourseClassIDs" style="width: 250px; height:120px;" multiple="multiple" size="10">
                            <%=GetCourseClass("0") %>
                        </select>
                        <%} %>
                        <br />
                        <span style="color: Red">按Crtl或Shife多选</span>

                    </td>
                </tr>
                <tr id="showCourse" style="display: none">
                    <td align="right" class="lefttd" height="30" style="width: 198px">
                        <strong>课程限制：</strong></td>
                    <td class="righttd">


                        <table>
                            <tr>
                                <td>
                                    <asp:ListBox ID="LsbCourseLimitIds" runat="server" Width="320px" Height="120px" SelectionMode="Multiple"></asp:ListBox>
                                </td>
                                <td style="line-height: 35px;">
                                    <input type="button" class="button" value="添加课程" onclick='parent.openWin("添加课程", "<%=KSCMS.GetInstallDir()+MyCache.GetCacheConfig(4)%>/Course/KS.AddCourse.aspx?type=0", false, 850, 460);' />
                                    <br />
                                    <input type="button" class="button" value="移除选中课程" onclick="removeOption(0)" />
                                    <br />
                                    <input type="button" class="button" value="全部移除" onclick="removeAllOption(0)" />
                                </td>
                            </tr>
                        </table>

                    </td>
                </tr>
            </tbody>

          



         <tbody id="malltype"  style="display: none">
            <tr>
                <td align="right" class="lefttd" height="30" style="width: 198px">
                    <strong><span>使用限制条件</span>：</strong></td>
                <td class="righttd">
                    <asp:RadioButtonList ID="RBLLimitType" onclick="showPro()" runat="server">
                        <asp:ListItem Selected="True" Value="0">不限制(购买任何商品都可使用)</asp:ListItem>
                        <asp:ListItem Value="1">按栏目限制(只有购买指定栏目下的商品才可以使用)</asp:ListItem>
                        <asp:ListItem Value="2">限制购买以下商品才可以使用</asp:ListItem>
                    </asp:RadioButtonList>

                </td>
            </tr>
            <tr id="showProClass" style="display:none">
                <td align="right" class="lefttd" height="30" style="width: 198px">
                    <strong><span style="background-color: #f0f9fe">栏目限制</span>：</strong></td>
                <td class="righttd">
                    <select name="ClassIDs" id="ClassIDs" style="height:120px;width:350px" multiple="multiple" size="5">
                    <%=ClassManage.GetClassByBasicModel(4,"0") %>
                    </select>
                   
                     <a class="textarea_min" href="javascript:zoomtextarea(-5,'ClassIDs');"></a>
                      <a class="textarea_max" href="javascript:zoomtextarea(5,'ClassIDs');"></a>

                    <br />
                    <span style="color:Red">按Crtl或Shife多选</span>
                    
                 </td>
            </tr>
            
             
            <tr  id="showPro" style="display:none">
                <td align="right" class="lefttd" height="30" style="width: 198px">
                    <strong>商品限制：</strong></td>
                <td class="righttd">
                     <table>
                     <tr>
                      <td>
                     <asp:ListBox ID="LsbLimitIds" runat="server" Width="320px" Height="120px" SelectionMode="Multiple"></asp:ListBox>
                      </td>
                      <td style="line-height:35px;">
                     <input type="button" class="button" value="添加商品" onclick='parent.openWin("添加商品","<%=KSCMS.GetInstallDir()+MyCache.GetCacheConfig(4)%>/Shop/KS.ShopAddToOrder.aspx?action=ids&id=35",false,850,460);' />
                     <br />
                     <input type="button" class="button" value="移除选中商品" onclick="removeOption(2)" />
                     <br />
                     <input type="button" class="button" value="全部移除" onclick="removeAllOption(2)" />
                  
                      </td>
                     </tr>
                     </table>                 
                </td>
            </tr>
           </tbody>


            <tr>
                <td align="right" class="lefttd" height="30" style="width: 198px">
                <strong>项目状态：</strong>
                </td>
                <td class="righttd">
                <asp:RadioButtonList ID="RdbStatus" runat="server" RepeatDirection="horizontal">
                 <asp:ListItem Value="1" Selected="true">正常</asp:ListItem>
                 <asp:ListItem Value="0">停用</asp:ListItem>
                </asp:RadioButtonList>
                </td>
            </tr>
              <tr>
                <td align="right" class="lefttd" height="30" style="width: 198px">
                <strong>前台显示：</strong>
                </td>
                <td class="righttd">
                <asp:RadioButtonList ID="ISShow" runat="server" RepeatDirection="horizontal">
                 <asp:ListItem Value="0" Selected="true">显示</asp:ListItem>
                 <asp:ListItem Value="1">不显示</asp:ListItem>
                </asp:RadioButtonList>
                </td>
            </tr>
        </table>
      <br />
      <KS:Foot ID="Foot1" runat="server" OnSubmit="Foot1_Submit" />
        <script type="text/javascript">
            showtips('<span class="state"><strong>说明：</strong><br /></span>优惠券|红包发放后,建议尽量不要再修改优惠券|红包信息如面值、最大抵扣、分配方式等!');
	</script>
          
    </asp:Panel>
  </div>  
    
</asp:Content>

