<%@ LANGUAGE = "VBScript.Encode" codepage="65001" %>
<!--#include file="../../include.asp" -->
<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">
<base target=self>
</head>
<body class="hback">
<form  name="form1" method="post">
	<table width="98%" height="29" border="0" align=center cellpadding="3" cellspacing="1" class="table" valign=absmiddle>
		<tr class="hback" >
			<td height="27"  align="Left" class="xingmu">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="20%" class="xingmu"><strong>商品分类JS创建</strong></td>
						<td width="80%">
							<div align="right">
								<input name="button4" type="button" onClick="window.returnValue='';window.close();" value="关闭">
							</div>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
		<tr class="hback">
			<td width="13%" height="15">
				<div align="center"><a href="Malls_C_Label.asp?type=ClassCode" target="_self">分类调用</a></div>		</td>
		</tr>
	</table>

	<table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
	<tr>
	  <td class="hback" width=10%><div align="right">分类序列</div></td>
	  <td class="hback"><input type="text" name="select" id="class_show" value="0" size=8>注意：0为所有分类，-1为自动调用。>=1则调用第几个分类
	<!--
	 <select name="select" id="class_show">
            <option value='0'>---显示所有分类---</option>
            <option value='1'>---自动调用分类---</option>
          </select>
	-->
	 </td>
 	</tr>		
		<tr>
			<td width="22%" class="hback">
				<div align="right">选择分类</div>			</td>
			<td width="78%" class="hback">
				<select name="ClassID" id="ClassID">
              <option value='0'>---选择分类---</option>
              <%=#@~^DwAAAA==!YmtZ^l/k{dr/DvQUAAA==^#~@%>
            </select>
				<span class="tx">如果不选择，则调用所有</span></td>
		</tr>
		<tr>
			<td width="22%" class="hback"><div align="right">输出格式</div></td>
			<td width="78%" 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 >
		  <td class="hback"><div align="right">Table宽度</div></td>
		  <td class="hback"><input name="tabwidth" type="text" value="100%" size="8">.如果为固定宽度，请去掉%. 0为不限制,为空默认为100%</td>
	  </tr>
		<tr >
		  <td class="hback"><div align="right">显示级别</div></td>
		  <td class="hback">
  		 <select name="view_level" id="viewlevel">
          <option value="1" selected>1</option>
          <option value="2">2</option>
          <option value="3">3</option>
        </select>最多支持三级  如果选择是2 则显示上、下级分类 </td>
       </tr>
	<tr >
	  <td class="hback"><div align="right">显示列数</div></td>
	  <td class="hback">
	 <select name="Class_colsnum" id="Class_colsnum">
	  <option value="0">不显示</option>
          <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>
	子类显示列数
	<select name="Child_colsnum" id="Child_colsnum">
	  <option value="0" selected>不显示</option>
          <option value="1">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></td>
  </tr>
	<tr style="display:none">
		<td class="hback"><div align="right">显示图片</div></td>
		<td class="hback">
			<select name="PicTF" id="PicTF">
				<option value="1">显示</option>
				<option value="0" selected>不显示</option>
			</select>
			图片高度及宽度
			<input name="PicSize" type="text" id="PicSize" value="120,100" size="12">
			图片CSS
			<input name="PicCSS" type="text" id="PicCSS" size="12"></td>
	</tr>
	<tr>
	  <td class="hback"><div align="right">大类引用样式</div></td>
	  <td class="hback"><select id="Class_style"  name="Use_style" style="width:55%">
              <%=#@~^FgAAAA==~V+O|/DXV{dr/D`EHUJb~IAcAAA==^#~@%>
            </select><input name="button3" type="button" id="button32" onClick="showModalDialog('all_style_read.asp?ID='+document.form1.Class_style.value,'WindowObj','dialogWidth:420pt;dialogHeight:180pt;status:yes;help:no;scroll:yes;');" value="查看">
	    大类调用数量
	       <input name="Class_Num" type="text" id="Class_num" value="0" size="8"><br>

      </td>
	 </tr>
	 <tr>
	    <td class="hback"><div align="right">子类引用样式</div></td>
	    <td class="hback"><select id="Child_style"  name="Use_style" style="width:55%">
              <%=#@~^FgAAAA==~V+O|/DXV{dr/D`EHUJb~IAcAAA==^#~@%>
            </select><input name="button3" type="button" id="button32" onClick="showModalDialog('all_style_read.asp?ID='+document.form1.Child_style.value,'WindowObj','dialogWidth:420pt;dialogHeight:180pt;status:yes;help:no;scroll:yes;');" value="查看">
	    子类调用数量
	       <input name="Child_Num" type="text" id="Child_num" value="0" size="8"><br>
	   </td>
	  </tr>
	  <tr>
	    <td class="hback"><div align="right">标题数量</div>	</td>
	    <td class="hback">
	       大类标题数量
	       <input name="Class_TitleNum" type="text" id="Class_TitleNum" value="0" size="8" >
		子类标题数量
	       <input name="Child_TitleNum" type="text" id="Child_TitleNum" value="0" size="8">&nbsp;<font color=red>0 为显示全部字数</font></td>
      </tr>
	   <tr>
		<td class="hback"></td>
		<td class="hback">
		  <input name="button2" type="button" onClick="ok(this.form);" value="确定创建此标签">
		  <input name="button2" type="button" onClick="window.returnValue='';window.close();" value=" 取 消 ">
         </td>
	</tr>
	</table>
	<script language="JavaScript" type="text/JavaScript">
	function ok(obj)
	{
		var ssid,tmpstring;
		ssid=obj.ClassID.value;
		tmpstrimg=ssid.split("|");
		var retV = 'ClassCode┆';
		retV+='分类$' + obj.ClassID.value + '┆';
		retV+='输出方式$out_Table┆';
		retV+='显示级别$' + obj.view_level.value + '┆';
		retV+='大类显示列数$' + obj.Class_colsnum.value + '┆';
		retV+='子类显示列数$' + obj.Child_colsnum.value + '┆';	
		retV+='大类引用样式$' + obj.Class_style.value + '┆';
		retV+='子类引用样式$' + obj.Child_style.value + '┆';	
		retV+='分类序列$' + obj.class_show.value + '┆';
		retV+='大类调用数量$' + obj.Class_Num.value + '┆';
		retV+='大类标题字数$' + obj.Class_TitleNum.value + '┆';
		retV+='小类调用数量$' + obj.Child_Num.value + '┆';
		retV+='小类标题字数$' + obj.Child_TitleNum.value + '┆';
		retV+='表格宽度$' + obj.tabwidth.value;
		window.parent.returnValue = retV;
		window.close();
	}
	</script>
</form>
</body>
</html>
<script language="JavaScript" type="text/JavaScript">
function SelectClass()
{
	var ReturnValue='',TempArray=new Array();
	ReturnValue = OpenWindow('../Malls/lib/SelectClassFrame.asp',400,300,window);
	if (ReturnValue.indexOf('***')!=-1)
	{
		TempArray = ReturnValue.split('***');
		document.all.ClassID.value=TempArray[0]
		document.all.ClassName.value=TempArray[1]
	}
}
function selectHtml_express(Html_express)
{
	switch (Html_express)
	{
	case "out_Table":
		document.getElementById('div_id').style.display='none';
		document.getElementById('li_id').style.display='none';
		document.getElementById('ul_id').style.display='none';
		document.getElementById('DivID').disabled=true;
		break;
	case "out_DIV":
		document.getElementById('div_id').style.display='';
		document.getElementById('li_id').style.display='';
		document.getElementById('ul_id').style.display='';
		document.getElementById('DivID').disabled=false;
		break;
	}
}
</script>
 


 
 

