<%@ LANGUAGE = "VBScript.Encode" codepage="65001" %>
<html>
<head> 
<title>商品标签管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../../images/skin/2.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="../../../js/web_PublicJS.js"></script>
<base target=self>
</head>
<!--#include file="../../include.asp"-->
<body class="hback">
<table width="98%" height="100" border="0" align=center cellpadding="3" cellspacing="1" class="table" valign=absmiddle>
  <form  name="form1" method="post">
    <tr class="hback" > 
      <td colspan="2"  align="Left" class="xingmu"><div style="float:left"><strong>商品列表标签创建</strong></div>
	    <div style="float:right" align="right"> 
          <input name="button4" type="button" onClick="window.returnValue='';window.close();" value="关闭">
        </div></td>
    </tr>
    <tr class="hback"  style="font-family:宋体" > 
      <td width="20%" align="center" class="hback" ><div align="right">显示格式</div></td>
      <td width="80%" class="hback" > <select name="out_char" id="out_char" onChange="selectHtml_express(this.options[this.selectedIndex].value);">
          <option value="out_Table">普通格式</option>
          <!-- <option value="out_DIV">DIV+CSS格式</option> -->
          <!-- <option>RSS格式保留</option> -->
        </select></td>
    </tr>
    <tr class="hback"   style="display:none;font-family:宋体" id="showtype">
      <td  align="center" class="hback" ><div align="right">栏目位置</div></td>
      <td  class="hback" ><select  name="selectshowtype"  disabled>
        <option value="1">├┄自建栏目</option>
        <option value="2">├┄商品分类栏目</option>
      </select></td>
    </tr>
    <tr class="hback"   style="display:none;font-family:宋体" id="goodtype">
      <td  align="center" class="hback" ><div align="right">类型</div></td>
      <td  class="hback" ><select  name="selecttype" >
        <option value="" style="background:#666666; color:#FFFFFF">--------列表类--------</option>
        <option value="ClassMalls" selected>├-商品列表</option>
        <option value="LastMalls">├┄最新商品</option>
        <option value="HotMalls">├┄热点商品</option>
        <option value="RecMalls">├┄推荐商品</option>
        <option value="SaleMalls">├┄热销商品</option>
        <option value="SpecialMalls">├┄特价商品</option>
	<option value="ScoreMalls">├┄积分商品</option>
      </select></td>
    </tr>
    <tr class="hback" > 
      <td class="hback"  align="center"><div align="right">商品列表类型</div></td>
      <td  class="hback" >
	  <select  name="labelStyle" onChange="ChooseMallsType(this.options[this.selectedIndex].value);">
          <option value="" style="background:#666666; color:#FFFFFF">--------基本类--------</option>
          <option value="ClassMalls" style="background:#dddddd" selected>├┄所有商品</option>
          <option value="LastMalls">├┄最新商品</option>
          <option value="HotMalls">├┄热点商品</option>
          <option value="RecMalls">├┄推荐商品</option>
          <option value="MarMalls">├┄滚动商品</option>
          <option value="SaleMalls">├┄热销商品</option>
          <option value="SpecialMalls">├┄特价商品</option>
	  <option value="ScoreMalls">├┄积分商品</option>
	  <option value="GuideMalls">├┄导购商品</option>
          <option value="" style="background:#666666; color:#FFFFFF">--------终极类--------</option>
          <option value="ClassList">├┄终极商品列表</option>
          <111option value="subClassList">├┄子类商品列表</option>-->
        </select> 
	  <span class="tx">如果是终极分类，则不能选择分类。</span></td>
    </tr>
    <tr class="hback" id="ClassName_col"> 
      <td class="hback"  align="center"><div align="right">分类选择</div></td>
      <td  class="hback" >
	<select name="ClassID" id="ClassID">
		<option value='0' style="background:#666666; color:#FFFFFF" selected>-------全部分类-------</option>
		<%=#@~^DwAAAA==!YmtZ^l/k{dr/DvQUAAA==^#~@%>
	</select>
	<input  name="hidden" type="hidden" id="ClassName" size="12" readonly>
	<input name="ClassIDaa" type="hidden" id="ClassIDaa">
	<input name="button2" type="hidden" onClick="SelectClass();" value="选择分类">
	<span class="tx">选择商品分类，如果不选择则显示所有的商品（类型为“所有商品”除外）。</span></td>
    </tr>
    <tr class="hback" style="display:" id="ClassR"> 
      <td  align="center" class="hback"><div align="right">分类序列</div></td>
      <td  class="hback" ><input name="ClassRank" type="text" id="ClassRank" value="0" size="8">
      <font color=red> 注意：此项可以和分类列表组合。0为任意类，1为第一个分类，如果指定了分类，则此项代表该类下的第几个子类。</font></td>
    </tr>
    <tr class="hback" style="display:" id="ClassT"> 
      <td  align="center" class="hback"><div align="right">扩展分类商品</div></td>
      <td  class="hback" >
	<select name="ClassType">
		<option value="0" selected>不包含</option>
		<option value="1">包含</option>
		<option value="2">只含扩展分类</option>
	</select>
		<font color=red>注意：<font color=red>此项</font>只有在选择分类商品时才有效，选择此项会影响发布速度。</font></td>
    </tr>
    <tr class="hback"  id="div_id" style="font-family:宋体;display:none;" > 
      <td rowspan="2"  align="center" class="hback"><div align="right"></div>
        <div align="right">DIV控制</div></td>
      <td  class="hback" >&lt;div id=&quot; <input name="DivID" disabled type="text" id="DivID" size="6"  style="	border-top-width: 0px;	border-right-width: 0px;	border-bottom-width: 1px;border-left-width: 0px;border-bottom-color: #000000" title="前台生成DIV调用的ID号，请在CSS中预先定义。不能为空"> 
        &quot; class=&quot; <input name="Divclass"  type="text" id="Divclass" size="6"  disabled style="	border-top-width: 0px;	border-right-width: 0px;	border-bottom-width: 1px;border-left-width: 0px;border-bottom-color: #000000" title="前台生成DIV调用的Class名称，请在CSS中预先定义。可以为空!!"> 
        &quot;&gt; &lt;ul id=&quot; <input name="ulid"  disabled type="text" id="ulid" size="6" style="	border-top-width: 0px;	border-right-width: 0px;	border-bottom-width: 1px;border-left-width: 0px;border-bottom-color: #000000"  title="前台生成ul调用的ID，请在CSS中预先定义。可以为空!!"> 
        &quot; class=&quot; <input name="ulclass"  type="text" id="ulclass" size="6" disabled style="	border-top-width: 0px;	border-right-width: 0px;	border-bottom-width: 1px;border-left-width: 0px;border-bottom-color: #000000" title="前台生成ul调用的class名称，请在CSS中预先定义。可以为空!!"> 
        &quot;&gt; </td>
    </tr>
    <tr class="hback" id="ul_id" style="font-family:宋体;display:none;"> 
      <td  class="hback" >&lt;li id=&quot; <input name="liid" disabled type="text" id="liid" size="6"  style="	border-top-width: 0px;	border-right-width: 0px;	border-bottom-width: 1px;border-left-width: 0px;border-bottom-color: #000000" title="前台生成li调用的ID，请在CSS中预先定义。可以为空!!"> 
        &quot; class=&quot; <input name="liclass"  type="text" id="liclass" size="6" disabled style="	border-top-width: 0px;	border-right-width: 0px;	border-bottom-width: 1px;border-left-width: 0px;border-bottom-color: #000000"  title="前台生成li调用的class名称，请在CSS中预先定义。可以为空!!"> 
        &quot;&gt; </td>
    </tr>
    <tr class="hback" > 
      <td class="hback"  align="center"><div align="right">显示范围</div></td>
      <td  class="hback" >只显示 
        <input name="DateNumber"  type="text" id="DateNumber" value="0" size="5">
        天内的商品。<span class="tx">如果输入为0，则显示所有时间内的商品。</span></td>
    </tr>
    <tr class="hback" > 
      <td class="hback"  id="MallsNum" align="center"><div align="right">标题字数</div></td>
      <td  class="hback" ><input name="TitleNumber" type="text" id="TitleNumber" value="30" size="5"> 
        <span class="tx">（以汉字为单位，每个汉字占2个字符。）</span> 　　      </td>
    </tr>
    <tr class="hback" > 
      <td class="hback"  id="MallsNum" align="center"><div align="right">商品调用数量</div></td>
      <td  class="hback" > <input id="MallsNumber"  name="MallsNumber" type="text" size="12" value="10"> 
        <span class="tx">调用商品的前台显示数量，此项如果先前选择终极商品列表则无效。</span></td>
    </tr>
    <tr class="hback"> 
      <td class="hback" align="center"><div align="right">商品排列列数</div></td>
      <td  class="hback" >
	  <select name="ColsNumber" id="select">
          <option value="1" selected>1</option>
          <option value="2">2</option>
          <option value="3">3</option>
          <option value="4">4</option>
          <option value="5">5</option>
          <option value="6">6</option>
          <option value="7">7</option>
          <option value="8">8</option>
          <option value="9">9</option>
          <option value="10">10</option>
          <option value="11">11</option>
          <option value="12">12</option>
          <option value="13">13</option>
          <option value="14">14</option>
          <option value="15">15</option>
          <option value="16">16</option>
          <option value="17">17</option>
          <option value="18">18</option>
          <option value="19">19</option>
          <option value="20">20</option>
        </select> 
	  <span class="tx">商品一行的显示数量，如果是DIV+CSS请在CSS里控制条数（子类商品列表一行只能显示一个） 。</span></td>
    </tr>
    <tr class="hback"   id="c_ColsNum" style="display:none"> 
      <td class="hback" align="center"><div align="right">分类显示列数</div></td>
      <td  class="hback" >
	  <select name="sub_colsnum" id="sub_colsnum" disabled>
          <option value="1" selected>1</option>
          <option value="2">2</option>
          <option value="3">3</option>
          <option value="4">4</option>
          <option value="5">5</option>
          <option value="6">6</option>
          <option value="7">7</option>
          <option value="8">8</option>
        </select>
	  背景图片
	  <input name="bg_pic" type="text" id="bg_pic" disabled>
	  <span class="tx">仅适用于子类列表。</span></td>
    </tr>
    <tr class="hback" > 
      <td class="hback"  id="c_ColsNum" align="center"><div align="right">包含子类</div></td>
      <td  class="hback" ><select name="SubTF" id="SubTF">
          <option value="1">是</option>
          <option value="0" selected>否</option>
        </select> 
        <span class="tx">建议不要选择，否则商品生成速度会大幅度降低，同时将大量占用服务器资源和内存。</span></td>
    </tr>
    <tr class="hback" > 
      <td class="hback"  id="Num" align="center"><div align="right">排序字段</div></td>
      <td  class="hback" > <select id="OrderType"  name="OrderType">
          <option value="ID">自动编号</option>
          <option value="P_Rank" selected>商品排序</option>
          <option value="P_Addtime">添加日期</option>
          <option value="P_viewnum">点击次数</option>
          <option value="P_Solded">销售数量</option>
          <option value="P_Favnum">关注排行</option>
        </select>　
        　排序方式 
        <select id="orderby"  name="orderby">
          <option value="ASC">升序</option>
          <option value="DESC" selected>降序</option>
        </select>&nbsp;<span id="last_desc" class="tx"></span> </td>
    </tr>
    <tr class="hback" id="More_col"> 
      <td class="hback"  id="PageStyle_1" align="center"><div align="right">更多链接</div></td>
      <td  class="hback" ><input  name="More_char" type="text" id="More_char" value="·" size="25">　
        　打开窗口： 
          <select name="Openstyle" id="Openstyle">
          <option value="0" selected>原窗口</option>
          <option value="1">新窗口</option>
        </select><span class="tx"><br>
        请输入html语法，如：&lt;img src=&quot;/files/more.gif&quot; border='0'&gt;</span></td>
    </tr>
    <tr class="hback" id="PageStyle_col" style="display:none"> 
      <td class="hback"   align="center"><div align="right">是否分页</div></td>
      <td  class="hback" ><input name="PageTF" type="checkbox" id="PageTF" value="1" disabled>
        　 分页样式 
        <input id="PageStyle"  name="PageStyle" type="text" size="9" value='3,CC0066'  disabled> 
        <input name="button" type="button" id="SetPage" onClick="OpenPageStyle(this.form.PageStyle)" value="设置" disabled>
        　每页数量 
        <input id="PageNumber"  name="PageNumber" type="text" size="4" value="30" disabled>
        　<span id="page_css" style="display:">分页CSS 
        <input id="PageCSS" name="PageCSS" type="text" size="5">
        </span> <span class="tx">仅适用终极分类。</span></td>
    </tr>
    <tr class="hback" id="Mar_cols" style="display:none"> 
      <td class="hback"  id="ScrollSpeed" align="center"><div align="right">滚动速度</div></td>
      <td  class="hback" ><input id="MarqueeSpeed"  name="MarqueeSpeed" type="text" size="12" value='8'  disabled>
        　滚动方向 
        <select id="MarqueeDirection"  name="MarqueeDirection" disabled>
          <option value="up">向上</option>
          <option value="down">向下</option>
          <option value="left" selected>向左</option>
          <option value="right">向右</option>
        </select>
        <span style="display:none">选择样式</span>
        <select name="Marqueestyle" id="Marqueestyle" disabled style="display:none">
          <option value="0" selected>滚动</option>
          <option value="1">闪动</option>
        </select>&nbsp;<input id="Marqueewh"  name="Marqueewh" type="text" size="12" value='100' disabled> 
        定义滚动框架的高度。</td>
    </tr>
    <tr class="hback" > 
      <td class="hback"  id="MallsStyle" align="center"><div align="right">日期格式</div></td>
      <td  class="hback" ><input name="DateType" type="text" id="DateType" value="YY02年MM月DD日" size="20"> 
        <span class="tx">格式：YY02代表2位的年份（如 07），YY04表示4位数的年份（如 2007），MM代表月，DD代表日，HH代表小时，MI代表分，SS代表秒。</span></td>
    </tr>
    <tr class="hback" > 
      <td class="hback"  align="center"><div align="right">调用样式</div></td>
      <td class="hback"   align="center"><div align="left"> 
          <select id="MallsStyle"  name="MallsStyle" style="width:55%">
            <%=#@~^FgAAAA==~V+O|/DXV{dr/D`EHUJb~IAcAAA==^#~@%>
          </select>
          <input name="button3" type="button" id="button" onClick="showModalDialog('all_style_read.asp?ID='+document.form1.MallsStyle.value,'WindowObj','dialogWidth:420pt;dialogHeight:180pt;status:yes;help:no;scroll:yes;');" value="查看">
          <span class="tx">请在功能标签系统中运用相关联的商品样式。</span></div></td>
    </tr>
    <tr class="hback" > 
      <td class="hback" align="center" height="30"><div align="right">内容字数限制</div></td>
      <td height="30"   align="center" class="hback"><div align="left"> 
          商品详细内容 
          <input name="contentnumber" type="text" id="contentnumber" value="200" size="12">
          商品简述内容 
          <input name="navinumber" type="text" id="navinumber" value="200" size="12">
          
          （以汉字为单位）</div></td>
    </tr>
    <tr class="hback" > 
      <td class="hback"  colspan="3" align="center" height="30"> <input name="button" type="button" onClick="ok(this.form);" value="确定创建此标签"> 
        <input name="button" type="button" onClick="window.returnValue='';window.close();" value=" 取 消 ">      </td>
    </tr>
  </form>
