<%@ page language="C#" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_ProductEdits, mallz" title="商品编辑" validaterequest="false" debug="true" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script src="Js/tabpane.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript" src="../Js/Index.js"></script>
    <script type="text/javascript" language="javascript" src="../Js/MallZ_Ajax.js"></script>
    <script type="text/javascript" language="javascript" src="../Js/MallZ_ShopClass.js"></script>
    <script type="text/javascript" language="javascript" src="../Js/MallZ_ShopSaleProduct.js"></script>
    <script type="text/javascript" language="javascript" src="../Js/MallZ_Calendar.js"></script>
    <script type="text/javascript" language="javascript" src="../Js/SaleProduct.js"></script>

<script type="text/javascript" language="javascript">
var ClassArr=_class;////类别数据
var ClassNameLabel="ctl00$ContentPlaceHolder1$ClassName";////商品类别类别标签 默认
var ClassIdLabel="ctl00$ContentPlaceHolder1$ClassID";////商品类别id标签 默认

//var ClassNameLabel="ClassName";////商品类别类别标签 默认
//var ClassIdLabel="ClassID";////商品类别id标签 默认

//var ClassNameLabel="ClassName";////商品类别类别标签 默认
//var ClassIdLabel="ClassID";////商品类别id标签 默认

////set类别名称 
function setClassName(x,c,i){
if(c){ClassNameLabel=c;}
if(i){ClassIdLabel=i;}
var a=GetClassNameByclassID(x);
if(a){ClassName(a);}
}
////类别名称
function ClassName(x){
var classname=document.getElementById(ClassNameLabel);
//if(!classname) classname=document.getElementById("ClassName");
    if(x){
    classname.innerHTML=x;
    }else{
    return classname.innerHTML;
    } 
}
function GetClassNameByclassID(ID){
 var c="" ;
 var a=GetByclassID(ID);
 if(a){ 
  c=a[a.length-1]; 
  for(i=(a.length-2);i>-1;i--){ 
       c+="->"+a[i];
    } 
 } 
 
 return "(原类别:"+c+")  ";
}
function GetByclassID(id){
var a;
var b=id;
var c=new Array();
do
{
a=ClassArr[b];///获取类别
if(a){b=a[1];
c.push(a[0]);}
}
while (a&&b)
return c;
}

function GetClassByParentID(ParentID){
  var ClassArray=new Array();
  for(var x in _class){
     var _classArray=_class[x]
	 if(_classArray[1]==ParentID){
	    var _array=new Array();
		_array[0]=_classArray[0];
		_array[1]=x;
        _array[2]=_classArray[2];
		ClassArray.push(_array);        
	 }
  } 
  return ClassArray;
}
function Hidden(x){
    var obj = document.getElementById("table"+x);
    if(obj.style.display==""){
        obj.style.display="none";
    }else{
        obj.style.display="";
    }
}
function selectType(){
    var boj = document.getElementsByName("ctl00$ContentPlaceHolder1$RadioButtonList_ProductType");
    var bojvalue;
    for(i=0;i<boj.length;i++){
        if(boj[i].checked)
            bojvalue = boj[i].value;
    }
    
    if(bojvalue=="1"){
        document.getElementById("display_productType_1").style.display="";
        document.getElementById("display_productType_2").style.display="none";
        document.getElementById("display_productType_3").style.display="none";
    }else if(bojvalue=="2"){
        document.getElementById("display_productType_2").style.display="";
        document.getElementById("display_productType_1").style.display="none";
        document.getElementById("display_productType_3").style.display="none";
    }else if(bojvalue=="3"){
        document.getElementById("display_productType_3").style.display="";
        document.getElementById("display_productType_1").style.display="none";
        document.getElementById("display_productType_2").style.display="none";
    }
}
function selectVideoType(){
    if(document.getElementById("proudct_video_type_0").checked){
        document.getElementById("proudct_video_type_url_div").style.display="";
        document.getElementById("proudct_video_type_upload_div").style.display="none";
    }else if(document.getElementById("proudct_video_type_1").checked){
        document.getElementById("proudct_video_type_url_div").style.display="none";
        document.getElementById("proudct_video_type_upload_div").style.display="";
    }
}
function changeTeam(){
    var obj = document.getElementById("DropTeamNum");
    var objvalue = obj.options[obj.selectedIndex].value;
    for(var i=1;i<=5;i++){
        if(i<=objvalue){
            document.getElementById("team_"+i).style.display="";
        }else{
            document.getElementById("team_"+i).style.display="none";
        }
    }
}
function selectProductPublishTime()
{
    if(document.getElementById("ProductPublishTime_1").checked)
    {
        document.getElementById("PublishStartTr").style.display="";
    }else{
        document.getElementById("PublishStartTr").style.display="none";
    }
}
function CheckSubmit(){
    if(document.getElementById("ProductName").value==""){
        alert("请填写商品名称！");
        document.getElementById("ProductName").focus();
        return false;
    }
    
    var MM_ProductType = document.getElementsByName("RadioButtonList_ProductType");
    var ProductTypevalue;
    for(i=0;i<MM_ProductType.length;i++){
        if(MM_ProductType[i].checked)
            ProductTypevalue = MM_ProductType[i].value;
    }
    if(ProductTypevalue=="1"){
        if(document.getElementById("StandPrice").value==""){
            alert("请填写商品价格！");
            document.getElementById("StandPrice").focus();
            return false;
        }
    }else if(ProductTypevalue=="2"){
        if(document.getElementById("AuctionPrice").value==""){
            alert("请填写商品起拍价！");
            document.getElementById("AuctionPrice").focus();
            return false;
        }
        if(document.getElementById("AuctionAddPrice").value==""){
            alert("请填写商品加价幅度！");
            document.getElementById("AuctionAddPrice").focus();
            return false;
        }
    }else if(ProductTypevalue=="3"){
        if(document.getElementById("OriginallyPrice").value==""){
            alert("请填写商品原始价！");
            document.getElementById("OriginallyPrice").focus();
            return false;
        }
    }
    return true;
}



