<%--
//-----------------------------------------------------------
// 文件名称: Product_Product_Operate.aspx
// 类 名 称: Product_Product_Operate.aspx.cs
// 描    述: 商品添加
// 修改标识: Modify By 钟治宇 2008-12-05
// 修改内容: 商品价格长度超过9位报错
// 修改标识: Add By 钟治宇 2008-12-05  修改了几个正则表达式
//-----------------------------------------------------------
--%>
<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.Product_Product_Operate, V5Shop.Shop.Category" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="ajax" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />

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

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

    <script type="text/javascript" src="editor/fckeditor.js"></script>

    <script type="text/javascript">
    function checkisnumber(strvalue)
    {
        if(isNaN(strvalue))
        {
            alert("只能为数字");
            return false;
        }
    }
                //打开模式对话框（图片选择）
            function OpenDialogPage(){
                if (navigator.appVersion.indexOf("MSIE") == -1){
                    this.returnAction=function(strResult){
                        if(strResult!=null){
                            var oEditor = FCKeditorAPI.GetInstance('txtContent'); 
                            oEditor.InsertHtml(GetValue) 
                        }
                    }
                    window.open('Picture_Picture_Manage_Dialog.aspx?d=' + Date(),'newWin','modal=yes,width=620,height=620,top=200,left=300,resizable=no,scrollbars=no');
                    return;
                }else{
                    var GetValue = showModalDialog('Picture_Picture_Manage_Dialog.aspx?d=' + Date(),'','dialogWidth:620px;dialogHeight:620px;')
                    if (GetValue != null) {
                        var oEditor = FCKeditorAPI.GetInstance('txtContent'); 
                            oEditor.InsertHtml("<img src='<%=BaseConfigPath %>" + GetValue + "'>");
                    } 
                }
            }
    </script>

    <style type="text/css">
    #dhtmltooltip {
        font-size: 9pt;BORDER-RIGHT: gray 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: gray 1px solid; PADDING-LEFT: 4px; Z-INDEX: 100; FILTER: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=120); VISIBILITY: hidden; PADDING-BOTTOM: 4px; BORDER-LEFT: gray 1px solid; WIDTH: 150px; PADDING-TOP: 4px; BORDER-BOTTOM: gray 1px solid; POSITION: absolute; BACKGROUND-COLOR: #cccccc
    }
    </style>
    <style type="text/css">
a {
  color:#000000;
  text-decoration:none;
}
   
#header {
  height:26px;
  background:url(images/bg_cate.gif) bottom repeat-x;
  margin-bottom:20px;
}
#header ul {
  margin:0;
  padding:0px;
  list-style:none;
}
#header li {
  float:left;
 background:#DCE1EF;
 border:solid 1px #8EA2C2;
 border-bottom:solid 0px #8EA2C2;
 margin-left:2px;
}
#header a {
  display:block;
 padding:5px 10px 4px;
}
#header .current {
 background:#FFFFFF;
 border:solid 1px #8EA2C2;
 border-bottom:solid 1px #ffffff;
 
}
#header .current a{
 padding-bottom:5px;
}
.content {
 
}
.content .contentHeader {
  background-color:#BCC7E0;
  border:solid 1px #4B66A5;
  font-weight:bold;
}

.content .contentMain {
 border-left:solid 1px #4B66A5;
 border-top:solid 0px #4B66A5;
 border-right:solid 1px #4B66A5;
 border-bottom:solid 1px #4B66A5;
}
</style>
    <style type="text/css">
    #CategoryLevel ul{
        border:1px solid #A4B2BD;
        float:left;
        height:317px;
        margin:0pt 6px 0pt 0pt;
		background:#FFFFFF;
        overflow:auto;
        padding:0pt;
        width:188px;
    }
    
    #CategoryLevel ul li{
        border-bottom:1px solid #F7F7F7;
        color:#444444;
        cursor:default;
        height:20px;
        line-height:20px;
        list-style-type:none;
        margin:0pt 1px !important;
        overflow:hidden;
        padding:0pt;
        text-indent:3px;
    }
    
    #CategoryLevel ul li.IsFather {
        background-image:url(images/publishitem_subcate_arrow.gif);
        background-position:99% 50%;
        background-repeat:no-repeat;
    }
    
    #CategoryLevel ul li.Selected {
        background-color:#F7FCFF;
        border:1px solid #A4B2BD;
		border-width:1px 0;
        color:#006623;
    }
</style>
</head>
<body>
    <div id='dhtmltooltip'>
        <img src="" /></div>

    <script language="javascript" src="js/showimg.js"></script>

    <script type="text/javascript">