</table>

</body>
</html>
<script language="JavaScript" type="text/JavaScript">
function ChooseMallsType(MallsType)
{
	switch (MallsType)
	{
		case "ClassMalls":
			document.getElementById('last_desc').innerHTML=""
			returnChooseType();
			break;
		case "ScoreMalls":
			document.getElementById('last_desc').innerHTML=""
			returnChooseType();
			break;
		case "LastMalls":
			document.getElementById('OrderType').value='P_Addtime';
			document.getElementById('last_desc').innerHTML="如果是最新商品，请选择'<b>添加日期</b>'和'<b>降序</b>'排列"
			returnChooseType();
			break;
		case "HotMalls":
			document.getElementById('OrderType').value='P_viewnum';
			document.getElementById('last_desc').innerHTML="如果是热点商品，请选择'<b>浏览次数</b>'和'<b>降序</b>'排列"
			returnChooseType();
			break;
		case "RecMalls":
			document.getElementById('last_desc').innerHTML=""
			returnChooseType();
			break;
		case "SaleMalls":
			document.getElementById('OrderType').value='P_Solded';
			document.getElementById('last_desc').innerHTML="如果是热销商品，请选择'<b>销售量</b>'和'<b>降序</b>'排列"
			returnChooseType();
			break;
		case "SpecialMalls":
			document.getElementById('ClassName_col').disabled=false;
			document.getElementById('PageStyle_col').disabled=true; 
			document.getElementById('selecttype').disabled=true;
			document.getElementById('selectshowtype').disabled=true;
			document.getElementById('SetPage').disabled=true;
			document.getElementById('PageTF').disabled=true;
			document.getElementById('PageStyle').disabled=true;
			document.getElementById('PageNumber').disabled=true;
			document.getElementById('Mar_cols').disabled=true;
			document.getElementById('ClassName_col').style.display='';
			document.getElementById('Mar_cols').style.display='none';
			document.getElementById('PageStyle_col').style.display='none';
			document.getElementById('showtype').style.display='none';
			document.getElementById('showtype').disabled=false;
			document.getElementById('Marqueewh').disabled=true;
			document.getElementById('goodtype').style.display='none';
			document.getElementById('goodtype').disabled=false;
			document.getElementById('More_col').style.display='';
			document.getElementById('More_char').disabled=false;
			document.getElementById('MarqueeSpeed').disabled=true;
			document.getElementById('MarqueeDirection').disabled=true;
			document.getElementById('ColsNumber').value='1';
			/*document.getElementById('specialEName_col').style.display='none';
			document.getElementById('specialEName').disabled=false;*/
			document.getElementById('ClassID').disabled=false;
			document.getElementById('ColsNumber').disabled=false;
			document.getElementById('sub_colsnum').disabled=true;
			document.getElementById('bg_pic').disabled=true;
			document.getElementById('c_ColsNum').style.display='none';
			document.getElementById('ClassR').style.display="";
			document.getElementById('ClassRank').disabled=false;
			break;
		case "MarMalls":
			document.getElementById('ClassName_col').disabled=false;
			document.getElementById('PageStyle_col').disabled=true;
			 document.getElementById('selecttype').disabled=true;
			 document.getElementById('selectshowtype').disabled=true;
			document.getElementById('SetPage').disabled=true;
			document.getElementById('PageTF').disabled=true;
			document.getElementById('PageStyle').disabled=true;
			document.getElementById('PageNumber').disabled=true;
			document.getElementById('Mar_cols').disabled=false;
			document.getElementById('ClassName_col').style.display='';
			document.getElementById('Mar_cols').style.display='';
			document.getElementById('PageStyle_col').style.display='none'; 
			document.getElementById('goodtype').style.display='none';
			document.getElementById('goodtype').disabled=true;
			document.getElementById('showtype').style.display='none';
			document.getElementById('showtype').disabled=true;
			document.getElementById('Marqueewh').disabled=false;
			document.getElementById('More_col').style.display='';
			document.getElementById('More_char').disabled=false;
			document.getElementById('MarqueeSpeed').disabled=false;
			document.getElementById('MarqueeDirection').disabled=false;
			document.getElementById('Marqueewh').disabled=false;
			//document.getElementById('Marqueestyle').disabled=false;
			//document.getElementById('ColsNumber').value='10';
			document.getElementById('ColsNumber').disabled=true;
			document.getElementById('ClassID').disabled=false;
			document.getElementById('sub_colsnum').disabled=true;
			document.getElementById('bg_pic').disabled=true;
			document.getElementById('c_ColsNum').style.display='none';
			document.getElementById('ClassR').style.display="";
			document.getElementById('ClassRank').disabled=false;

			break;
		case "ClassList":
			document.getElementById('ClassName_col').disabled=true;
			document.getElementById('Mar_cols').disabled=true;
			document.getElementById('PageStyle_col').disabled=false;
			document.getElementById('goodtype').style.display='';
			document.getElementById('showtype').style.display='none';
			document.getElementById('goodtype').disabled=false;
			document.getElementById('showtype').disabled=false;
			document.getElementById('selecttype').disabled=false;
			document.getElementById('selectshowtype').disabled=false;
			document.getElementById('SetPage').disabled=false;
			document.getElementById('PageTF').disabled=false;
			document.getElementById('PageStyle').disabled=false;
			document.getElementById('PageNumber').disabled=false;
			document.getElementById('ClassName_col').style.display='none';
			document.getElementById('Mar_cols').disabled='';
			document.getElementById('PageStyle_col').style.display='';
			document.getElementById('More_col').style.display='';
			document.getElementById('MarqueeSpeed').disabled=true;
			document.getElementById('MarqueeDirection').disabled=true;
			document.getElementById('Marqueewh').disabled=true;
			document.getElementById('More_char').disabled=true;
			document.getElementById('ColsNumber').value='1';
			document.getElementById('ClassID').disabled=true;
			document.getElementById('ColsNumber').disabled=false;
			document.getElementById('sub_colsnum').disabled=true;
			document.getElementById('bg_pic').disabled=true;
			document.getElementById('c_ColsNum').style.display='none';
			document.getElementById('ClassR').style.display='none';
			document.getElementById('ClassRank').disabled=true;

			break;
		case "subClassList":
			document.getElementById('ClassName_col').disabled=true;
			document.getElementById('Mar_cols').disabled=true;
			document.getElementById('PageStyle_col').disabled=false;
			document.getElementById('SetPage').disabled=false;
			document.getElementById('PageTF').disabled=false;
			document.getElementById('PageStyle').disabled=false;
			document.getElementById('PageNumber').disabled=false;
			document.getElementById('ClassName_col').style.display='none';
			document.getElementById('Mar_cols').disabled='';
			document.getElementById('PageStyle_col').style.display='';
			document.getElementById('More_col').style.display='none';
			document.getElementById('MarqueeSpeed').disabled=true;
			document.getElementById('MarqueeDirection').disabled=true;
			document.getElementById('Marqueewh').disabled=true;
			document.getElementById('More_char').disabled=true;
			document.getElementById('ColsNumber').value='1';
			document.getElementById('ClassID').disabled=true;
			document.getElementById('ColsNumber').disabled=false;
			document.getElementById('sub_colsnum').disabled=false;
			document.getElementById('bg_pic').disabled=false;
			document.getElementById('c_ColsNum').style.display='';
			break;
	}
 }
