<%@ page language="C#" autoeventwireup="true" inherits="GroupByAdmin_Active_Operate, GroupTGWeb_deploy" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="ShopNum1.Control" Namespace="ShopNum1.Control" TagPrefix="cc1" %>
<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ShopNum1" %>
<!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 id="Head1" runat="server">
    <title>发布团购活动</title>

    <script type="text/javascript" language="javascript" src="../js/CommonJS.js"></script>

    <script type="text/javascript">
    function changeTab(count,index)
    {
        for (var i = 1; i <= count; i++)
        {
          document.getElementById('current' + i).className = '';
          document.getElementById('content' + i).style.display = 'none';
        }
        document.getElementById('current' + index).className = 'current';
        document.getElementById('content' + index).style.display = 'block';
    } 

   function openSingleChild1()
    { 
        var k = window.showModalDialog("Image_List_Select.aspx",window,"dialogWidth:820px;status:no;dialogHeight:650px"); 
        if(k != null) 
        {
          var strLen=k.length;          
            var lastIndex=k.lastIndexOf('/');
           var editor = FCKeditorAPI.GetInstance('FCKeditorDetail'); 
           {
              editor.InsertHtml("<img src='" + k.replace("..","") + "'>");
           }
        }
     }

    //选择单图
   function openSingleChild()
    { 
        var k = window.showModalDialog("Image_List_Select.aspx",window,"dialogWidth:820px;status:no;dialogHeight:650px"); 
        if(k != null) 
        {
          var strLen=k.length;
          var lastIndex=k.lastIndexOf('/');
          document.getElementById("TextBoxOriginalImge").value = k.substring(lastIndex+1,strLen); 
         document.getElementById("ImageOriginalImge").src = k; 
        }
    } 

    </script>

    <link type="text/css" rel="Stylesheet" href="css/index.css" />
