<%'guidedisplay=1%>
<!--#include file="admin_start.asp" -->

<%
id=request("id")

if id="" then id=0

if not MySys.check.isInteger(id) then
   MySys.Error.info = "请提交合法的栏目id！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If

id=int(id)
Session("FB_EM_1_ACC_uppath")="../SYSPIC"

%>
<body topmargin="30" marginwidth="10" marginheight="10">
<form name=edit_html target=admin_edit_html method=post><input type=hidden name=c value=''><input type=hidden name=formname value=''><input type=hidden name=inputname value=''></form>
<form name=edit_template target=admin_edit_template method=post><input type=hidden name=c value=''><input type=hidden name=c_sql value=''><input type=hidden name=formname value=''><input type=hidden name=inputname value=''></form>
<form name=template_label_sort action="admin_template_label_sort_edit_handle.asp?action=add" method=post>
<table cellpadding="3" cellspacing="4" width="90%" height="30" align=center style='border:1px solid #ebebeb' >
	<tr>
		<td width="2%" align=right><img alt='点击弹开编辑框' onclick="opencat(basic_open)" style='CURSOR: hand' src="Images/index_search.gif" width="8" height="16"></td>
		<td  width="98%" align=left>
		<font color="#ebebeb"> | </font>
		<img alt='点击弹开提示信息框' onclick="opencat(template_label_ads_open)" style='CURSOR: hand' src="Images/icon_info.gif" width="13" height="13" hspace="0" align="absmiddle">			
		<font color="#ebebeb"> | </font>
		添加公共标签分类
	    </td>
	</tr>		
	<tr id="template_label_ads_open" style="display:  ">
		<td colspan="10" align=left>
		<table cellpadding="4" cellspacing="2" width="99%" height="30" align=center style='border:1px dashed #B7B7B7' >
			<tr>
				<td colspan="8" width='100%' style="line-height:150% ">
				</td>
			</tr>
		</table>
		</td>
	</tr>
	
	<tr id="basic_open" >
		<td colspan="10" align=left style='padding-bottom:5px'>
		<table cellpadding="4" cellspacing="2" bgcolor='#f7f7f7' width="99%" height="30" align=center style='border:1px dashed #808080;padding:20px' >
			<tr>
				<td  width="20%" align=right>上级分类:</td>
				<td  width="80%" align=left>
				  <select name=sort_up >
				  <%
				  dim s
				  set s=MySys.temp.search
				  s.list_Sort "", "jins_template_label_sort",0,"所有分类|"&id
				  response.write s.sort_list
				  set s=nothing
				  'MySys.GuideSort "jins_template_label_sort",id ,"admin_template_label_sort.asp" 
				  'response.write replace(MySys.guide_sort,"$$","")
				  %>
				  </select>
				</td>
			</tr>
			<tr>
				<td  width="20%" align=right>标签/分类名称:</td>
				<td  width="80%" align=left>
				  <input name=sort_name value='' size=41>
				  <select name=label_link >
				  <option value=0>一般标签</option>
				  <option value=1>快捷标签</option>
				  </select>
				  类型:
				<select name=sort_type >
				<option value=0 >变量</option>
				<option value=1 >过程</option>
				</select>
				</td>
			</tr>
			<tr>
				<td  width="20%" align=right valign=top>源码:</td>
				<td  width="80%" align=left >
				  <textarea name=sort_source cols="60" rows="3"></textarea>
				</td>
			</tr>
			<tr>
				<td  width="20%" align=right valign=top>描述:</td>
				<td  width="80%" align=left >
				  <textarea name=sort_description cols="60" rows="3"></textarea>
				</td>
			</tr>
			<tr>
				<td  width="20%" align=right >加入时间:</td>
				<td  width="80%" align=left >
				  <input name=sort_addtime value='<%=now%>' size=60>
				</td>
			</tr>
		    <tr>
			  <td  width="10%" align=right valign=top>详细说明:</td>
			  <td  width="90%" align=left>
                <textarea id="sort_content" name="sort_content" cols="60" rows="30"></textarea>
                <a title='点击进行详细编辑！' href="javascript:openedit_template('template_label_sort','sort_content','','','<%=int(timer)%>','公共标签详细说明编辑 > 新的公共标签 > '+template_label_sort.sort_name.value,'yes');" >
				<img border=0 src="Images/old.gif" width="21" height="20" align="top"><br>
				</a>
			</td>
			</tr>
		
		</table><br>

		</td>
	</tr>

	<tr>
		<td height='1' colspan="9" background='images/dot03.gif'></td>
	</tr>
	
	<tr>
	  <td height='30' colspan="8" width='100%' align=center >
	  <input type=submit value="提交设置！" >
	   <input type=reset value="重置" > 
	   <input onclick='history.back(-1)' type=button value="返回" >	  </td>
	</tr>
</table>		
<SCRIPT language=javascript>
	function opencat(cat)
	{
 	 	if(cat.style.display=="none"){
     	cat.style.display="";
  		} else {
     	cat.style.display="none"; 
  		}
	}</SCRIPT>
</form>
<!--#include file="admin_end.asp" -->