function returnChooseType()
	{
			document.getElementById('ClassName_col').disabled=false;
			document.getElementById('PageStyle_col').disabled=true;
			document.getElementById('selecttype').disabled=true;
			document.getElementById('selectshowtype').disabled=true;
			document.getElementById('goodtype').style.display='none';
			document.getElementById('showtype').style.display='none';
			document.getElementById('SetPage').disabled=true;
			document.getElementById('PageTF').disabled=true;
			document.getElementById('PageStyle').disabled=true;
			document.getElementById('PageNumber').disabled=true;
			document.getElementById('Mar_cols').disabled=true;
			document.getElementById('ClassName_col').style.display='';
			document.getElementById('Mar_cols').style.display='none';
			document.getElementById('PageStyle_col').style.display='none';
			document.getElementById('More_col').style.display='';
			document.getElementById('More_char').disabled=false;
			document.getElementById('ClassID').disabled=false;
			document.getElementById('ColsNumber').value='1';
			document.getElementById('MarqueeSpeed').disabled=true;
			document.getElementById('MarqueeDirection').disabled=true;
			document.getElementById('Marqueewh').disabled=true;
			document.getElementById('ColsNumber').disabled=false;
			document.getElementById('sub_colsnum').disabled=true;
			document.getElementById('bg_pic').disabled=true;
			document.getElementById('c_ColsNum').style.display='none';
			document.getElementById('ClassR').style.display="";
			document.getElementById('ClassRank').disabled=false;

	}