function SelectClass()
{  
 //ClassName(" ");
    var html;
    var classArray = GetClassByParentID(0);
    html = "<select size='10' onchange=\"return slectchild(this.value,this.options[this.selectedIndex].text,0)\">";
    for(var i=0;i<classArray.length;i++)
    { 
        var _name=classArray[i][0];
        if(classArray[i][2]!="0")
        {
            _name+="->";
        }
        //selectObj.options[selectObj.length]=new Option(_name,classArray[i][1]);
        html += "<option value="+classArray[i][1]+">"+_name+"</option>";
    }
    html += "</select>";
    
    var ObjDIV = document.getElementById("ClassBar");
    ObjDIV.style.display="";
    ObjDIV.style.position="absolute";
    document.getElementById("ClassBarContent").innerHTML = html;
}

function slectchild(id,text,barid)
{
   
    var html;
    var classArray = GetClassByParentID(id);
    var boj = document.all("hlClassBarItem");
    if(boj=="[object]"){
        var length = 0;
        if(boj.length==undefined){
            length = 1;
        }else{
            length = boj.length;
        }
        for(var j = barid; j < length; j++){
            if(length==1)
            {
                document.getElementById("ClassBarContent").removeChild(boj);
            }else{
                document.getElementById("ClassBarContent").removeChild(boj[barid]);
            }
        }
    }
    var classnameobj = document.all("hlclassname");
    if(classnameobj=="[object]")
    {
   
        var length = 0;
        if(classnameobj.length==undefined){
            length = 1;
        }else{
            length = classnameobj.length;
        }
        for(var j = barid; j < length; j++){
            if(length==1)
            {
                 
                document.getElementById(ClassNameLabel).removeChild(classnameobj);
            }else{
                 
                document.getElementById(ClassNameLabel).removeChild(classnameobj[barid]);
            }
        }
    }
    
    var objects=document.getElementById(ClassNameLabel);
    document.getElementById(ClassNameLabel).innerHTML += "<span id='hlclassname'>"+text+"</span>";
    alert("fff");
    document.getElementById(ClassIdLabel).value = id;
    if(classArray.length==0){return;}
    
    html = "<span id='hlClassBarItem'><select size='10' onchange=\"return slectchild(this.value,this.options[this.selectedIndex].text,"+ barid + 1 +")\">";
    
    for(var i=0;i<classArray.length;i++)
    {
        var _name=classArray[i][0];
        if(classArray[i][2]!="0")
        {
            _name+="->";
        }
        html += "<option value="+classArray[i][1]+" onclick='return slectchild("+classArray[i][1]+")'>"+_name+"</option>";
    }
    html += "</select></span>";

    var ObjDIV = document.getElementById("ClassBarContent");
    ObjDIV.innerHTML += html;
}

