<%@ LANGUAGE = "VBScript.Encode" codepage="65001" %>
<!--
'##################################################################                                                                 
'★         web08.net - 威博购物系统                                              
'★  版权所有: web08.net                                                                                                       
'★  程序制作: 威博网络技术公司                                     
'★           email:web08net@hotmail.com                           
'★            Q Q :645095280,475980829 
'★	       电话:021-55520018                                                                                                         
'★  相关网址: [产品介绍] http://www.021web.com.cn/gwxt.html
'★            [支持论坛] http://bbs.web08.net/                                                                                     
'★  主页地址: http://www.web08.net/  
'★		http://www.021web.com.cn/			                                                                 
'###################################################################
-->
<html>
<head>
<title>模板/标签系统-威博用户商城后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css/css.css" rel="stylesheet" type="text/css">
</head>
<script language="JavaScript" type="text/JavaScript">
function uppic(model,frmname)
{
window.open("../upload/upload.asp?uppath=Subject&ProdId="+model+"&frmname="+frmname,"upload", "width=550, height=280, resizable=no,menubar=1,scrollbars=1")
}
</script>
<!-- #include file="../include2.asp" -->
<%#@~^DAAAAA==(kb[sk	`F8!*iAMAAA==^#~@%>
<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 class="background">
<center>
<!--#include file="web_tmp_include.asp"-->
<div class="div-top">
<span class="right-span"><a href="javascript:history.go(-1);"><font color="#990000">返回系统栏目列表</font></a>&nbsp;&nbsp;</span>
<span class="left-span">&nbsp;&nbsp;<strong>管理中心</strong>  - 添加自定义栏目 </span>
</div>
<div class="tab-div">
<form action="wlablesave.asp?action=addSystemSubject" name="myform" method="post" >
<table width="100%"border="0" align="center" cellpadding="3" cellspacing="0" bordercolorlight="#FFffff"  bordercolordark="#CCCCCC" bgcolor="#CCCCCC" >
<tr>
<td width="20%" height="30" align="right" bgcolor="#FFFFFF" class="hback">栏目分类：</td>
<td height="30" colspan="2" align="left" bgcolor="#FFFFFF" class="hback"><label>
<select name="select" onChange="ShowType(this.value)">
<option value="0">系统栏目</option>
<option value="1">商城栏目</option>
<!--<option value="2">供求栏目</option>-->
</select>
</label></td>
</tr>

<tr id="w_typeid" style="display:none">
<td width="20%" height="30" align="right" bgcolor="#FFFFFF" class="hback">供求类型：</td>
<td height="30" colspan="2" align="left" bgcolor="#FFFFFF" class="hback">
<select name="typeid">
<option value="0">-所有类型-</option>
</select></td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#FFFFFF" class="hback">栏目类型：</td>
<td width="11%" height="30" align="left" bgcolor="#FFFFFF"><input type="checkbox" name="isUrl" onClick="insertType()" value="1">外部栏目</td>
<td width="69%" align="left" bgcolor="#FFFFFF" class="hback"></td>
</tr>

<tr id=OutUrl style="display:none">
<td height="30" align="right" bgcolor="#FFFFFF" class="hback">外部地址：</td>
<td height="30" colspan="2" align="left" valign="middle" bgcolor="#FFFFFF" class="hback"><input name="UrlAddress" type="text" id="UrlAddress" size="30">
<font color="#ff0000">最大250个字符</font></td>
</tr>