function change_option(number,index){
 for (var i = 1; i <= number; i++) {
     try{
          document.getElementById('current' + i).className = '';
        document.getElementById('content' + i).style.display = 'none';
    }catch(e){}
 }
 
 try{
        document.getElementById('current' + index).className = 'current';
        document.getElementById('content' + index).style.display = 'block';
        document.getElementById('TabId').value = index;
  }catch(e){}
}
    </script>

    <form id="form1" runat="server">
        <ajax:ScriptManager ID="ScriptManager1" runat="server">
        </ajax:ScriptManager>
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="【 商品添加 】"></asp:Label>
                <asp:Label ID="lblEdit" runat="server" Text="【 商品编辑 】" Visible="false"></asp:Label>
                <a href="Product_Product_Manage.aspx" title="返回商品列表">返回列表</a>
            </div>
        </div>

        <script language="javascript" type="text/javascript">
    function CategoryClick(obj){
        obj.parentNode.className = 'Selected' + obj.className;
    }
        </script>

        <asp:Panel ID="CategoryArea" runat="server" Width="100%">
            <div>
                <div style="height: 30px; line-height: 30px; padding-left: 20px; color: #000000">
                    <asp:Label ID="lblSelectCategoryFirst" runat="server" Text="请先选择商品所在的分类"></asp:Label>&nbsp;&nbsp;
                    <asp:Label ID="lblHistoryCategory" runat="server" Text="历史选择分类：" Visible="False"></asp:Label>
                    <asp:DropDownList ID="ddlHistoryCategory" runat="server" Visible="False">
                    </asp:DropDownList>
                    <asp:Button ID="btnHistoryConfirm" runat="server" CssClass="button" Text="确定" OnClick="btnHistoryConfirm_Click"
                        Visible="False" />
                    <asp:Button ID="btnClearCookies" runat="server" CssClass="button" Text="清除历史记录" OnClick="btnClearCookies_Click"
                        Visible="False" />
                </div>
                &nbsp;&nbsp;
                <div id="CategoryLevel" style="background: #f7f7f7; border: 1px #f1f1f1 solid; border-width: 1px 0px;
                    height: 337px">
                    <div style="width: 815px">
                        <div style="padding: 10px 0 0 20px">
                            <asp:Repeater ID="rpCategory" runat="server">
                                <ItemTemplate>
                                    <asp:HiddenField ID="level" runat="server" Value='<%#Eval("Level") %>' />
                                    <ul>
                                        <asp:Repeater ID="CategoryList" runat="server">
                                            <ItemTemplate>
                                                <li id="CateLi" runat="server" class='<%#Eval("keywords") %>'>
                                                    <asp:LinkButton ID="name" runat="server" OnClick="LinkClick" Text='<%#Eval("Name") %>'
                                                        Width="160px"></asp:LinkButton>
                                                    <asp:HiddenField ID="value" runat="server" Value='<%#Eval("ID") %>' />
                                                    <asp:HiddenField ID="level" runat="server" Value='<%#Eval("level") %>' />
                                                    <asp:HiddenField ID="childcount" runat="server" Value='<%#Eval("childcount") %>' />
                                                </li>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </ul>
                                </ItemTemplate>
                            </asp:Repeater>
                        </div>
                    </div>
                    <br clear="all" />
                    <div align="center" style="height: 30px; line-height: 36px">
                        <asp:Button ID="CategorySubmit" runat="server" Text="选好分类，进入下一步" OnClick="ShowProductArea"
                            Enabled="false" CssClass="button"></asp:Button>
                    </div>
                </div>
            </div>
            <asp:HiddenField ID="HiddenCategoryID" runat="server" />
        </asp:Panel>
        <asp:Panel ID="ProductArea" Visible="false" runat="server" Width="100%">
            <div id="addcontent">
                <div id="header">
                    <ul>
                        <li id="current1"><a style="cursor: pointer;" onclick="change_option(10,1);"><asp:Label ID="lblBaseInfoTab" runat="server" Text="基本信息"></asp:Label></a></li><li id="current2" runat="server"><a style="cursor: pointer;" onclick="change_option(10,2);"><asp:Label ID="lblCategoryTab" runat="server" Text="商品属性"></asp:Label></a></li><li id="current3" runat="server"><a style="cursor: pointer;" onclick="change_option(10,3);"><asp:Label ID="lblPropertyTab" runat="server" Text="自定义属性"></asp:Label></a></li><li id="current4" runat="server"><a style="cursor: pointer;" onclick="change_option(10,4);"><asp:Label ID="lblImageTab" runat="server" Text="商品图片"></asp:Label></a></li><li id="current5" runat="server"><a style="cursor: pointer;" onclick="change_option(10,5);"><asp:Label ID="lblContentTab" runat="server" Text="详细信息"></asp:Label></a></li><li id="current6" runat="server"><a style="cursor: pointer;" onclick="change_option(10,6);"><asp:Label ID="lblSeoTab" runat="server" Text="搜索优化"></asp:Label></a></li><li id="current7" runat="server"><a style="cursor: pointer;" onclick="change_option(10,7);"><asp:Label ID="lblFittingTab" runat="server" Text="商品配件"></asp:Label></a></li><li id="current8" runat="server"><a style="cursor: pointer;" onclick="change_option(10,8);"><asp:Label ID="lblRelatedTab" runat="server" Text="相关商品"></asp:Label></a></li><li id="current9" runat="server"><a style="cursor: pointer;" onclick="change_option(10,9);"><asp:Label ID="lblRelatedArticleTab" runat="server" Text="相关文章"></asp:Label></a></li><li id="current10" runat="server"><a style="cursor: pointer;" onclick="change_option(10,10);"><asp:Label ID="lblExtendTab" runat="server" Text="扩展分类"></asp:Label></a></li></ul>
                </div>
                <div id="content">
                    <table id="table00" runat="server" width="100%" border="0" align="center" cellpadding="0"
                        cellspacing="0">
                        <tr>
                            <td width="20%" align="right" bgcolor="#FFFFFF">
                                <cc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="商品分类" ImageURL="images/help.gif"
                                    Text="此项与品牌、分类属性、配件类型相关。重新选择后，相关会丢失，需要重新填写。" />
                                <asp:Label ID="lblCategoryNameInfo" runat="server" Text="当前分类："></asp:Label>
                            </td>
                            <td bgcolor="#FFFFFF" align="left" colspan="3">
                                <asp:Label ID="lblCategoryName" runat="server" Text="" Style="line-height: 12px;"></asp:Label>
                                <asp:Button ID="btnEditCategory" runat="server" Text="编辑" CssClass="button" CausesValidation="False"
                                    OnClick="btnEditCategory_Click" Style="vertical-align: middle" /></td>
                        </tr>
                        <tr>
                            <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="lblName" runat="server" Text="商品名称："></asp:Label>
                            </td>
                            <td bgcolor="#FFFFFF" align="left" style="width: 326px">
                                <asp:TextBox ID="txtName" runat="server" Width="250px" MaxLength="50"></asp:TextBox>
                                <span class="NeedMsg">*</span>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtName"
                                    ErrorMessage="不能为空"></asp:RequiredFieldValidator></td>
                            <td height="30" align="right" bgcolor="#FFFFFF" style="width: 110px">
                                <asp:Label ID="lblShortName" runat="server" Text="商品简称："></asp:Label>
                            </td>
                            <td bgcolor="#FFFFFF" align="left">
                                <asp:TextBox ID="txtShortName" runat="server" MaxLength="20"></asp:TextBox>
                                <span class="NeedMsg">*</span>
                            </td>
                        </tr>
                        <tr>
                            <td width="20%" align="right" bgcolor="#FFFFFF" style="height: 30px; border-bottom: 1px #eeeeee solid">
                                <cc1:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="商品编号" ImageURL="images/help.gif"
                                    Text="可以是商品货号，条形码等。可以手动输入，也可以点“编辑”根据系统设置自动生成。为空时系统会默认生成一个编号" />
                                <asp:Label ID="lblNumber" runat="server" Text="商品编号："></asp:Label>
                            </td>
                            <td bgcolor="#FFFFFF" align="left" colspan="3" style="height: 30px; border-bottom: 1px #eeeeee solid">
                                <asp:TextBox ID="txtNumber" runat="server" Width="250px" MaxLength="50"></asp:TextBox>
                                <input type="button" name="btnEditNumber" value="编辑" id="btnEditNumber" class="button"
                                    runat="server" /></td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                <cc1:HelpCtrl ID="HelpCtrl22" runat="server" FontColor="red" Header="市场价格" ImageURL="images/help.gif"
                                    Text="商品在市场上销售价格。" />
                                <asp:Label ID="lblMarketPrice" runat="server" Text="市场价格："></asp:Label>
                            </td>
                            <td align="left" bgcolor="#ffffff" style="color: red">
                                <asp:TextBox ID="txtMarketPrice" runat="server" Width="100px"></asp:TextBox>
                                <span style="color: #ff0000">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtMarketPrice"
                                    Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtMarketPrice"
                                    Display="Dynamic" ErrorMessage="只能为数字,长度不能超过9位" ValidationExpression="^[\d]{0,9}([\.]+\d+){0,9}$"></asp:RegularExpressionValidator>
                            </td>
                            <td align="right" bgcolor="#ffffff" height="30" style="width: 110px">
                                <cc1:HelpCtrl ID="HelpCtrl23" runat="server" FontColor="red" Header="商城价格" ImageURL="images/help.gif"
                                    Text="该商品在本站的销售价格。注意，客户购买时所有价格均以此价格为计算基础。如果是虚拟商品，则代表虚拟卡的面值。" HideSelects="true" />
                                <asp:Label ID="lblMemberPrice" runat="server" Text="商城价格："></asp:Label>
                            </td>
                            <td align="left" bgcolor="#ffffff">
                                <asp:TextBox ID="txtMemberPrice" runat="server" Width="100px"></asp:TextBox>
                                <span style="color: #ff0000">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtMemberPrice"
                                    Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtMemberPrice"
                                    Display="Dynamic" ErrorMessage="只能为数字,长度不能超过9位" ValidationExpression="^[\d]{0,9}([\.]+\d+){0,9}$"></asp:RegularExpressionValidator>
                            </td>
                        </tr>
                    </table>
                </div>
                <!--基本信息开始-->
                <div id="content1" class="content">
                 <%--   <ajax:UpdatePanel ID="UpdatePanel6" runat="server">--%>
                       <%-- <ContentTemplate>--%>
                            <table id="table1" runat="server" width="100%" border="0" align="center" cellpadding="0"
                                cellspacing="0">
                                <tr id="trBrand" runat="server">
                                    <td align="right" bgcolor="#ffffff" width="20%" style="height: 30px">
                                        <asp:Label ID="lblBrandId" runat="server" Text="商品品牌："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                                        <asp:DropDownList ID="ddlBrandId" runat="server" Width="150px">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                                        <cc1:HelpCtrl ID="HelpCtrl3" runat="server" FontColor="red" Header="库存警告" ImageURL="images/help.gif"
                                            Text="如开启此项设置，则当库存低于设置值时，会在后台首页提示库存不足" />
                                        <asp:Label ID="lblIsAlert" runat="server" Text="库存警告："></asp:Label>
                                    </td>
                                    <td bgcolor="#FFFFFF" align="left">
                                        <asp:RadioButtonList ID="rblIsAlert" runat="server" CssClass="radioaspx" OnSelectedIndexChanged="rblIsAlert_SelectedIndexChanged"
                                            RepeatDirection="Horizontal" AutoPostBack="True">
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr id="trIsAlert" runat="server" visible="false">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <asp:Label ID="lblAlertCount" runat="server" Text="库存警告数量："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtAlertCount" runat="server" Width="100px"></asp:TextBox>
                                        <span style="color: #ff0000">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator14"
                                            runat="server" ControlToValidate="txtAlertCount" Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator12" runat="server"
                                            ControlToValidate="txtAlertCount" Display="Dynamic" ErrorMessage="只能为数字,长度不能超过9位" ValidationExpression="^[\d]{0,9}([\.]+\d+){0,9}$"></asp:RegularExpressionValidator></td>
                                </tr>
                                <tr runat="server" id="trStock">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <asp:Label ID="lblStorage" runat="server" Text="库存："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtStorage" runat="server" Width="100px"></asp:TextBox>
                                        <asp:Label ID="lblStorageCount" runat="server" Visible="False"></asp:Label>
                                        <input type="button" id="btnAddStorage" runat="server" value="入库" visible="False"
                                            class="button" /><span style="color: #ff0000">*</span>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="不能为空"
                                            ControlToValidate="txtStorage" Display="Dynamic"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="只能为数字,长度不能超过9位"
                                            ValidationExpression="^[\d]{0,9}([\.]+\d+){0,9}$" ControlToValidate="txtStorage" Display="Dynamic"></asp:RegularExpressionValidator>
                                        <asp:TextBox ID="txtUnit" runat="server" Width="100px" MaxLength="10"></asp:TextBox>
                                        <asp:DropDownList ID="ddlStorageUnit" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlStorageUnit_SelectedIndexChanged"
                                            Width="100px">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr runat="server" id="trWeight">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <cc1:HelpCtrl ID="HelpCtrl4s" runat="server" FontColor="red" Header="商品重量" ImageURL="images/help.gif"
                                            Text="此项设置会关联商品运费的计算。注意单位是KG." />
                                        <asp:Label ID="lblWeight" runat="server" Text="商品重量："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtWeight" runat="server" Width="100px" ></asp:TextBox>
                                        <asp:Label ID="lblWeightUnit" runat="server" Text="KG"></asp:Label>
                                        <span style="color: #ff0000">*</span>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="不能为空"
                                            ControlToValidate="txtWeight" Display="Dynamic"></asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="只能为数字,长度不能超过9位"
                                            ValidationExpression="^[\d]{0,9}([\.]+\d+){0,9}$" ControlToValidate="txtWeight" Display="Dynamic"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" bgcolor="#ffffff" width="20%" style="height: 30px">
                                        <asp:Label ID="lblProperty" runat="server" Text="商品属性："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                                        <asp:CheckBox ID="cbIsOnSale" runat="server" CssClass="checkboxaspx" Text="上架" />
                                        <asp:CheckBox ID="cbIsRecommond" runat="server" CssClass="checkboxaspx" Text="推荐" />
                                        <asp:CheckBox ID="cbIsNew" runat="server" CssClass="checkboxaspx" Text="新品" />
                                        <asp:CheckBox ID="cbIsHot" runat="server" CssClass="checkboxaspx" Text="热点" />
                                        <asp:CheckBox ID="cbIsSpecialOffer" runat="server" CssClass="checkboxaspx" Text="特价" />
                                    </td>
                                </tr>
                                <tr id="trVirtualProduct" runat="server">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <cc1:HelpCtrl ID="HelpCtrl4" runat="server" FontColor="red" Header="虚拟商品" ImageURL="images/help.gif"
                                            Text="如果是虚拟商品，如点卡、充值卡等。可以在商品添加后进行补货操作。注意，虚拟商品不能通过入库操作修改库存，只能通过补货来改变库存。" />
                                        <asp:Label ID="lbEntity" runat="server" Text="虚拟商品："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <div>
                                            <div style="float: left;">
                                                <asp:RadioButtonList ID="rblIsVirtual" runat="server" CssClass="radioaspx" RepeatDirection="Horizontal"
                                                    AutoPostBack="True" OnSelectedIndexChanged="rblEntity_SelectedIndexChanged">
                                                </asp:RadioButtonList>
                                            </div>
                                            <div style="float: left; padding: 12px 0 0 6px">
                                                <input type="button" id="btnADDVirtualGood" runat="server" value="补货" visible="False"
                                                    class="button" />
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr id="trChangeProduct" runat="server">
                                    <td align="right" bgcolor="#ffffff" style="height: 30px" width="20%">
                                        <cc1:HelpCtrl ID="HelpCtrl5" runat="server" FontColor="red" Header="换购商品" ImageURL="images/help.gif"
                                            Text="选择是，则此商品即为换购商品。需要设置换购价格和订单满足金额。订单满足金额是指此次购买商品的总计金额。只有满足此金额，才能以换购价购买该商品。" />
                                        <asp:Label ID="lblIsChangedBuy" runat="server" Text="是否换购商品："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                                        <asp:RadioButtonList ID="rblIsChangedBuy" runat="server" CssClass="radioaspx" RepeatDirection="Horizontal"
                                            AutoPostBack="True" OnSelectedIndexChanged="rblIsChangedBuy_SelectedIndexChanged">
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr id="trIsChangedBuy" runat="server" visible="false">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <cc1:HelpCtrl ID="HelpCtrl6" runat="server" FontColor="red" Header="订单满足金额" ImageURL="images/help.gif"
                                            Text="此次购买商品的总计金额，注意不包括运费、发票费用等其他费用" />
                                        <asp:Label ID="lblPresentPrice" runat="server" Text="订单满足金额："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtNeedPrice" runat="server" Width="100px" Text="0"></asp:TextBox>
                                        <span style="color: #ff0000">*</span>
                                        <cc1:HelpCtrl ID="HelpCtrl7" runat="server" FontColor="red" Header="换购价格" ImageURL="images/help.gif"
                                            Text="当购买商品总金额≥订单满足金额时，换购此商品的价格。" />
                                        <asp:Label ID="lblChangePrice" runat="server" Text="换购价格："></asp:Label>
                                        <asp:TextBox ID="txtPresentPrice" runat="server" Width="100px" Text="0"></asp:TextBox><span
                                            style="color: #ff0000">*</span></td>
                                </tr>
                                <tr id="trScoreChange" runat="server">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <cc1:HelpCtrl ID="HelpCtrl8" runat="server" FontColor="red" Header="积分兑换" ImageURL="images/help.gif"
                                            Text="选择是，则该商品允许用积分进行兑换。" />
                                        <asp:Label ID="lblIsChanged" runat="server" Text="是否积分兑换："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:RadioButtonList ID="rblIsChanged" runat="server" CssClass="radioaspx" RepeatDirection="Horizontal"
                                            AutoPostBack="True" OnSelectedIndexChanged="rblIsChanged_SelectedIndexChanged">
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr id="trIsChanged" runat="server" visible="false">
                                    <td align="right" bgcolor="#ffffff" width="20%" style="height: 30px">
                                        <cc1:HelpCtrl ID="HelpCtrl9" runat="server" FontColor="red" Header="兑换积分" ImageURL="images/help.gif"
                                            Text="兑换该商品所需要的积分" />
                                        <asp:Label ID="lblChangeScore" runat="server" Text="兑换积分："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                                        <asp:TextBox ID="txtChangeScore" runat="server" Width="100px" Text="0"></asp:TextBox>
                                        <span style="color: #ff0000">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <asp:Label ID="lblOrderId" runat="server" Text="商品排序："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtOrderId" runat="server" Width="100px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr id="trHitCount" runat="server">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <asp:Label ID="lblHitCount" runat="server" Text="商品浏览次数："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtHitCount" runat="server" Width="100px">0</asp:TextBox>
                                    </td>
                                </tr>
                                <tr id="trScore" runat="server">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <cc1:HelpCtrl ID="HelpCtrl10" runat="server" FontColor="red" Header="赠送积分" ImageURL="images/help.gif"
                                            Text="购买该商品赠送的积分" />
                                        <asp:Label ID="lblScore" runat="server" Text="赠送积分："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtScore" runat="server" Width="100px">0</asp:TextBox>
                                    </td>
                                </tr>
                                <tr id="trBuyNumber" runat="server">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <cc1:HelpCtrl ID="HelpCtrl11" runat="server" FontColor="red" Header="起购数量" ImageURL="images/help.gif"
                                            Text="一次购买该商品至少需要购买的数量。如设置为5，则一次购买该商品至少需要购买5件。注意：一次购买数量只需要≥起购数量即可，而不是起购数量的倍数。1为不限制" />
                                        <asp:Label ID="lblBuyNumber" runat="server" Text="起购数量："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtBuyNum" runat="server" Width="100px">1</asp:TextBox>
                                    </td>
                                </tr>
                                <tr id="trIsPresent" runat="server">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <cc1:HelpCtrl ID="HelpCtrl12" runat="server" FontColor="red" Header="是否为商品配件" ImageURL="images/help.gif"
                                            Text="如果选择此项，则商品只能做为其他的商品的配件进行销售，而不能单独销售." />
                                        <asp:Label ID="lblIsPresent" runat="server" Text="是否为商品配件："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:RadioButtonList ID="rblIsPresent" runat="server" CssClass="radioaspx" RepeatDirection="Horizontal">
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <asp:Label ID="lblShortContent" runat="server" Text="商品简述："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtShortContent" runat="server" TextMode="MultiLine" Height="70px"
                                            Width="300px"></asp:TextBox>
                                    </td>
                                </tr>
                            </table>
                        <%--</ContentTemplate>--%>
                   <%-- </ajax:UpdatePanel>--%>
                </div>
                <!--分类价格开始-->
                <div id="content2" class="content" style="display: none">
                   <%-- <ajax:UpdatePanel ID="UpdatePanel1" runat="server">--%>
                        <%--<ContentTemplate>--%>
                            <table id="table2" runat="server" width="100%" border="0" align="center" cellpadding="0"
                                cellspacing="0">
                                <tr>
                                    <td align="right" bgcolor="#ffffff" style="height: 30px" width="20%">
                                        <asp:Label ID="lblProductType" runat="server" Text="商品类型："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                                        <asp:DropDownList ID="ddlProductType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlProductType_SelectedIndexChanged"></asp:DropDownList>
                                    </td>
                                </tr>
                                <tr id="trProperty" visible="false">
                                    <td align="right" bgcolor="#ffffff" style="height: 30px" width="20%">
                                        <cc1:HelpCtrl ID="HelpCtrl13" runat="server" FontColor="red" Header="分类属性" ImageURL="images/help.gif"
                                            Text="是同一分类下的商品具有某些共同的属性。如：手机商品具有像素、屏幕、mp3功能等" />
                                        <asp:Label ID="CategoryProperty" runat="server" Text="商品属性："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                                        <asp:Repeater ID="rptProperty" runat="server" OnItemDataBound="rptProperty_ItemDataBound">
                                            <HeaderTemplate>
                                                <table width="600">
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <tr>
                                                    <td width="120">
                                                        <asp:Label ID="lbPID" runat="server" Visible="false" Text='<%#Eval("ID") %>'></asp:Label>
                                                        <asp:Label ID="lbInputType" runat="server" Visible="false" Text='<%#Eval("InputType") %>'></asp:Label>
                                                        <asp:Label ID="lbPName" runat="server" Text='<%#Eval("Name") %>'></asp:Label>：
                                                    </td>
                                                    <td>
                                                        <asp:Repeater ID="rptvalue" runat="server">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lbValueID" runat="server" Visible="false" Text='<%#Eval("ID") %>'></asp:Label>
                                                                <input runat="server" value='<%# Eval("ID") %>' id="PropertyValueID" type="checkbox"
                                                                    class="checkbox"><%#Eval("Value") %>
                                                            </ItemTemplate>
                                                        </asp:Repeater>
                                                        <asp:TextBox ID="txtPValue" runat="server" Visible="false"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                </table>
                                            </FooterTemplate>
                                        </asp:Repeater>
                                        <asp:Button ID="btnSetPropertyProduct" runat="server" Text="设置组合商品" CssClass="button"
                                            Visible="true" CausesValidation="False" OnClick="btnSetPropertyProduct_Click" />
                                        <asp:Button ID="btnShowPropertyProduct" runat="server" CausesValidation="False" CssClass="button"
                                            OnClick="btnShowPropertyProduct_Click" Text="显示下列组合商品" Style="display: none" />
                                        <asp:Button ID="btnHiddenPropertyProduct" runat="server" Text="隐藏下列组合商品" CssClass="button"
                                            CausesValidation="False" OnClick="btnHiddenPropertyProduct_Click" />
                                        <div id="divPropertyList" runat="server">
                                            <div class="listborder">
                                                <div style="float: left">
                                                    <asp:GridView ID="GridViewPropertyList" RowStyle-Height="30px" runat="server" Visible="true" Height="150px" Width="150px">
                                                        <SelectedRowStyle Width="25px" />
                                                        <RowStyle Width="25px" />
                                                    </asp:GridView>
                                                </div>
                                                <div style="float: left">
                                                    <asp:GridView ID="GridViewPriceList" runat="server" AutoGenerateColumns="False" OnRowCommand="GridViewPriceList_RowCommand"
                                                        Visible="true" OnSelectedIndexChanged="GridViewPriceList_SelectedIndexChanged" Height="150px" Width="150px">
                                                        <Columns>
                                                            <asp:TemplateField HeaderText="默认">
                                                                <ItemTemplate>
                                                                    <input type="radio" value='<%# DataBinder.Eval(Container.DataItem,"Propertys") %>'
                                                                        id="RadionID" name="RadionID" class="radio" <%# IsDefault(DataBinder.Eval(Container,"DataItem(isdefault)","{0}")) %>>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            
                                                            <asp:TemplateField HeaderText="是否有效">  
                                                                <ItemTemplate>
                                                                    <input runat="server" id="IsValid" type="checkbox" class="checkbox" value='<%# DataBinder.Eval(Container.DataItem,"IsValid") %>'
                                                                        checked='<%# (bool)IsValid(DataBinder.Eval(Container,"DataItem(IsValid)","{0}")) %>'>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            
                                                            <asp:TemplateField HeaderText="价格">
                                                                <ItemTemplate>
                                                                    <asp:TextBox ID="ProductDetailPrice" runat="server" Width="74px" Text='<%# DataBinder.Eval(Container.DataItem,"ProductDetailPrice") %>'></asp:TextBox>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="库存" Visible="False">
                                                                <ItemTemplate>
                                                                    <asp:TextBox ID="Storage" runat="server" Width="74px" Text='9999'></asp:TextBox>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText="会员价格" Visible="False">
                                                                <ItemTemplate>
                                                                    <asp:LinkButton ID="SetMemberPrice" runat="server" Text="设置会员价格" CausesValidation="false"
                                                                        CommandName="cmdSetMemberPrice" CommandArgument='<%# Container.DataItemIndex %>'></asp:LinkButton>
                                                                    <asp:Label ID="memberprice" runat="server" Visible="false" Text='<%# GetDefaultPrice(DataBinder.Eval(Container,"DataItem(ID)","{0}"),"1") %>'></asp:Label>
                                                                    <asp:Label ID="Propertys" runat="server" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem,"Propertys") %>'></asp:Label>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <RowStyle Width="25px" />
                                                        <SelectedRowStyle Width="25px" />
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                            <asp:HiddenField ID="hfRowNumber" runat="server" />
                                            <asp:GridView ID="GridViewSetMemP" runat="server" Visible="False" AutoGenerateColumns="False">
                                                <Columns>
                                                    <asp:BoundField DataField="Name" HeaderText="等级名称" />
                                                    <asp:BoundField DataField="Discount" HeaderText="等级折扣" />
                                                    <asp:TemplateField HeaderText="等级价格">
                                                        <ItemTemplate>
                                                            <asp:Label ID="id" Text='<%#Eval("ID") %>' runat="server" Visible="false"></asp:Label>
                                                            <asp:TextBox ID="memberprice" runat="server" Text='<%#Eval("Price") %>' Width="62px"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                            <asp:Button ID="btnSetPMP" runat="server" CssClass="button" OnClick="btnSetPMP_Click"
                                                Text="设置会员价格" CausesValidation="False" Visible="false" />
                                        </div>
                                    </td>
                                </tr>
                                <tr id="trCost" runat="server">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <cc1:HelpCtrl ID="HelpCtrl15" runat="server" FontColor="red" Header="商品成本" ImageURL="images/help.gif"
                                            Text="可以包括商品的实际成本、物流费，人工处理费等等。此项设置有利用计算商品的实际利润。" Visible="False" />
                                        <asp:Label ID="lblCost" runat="server" Text="商品成本：" Visible="False"></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <div class="listborder">
                                            <div>
                                                <cc1:V5ShopGridView ID="GridViewCost" runat="server" Width="350px" PagerSettings-Visible="false"
                                                    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BorderWidth="0px"
                                                    CacheName="Cost" CssClass="datalist" GridLines="None" PageSize="15" TableName="Cost" Visible="False">
                                                    <PagerSettings Mode="NumericFirstLast" Visible="False" />
                                                    <HeaderStyle CssClass="category" />
                                                    <Columns>
                                                        <asp:templatefield>
                                                            <itemtemplate>