</script>

<div class="tab-page" id="shop_manage" style="padding-left:5px;height:100%">

        <script type="text/javascript">
           var tabPane1 = new WebFXTabPane( document.getElementById( "shop_manage" ), 1 )
         </script>
        <div class="tab-page" id="shop_base">
           <h2 class="tab">
               基本信息</h2>
           <script type="text/javascript">
                 tabPane1.addTabPage( document.getElementById("shop_base" ));
           </script>
           <!--基本信息开始-->
           <table class="nick" id="table1">
                <tr>
                    <th style="height: 22px">
                        <span style="color: Red;">*</span>类 型：</th>
                    <td colspan="2" style="height: 22px">
                        <asp:RadioButtonList ID="RadioButtonList_ProductType" onclick="return selectType()"
                            runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Text="一口价" Value="1" Selected="True" />
                            <asp:ListItem Text="拍卖" Value="2" />
                            <asp:ListItem Text="团购" Value="3" />
                        </asp:RadioButtonList></td>
                </tr>
                <tr>
                    <th>
                        <span style="color: Red;">*</span>类 目：</th>
                    <td colspan="2">
                        <asp:Label ID="ClassName" runat="server" />
                        <asp:Literal ID="setclass" runat="server" Visible="true">
                         <script type="text/javascript"></script>
                        </asp:Literal><asp:HiddenField ID="ClassID" runat="server" />
                        <a href="javascript:void(0)" id="ChangeClass" onclick="return SelectClass()">[选择类目]</a>
                        <br />
                        <div id="ClassBar" style="background-color: #ffffff; border: 1px #ccc solid; display: none;
                            padding: 5px; height: 200px;">
                            <div style="float: none;">
                                <div style="float: left; width: 250px;">
                                    您可以选择以下类目：</div>
                                <a href="javascript:void(0)" onclick="{ClassBar.style.display='none'}">关闭</a></div>
                            <div id="ClassBarContent">
                            </div>
                        </div>
                    </td>
                </tr>
                <tr>
                    <th>
                        <span style="color: Red;">*</span>商品名称：</th>
                    <td colspan="2">
                        <asp:TextBox MaxLength="100" ID="ProductName" runat="server" Width="350px" />
                    </td>
                </tr>
                <tr>
                    <th>
                        关 键 字：</th>
                    <td colspan="2">
                        <asp:TextBox ID="KeyWord" runat="server" Width="250px" />
                    </td>
                </tr>
                <tr>
                    <th>
                        上传图片：</th>
                    <td bgcolor="#F9F9F9" valign="top">
                        <asp:FileUpload ID="FileUpload1" runat="server" /><br />
                        图片限定120k内，jpg或gif格式，请确保图片在浏览器中可以正常打开。一张好图胜千言，建议最低像素250×250，推荐象素500×500，主体突出。
                    </td>
                    <td bgcolor="#F9F9F9">
                        <div id="previewImage" style="text-align: center; width: 100px; height: 100px; border: solid 1px gray;
                            float: right;">
                            <asp:Image ID="ProductImg" runat="server" Height="100px" Width="100px" />
                        </div>
                    </td>
                </tr>
                <tr id="upload_video_tr" runat="server">
                    <th>
                        上传视频：</th>
                    <td colspan="2">
                        <asp:RadioButtonList ID="proudct_video_type" runat="server" RepeatLayout="Flow" onclick="return selectVideoType()"
                            RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True" Text="输入网络视频地址" Value="url" />
                            <asp:ListItem Text="上传视频文件" Value="file" />
                            <asp:ListItem Text="不要视频" Value="del" />
                        </asp:RadioButtonList>
                        <div id="proudct_video_type_url_div">
                            <asp:TextBox ID="Product_VideoUrl" runat="server" Width="300px" />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="格式不对"
                                Display="Dynamic" ControlToValidate="Product_VideoUrl" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?"></asp:RegularExpressionValidator>格式如：http://www.abc.com/video/product.flv
                            显示多个视频请用“|”分隔
                        </div>
                        <div id="proudct_video_type_upload_div" style="display: none;">
                            <asp:FileUpload ID="FileUploadVideo" runat="server" Width="300px" ToolTip="上传视频文件，flv格式" /><br />
                            <asp:Literal ID="UploadVideoTips" runat="server" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <th>
                        商品描述：</th>
                    <td colspan="2">
                        <asp:TextBox ID="ProductDescripe" runat="server" Style="display: none;" />
                        <iframe src="../Editor/Editor.aspx?id=<%=ProductDescripe.ClientID %>" frameborder="0" scrolling="auto"
                            width="100%" height="250"></iframe>
                    </td>
                </tr>
            </table>
           
           <!--基本信息结束-->
        </div>
        <div class="tab-page" id="shop_intro">
           <h2 class="tab">交易条件</h2>
           <script type="text/javascript">
                 tabPane1.addTabPage( document.getElementById("shop_intro"));
           </script>
           
           <!--交易条件开始-->
           
           <table class="nick">
                <tr>
                    <td colspan="2">
                        <table class="SellProductDetail" id="display_productType_1" style="display: block">
                            
                            <tr>
                            <th><span style="color: Red;">*</span>参考价：</th><td>
                            <asp:TextBox ID="MarketPrice" Text="" runat="server" Width="100px" />(为空不显示市场参考价，格式如“市场价|XX元”或“苏宁价|XX元”)
                            </td>
                            </tr>
                            <tr>
                                <th>
                                    <span style="color: Red;">*</span>一 口 价：</th>
                                <td>
                                    <asp:TextBox ID="StandPrice" runat="server" Width="50px" />&nbsp;元
                                    <asp:RegularExpressionValidator ID="revStandPrice" runat="server" ControlToValidate="StandPrice"
                                        ValidationExpression="\d+(\.\d\d)?" ErrorMessage="输入金额格式不正确" Display="Dynamic" /><span
                                            style="color: Blue">(只保留小数点2位)</span></td>
                            </tr>
                            <tr valign="middle" id="auctionMemberCard2" style="display: none">
                                <th>
                                    会员卡打折：</th>
                                <td height="50" bgcolor="#E1E1E1">
                                    <asp:RadioButtonList ID="userMemberCard" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="参与会员卡打折" Value="1" />
                                        <asp:ListItem Text="不参与会员卡打折" Value="0" />
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                        </table>
                        <table class="SellProductDetail" id="display_productType_2" style="display: none">
                            <tr>
                                <th>
                                    <span style="color: Red;">*</span>起 拍 价：</th>
                                <td>
                                    <asp:TextBox ID="AuctionPrice" runat="server" Width="50px" />&nbsp;元
                                    <asp:RegularExpressionValidator ID="revAuctionPrice" runat="server" ControlToValidate="AuctionPrice"
                                        ValidationExpression="\d+(\.\d\d)" ErrorMessage="输入金额格式不正确" Display="Dynamic" /><span
                                            style="color: Blue">(只保留小数点1位)</span></td>
                            </tr>
                            <tr>
                                <th>
                                    <span style="color: Red;">*</span>加价幅度：</th>
                                <td>
                                    <asp:TextBox ID="AuctionAddPrice" runat="server" Width="50px" />&nbsp;元
                                    <asp:RegularExpressionValidator ID="revAuctionAddPrice" runat="server" ControlToValidate="AuctionAddPrice"
                                        ValidationExpression="\d+(\.\d\d)?" ErrorMessage="输入金额格式不正确" Display="Dynamic" /></td>
                            </tr>
                        </table>
                        <div id="display_productType_3" style="display: none">
                            <table class="SellProductDetail">
                                <tr>
                                    <th>
                                        <span style="color: Red;">*</span>原始价：</th>
                                    <td>
                                        <asp:TextBox ID="OriginallyPrice" runat="server" />
                                        <asp:RegularExpressionValidator ID="revOriginallyPrice" runat="server" ControlToValidate="OriginallyPrice"
                                            ValidationExpression="\d+(\.\d\d)?" ErrorMessage="输入金额格式不正确" Display="Dynamic" />
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        价格档次：</th>
                                    <td>
                                        &nbsp;<asp:DropDownList ID="DropTeamNum" runat="server" onchange="return changeTeam()" />
                                        个档次 &nbsp;&nbsp;<span style="color: Gray;">说明：团购档次从上至下，数量递 <span style="color: Green">
                                            减</span>，价格递<span style="color: Red">增</span>。豪巴人数最多，价格最低</span>
                                    </td>
                                </tr>
                                <tr id="team_1">
                                    <th>
                                        档次1：</th>
                                    <td>
                                        <span class="team_name">
                                            <asp:Literal ID="TeamName5" runat="server" /></span> 最低商品数：<asp:TextBox ID="TeamNumber5"
                                                Text="0" runat="server" Width="50px" />
                                        <asp:TextBox ID="TeamPrice5" Text="0" runat="server" Width="50px" />&nbsp;元 &nbsp;
                                    </td>
                                </tr>
                                <tr id="team_2" style="display: none">
                                    <th>
                                        档次2：</th>
                                    <td>
                                        <span class="team_name">
                                            <asp:Literal ID="TeamName4" runat="server" /></span> 最低商品数：<asp:TextBox ID="TeamNumber4"
                                                Text="0" runat="server" Width="50px" />
                                        <asp:TextBox ID="TeamPrice4" Text="0" runat="server" Width="50px" />&nbsp;元&nbsp;
                                    </td>
                                </tr>
                                <tr id="team_3" style="display: none">
                                    <th>
                                        档次3：</th>
                                    <td>
                                        <span class="team_name">
                                            <asp:Literal ID="TeamName3" runat="server" /></span> 最低商品数：<asp:TextBox Text="0"
                                                ID="TeamNumber3" runat="server" Width="50px" />
                                        <asp:TextBox ID="TeamPrice3" Text="0" runat="server" Width="50px" />&nbsp;元&nbsp;
                                    </td>
                                </tr>
                                <tr id="team_4" style="display: none">
                                    <th>
                                        档次4：</th>
                                    <td>
                                        <span class="team_name">
                                            <asp:Literal ID="TeamName2" runat="server" /></span> 最低商品数：<asp:TextBox Text="0"
                                                ID="TeamNumber2" runat="server" Width="50px" />
                                        <asp:TextBox ID="TeamPrice2" Text="0" runat="server" Width="50px" />&nbsp;元&nbsp;
                                    </td>
                                </tr>
                                <tr id="team_5" style="display: none">
                                    <th>
                                        档次5：</th>
                                    <td>
                                        <span class="team_name">
                                            <asp:Literal ID="TeamName1" runat="server" /></span> 最低商品数：<asp:TextBox Text="0"
                                                ID="TeamNumber1" runat="server" Width="50px" />
                                        <asp:TextBox ID="TeamPrice1" Text="0" runat="server" Width="50px" />&nbsp;元&nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <th>
                                        预付诚意金：</th>
                                    <td>
                                        &nbsp;原始价的<asp:TextBox ID="OrderMoneyPercent" Text="0" runat="server" Width="30px" />%&nbsp;请填写1-100的数字，0表示不需预付诚意金
                                        &nbsp;(若设置预付诚意金为0，则风险由卖家承担)
                                    </td>
                                </tr>
                            </table>
                            <asp:Label ID="TeamCount_Error" runat="server" CssClass="error_text" Width="163px" />
                        </div>
                    </td>
                </tr>
            </table>
           <!--交易条件结束-->
        </div>
        <div class="tab-page" id="PorductInfo">
           <h2 class="tab">商品信息</h2>
            <script type="text/javascript">
                 tabPane1.addTabPage( document.getElementById("PorductInfo"));
           </script>
           <!--商品信息开始-->
           <table class="nick" id="table2">
                <tr>
                    <th>
                        商品单位：</th>
                    <td>
                        <asp:TextBox ID="TxtPuint" runat="server" Width="40px" Text="件" MaxLength="2" />
                        <select onchange='document.getElementById("TxtPuint").value=this.value' name="selectmsg">
                            <option value="件" selected="selected">件</option>
                            <option value="个">个</option>
                            <option value="台">台</option>
                            <option value="批">批</option>
                            <option value="箱">箱</option>
                            <option value="本">本</option>
                            <option value="双">双</option>
                            <option value="瓶">瓶</option>
                            <option value="">其它</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>
                        商品数量：</th>
                    <td>
                        <asp:TextBox ID="ProductStock" runat="server" Width="50px" Text="1" />
                        <asp:RequiredFieldValidator ID="rfv3" runat="server" ErrorMessage="请输入商品数量" ControlToValidate="ProductStock"
                            Display="Dynamic" />
                        <asp:RangeValidator ID="rav_2" runat="server" ErrorMessage="输入数量必须为整数" Type="Integer"
                            ControlToValidate="ProductStock" MaximumValue="99999999" MinimumValue="1" Display="Dynamic" />
                    </td>
                </tr>
                <tr>
                    <th>
                        新旧程度：</th>
                    <td>
                        <asp:RadioButtonList ID="ProductStandard" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Text="全新" Value="1" Selected="True" />
                            <asp:ListItem Text="二手" Value="0" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <th>
                        所 在 地：</th>
                    <td>
                        <MZ:ProvinceCity ID="ProvinceCity" runat="server" />
                    </td>
                </tr>
                <tr>
                    <th>
                        发 票：</th>
                    <td>
                        <asp:RadioButtonList ID="NeedInvoice" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Text="有" Value="true" />
                            <asp:ListItem Text="无" Value="false" Selected="True" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <th>
                        发票税率：</th>
                    <td>
                        <asp:TextBox ID="TxtTaxRate" runat="server" MaxLength="3" Width="53px">7</asp:TextBox>%
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TxtTaxRate"
                            ErrorMessage="发票税率不能空" Display="Dynamic" />
                        <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TxtTaxRate"
                            ErrorMessage="必须为非负数" MaximumValue="100" MinimumValue="0" Type="Integer" Display="Dynamic" /></td>
                </tr>
                <tr>
                    <th>
                        保 修：</th>
                    <td>
                        <asp:RadioButtonList ID="Guarantee" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Text="有" Value="true" />
                            <asp:ListItem Text="无" Value="false" Selected="True" />
                        </asp:RadioButtonList>
                    </td>
                </tr>
            </table>
           
           <!--商品信息结束-->
        </div>
       
        <div class="tab-page" id="SetSeal">
           <h2 class="tab">销售设置</h2>
           <script type="text/javascript">
           tabPane1.addTabPage( document.getElementById("SetSeal"));
           </script>
           
           <!--销售设置开始-->
           <table class="nick" style="display: block" id="table6">
                <tr>
                    <th>
                        <span style="color: Red;">*</span>支付方式：</th>
                    <td id="pay_type_obj">
                        <asp:CheckBoxList ID="CheckBoxList_OnlinePayType" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Value="0">商城帐户支付</asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                    <td>
                        <a href="javascript:void(0)" onclick="OpennewWindow('member/Index.aspx?mainurl=Shop_PaymentType.aspx?GoUrl=/SaleProduct.aspx');">
                            设置支付方式</a>
                    </td>
                </tr>
                <tr>
                    <th>
                        <span style="color: Red;">*</span>送货方式：</th>
                    <td id="deliver_type_obj">
                        <asp:RadioButtonList ID="Radio_DeliverPayType" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Text="买家承担运费" Value="1" Selected="True" />
                            <asp:ListItem Text="卖家承担运费" Value="0" />
                        </asp:RadioButtonList>
                        <div id="deliver_template" style="width: 80%; border: solid 1px gray; background: #eeeeee;
                            clear: both; padding: 5px;">
                            选择运费模板：<br />
                            <asp:RadioButtonList ID="CheckBoxList_DeliverType" runat="server" RepeatLayout="Flow" />
                        </div>
                    </td>
                    <td>
                        <a href="javascript:void(0)" onclick="OpennewWindow('member/Index.aspx?mainurl=Shop_AddDeliver.aspx?action=add&from=publish');">
                            设置送货方式</a></td>
                </tr>

                <script type="text/javascript">
                function OpennewWindow(url)
                {
                   var win = window.open(url,"mywin", "menubar=no,width=960,height=700,resizeable=yes");

                }
                </script>

                <tr>
                    <th>
                        促销设置：</th>
                    <td>
                        <asp:RadioButtonList ID="PromoteSet" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Text="无" Value="-1" Selected="True" />
                            <asp:ListItem Text="会员卡默认优惠" Value="0" />
                            <asp:ListItem Text="自定义优惠" Value="1" />
                        </asp:RadioButtonList></td>
                    <td>
                    </td>
                </tr>
            </table>
           
           
           <!--销售设置结束-->
        </div>
        <div class="tab-page" id="OtherInfo">
           <h2 class="tab">其它信息</h2>
           <script type="text/javascript">
                 tabPane1.addTabPage( document.getElementById("OtherInfo"));
           </script>
           
           <!--其它信息开始-->
           <table class="nick" id="table4">
                <tr>
                    <th>
                        有 效 期：</th>
                    <td>
                        <asp:DropDownList ID="ValidDay" runat="server" />&nbsp;天</td>
                </tr>
                <tr>
                    <th>
                        开始时间：</th>
                    <td>
                        <asp:RadioButtonList ID="ProductPublishTime" onclick="return selectProductPublishTime()"
                            runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Text="立即" Value="1" />
                            <asp:ListItem Text="设定时间" Value="2"  Selected="True"/>
                            <asp:ListItem Text="放入仓库" Value="0" />
                        </asp:RadioButtonList><br />
                        <div id="PublishStartTr"  >
                            <asp:TextBox ID="PublishStartDay" runat="server" Width="100px" Height="16px" />
                            <asp:DropDownList ID="PublishStartHour" runat="server">
                                <asp:ListItem Text="0" Value="0" />
                                <asp:ListItem Text="1" Value="1" />
                                <asp:ListItem Text="2" Value="2" />
                                <asp:ListItem Text="3" Value="3" />
                                <asp:ListItem Text="4" Value="4" />
                                <asp:ListItem Text="5" Value="5" />
                                <asp:ListItem Text="6" Value="6" />
                                <asp:ListItem Text="7" Value="7" />
                                <asp:ListItem Text="8" Value="8" />
                                <asp:ListItem Text="9" Value="9" />
                                <asp:ListItem Text="10" Value="10" />
                                <asp:ListItem Text="11" Value="11" />
                                <asp:ListItem Text="12" Value="12" />
                                <asp:ListItem Text="13" Value="13" />
                                <asp:ListItem Text="14" Value="14" />
                                <asp:ListItem Text="15" Value="15" />
                                <asp:ListItem Text="16" Value="16" />
                                <asp:ListItem Text="17" Value="17" />
                                <asp:ListItem Text="18" Value="18" />
                                <asp:ListItem Text="19" Value="19" />
                                <asp:ListItem Text="20" Value="20" />
                                <asp:ListItem Text="21" Value="21" />
                                <asp:ListItem Text="22" Value="22" />
                                <asp:ListItem Text="23" Value="23" />
                            </asp:DropDownList>时
                            <asp:DropDownList ID="PublishStartMin" runat="server">
                                <asp:ListItem Text="0" Value="0" />
                                <asp:ListItem Text="5" Value="5" />
                                <asp:ListItem Text="10" Value="10" />
                                <asp:ListItem Text="15" Value="15" />
                                <asp:ListItem Text="20" Value="20" />
                                <asp:ListItem Text="25" Value="25" />
                                <asp:ListItem Text="30" Value="30" />
                                <asp:ListItem Text="35" Value="35" />
                                <asp:ListItem Text="40" Value="40" />
                                <asp:ListItem Text="45" Value="45" />
                                <asp:ListItem Text="50" Value="50" />
                                <asp:ListItem Text="55" Value="55" />
                            </asp:DropDownList>分
                        </div>
                    </td>
                </tr>
                <tr>
                    <th>
                        自动重发：</th>
                    <td>
                        <asp:CheckBox ID="AutoPostBack" runat="server" Text="是" Checked="true" />系统会帮您自动重发1次，到期未卖出的商品，您可以在仓库里找到并重新发布
                    </td>
                </tr>
                <tr style="display: none;">
                    <th>
                        显示模板：</th>
                    <td>
                        <asp:DropDownList ID="TemplateID" runat="server" AppendDataBoundItems="True" />
                    </td>
                </tr>
                <tr style="display: none;">
                    <th>
                        显示风格：</th>
                    <td>
                        <asp:DropDownList ID="SkinID" runat="server" AppendDataBoundItems="True" />
                    </td>
                </tr>
                <tr>
                    <th>
                        橱窗推荐：</th>
                    <td>
                        <asp:CheckBox ID="IsElite" runat="server" Text="是" />
                    </td>
                </tr>
                <tr>
                    <th>
                        心情故事：</th>
                    <td>
                        <asp:TextBox ID="UserRemark" runat="server" TextMode="MultiLine" Height="131px" Width="354px" />
                    </td>
                </tr>
            </table>
           
           <!--其他信息结束-->
        </div>
        <div class="tab-page" id="SystemInfo">
           <h2 class="tab">系统信息</h2>
           <script type="text/javascript">
                 tabPane1.addTabPage( document.getElementById("SystemInfo"));
           </script>
           
           <!--系统信息开始-->
           <table class="nick" id="table3">
                <tr>
                    <th style="height: 25px">
                        卖家ID：</th>
                    <td style="width: 136px; height: 25px;">
                        <asp:TextBox ID="SELLID" runat="server"></asp:TextBox>
                   </td>
                   <td style="height: 25px">
                       <asp:RegularExpressionValidator
                        ControlToValidate="SELLID" Display="Dynamic"  ID="RegularExpressionValidator2" runat="server" ErrorMessage="数字" ValidationExpression="\d"></asp:RegularExpressionValidator>
                   </td>
                </tr>
                <tr>
                    <th>
                        所属店铺ID：</th>
                    <td style="width: 136px">
                         <asp:TextBox ID="SHOPID" runat="server"></asp:TextBox>
                    </td> <td>
                       <asp:RegularExpressionValidator
                        ControlToValidate="SHOPID" Display="Dynamic"  ID="RegularExpressionValidator3" runat="server" ErrorMessage="数字" ValidationExpression="\d"></asp:RegularExpressionValidator>
                   </td>
                </tr>
                <tr>
                    <th>
                        订单数：</th>
                    <td style="width: 136px">
                     <asp:TextBox ID="NUMORDER" runat="server"></asp:TextBox>
                     </td> <td>
                       <asp:RegularExpressionValidator
                        ControlToValidate="NUMORDER" Display="Dynamic"  ID="RegularExpressionValidator10" runat="server" ErrorMessage="数字" ValidationExpression="\d"></asp:RegularExpressionValidator>
                   </td>
                </tr>
                <tr  >
                    <th>
                        评论数：</th>
                    <td style="width: 136px"> <asp:TextBox ID="NUMCOM" runat="server"></asp:TextBox>
                     </td> <td>
                       <asp:RegularExpressionValidator
                        ControlToValidate="NUMCOM" Display="Dynamic"  ID="RegularExpressionValidator9" runat="server" ErrorMessage="数字" ValidationExpression="\d"></asp:RegularExpressionValidator>
                   </td>
                </tr>
                <tr  >
                    <th style="height: 25px">
                        点击数：</th>
                    <td style="width: 136px; height: 25px;"> <asp:TextBox ID="NUMCLICK" runat="server"></asp:TextBox>
                      </td> <td style="height: 25px">
                       <asp:RegularExpressionValidator
                        ControlToValidate="NUMCLICK" Display="Dynamic"  ID="RegularExpressionValidator8" runat="server" ErrorMessage="数字" ValidationExpression="\d"></asp:RegularExpressionValidator>
                   </td>
                </tr>
                <tr>
                    <th>
                        购买次数：</th>
                    <td style="width: 136px"> <asp:TextBox ID="NUMBUY" runat="server"></asp:TextBox>
                    
                        </td> <td>
                       <asp:RegularExpressionValidator
                        ControlToValidate="NUMBUY" Display="Dynamic"  ID="RegularExpressionValidator4" runat="server" ErrorMessage="数字" ValidationExpression="\d"></asp:RegularExpressionValidator>
                   </td>
                </tr>
                <tr>
                    <th>
                        显示排序：</th>
                    <td style="width: 136px">
                        <asp:TextBox ID="NUMTURN" runat="server"  />
                    </td> <td>
                       <asp:RegularExpressionValidator
                        ControlToValidate="NUMTURN" Display="Dynamic"  ID="RegularExpressionValidator5" runat="server" ErrorMessage="数字" ValidationExpression="\d"></asp:RegularExpressionValidator>
                   </td>
                </tr>
            </table>
           
           <!--系统信息结束-->           
        </div>
    </div>
    
    <div style="text-align:center">
        <asp:Button ID="Btn_Update" runat="server" Text="更新" />&nbsp;&nbsp;<asp:Button ID="Btn_Back"
            runat="server" Text="返回" /></div>

</asp:Content>