</head>
<body style="padding: 0; background-image: url(images/Bg_right.gif); background-repeat: repeat;
    font-size: 12px">
    <link type="text/css" rel="Stylesheet" href="css/index.css" />
    <form id="form1" runat="server">
    <ShopNum1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptGlobalization="True"
        EnableScriptLocalization="True" />
    <div class="query">
        <div style="text-align: center;">
            <div id="header">
                <ul>
                    <li id="current1" class="current"><a style="cursor: pointer;" onclick="changeTab(5,1);">
                        <asp:Label runat="server" ID="tab01" Text="基本信息" /></a></li>
                    <li id="current2"><a style="cursor: pointer;" onclick="changeTab(5,2);">
                        <asp:Label runat="server" ID="tab02" Text="详细介绍" /></a></li>
                    <li id="current3"><a style="cursor: pointer;" onclick="changeTab(5,3);">
                        <asp:Label runat="server" ID="tab03" Text="搜索优化" /></a></li>
                    <li id="current4"><a style="cursor: pointer;" onclick="changeTab(5,4);">
                        <asp:Label runat="server" ID="tab04" Text="相关团购活动" /></a></li>
                    <li id="current5"><a style="cursor: pointer;" onclick="changeTab(5,5);">
                        <asp:Label runat="server" ID="tab05" Text="相关文章" /></a></li>
                </ul>
                <br style="clear: both;" />
            </div>
            <!-- **************************基本信息************************** -->
            <div id="content1" runat="server">
                <!-- 基本信息-->
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr>
                        <td align="right" width="20%">
                            <asp:Label ID="LabelIsReal" runat="server" Text="团购活动性质："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="DropDownListIsReal" runat="server" Width="304">
                                <asp:ListItem Value="1">实体团购活动</asp:ListItem>
                                <asp:ListItem Value="0">虚拟团购活动</asp:ListItem>
                            </asp:DropDownList>
                            <asp:Label ID="Label9" runat="server" Text="*" ForeColor="red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelCityCode" runat="server" Text="城市："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="DropDownListCityCode" runat="server" Width="304">
                                <asp:ListItem Value="-1" Selected="True">-请选择-</asp:ListItem>
                            </asp:DropDownList>
                            <font color="red">
                                <asp:Label ID="Label21" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="DropDownListCityCode"
                                ErrorMessage="必选" InitialValue="-1"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelActiveTypeGuid" runat="server" Text="活动分类："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="DropDownListProductTypeGuid" runat="server" Width="304">
                                <asp:ListItem Value="-1" Selected="True">-请选择-</asp:ListItem>
                            </asp:DropDownList>
                            <font color="red">
                                <asp:Label ID="Label11" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="DropDownListProductTypeGuid"
                                ErrorMessage="必选" InitialValue="-1"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelSupplierGuid" runat="server" Text="供货商："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="DropDownListSupplierGuid" runat="server" Width="304">
                                <asp:ListItem Value="-1" Selected="True">-请选择-</asp:ListItem>
                            </asp:DropDownList>
                            <font color="red">
                                <asp:Label ID="Label22" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="DropDownListSupplierGuid"
                                ErrorMessage="必选" InitialValue="-1"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelMinMemberCount" runat="server" Text="团购最低人数："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxMinMemberCount" runat="server" Width="298" MaxLength="3">0</asp:TextBox>
                            <font color="red">
                                <asp:Label ID="Label8" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="TextBoxMinMemberCount"
                                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorMinMemberCount" runat="server"
                                ControlToValidate="TextBoxMinMemberCount" Display="Dynamic" ErrorMessage="输入格式不正确"
                                ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelName" runat="server" Text="活动名称："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxName" runat="server" Width="298" MaxLength="50"></asp:TextBox>
                            <font color="red">
                                <asp:Label ID="Label2" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" runat="server" ControlToValidate="TextBoxName"
                                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelRepertoryNumber" runat="server" Text="货号："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxRepertoryNumber" runat="server" Width="298" MaxLength="50"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelUnitName" runat="server" Text="计量单位："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxUnitName" runat="server" Width="298"></asp:TextBox>
                            <asp:DropDownList ID="DropDownListUnitName" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownListUnitName_SelectedIndexChanged">
                                <asp:ListItem Value="-1" Selected="True">-请选择-</asp:ListItem>
                            </asp:DropDownList>
                            <font color="red">
                                <asp:Label ID="Label15" runat="server" Text="*"></asp:Label></font>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelRepertoryCount" runat="server" Text="库存量："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxRepertoryCount" runat="server" Width="298" MaxLength="7">0</asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorRepertoryCount" runat="server"
                                ControlToValidate="TextBoxRepertoryCount" Display="Dynamic" ErrorMessage="输入格式不正确"
                                ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBoxRepertoryCount"
                                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelWeight" runat="server" Text="团购活动重量："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxWeight" runat="server" Width="298" MaxLength="5">0</asp:TextBox>
                            <asp:Label ID="Label4" runat="server" Text="（克）"></asp:Label>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorWeight" runat="server"
                                ControlToValidate="TextBoxWeight" Display="Dynamic" ErrorMessage="输入格式不正确" ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelMarketPrice" runat="server" Text="市场价："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxMarketPrice" runat="server" Width="298" MaxLength="7">0.00</asp:TextBox>
                            <font color="red">
                                <asp:Label ID="Label14" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorName2" runat="server" ControlToValidate="TextBoxMarketPrice"
                                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorShopPrice0" runat="server"
                                ControlToValidate="TextBoxMarketPrice" Display="Dynamic" ErrorMessage="输入格式不正确"
                                ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelShopPrice" runat="server" Text="活动售价："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxShopPrice" runat="server" Width="298" MaxLength="7">1.00</asp:TextBox>
                            <font color="red">
                                <asp:Label ID="Label19" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorName0" runat="server" ControlToValidate="TextBoxShopPrice"
                                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorShopPrice" runat="server"
                                ControlToValidate="TextBoxShopPrice" Display="Dynamic" ErrorMessage="输入格式不正确"
                                ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelVIPPrice" runat="server" Text="Vip会员价格："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxVIPPrice" runat="server" Width="298" MaxLength="7">1.00</asp:TextBox>
                            <font color="red">
                                <asp:Label ID="Label29" runat="server" Text="*"></asp:Label></font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="TextBoxVIPPrice"
                                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="TextBoxVIPPrice"
                                Display="Dynamic" ErrorMessage="输入格式不正确" ValidationExpression="^[0-9]+(.[0-9]{1,3})?$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelPresentScore" runat="server" Text="赠送消费积分："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxPresentScore" runat="server" Width="298" MaxLength="7">-1</asp:TextBox>
                            <asp:Label ID="Label6" runat="server" Text="购买该团购活动时赠送消费积分数,-1表示按团购活动价格数量赠送"></asp:Label>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorShopPrice8" runat="server"
                                ControlToValidate="TextBoxPresentScore" Display="Dynamic" ErrorMessage="输入格式不正确"
                                ValidationExpression="^-?\d+$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelPresentRankScore" runat="server" Text="赠送等级积分："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxPresentRankScore" runat="server" Width="298" MaxLength="7">-1</asp:TextBox>
                            <asp:Label ID="Label5" runat="server" Text="购买该团购活动时赠送等级积分数,-1表示按团购活动价格数量赠送"></asp:Label>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorShopPrice7" runat="server"
                                ControlToValidate="TextBoxPresentRankScore" Display="Dynamic" ErrorMessage="输入格式不正确"
                                ValidationExpression="^-?\d+$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <!--累加邮费-->
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label23" runat="server" Text="增值邮费："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxAddMoney" runat="server" Width="298" MaxLength="7">-1</asp:TextBox>
                            <asp:Label ID="Label24" runat="server" Text="保存已格式(2:5;4:8),表示购买2件增加费用5元，购买4件，增加配送费用8元；-1表示不改变邮费;"></asp:Label>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="TextBoxAddMoney"
                                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <!--限制会员购买数量-->
                    <tr>
                        <td align="right">
                            是否限制购买数量：
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="DropDownListRestrictNumber" runat="server" AutoPostBack="true"
                                OnSelectedIndexChanged="DropDownListRestrictNumber_SelectedIndexChanged">
                                <asp:ListItem Text="不限制" Value="0" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="限制购买" Value="1"></asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;&nbsp;
                            <asp:Label ID="LabelRestrictNumber" runat="server" Visible="false" Text="限制购买的数量："></asp:Label>
                            <asp:TextBox ID="TextBoxRestrictNumber" runat="server" Width="40px" MaxLength="6"
                                Visible="false" Text="1"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelStartTime" runat="server" Text="活动开始时间："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxStartTime" runat="server" Width="298"></asp:TextBox>
                            <img id="imgStartTime" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                                align="absmiddle" />
                            <ShopNum1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBoxStartTime"
                                PopupButtonID="imgStartTime" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender>
                            <font color="red">
                                <asp:Label ID="Label17" runat="server" Text="*"></asp:Label></font>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBoxStartTime"
                                Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBoxStartTime"
                                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelEndTime" runat="server" Text="活动结束时间："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxEndTime" runat="server" Width="298"></asp:TextBox>
                            <img id="imgEndTime" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                                align="absmiddle" />
                            <ShopNum1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="TextBoxEndTime"
                                PopupButtonID="imgEndTime" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender>
                            <font color="red">
                                <asp:Label ID="Label18" runat="server" Text="*"></asp:Label></font>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBoxEndTime"
                                Display="Dynamic" ErrorMessage="时间格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="TextBoxEndTime"
                                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="TextBoxStartTime"
                                Display="Dynamic" ErrorMessage="结束时间必须大于开始时间" Operator="LessThanEqual" Type="Date"
                                ControlToCompare="TextBoxEndTime"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelExpiredTime" runat="server" Text="活动过期时间："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxExpiredTime" runat="server" Width="298"></asp:TextBox>
                            <img id="imgExpiredTime" alt="" src="images/Calendar.png" style="width: 16px; height: 18px;"
                                align="absmiddle" />
                            <ShopNum1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="TextBoxExpiredTime"
                                PopupButtonID="imgExpiredTime" CssClass="ajax__calendar">
                            </ShopNum1:CalendarExtender>
                            <font color="red">
                                <asp:Label ID="Label10" runat="server" Text="*"></asp:Label></font>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorStartTime" runat="server"
                                ControlToValidate="TextBoxExpiredTime" Display="Dynamic" ErrorMessage="时间格式不正确"
                                ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidatorStartTime" runat="server" ControlToValidate="TextBoxExpiredTime"
                                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareDataTime" runat="server" ControlToValidate="TextBoxEndTime"
                                Display="Dynamic" ErrorMessage="过期时间必须大于结束时间" Operator="LessThanEqual" Type="Date"
                                ControlToCompare="TextBoxExpiredTime"></asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelThumbImage" runat="server" Text="团购活动图片："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxOriginalImge" runat="server" Width="298"></asp:TextBox>
                            <input id="ButtonSelectSingleImage" type="button" value="选择图片" onclick="openSingleChild()"
                                class="bt3" />
                            <br />
                            <img id="ImageOriginalImge" alt="" src="~/images/noImage.gif" runat="server" /><asp:RegularExpressionValidator
                                ID="RegularExpressionValidatorOriginalImge" runat="server" ControlToValidate="TextBoxOriginalImge"
                                Display="Dynamic" ErrorMessage="图片链接地址最多250个字符" ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelBrief" runat="server" Text="团购活动简单介绍："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxBrief" runat="server" Height="60px" TextMode="MultiLine"
                                Width="298"></asp:TextBox>
                            <font color="red">
                                <asp:Label ID="Label16" runat="server" Text="*"></asp:Label></font>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidatorBrief" runat="server"
                                ControlToValidate="TextBoxBrief" Display="Dynamic" ErrorMessage="简单介绍最多250个字符"
                                ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBoxBrief"
                                Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr style="color: Red">
                        <td align="right">
                            <asp:Label ID="LabelShow" runat="server" Text="活动状态："></asp:Label>
                        </td>
                        <td align="left">
                            &nbsp;<asp:CheckBox ID="CheckBoxIsNew" runat="server" Text="最新" Checked="false" />
                            &nbsp;<asp:CheckBox ID="CheckBoxIsHot" runat="server" Text="热卖" Checked="false" />
                            &nbsp;<asp:CheckBox ID="CheckBoxIsRecommend" runat="server" Text="推荐" Checked="false" />
                        </td>
                    </tr>
                    <tr style="color: Red">
                        <td align="right">
                            <asp:Label ID="LabelAlonevip" runat="server" Text="是否为VIP专有活动："></asp:Label>
                        </td>
                        <td align="left">
                            &nbsp;<asp:CheckBox ID="CheckBoxAloneVip" runat="server" Text="是" Checked="false" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelMemo" runat="server" Text="商家备注："></asp:Label>
                        </td>
                        <td align="left">
                            <FCKeditorV2:FCKeditor ID="FCKeditorMemo" runat="server" Height="400px" Width="80%">
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelAdminComment" runat="server" Text="本站点评："></asp:Label>
                        </td>
                        <td align="left">
                            <FCKeditorV2:FCKeditor ID="FCKeditorAdminComment" runat="server" Height="400px" Width="80%">
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelShopComment" runat="server" Text="店铺评论："></asp:Label>
                        </td>
                        <td align="left">
                            <FCKeditorV2:FCKeditor ID="FCKeditorShopComment" runat="server" Height="400px" Width="80%">
                            </FCKeditorV2:FCKeditor>
                        </td>
                        <tr>
                            <td align="right">
                                <asp:Label ID="LabelClickCount" runat="server" Text="浏览量："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="TextBoxClickCount" runat="server" Width="298" MaxLength="7">0</asp:TextBox>
                                <font color="red">
                                    <asp:Label ID="Label1" runat="server" Text="*"></asp:Label></font>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TextBoxClickCount"
                                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorClickCount" runat="server"
                                    ControlToValidate="TextBoxClickCount" Display="Dynamic" ErrorMessage="输入格式不正确"
                                    ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="LabelBuyCount" runat="server" Text="被购买次数："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="TextBoxBuyCount" runat="server" Width="298" MaxLength="7">0</asp:TextBox>
                                <font color="red">
                                    <asp:Label ID="Label3" runat="server" Text="*"></asp:Label></font>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorBuyCount" runat="server"
                                    ControlToValidate="TextBoxBuyCount" Display="Dynamic" ErrorMessage="输入格式不正确"
                                    ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TextBoxBuyCount"
                                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="LabelSaleNumber" runat="server" Text="已销售数量："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="TextBoxSaleNumber" runat="server" Width="298" MaxLength="7">0</asp:TextBox>
                                <font color="red">
                                    <asp:Label ID="Label7" runat="server" Text="*"></asp:Label></font>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorSaleNumber" runat="server"
                                    ControlToValidate="TextBoxSaleNumber" Display="Dynamic" ErrorMessage="输入格式不正确"
                                    ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBoxSaleNumber"
                                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="LabelOrderID" runat="server" Text="团购活动排序号："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="TextBoxOrderID" runat="server" Width="298"></asp:TextBox>
                                <font color="red">
                                    <asp:Label ID="Label20" runat="server" Text="*"></asp:Label></font>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidatorOrderID" runat="server" ControlToValidate="TextBoxOrderID"
                                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidatorShopPrice5" runat="server"
                                    ControlToValidate="TextBoxOrderID" Display="Dynamic" ErrorMessage="只能输入数字" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="Label12" runat="server" Text="够买数量达："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="TextBoxNoSendMoney" runat="server" Width="298" Text="-1" MaxLength="7"></asp:TextBox>免邮
                                <font color="red">
                                    <asp:Label ID="Label13" runat="server" Text="-1：表示不提供免邮"></asp:Label></font>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="TextBoxNoSendMoney"
                                    Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxNoSendMoney"
                                    Display="Dynamic" ErrorMessage="只能输入数字" ValidationExpression="^-?\d+$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="Label25" runat="server" Text="是否支持推荐返利："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="DropDownListIsCanjoin" runat="server" CssClass="select1">
                                    <asp:ListItem Value="0">支持</asp:ListItem>
                                    <asp:ListItem Value="1">不支持</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="Label26" runat="server" Text="虚拟限购数量："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="TextBoxLimitBuyCount" runat="server" Width="298" Text="-1" MaxLength="7"></asp:TextBox>
                                <font color="red">
                                    <asp:Label ID="Label27" runat="server" Text="-1表示不限制,仅对虚拟商品有效"></asp:Label></font>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidatorTextBoxLimitBuyCount" runat="server"
                                    ControlToValidate="TextBoxLimitBuyCount" Display="Dynamic" ErrorMessage="该值不能为空"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="TextBoxLimitBuyCount"
                                    Display="Dynamic" ErrorMessage="只能输入数字" ValidationExpression="^-?\d+$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                </table>
            </div>
            <!-- **************************详细介绍************************** -->
            <div id="content2" runat="server" style="display: none;">
                <%--     <div id="content2" runat="server">--%>
                <!-- 详细介绍-->
                <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
                    <tr>
                        <td>
                        </td>
                        <td align="left" height="40">
                            <input id="ButtonSelectSingleImage1" type="button" value="插入图片" onclick="openSingleChild1()"
                                class="bt3" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelDetail" runat="server" Text="详细介绍："></asp:Label>
                        </td>
                        <td align="left">
                            <FCKeditorV2:FCKeditor ID="FCKeditorDetail" runat="server" Height="400px" Width="80%">
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                        </td>
                        <td align="left">
                        </td>
                    </tr>
                </table>
            </div>
            <!-- **************************搜索优化************************** -->
            <div id="content3" runat="server" style="display: none;">
                <%-- <div id="content3" runat="server">--%>
                <!-- 搜索优化-->
                <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
                    <tr>
                        <td align="right" width="20%">
                            <asp:Label ID="LabelTitle" runat="server" Text="详细页标题："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxTitle" runat="server" Height="60px" TextMode="MultiLine"
                                Width="440px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelDescription" runat="server" Text="详细页描述："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxDescription" runat="server" Height="60px" TextMode="MultiLine"
                                Width="440px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="LabelKeywords" runat="server" Text="详细页搜索关键字："></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="TextBoxKeywords" runat="server" Height="60px" TextMode="MultiLine"
                                Width="440px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                        </td>
                        <td align="left">
                        </td>
                    </tr>
                </table>
            </div>
            <!-- **************************相关活动************************** -->
            <div id="content4" runat="server" style="display: none;">
                <%--  <div id="content6" runat="server">--%>
                <%--<img src='container.dataitem("ImagePath")' width="90" height="70" border="0">--%>
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <!-- 相关活动 -->
                        <table align="center">
                            <tr>
                                <td align="right" width="80">
                                    <asp:Label ID="LabelSRelatedActiveName" runat="server" Text="活动名称："></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxSRelatedActiveName" runat="server"></asp:TextBox>
                                </td>
                                <td align="right" width="80">
                                    <asp:Label ID="LabelSRelatedActiveCategoryID" runat="server" Text="活动分类："></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownListSActiveCategoryID" runat="server">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:Button ID="ButtonSearchRelatedActive" runat="server" CausesValidation="False"
                                        Text="查询" OnClick="ButtonSearchRelatedActive_Click" CssClass="bt2" />
                                </td>
                            </tr>
                        </table>
                        <table align="center" style="width: 60%">
                            <tr>
                                <td align="center" style="width: 25%" align="right">
                                    <asp:Label ID="LabelShowLeftRelatedActive" runat="server" Text="可选活动" ForeColor="Red"></asp:Label>
                                </td>
                                <td align="center" style="width: 10%">
                                </td>
                                <td style="width: 25%" align="center">
                                    <asp:Label ID="LabelShowRightRelatedActive" runat="server" Text="跟该活动关联的团购活动" ForeColor="Red"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 25%">
                                    <asp:ListBox ID="ListBoxLeftRelatedActive" runat="server" Height="440px" SelectionMode="Multiple"
                                        Width="300px"></asp:ListBox>
                                </td>
                                <td align="center" style="width: 10%">
                                    <table cellpadding="5" cellspacing="0" width="100%" border="0" style="text-align: center">
                                        <tr>
                                            <td>
                                                <asp:DropDownList ID="DropDownListRelatedActiveIsBoth" runat="server" Width="60">
                                                    <asp:ListItem Value="0">单向关联</asp:ListItem>
                                                    <asp:ListItem Value="1">双向关联</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Button ID="ButtonAddAllRelatedActive" runat="server" CausesValidation="False"
                                                    Text="&gt;&gt;" CssClass="bt2" OnClick="ButtonAddAllRelatedActive_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Button ID="ButtonAddRelatedActive" runat="server" CausesValidation="False" Text="&gt;"
                                                    CssClass="bt2" OnClick="ButtonAddRelatedActive_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Button ID="ButtonDeleteRelatedActive" runat="server" CausesValidation="False"
                                                    Text="&lt;" CssClass="bt2" OnClick="ButtonDeleteRelatedActive_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Button ID="ButtonDeleteAllRelatedActive" runat="server" CausesValidation="False"
                                                    Text="&lt;&lt;" CssClass="bt2" OnClick="ButtonDeleteAllRelatedActive_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td align="right" colspan="1" style="width: 25%">
                                    <asp:ListBox ID="ListBoxRightRelatedActive" runat="server" Height="440px" SelectionMode="Multiple"
                                        Width="300px"></asp:ListBox>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                    <Triggers>
                        <asp:PostBackTrigger ControlID="ButtonSearchRelatedActive" />
                    </Triggers>
                </asp:UpdatePanel>
            </div>
            <!-- **************************活动文章************************** -->
            <div id="content5" runat="server" style="display: none;">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <!-- 活动文章 -->
                        <table align="center">
                            <tr>
                                <td align="right" width="80">
                                    <asp:Label ID="LabelSArticleCategory" runat="server" Text="文章分类："></asp:Label>
                                </td>
                                <td>
                                    <asp:DropDownList ID="DropDownListSArticleCategory" runat="server">
                                    </asp:DropDownList>
                                </td>
                                <td align="right" width="80">
                                    <asp:Label ID="LabelActiveArticleName" runat="server" Text="文章标题："></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxActiveArticleName" runat="server"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:Button ID="ButtonSearchActiveArticle" runat="server" CausesValidation="False"
                                        Text="查询" OnClick="ButtonSearchActiveArticle_Click" CssClass="bt2" />
                                </td>
                            </tr>
                        </table>
                        <table align="center" style="width: 60%">
                            <tr>
                                <td align="center" style="width: 25%">
                                    <asp:Label ID="LabelShowLeftActiveArticle" runat="server" Text="可选文章" ForeColor="Red"></asp:Label>
                                </td>
                                <td align="center" style="width: 10%">
                                </td>
                                <td align="center" style="width: 25%">
                                    <asp:Label ID="LabelShowRightActiveArticle" runat="server" Text="跟该活动关联的文章" ForeColor="Red"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" style="width: 25%">
                                    <asp:ListBox ID="ListBoxLeftActiveArticle" runat="server" Height="440px" SelectionMode="Multiple"
                                        Width="300px"></asp:ListBox>
                                </td>
                                <td align="center" style="width: 10%">
                                    <table cellpadding="5" cellspacing="0" width="100%" border="0" style="text-align: center">
                                        <tr>
                                            <td>
                                                <asp:Button ID="ButtonAddAllActiveArticle" runat="server" CausesValidation="False"
                                                    Text="&gt;&gt;" CssClass="bt2" OnClick="ButtonAddAllActiveArticle_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Button ID="ButtonAddActiveArticle" runat="server" CausesValidation="False" Text="&gt;"
                                                    CssClass="bt2" OnClick="ButtonAddActiveArticle_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Button ID="ButtonDeleteActiveArticle" runat="server" CausesValidation="False"
                                                    Text="&lt;" CssClass="bt2" OnClick="ButtonDeleteActiveArticle_Click" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Button ID="ButtonDeleteAllActiveArticle" runat="server" CausesValidation="False"
                                                    Text="&lt;&lt;" CssClass="bt2" OnClick="ButtonDeleteAllActiveArticle_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td align="right" colspan="1" style="width: 25%">
                                    <asp:ListBox ID="ListBoxRightActiveArticle" runat="server" Height="440px" SelectionMode="Multiple"
                                        Width="300px"></asp:ListBox>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                    <Triggers>
                        <asp:PostBackTrigger ControlID="ButtonSearchActiveArticle" />
                    </Triggers>
                </asp:UpdatePanel>
            </div>
            <br />
            <!-- **************************底部************************** -->
            <div style="background-color: #EEEEEE; padding: 6px 0; text-align: center;">
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tr>
                        <td width="20%">
                        </td>
                        <td align="left">
                            <asp:Button ID="ButtonConfirm" runat="server" Text="确定" OnClick="ButtonConfirm_Click"
                                CssClass="bt2" />
                            <input id="inputReset" runat="server" type="reset" value="重置" class="bt2" />
                            <uc1:MessageShow ID="MessageShow" runat="server" Visible="False" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <asp:ObjectDataSource ID="ObjectDataSourceActiveyAttributePrice" runat="server" SelectMethod="SearchByActiveTypeIsMultiSelect12"
            TypeName="ShopNum1.BusinessLogic.ShopNum1_ActiveAttribute_Action">
            <SelectParameters>
                <asp:ControlParameter ControlID="DropDownListProductTypeGuid" Name="productTypeGuid"
                    PropertyName="SelectedValue" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:UpdatePanel ID="updatePanelHiddenFields" runat="server">
            <ContentTemplate>
                <asp:HiddenField ID="HiddenFieldAtrributeValue0" runat="server" Value="true" />
                <asp:HiddenField ID="HiddenFieldAtrributeValue1" runat="server" Value="false" />
                <asp:HiddenField ID="HiddenFieldAtrributeValue2" runat="server" Value="false" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:HiddenField ID="hiddenFieldGuid" runat="server" Value="0" />
        <asp:HiddenField ID="hiddenFieldIsOneRecommoned" runat="server" Value="1" />
    </form>
</body>
</html>