<input runat="server" value='<%# Eval("ID") %>' ID="CheckBoxID" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out" class="checkbox">
</itemtemplate>
                                                        </asp:templatefield>
                                                        <asp:boundfield datafield="Id" headertext="ID" />
                                                        <asp:boundfield datafield="Name" headertext="成本名称" />
                                                        <asp:boundfield datafield="Price" headertext="成本价格" />
                                                    </Columns>
                                                </cc1:V5ShopGridView>
                                            </div>
                                        </div>
                                        <div style="padding: 3px 25px; color: #4B6888; border-bottom: 1px #CCCCCC solid">
                                            <asp:LinkButton ID="btnCostAdd" runat="server" ForeColor="#4B6888" CausesValidation="False"
                                                OnClick="btnCostAdd_Click" Visible="False"><img src="images/key_detail.gif" /> 添加</asp:LinkButton>
                                            <asp:LinkButton ID="btnCostEdit" runat="server" ForeColor="#4B6888" OnClientClick="return CheckEdit()"
                                                CausesValidation="False" OnClick="btnCostEdit_Click" Visible="False"><img src="images/key_edit.gif" /> 编辑</asp:LinkButton>
                                            <asp:LinkButton ID="btnCostDel" runat="server" ForeColor="#4B6888" OnClientClick="return CheckDel()"
                                                CausesValidation="False" OnClick="btnCostDel_Click" Visible="False"><img src="images/key_delete.gif" /> 删除</asp:LinkButton>
                                        </div>
                                        <div style="padding: 3px 25px;" id="divCost" runat="server" visible="false">
                                            <asp:Label ID="lblCostName" runat="server" Text="成本名称：" Visible="False"></asp:Label><asp:TextBox
                                                ID="txtCostName" runat="server" Width="80px" MaxLength="50" Visible="False"></asp:TextBox>
                                            <asp:Label ID="lblCostPrice" runat="server" Text="成本价格：" Visible="False"></asp:Label><asp:TextBox
                                                ID="txtCostPrice" runat="server" Width="80px" Visible="False"></asp:TextBox>
                                            <asp:Button ID="btnCostAdd_T" runat="server" Text="添加" CssClass="button" OnClick="btnCostAdd_T_Click"
                                                CausesValidation="false" Visible="False" />
                                            <asp:Button ID="btnCostEdit_T" runat="server" Text="更新" CssClass="button" OnClick="btnCostEdit_T_Click"
                                                CausesValidation="false" Visible="False" />
                                        </div>
                                        <div id="hiddenfield">
                                            <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                                            <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                                            <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                                            <uc1:HiddenField ID="Alert" runat="server" />
                                        </div>
                                    </td>
                                </tr>
                                <tr id="trMemberPrice" runat="server">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <cc1:HelpCtrl ID="HelpCtrl14" runat="server" FontColor="red" Header="自动计算等级会员价格"
                                            ImageURL="images/help.gif" Text="选择此项，会员价格自动按等级折扣*商城价格。注意：等级价格是商城价为计算基础的。反之，则手动输入会员价格。" />
                                        <asp:Label ID="lblAutoComputerMemPrice" runat="server" Text="自动计算等级会员价格："></asp:Label></td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:CheckBox ID="cbAutoComputerMemPrice" runat="server" CssClass="checkboxaspx"
                                            OnCheckedChanged="cbAutoComputerMemPrice_CheckedChanged" Text="是" AutoPostBack="true"
                                            Checked="True" /></td>
                                </tr>
                                <tr id="trAutoComputerMemPrice" visible="false" runat="server">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <asp:Label ID="lblMembelLevelPrice" runat="server" Text="会员等级价格："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <div class="listborder">
                                            <div>
                                                <cc1:V5ShopGridView ID="GridViewUserGroup" runat="server" PagerSettings-Visible="false"
                                                    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BorderWidth="0px"
                                                    CacheName="UserGroup" CssClass="datalist" GridLines="None" Height="100px" PageSize="15"
                                                    TableName="UserGroup" Width="370px" Enabled="False">
                                                    <PagerSettings Mode="NumericFirstLast" Visible="False" />
                                                    <Columns>
                                                        <asp:BoundField DataField="ID" HeaderText="ID" />
                                                        <asp:boundfield datafield="Name" headertext="等级名称" />
                                                        <asp:boundfield datafield="MinScore" headertext="积分下限" />
                                                        <asp:boundfield datafield="Discount" headertext="等级折扣" />
                                                        <asp:templatefield headertext="等级价格">
                                                            <itemstyle width="50px" />
                                                            <itemtemplate>
													<asp:TextBox id="MemberLevelPrice" runat="server" Text='<%# Bind("Price") %>' Width="60px" __designer:wfdid="w3"></asp:TextBox> 
											</itemtemplate>
                                                        </asp:templatefield>
                                                    </Columns>
                                                    <HeaderStyle CssClass="category" />
                                                </cc1:V5ShopGridView>
                                                <br />
                                                <asp:Button ID="btnAutoCount" runat="server" CausesValidation="False" CssClass="button"
                                                    OnClick="btnAutoCount_Click" Text="计算等级会员价格" />
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        <%--</ContentTemplate>--%>
                    <%--</ajax:UpdatePanel>--%>
                </div>
                <!--自定义商品属性-->
                <div id="content3" class="content" style="display: none">
                    <%--<ajax:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>--%>
                            <table id="table3" runat="server" width="100%" border="0" align="center" cellpadding="0"
                                cellspacing="0">
                                <tr>
                                    <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                                        <cc1:HelpCtrl ID="HelpCtrl16" runat="server" FontColor="red" Header="自定义属性" ImageURL="images/help.gif"
                                            Text="如：颜色、尺寸、联系电话等是属性名，红色，14寸等是属性值。如果属性值有多个以|分开。注意：如果属性值与价格有关，请在商品类型中设置。此处的属性只做展示和订单记录，不做价格区分。" />
                                        <asp:Label ID="Label12" runat="server" Text="自定义属性："></asp:Label>
                                    </td>
                                    <td bgcolor="#FFFFFF" align="left">
                                        <div class="listborder">
                                            <div>
                                                <cc1:V5ShopGridView ID="GridViewSelfProperty" runat="server" Width="350px" PagerSettings-Visible="false"
                                                    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" BorderWidth="0px"
                                                    CacheName="Property" CssClass="datalist" GridLines="None" PageSize="15" TableName="Property">
                                                    <PagerSettings Mode="NumericFirstLast" Visible="False" />
                                                    <HeaderStyle CssClass="category" />
                                                    <Columns>
                                                        <asp:templatefield>
                                                            <itemtemplate>