<tr>
<td width="20%" height="30" align="right" bgcolor="#FFFFFF" class="hback">栏目中文名称：</td>
<td height="30" colspan="2" align="left" bgcolor="#FFFFFF" class="hback"><label>
<input name="ClassName" type="text" id="ClassName" size="30" maxlength="50">
</label></td>
</tr>
<tr id="tr1">
<td height="30" align="right" bgcolor="#FFFFFF" class="hback">栏目英文名称：</td>
<td height="30" colspan="2" align="left" bgcolor="#FFFFFF" class="hback"><input name="ClassEName" type="text" id="ClassEName" size="30">
<font color="#FF0000">3-50个字符,必须是字母，数字，中划线，下划线,一旦确认,将不能修改</font></td>
</tr>
<tr id="tr2">
<td height="30" align="right" bgcolor="#FFFFFF" class="hback">栏目模版地址：</td>
<td height="30" colspan="2" align="left" bgcolor="#FFFFFF" class="hback"><input name="Templet" type="text" id="Templet" size="50">
<input type="button" name="Submit" value="选择模板" onClick="OpenWindowAndSetValue('../../inc/SelectTemplet.asp?CurrPath=<%=#@~^EgAAAA==	4m;{k+Y!w6GV9+.P7AYAAA==^#~@%>template',400,300,window,document.myform.Templet);document.myform.Templet.focus();"></td>
</tr>
<tr id="tr4">
<td height="30" align="right" bgcolor="#FFFFFF" class="hback">栏目META关键字：</td>
<td height="30" colspan="2" align="left" bgcolor="#FFFFFF" class="hback"><textarea name="ClassKeywords" cols="60" rows="10" id="ClassKeywords"></textarea></td>
</tr>
<tr id="tr5">
<td height="9" align="right" valign="top" bgcolor="#FFFFFF" class="hback">栏目META关描述：</td>
<td height="30" colspan="2" align="left" bgcolor="#FFFFFF" class="hback"><textarea name="Classdescription" cols="60" rows="10" id="Classdescription"></textarea></td>
</tr>

<tr>
<td height="9" align="right" valign="middle" bgcolor="#FFFFFF" class="hback">是否在导航中显示：</td>
<td height="30" colspan="2" bgcolor="#FFFFFF" class="hback"><p>
<label>
<input name="rg" type="radio" value="1" checked>
显示</label>
<label>
<input type="radio" name="rg" value="0">
不显示</label>
</p></td>
</tr>
<tr>
<td height="9" align="right" valign="middle" bgcolor="#FFFFFF" class="hback">排列序号：</td>
<td height="30" colspan="2" bgcolor="#FFFFFF" class="hback"><input name="OrderID" type="text" id="OrderID" value="10" size="10" maxlength="8"></td>
</tr>
<tr>
<td height="9" align="right" valign="top" bgcolor="#FFFFFF" class="hback">&nbsp;</td>
<td height="50" colspan="2" align="left" bgcolor="#FFFFFF" class="hback"><input type="submit" name="Submit" value=" 确 定 " onClick="return Ad_Flag();">
  <input type="submit" name="Submit3" value=" 取 消 " onClick="return Ad_Flag();"></td>
</tr>
</table>
</form>
</div>
</center>
<script language="JavaScript" type="text/JavaScript">
<!--
function insertType()
{ 
	if (document.myform.isUrl.checked==true)
	{
		OutUrl.style.display='';
		tr1.style.display='none';
		tr2.style.display='none';
		/*tr3.style.display='none';*/
		tr4.style.display='none';
		tr5.style.display='none';
		w_typeid.style.display='none';
	}
	else
	{
		OutUrl.style.display='none'
		tr1.style.display='';
		tr2.style.display='';
		/*tr3.style.display='';*/
		tr4.style.display='';
		tr5.style.display='';
		if (myform.select.value==2)
		{
			w_typeid.style.display='';
		}
		else
		{
			w_typeid.style.display='none';
		}
	}
}
function ShowType(sflag)
{ 
	if (sflag==2)
	{
		w_typeid.style.display='';
	}
	else
	{
		w_typeid.style.display='none';
	}
}
function Ad_Flag()
{
	if (document.myform.ClassName.value=="")
	{
		alert("自定义栏目中文名称不能为空");
		document.myform.ClassName.focus();
		return false;
	}
	if (document.myform.isUrl.checked!=true)
	{
		if (document.myform.ClassEName.value=="")
	{
		alert("栏目英文名称不能为空");
		document.myform.ClassEName.focus();
		return false;
	}
	if (document.myform.Templet.value=="")
	{
		alert("栏目模版不能为空");
		document.myform.Templet.focus();
		return false;
	}
}
}
function CheckFileExtName(Obj)
{
	if (Obj.value!='')
	{
		for (var i=0;i<document.all.FileExtName.length;i++)
		{
			if (document.all.FileExtName.options(i).value=='asp') document.all.FileExtName.options(i).selected=true;
		}
		document.all.FileExtName.readonly=true;
	}
	else
	{
		document.all.FileExtName.readonly=false;
	}
}
function ShowAdpicInfo()
{
	if (document.all.IsAdPic.checked==true)
	{
		document.all.Adpic.style.display="";
	}
	else
	{
		document.all.Adpic.style.display="none";
	}
}
//-->
</script>
<!-- #include file="../bottom2.asp" -->
</body>
</html>