function selectHtml_express(Html_express)
{
	switch (Html_express)
	{
	case "out_Table":
		document.getElementById('div_id').style.display='none';
		document.getElementById('ul_id').style.display='none';
		document.getElementById('DivID').disabled=true;
		document.getElementById('Divclass').disabled=true;
		document.getElementById('ulid').disabled=true;
		document.getElementById('ulclass').disabled=true;
		document.getElementById('liid').disabled=true;
		document.getElementById('liclass').disabled=true;
		document.getElementById('page_css').style.display='';
		break;
	case "out_DIV":
		document.getElementById('div_id').style.display='';
		document.getElementById('ul_id').style.display='';
		document.getElementById('page_css').style.display='none';
		document.getElementById('DivID').disabled=false;
		document.getElementById('Divclass').disabled=false;
		document.getElementById('ulid').disabled=false;
		document.getElementById('ulclass').disabled=false;
		document.getElementById('liid').disabled=false;
		document.getElementById('liclass').disabled=false;
		break;
	}
}
function ShowTempLayer(oDiv){
	var obj=document.getElementById(oDiv);
	obj.style.display = '';
	obj.style.width = 280;
	obj.style.height = 120;
	obj.style.top = parseInt(document.body.scrollTop+event.clientY)-100;
	obj.style.left = parseInt(event.clientX)-280;
}