<input runat="server" Value='<%# Eval("ID") %>' ID="CheckBoxID3" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out" class="checkbox">
</itemtemplate>
                                                        </asp:templatefield>
                                                        <asp:boundfield datafield="Id" headertext="ID" />
                                                        <asp:boundfield datafield="Name" headertext="属性名称" />
                                                        <asp:boundfield datafield="Value" headertext="属性值" />
                                                        <asp:boundfield datafield="IsInOrder" headertext="加入定单" />
                                                    </Columns>
                                                </cc1:V5ShopGridView>
                                            </div>
                                        </div>
                                        <div style="padding: 3px 25px; color: #4B6888; border-bottom: 1px #CCCCCC solid">
                                            <asp:LinkButton ID="btnSelfPropertyAdd" runat="server" ForeColor="#4B6888" CausesValidation="False"
                                                OnClick="btnSelfPropertyAdd_Click"><img src="images/icon/key_detail.gif" /> 添加</asp:LinkButton>
                                            <asp:LinkButton ID="btnSelfPropertyEdit" runat="server" ForeColor="#4B6888" OnClientClick="return CheckEdit()"
                                                CausesValidation="False" OnClick="btnSelfPropertyEdit_Click"><img src="images/icon/key_edit.gif" /> 编辑</asp:LinkButton>
                                            <asp:LinkButton ID="btnSelfPropertyDel" runat="server" ForeColor="#4B6888" OnClientClick="return CheckDel()"
                                                CausesValidation="False" OnClick="btnSelfPropertyDel_Click"><img src="images/icon/key_delete.gif" /> 删除</asp:LinkButton>
                                        </div>
                                        <div style="padding: 3px 25px;" id="divSelfProperty" runat="server" visible="false">
                                            <cc1:HelpCtrl ID="HelpCtrl20" runat="server" FontColor="red" Header="属性名称" ImageURL="images/help.gif"
                                                Text="注意属性名和属性值均不能为空，否则自动忽略，不会被添加。" />
                                            <asp:Label ID="lblSelfProperty" runat="server" Text="属性名称："></asp:Label><asp:TextBox
                                                ID="txtSelfProperty" runat="server" Width="80px" MaxLength="50"></asp:TextBox>
                                            <asp:Label ID="lblSelfPropertyValue" runat="server" Text="属性值："></asp:Label><asp:TextBox
                                                ID="txtSelfPropertyValue" runat="server" Width="80px" MaxLength="250"></asp:TextBox>
                                            <asp:CheckBox ID="cbIsInOrder" runat="server" Text="加入定单" CssClass="checkboxaspx" />
                                            <asp:Button ID="btnSelfPropertyAdd_T" runat="server" Text="添加" CssClass="button"
                                                CausesValidation="false" OnClick="btnSelfPropertyAdd_T_Click" />
                                            <asp:Button ID="btnSelfPropertyEdit_T" runat="server" Text="更新" CssClass="button"
                                                CausesValidation="false" OnClick="btnSelfPropertyEdit_T_Click" Visible="false" />
                                            <asp:Label ID="lblPropertyHelp" runat="server" Text="注意属性名和属性值均不能为空，否则自动忽略，不会被添加。"
                                                Visible="false"></asp:Label>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                      <%--  </ContentTemplate>
                    </ajax:UpdatePanel>--%>
                </div>
                <!--商品图片-->
                <div id="content4" class="content" style="display: none">
                    <%--<ajax:UpdatePanel ID="UpdatePanel8" runat="server">--%>
                       <%-- <ContentTemplate>--%>
                            <table id="table4" runat="server" width="100%" border="0" align="center" cellpadding="0"
                                cellspacing="0">
                                <tr>
                                    <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                                        <asp:Label ID="lblVideoUrl" runat="server" Text="视频文件地址："></asp:Label>
                                    </td>
                                    <td bgcolor="#FFFFFF" align="left">
                                        <asp:TextBox ID="txtVideoUrl" runat="server" Width="300px" MaxLength="150"></asp:TextBox>
                                        <span class="NeedMsg">
                                            <input type="button" value="选择视频" onclick="OpenDialogDocuments('txtVideoUrl')" class="button"
                                                id="btnSlectVideo" runat="server" /></span>    
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" bgcolor="#ffffff" width="20%" style="height: 30px">
                                        <asp:Label ID="lblVideoName" runat="server" Text="视频名称："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                                        <asp:TextBox ID="txtVideoName" runat="server" Width="300px" MaxLength="100"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" bgcolor="#ffffff" style="height: 30px" width="20%">
                                        <asp:Label ID="lblVideoSize" runat="server" Text="视频宽*高："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                                        <asp:TextBox ID="txtVideoWidth" runat="server" Width="100px">0</asp:TextBox>
                                        *
                                        <asp:TextBox ID="txtVideoHeight" runat="server" Width="100px">0</asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <asp:Label ID="lblImageType" runat="server" Text="图片类型："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:RadioButtonList ID="rblImageType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="rblImageType_SelectedIndexChanged"
                                            RepeatDirection="Horizontal" CssClass="radioaspx">
                                        </asp:RadioButtonList>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <asp:Label ID="lblSrcDetailRemote" runat="server" Text="商品图片远程地址：" Visible="False"></asp:Label>
                                        <asp:Label ID="lblSrcDetail" runat="server" Text="商品图片："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtSrcDetail" runat="server" Width="300px" MaxLength="200"></asp:TextBox>
                                        <input type="button" value="选择图片" onclick="OpenDialog('txtSrcDetail')" class="button"
                                            id="btnSelectSrcDetail" runat="server" />
                                        <img src="" id="txtSrcDetailView" style="display: none;" />
                                    </td>
                                </tr>
                                <tr runat="server" visible="false">
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <asp:Label ID="lblSrcListRemote" runat="server" Text="商品小图图远程地址：" Visible="False"></asp:Label>
                                        <asp:Label ID="lblSrcList" runat="server" Text="商品小图："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtSrcList" runat="server" Width="300px" MaxLength="200"></asp:TextBox>
                                        <input type="button" value="选择图片" onclick="OpenDialog('txtSrcList')" class="button"
                                            id="btnSelectSrcList" runat="server" />
                                        <img src="" id="txtSrcListView" style="display: none;" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" bgcolor="#ffffff" style="height: 30px" width="20%">
                                        <asp:Label ID="lblMorePic" runat="server" Text="商品多图："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff" style="height: 30px">
                                        <div class="listborder">
                                            <div>
                                                <cc1:V5ShopGridView ID="GridViewMorePic" runat="server" AllowPaging="True" AllowSorting="True"
                                                    AutoGenerateColumns="False" BorderWidth="0px" CacheName="ProductImg" CssClass="datalist"
                                                    GridLines="None" PageSize="15" TableName="ProductImg" Width="360px">
                                                    <PagerSettings Mode="NumericFirstLast" Visible="False" />
                                                    <Columns>
                                                        <asp:TemplateField>
                                                            <itemtemplate>