function OpenPageStyle(obj){
	var ret = OpenWindow("Web_Page_style.asp",200,200,"page");
	if(ret!='')obj.value = ret;
}
function GetObj(s){
	return document.getElementById(s);
}
function IsDisabled(oName){
	if(GetObj(oName).disabled == true){
		return true;
	}else{
		return false;
	}
}
var G_CanSave = true;
var G_Save_Msg = '';
function ok(obj)
{
	var ssid,tmpstring;
	ssid=obj.ClassID.value
	tmpstrimg=ssid.split("|")
	if(obj.MallsStyle.value == ''){alert('请填写引用样式!!\n如果还没建立，请在样式管理中建立');obj.MallsStyle.focus();return false;}
	if(obj.labelStyle.value=='MarMalls')
		{
			if(isNaN(obj.MarqueeSpeed.value)==true){alert('滚动速度请填写数字');obj.MarqueeSpeed.focus();return false;}
		}
	if(obj.contentnumber.value==''){alert('请填写内容显示字符数\n中文占2个字符');obj.contentnumber.focus();return false;}
	if(obj.navinumber.value==''){alert('请填写商品导航显示字符数\n中文占2个字符');obj.navinumber.focus();return false;}
	if(isNaN(obj.MallsNumber.value)==true){alert('调用数量必须为数字');obj.MallsNumber.focus();return false;}
	if(isNaN(obj.contentnumber.value)==true){alert('内容显示字数请用数字');obj.contentnumber.focus();return false;}
	if(isNaN(obj.navinumber.value)==true){alert('导航显示字数请用数字');obj.navinumber.focus();return false;}
	if(obj.PageStyle.value == '')obj.PageStyle.value=',CC0066';
	var retV = '{Web:MS=';
	retV+=obj.labelStyle.value + '┆';
	/*if(!IsDisabled('MallsPicTF')) retV+='图片商品$' + obj.MallsPicTF.value + '┆';*/
	/*if(!IsDisabled('specialEName')) retV+='专题$' + obj.specialEName.value + '┆';*/
	if(!IsDisabled('ClassID')) retV+='分类$' + tmpstrimg[0] + '┆';
	if (obj.labelStyle.value!='ClassList'&&obj.labelStyle.value!='SpecialList')
	{
	if(!IsDisabled('MallsNumber')) retV+='Loop$'+ obj.MallsNumber.value + '┆';
	}
	if(!IsDisabled('out_char')) retV+='输出格式$' + obj.out_char.value + '┆';
	if(!IsDisabled('DivID')) retV+='DivID$' + obj.DivID.value + '┆';
	if(!IsDisabled('Divclass')) retV+='DivClass$' + obj.Divclass.value + '┆';
	if(!IsDisabled('ulid')) retV+='ulid$' + obj.ulid.value + '┆';
	if(!IsDisabled('ulclass')) retV+='ulclass$' + obj.ulclass.value + '┆';
	if(!IsDisabled('liid')) retV+='liid$' + obj.liid.value + '┆';
	if(!IsDisabled('liclass')) retV+='liclass$' + obj.liclass.value + '┆';
	if(!IsDisabled('DateNumber')) retV+='多少天$' + obj.DateNumber.value + '┆';
	if(!IsDisabled('TitleNumber')) retV+='标题数$' + obj.TitleNumber.value + '┆';
	/*if(!IsDisabled('PicTF')) retV+='图文标志$' + obj.PicTF.value + '┆';*/
	if(!IsDisabled('Openstyle')) retV+='打开窗口$' + obj.Openstyle.value + '┆';
	if(!IsDisabled('SubTF')) retV+='包含子类$' + obj.SubTF.value + '┆';
	if(!IsDisabled('OrderType')) retV+='排列字段$' + obj.OrderType.value + '┆';
	if(!IsDisabled('orderby')) retV+='排列方式$' + obj.orderby.value + '┆';
	if(!IsDisabled('More_char')) retV+='更多连接$' + obj.More_char.value + '┆';
	if(!IsDisabled('PageTF')){
		if (obj.PageTF.checked){
			retV+='分页$' + obj.PageTF.value + '┆';
		}else{
			retV+='分页$0┆';
		}
	}
	if(!IsDisabled('PageStyle')) retV+='分页样式$' + obj.PageStyle.value + '┆';
	if(!IsDisabled('PageNumber')) retV+='每页数量$' + obj.PageNumber.value + '┆';
	if(!IsDisabled('PageCSS')) retV+='PageCSS$' + obj.PageCSS.value + '┆';
	if(!IsDisabled('DateType')) retV+='日期格式$' + obj.DateType.value + '┆';
	if(!IsDisabled('MallsStyle')) retV+='引用样式$' + obj.MallsStyle.value + '┆';
	if(!IsDisabled('bg_pic')) retV+='背景底纹$' + obj.bg_pic.value + '┆';
	if(!IsDisabled('sub_colsnum')) retV+='分类排列数$' + obj.sub_colsnum.value + '┆';
	retV+='商品排列数$' + obj.ColsNumber.value + '┆';
	retV+='内容字数$' + obj.contentnumber.value + '┆';
	if(obj.labelStyle.value=='MarMalls' )
	{
		retV+='导航字数$' + obj.navinumber.value + '┆';
	}
	else
	{
		retV+='导航字数$' + obj.navinumber.value +'┆';
	}
	if(!IsDisabled('MarqueeSpeed')) retV+='滚动速度$' + obj.MarqueeSpeed.value + '┆';
	if(!IsDisabled('MarqueeDirection')) retV+='滚动方向$' + obj.MarqueeDirection.value +'┆';
	if(obj.labelStyle.value=='ClassList' )
	{
		if(!IsDisabled('selecttype')) retV+='商品类型$' + obj.selecttype.value +'┆';
	}
	else
	{
		//if(!IsDisabled('selecttype')) retV+='┆商品类型$' + obj.selecttype.value +'┆';
	}
	
	if(!IsDisabled('selectshowtype')) retV+='栏目位置$' + obj.selectshowtype.value+'┆';
	if(!IsDisabled('Marqueewh')) retV+='滚动高度$' + obj.Marqueewh.value +'┆';
	if(!IsDisabled('ClassRank')) retV+='分类序列$' + obj.ClassRank.value+'┆';
	if(!IsDisabled('ClassType')) retV+='扩展分类商品$' + obj.ClassType.value;
	retV+='}';
	window.parent.returnValue = retV;
	window.close();
}
</script> 

 
 