<input runat="server" Value='<%# Eval("ID") %>' ID="CheckBoxID2" type="checkbox" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" mouse="out" class="checkbox">
</itemtemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="ID" HeaderText="ID" />
                                                        <asp:BoundField DataField="Title" HeaderText="图片描述" />
                                                        <asp:TemplateField HeaderText="图片预览">
                                                            <itemtemplate>
                                <img src="images/icon-viewpic.gif" onMouseOver="javascript:ddrivetip('<img src=../<%# Eval("Src") %>>','#ffffff')" onMouseOut="hideddrivetip()" />
											</itemtemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                    <HeaderStyle CssClass="category" />
                                                </cc1:V5ShopGridView>
                                            </div>
                                        </div>
                                        <div style="padding: 3px 25px; color: #4B6888; border-bottom: 1px #CCCCCC solid">
                                            <asp:LinkButton ID="btnAddMorePic" runat="server" ForeColor="#4B6888" CausesValidation="False"
                                                OnClick="btnAddMorePic_Click"><img src="images/icon/key_detail.gif" /> 添加</asp:LinkButton>
                                            <asp:LinkButton ID="btnEditMorePic" runat="server" ForeColor="#4B6888" OnClientClick="return CheckEdit()"
                                                CausesValidation="False" OnClick="btnEditMorePic_Click"><img src="images/icon/key_edit.gif" /> 编辑</asp:LinkButton>
                                            <asp:LinkButton ID="btnDelMorePic" runat="server" ForeColor="#4B6888" OnClientClick="return CheckDel()"
                                                CausesValidation="False" OnClick="btnDelMorePic_Click"><img src="images/icon/key_delete.gif" /> 删除</asp:LinkButton>
                                        </div>
                                        <div style="padding: 3px 25px;" id="divMorePic" runat="server" visible="false">
                                            <asp:Label ID="lblSrcDescription" runat="server" Text="图片描述："></asp:Label><asp:TextBox
                                                ID="txtSrcDescription" runat="server" Width="80px" MaxLength="50"></asp:TextBox>
                                            <asp:Label ID="lblSrc" runat="server" Text="图片地址："></asp:Label><asp:TextBox ID="txtSrc"
                                                runat="server" MaxLength="250"></asp:TextBox>&nbsp;
                                            <input type="button" value="选择图片" onclick="OpenDialog('txtSrc')" class="button" id="btnSelectSrc"
                                                runat="server" />
                                            <asp:Button ID="btnAddMorePic_T" runat="server" Text="添加" CssClass="button" CausesValidation="false"
                                                OnClick="btnAddMorePic_T_Click" />
                                            <asp:Button ID="btnEditMorePic_T" runat="server" Text="更新" CssClass="button" CausesValidation="false"
                                                Visible="false" OnClick="btnEditMorePic_T_Click" />
                                            <asp:Label ID="lblMorePicHelp" runat="server" Text="注意图片地址为不能为空，否则自动忽略，不会被添加。" Visible="false"></asp:Label>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                    </td>
                                </tr>
                            </table>
                        <%--</ContentTemplate>--%>
                    <%--</ajax:UpdatePanel>--%>
                </div>
                <!--详细信息-->
                <div id="content5" class="content" style="display: none">
                    <table id="table5" runat="server" width="100%" border="0" align="center" cellpadding="0"
                        cellspacing="0">
                        <tr>
                            <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                                <asp:Label ID="lblContent" runat="server" Text="详细信息："></asp:Label>
                            </td>
                            <td bgcolor="#FFFFFF" align="left">
                                &nbsp;<input class="button" onclick="OpenDialogPage();" type="button" value="选择图片" /><br />
                                <cc1:FCKeditor ID="txtContent" runat="server" Width="600px"></cc1:FCKeditor><span
                                    class="NeedMsg">*</span>&nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
                <!--搜索优化-->
                <div id="content6" class="content" style="display: none">
                    <table id="table6" runat="server" width="100%" border="0" align="center" cellpadding="0"
                        cellspacing="0">
                        <tr>
                            <td width="20%" align="right" bgcolor="#FFFFFF" style="height: 30px">
                                <cc1:HelpCtrl ID="HelpCtrl17" runat="server" FontColor="red" Header="页面标题" ImageURL="images/help.gif"
                                    Text="此处的标题是做SEO搜索优化用。可以用更加详细、准确的词语来描述您的商品。为空时自动默认为商品名称。" />
                                <asp:Label ID="lblSeoTitle" runat="server" Text="页面标题："></asp:Label>
                                &nbsp;
                            </td>
                            <td bgcolor="#FFFFFF" align="left" style="height: 30px">
                                <asp:TextBox ID="txtSeoTitle" runat="server" Width="300px" MaxLength="150"></asp:TextBox><span
                                    class="NeedMsg"></span></td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                <cc1:HelpCtrl ID="HelpCtrl18" runat="server" FontColor="red" Header="关键字：" ImageURL="images/help.gif"
                                    Text="与商品相关的关键词，用于前台搜索引擎优化，多个关键词以中文，隔开。" />
                                <asp:Label ID="lblSeoKeyWord" runat="server" Text="搜索关键字："></asp:Label>
                            </td>
                            <td align="left" bgcolor="#ffffff">
                                <asp:TextBox ID="txtSeoKeyWords" runat="server" TextMode="MultiLine" Height="80px"
                                    Width="300px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtSeoKeyWords"
                                    ErrorMessage="长度必须在250以内" ValidationExpression=".{0,250}"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                <cc1:HelpCtrl ID="HelpCtrl19" runat="server" FontColor="red" Header="描述：" ImageURL="images/help.gif"
                                    Text="与商品相关的描述，用于前台搜索引擎优化。" />
                                <asp:Label ID="lblSeoDescription" runat="server" Text="描述："></asp:Label>
                            </td>
                            <td align="left" bgcolor="#ffffff">
                                <asp:TextBox ID="txtSeoDescription" runat="server" TextMode="MultiLine" Height="80px"
                                    Width="300px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtSeoDescription"
                                    ErrorMessage="长度必须在250以内" ValidationExpression=".{0,250}"></asp:RegularExpressionValidator></td>
                        </tr>
                    </table>
                </div>
                <!--商品配件-->
                <div id="content7" class="content" style="display: none">
                  <%--  <ajax:UpdatePanel ID="UpdatePanel3" runat="server">
                        <ContentTemplate>--%>
                            <table id="table7" runat="server" width="100%" border="0" align="center" cellpadding="0"
                                cellspacing="0">
                                <tr>
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <asp:Label ID="lblSearchFitProduct" runat="server" Text="搜索商品："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtSearchFitName" runat="server" Width="300px"></asp:TextBox>
                                        <asp:DropDownList ID="ddlCategoryIdFit" runat="server" Width="150px">
                                        </asp:DropDownList>
                                        <asp:Button ID="btnSearchFit" runat="server" CausesValidation="False" CssClass="button"
                                            OnClick="btnSearchFit_Click" Text="搜索" />
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                                        <cc1:HelpCtrl ID="HelpCtrl24" runat="server" FontColor="red" Header="商品配件" ImageURL="images/help.gif"
                                            Text="商品的附属品或附加品，可以和主商品同时购买。如果买手机，手机套、内存卡等均可作为手机的配件进行销售。" HideSelects="true" />
                                        <asp:Label ID="lblFitting" runat="server" Text="商品配件："></asp:Label>
                                    </td>
                                    <td bgcolor="#FFFFFF" align="left">
                                        <table id="Table12" runat="server" width="100%" border="0" align="center" cellpadding="0"
                                            cellspacing="0">
                                            <tr>
                                                <td width="20%" align="left" bgcolor="#FFFFFF" style="height: 328px">
                                                    <asp:Label ID="lblNonFitting" runat="server" Text="待选商品"></asp:Label><br />
                                                    <asp:ListBox ID="lbNonFitting" runat="server" Height="300px" Width="250px" AutoPostBack="True"
                                                        OnSelectedIndexChanged="lbNonFitting_SelectedIndexChanged"></asp:ListBox><br />
                                                </td>
                                                <td bgcolor="#FFFFFF" align="center" style="width: 211px; height: 328px;">
                                                    <asp:Label ID="lblFittingTypeSelect" runat="server" Text="配件类型选择："></asp:Label><asp:DropDownList
                                                        ID="ddlFitType" runat="server">
                                                    </asp:DropDownList>&nbsp;<br />
                                                    <br />
                                                    <asp:Label ID="lblFittingPrice" runat="server" Text="配件价格："></asp:Label><asp:TextBox
                                                        ID="txtFittingPrice" runat="server" Width="50px"></asp:TextBox><br />
                                                    <br />
                                                    <asp:Label ID="lblDefault" runat="server" Text="是否默认："></asp:Label><asp:CheckBox
                                                        ID="cbDefault" runat="server" CssClass="checkboxaspx" Text="是" /><br />
                                                    <br />
                                                    <asp:Button ID="btnADDFitting" runat="server" CausesValidation="False" CssClass="button"
                                                        OnClick="btnADDFitting_Click" Text="添加>>" />
                                                    <br />
                                                    <br />
                                                    <asp:Button ID="btnDelFitting" runat="server" CausesValidation="False" CssClass="button"
                                                        OnClick="btnDelFitting_Click" Text="<<移除" />
                                                    <br />
                                                    <br />
                                                    <asp:Label ID="lblFittingHelp" runat="server" Text="请选择配件类型" Visible="false" ForeColor="red"></asp:Label>
                                                </td>
                                                <td bgcolor="#FFFFFF" align="left" style="height: 328px">
                                                    <asp:Label ID="lblSelectedFitting" runat="server" Text="已选配件"></asp:Label><br />
                                                    <asp:ListBox ID="lbFitting" runat="server" Height="300px" Width="300px" SelectionMode="Multiple"
                                                        AutoPostBack="True" OnSelectedIndexChanged="lbFitting_SelectedIndexChanged"></asp:ListBox>
                                                    <br />
                                                    <asp:Label ID="lblShowInfo" runat="server" Visible="False" ForeColor="Red"></asp:Label></td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                     <%--   </ContentTemplate>
                    </ajax:UpdatePanel>--%>
                </div>
                <!--相关商品-->
                <div id="content8" class="content" style="display: none">
                
                            <table id="table8" runat="server" width="100%" border="0" align="center" cellpadding="0"
                                cellspacing="0">
                                <tr>
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <asp:Label ID="lblSearch" runat="server" Text="搜索商品："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtSearchName" runat="server" Width="300px"></asp:TextBox>
                                        <asp:DropDownList ID="ddlCategoryID_R" runat="server" Width="150px">
                                        </asp:DropDownList>
                                        <asp:Button ID="btnSearchRP" runat="server" CausesValidation="False" CssClass="button"
                                            OnClick="btnSearchRP_Click" Text="搜索" />
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                                        <asp:Label ID="lblRelatedProduct" runat="server" Text="相关商品："></asp:Label>
                                    </td>
                                    <td bgcolor="#FFFFFF" align="left">
                                        <table runat="server" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="20%" height="30" align="left" bgcolor="#FFFFFF">
                                                    <asp:Label ID="lblNonRelateProduct" runat="server" Text="待关联商品"></asp:Label><br />
                                                    <asp:ListBox ID="lbNonRelatedProduct" runat="server" Height="200px" SelectionMode="Multiple"
                                                        Width="250px"></asp:ListBox>
                                                </td>
                                                <td bgcolor="#FFFFFF" align="center" style="width: 113px">
                                                    <asp:RadioButtonList ID="rblRelatedType" runat="server" CssClass="radioaspx">
                                                    </asp:RadioButtonList>
                                                    <br />
                                                    <asp:Button ID="btnADDRelatedProduct" runat="server" CausesValidation="False" CssClass="button"
                                                        OnClick="btnADDRelatedProduct_Click" Text="添加>>" />
                                                    <br />
                                                    <br />
                                                    <asp:Button ID="btnDelRelatedProduct" runat="server" CausesValidation="False" CssClass="button"
                                                        OnClick="btnDelRelatedProduct_Click" Text="<<移除" /></td>
                                                <td bgcolor="#FFFFFF" align="left">
                                                    <asp:Label ID="lblSelectedProduct" runat="server" Text="已关联商品"></asp:Label><br />
                                                    <asp:ListBox ID="lbRelatedProduct" runat="server" Height="200px" Width="300px" SelectionMode="Multiple">
                                                    </asp:ListBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                </div>
                <!--相关文章-->
                <div id="content9" class="content" style="display: none">
                    <ajax:UpdatePanel ID="UpdatePanel5" runat="server">
                        <ContentTemplate>
                            <table id="table9" runat="server" width="100%" border="0" align="center" cellpadding="0"
                                cellspacing="0">
                                <tr>
                                    <td align="right" bgcolor="#ffffff" height="30" width="20%">
                                        <asp:Label ID="lblSearchTitle" runat="server" Text="搜索文章："></asp:Label>
                                    </td>
                                    <td align="left" bgcolor="#ffffff">
                                        <asp:TextBox ID="txtSearchTitle" runat="server" Width="300px"></asp:TextBox>
                                        <asp:DropDownList ID="ddlArticleCategoryID" runat="server" Width="150px">
                                        </asp:DropDownList>
                                        <asp:Button ID="btnSearchRA" runat="server" CausesValidation="False" CssClass="button"
                                            OnClick="btnSearchRA_Click" Text="搜索" />
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%" align="right" bgcolor="#FFFFFF" style="height: 228px">
                                        <asp:Label ID="lblRelatedArticle" runat="server" Text="相关文章："></asp:Label>
                                    </td>
                                    <td bgcolor="#FFFFFF" align="left" style="height: 228px">
                                        <table runat="server" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td width="20%" align="left" bgcolor="#FFFFFF" style="height: 214px">
                                                    <asp:Label ID="lblNonRelatedArticle" runat="server" Text="待关联文章"></asp:Label><br />
                                                    <asp:ListBox ID="lbNonRelatedArticle" runat="server" Height="200px" SelectionMode="Multiple"
                                                        Width="250px"></asp:ListBox>
                                                </td>
                                                <td bgcolor="#FFFFFF" align="center" style="width: 113px; height: 214px;">
                                                    &nbsp;<br />
                                                    <asp:Button ID="btnADDRealtedArticle" runat="server" CausesValidation="False" CssClass="button"
                                                        Text="添加>>" OnClick="btnADDRealtedArticle_Click" />
                                                    <br />
                                                    <br />
                                                    <asp:Button ID="btnDelRealtedArticle" runat="server" CausesValidation="False" CssClass="button"
                                                        Text="<<移除" OnClick="btnDelRealtedArticle_Click" />
                                                </td>
                                                <td bgcolor="#FFFFFF" align="left" style="height: 214px">
                                                    <asp:Label ID="lblSelectedArticle" runat="server" Text="已关联文章"></asp:Label><br />
                                                    <asp:ListBox ID="lbRelatedArticle" runat="server" Height="200px" Width="300px" SelectionMode="Multiple">
                                                    </asp:ListBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </ajax:UpdatePanel>
                </div>
                <!--扩展分类-->
                <div id="content10" class="content" style="display: none">
<%--                    <ajax:UpdatePanel ID="UpdatePanel7" runat="server">
                        <ContentTemplate>--%>
                            <table id="table10" runat="server" width="100%" border="0" align="center" cellpadding="0"
                                cellspacing="0">
                                <tr>
                                    <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                                        <cc1:HelpCtrl ID="HelpCtrl21" runat="server" FontColor="red" Header="扩展分类" ImageURL="images/help.gif"
                                            Text="添加了扩展分类，代表在分类下可以查到该商品，一个商品可以从属于多个分类。注意只能选择最后一级分类，非最后一级分类选择将无效，不会被添加。" HideSelects="true" />
                                        <asp:Label ID="lblExtendCategory" runat="server" Text="扩展分类："></asp:Label>
                                    </td>
                                    <td bgcolor="#FFFFFF" align="left">
                                        <table id="Table11" runat="server" width="100%" border="0" align="center" cellpadding="0"
                                            cellspacing="0">
                                            <tr>
                                                <td width="20%" height="30" align="left" bgcolor="#FFFFFF">
                                                    <asp:Label ID="lblNonExtendCateory" runat="server" Text="待选分类"></asp:Label><br />
                                                    <asp:ListBox ID="lbNonExtendCategory" runat="server" Height="200px" SelectionMode="Multiple"
                                                        Width="250px"></asp:ListBox>
                                                </td>
                                                <td bgcolor="#FFFFFF" align="center" style="width: 113px">
                                                    <asp:Button ID="btnADDExtendCategory" runat="server" CausesValidation="False" CssClass="button"
                                                        Text="添加>>" OnClick="btnADDExtendCategory_Click" />
                                                    <br />
                                                    <br />
                                                    <asp:Button ID="btnDelExtendCategory" runat="server" CausesValidation="False" CssClass="button"
                                                        Text="<<移除" OnClick="btnDelExtendCategory_Click" />
                                                </td>
                                                <td bgcolor="#FFFFFF" align="left">
                                                    <asp:Label ID="lblSelectExtendCategory" runat="server" Text="已选分类"></asp:Label><br />
                                                    <asp:ListBox ID="lbExtendCategory" runat="server" Height="200px" Width="300px" SelectionMode="Multiple">
                                                    </asp:ListBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
            <%--            </ContentTemplate>
                    </ajax:UpdatePanel>--%>
                </div>
                <table id="table0" runat="server" width="100%" border="0" align="center" cellpadding="0"
                    cellspacing="0">
                    <tr>
                        <td width="20%" height="30" align="right" bgcolor="#FFFFFF">
                        </td>
                        <td bgcolor="#FFFFFF" align="left">
                            <asp:Button ID="btnAdd" runat="server" Text="确定" CssClass="button" OnClick="btnAdd_Click" />
                            <asp:Button ID="btnEdit" runat="server" Text="更新" CssClass="button" OnClick="btnEdit_Click"
                                Visible="False" />
                            <input id="btnReset" runat="server" type="reset" class="button" value="重置" />
                            <input id="TabId" name="TabID" type="hidden" class="button" value="1" />
                            <input id="btnReturn" runat="server" type="button" value="返回列表" onclick="window.location.href='Product_Product_Manage.aspx'"
                                class="button" />
                        </td>
                    </tr>
                </table>

                <script type="text/javascript">
            //判断服务器控件是否有效
            function checkverify(){
                //alert(1);
                //return false;
            }
            //加TABLE样式
            //InitTrClass();
            InitTrClassById("table1");
            var i;
            for(i=1;i<=10;i++)
            {
                InitTrClassById("table"+i);
            }
            <%=jsstr%>
            function IsDefault(strDefault)
            {
                var i=0;
                var radion= document.getElementsByName("RadionID");
                try{
                        for(i=0;i<radion.length;i++)
                        {
                            if(radion[i].value==strDefault)
                            {
                                radion[i].checked=true;
                            }
                        }
                        if(strDefault=="" && radion.length>=0)
                        {
                            radion[0].checked=true;
                        }
                }
                catch(e)
                {
                
                }
            }
            <%=DefaultStr%>
                </script>

            </div>
        </asp:Panel>
        <div style="margin-top: 44px; clear: both;">
            <uc1:PageBottom ID="PageBottom1" runat="server" Visible="true" />
        </div>
    </form>
</body>
</html>
