<?php die;?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<title><!--{$smarty.const.MICE_TITLE}--></title>
<base href="<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/" />
<link href="css/Default.css" rel="stylesheet" type="text/css" />
<link href="css/fieldset.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
var baseurl = '<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/';
</script>
<script type="text/javascript" src="js/Main.js"></script>
<script language="JavaScript">
function CheckForm()
{
	var arr = $("tree1").$T("P");
	var flag = true;
	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("cid")>0){
			if($("CategoryIdS["+c.$A("cid")+"]").checked){
				flag = false;
			}
		}
	}

	if(flag){
		//Dialog.alert("请选择此文档所属的分类！");
		//return;
	}

	if (document.form1.title.value.length == 0)
	{
		Dialog.alert("标题不能为空！");
		document.form1.title.focus();
		return;
	}

	if (document.form1.category_id.value.length == 0)
	{
	//alert("至少要选择一个分类！");
	// document.form1.title.focus();
	//return false;
	}
	document.form1.submit();
	return true;
}

function ResetForm(){
	document.form1.reset();
}

function uploadfile(name){
	var text = $(name);
	var diag = new Dialog("Diag1");
	diag.Width = 450;
	diag.Height = 300;
	diag.Title = "上传文件";
	diag.URL = "<!--{$smarty.const.MICE_URL}-->admin.php/upload";
	diag.OKEvent = function(){
		text.value=$DW.$("fileurl").value;
		$D.close();
	};
	diag.show();
}

function onTreeClick(p){
	p = $(p);
	$("CategoryIdS["+p.$A("cid")+"]").checked = true;
	var level = p.$A("level");
	var innercode = p.$A("innercode");
	var arr = $("tree1").$T("P");
	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("cid")!=p.$A("cid")){
			$("CategoryIdS["+c.$A("cid")+"]").checked = false;
		}		
	}
}

function onCheck(ele){
	ele = $(ele);
	//alert(ele.value);
	if(ele.type=="radio"){
		var p = ele.getParent("P");
		onTreeClick(p);
		return ;
	}
}
</script>
</head>

<body>
<table width="100%" border="0" cellspacing="6" cellpadding="0" style="border-collapse: separate; border-spacing: 6px;">
	  <form action="<!--{$formaction}-->" method="post" name="form1" id="form1" onsubmit="return CheckForm()">
      <tr valign="top">
        <td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="blockTable">
			
			<tr>
			  <td width="100%" style="padding:6px 10px;" class="blockTd">
			  <div style="float: left;"><img src="imgs/Icons/icon018a1.gif" />文档编辑</div>
			  <div style="float: right; white-space: nowrap;vertical-align:middle;"><a href='javascript:CheckForm();' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon001a16.gif" /><b>保存&nbsp;</b></a><a href='javascript:ResetForm();' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon001a13.gif" /><b>重置&nbsp;</b></a><a href='javascript:history.back(-1);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon008a20.gif" /><b>返回&nbsp;</b></a></div>
			 </td>
            </tr>
            <tr>
              <td style="padding-top:0px;padding-left:6px;padding-right:6px;padding-bottom:8px;">

<!--内容开始-->

<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" >
	<tr>
		<td width="100%" valign="top">
			<fieldset class="adminform">
				<legend>分类属性</legend>
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td width="100" class="keyred" height='20'>名　称:</td>
						<td colspan="2">
							<input name='category_id' id='category_id' type='hidden' value='<!--{$results->getCategoryId()}-->'>
							&nbsp;<input name='title' id='title' type='text' size='65' value='<!--{$results->getTitle()}-->' style="width:450px;background:url(imgs/Images/rule.gif) repeat-x left bottom;" verify="标题|NotNull&&Length<100">
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>类　别:</td>
						<td colspan="2">
							&nbsp;<select name='type' id='type'>
							<!--{foreach from=$categorytype item=ct}-->
								<!--{if $ct.name!=''}-->
								<option value='<!--{$ct.id}-->' <!--{if $ct.id==$results->getType()}-->selected<!--{/if}-->><!--{$ct.name}--></option>
								<!--{/if}-->
							<!--{/foreach}-->
						  </select>
						</td>
					</tr>
					<tr>
						<td width="100" class="keyred" height='20'>上级分类:</td>
						<td colspan="2">
<div style="width:260px;height:150px;overflow:auto;border: 2px inset #FFFFFF;"  micetype='_Tree' onselectstart='stopEvent(event);' id='tree1' class='treeItem'>
		<table>
			<tr>
				<td>

<p cid="0" onclick="Tree.onItemClick(event,this);onTreeClick(this);" level="0" id="tree1__TreeRoot" parentid="" lazy="0" resizeable="0" ondblclick="Tree.onItemDblClick(event,this);"><img src='imgs/Icons/articles.gif'><input type="radio" name="CategoryIdS[0]" id='CategoryIdS[0]' value='0' onClick="onCheck(this);" <!--{if 0==$results->getParentid()}-->checked<!--{/if}-->>文档库(顶级分类)</p>
	<div>
		<!--{assign var=subsql value='WHERE parentid=0 AND type LIKE \'article%\' ORDER BY orderid'}-->
		<!--{foreach key=key from='micefun'|CategoryLists:$subsql:0:0 item=Category name=counter}-->

		<p cid="<!--{$Category->getCategoryId()}-->" innercode="<!--{$Category->getPath()}-->" level="<!--{$Category->getDepth()}-->" name="tree1_<!--{$Category->getCategoryId()}-->" id="tree1_<!--{$Category->getCategoryId()}-->" parentid="<!--{$Category->getParentid()}-->" lazy="0" resizeable="0" onclick="Tree.onItemClick(event,this);onTreeClick(this);" ondblclick="Tree.onItemDblClick(event,this);" dragend="Tree.dragEnd" onmouseup="DragManager.onMouseUp(event,this)" onmouseover="DragManager.onMouseOver(event,this)" dragover="Tree.dragOver" onmouseout="DragManager.onMouseOut(event,this)" dragout="Tree.dragOut" <!--{if $smarty.foreach.counter.iteration==$childcount}-->expand="4"<!--{else}-->expand="2"<!--{/if}-->><!--{if $Category->getChildcount()>0}--><!--{if $smarty.foreach.counter.iteration==$childcount}--><img onclick='Tree.onBranchIconClick(event);' src='imgs/Icons/treeicon05.gif'><!--{else}--><img onclick='Tree.onBranchIconClick(event);' src='imgs/Icons/treeicon02.gif'><!--{/if}--><!--{else}--><!--{if $smarty.foreach.counter.iteration==$childcount}--><img src='imgs/Icons/treeicon07.gif'><!--{else}--><img src='imgs/Icons/treeicon06.gif'><!--{/if}--><!--{/if}--><img src='imgs/Icons/<!--{$Category->getType()}-->.gif' alt='类别：<!--{assign var=typeid value=$Category->getType()}--><!--{$categorytype[$typeid].name}-->'><input type="radio" name="CategoryIdS[<!--{$Category->getCategoryId()}-->]" id='CategoryIdS[<!--{$Category->getCategoryId()}-->]' value='<!--{$Category->getCategoryId()}-->' onClick="onCheck(this);" <!--{if $Category->getCategoryId()==$results->getParentid()}-->checked<!--{/if}-->><!--{$Category->getTitle()}--></p>
		
		<!--第2层开始-->
		<!--{if $Category->getChildcount()>0}-->
			<div>
			<!--{assign var=subsql2 value='WHERE parentid='|cat:$Category->getCategoryId()|cat:' AND type LIKE \'article%\' ORDER BY orderid'}-->
			<!--{foreach key=key from='micefun'|CategoryLists:$subsql2:0:0 item=Category2 name=counter2}-->
			
			<p cid="<!--{$Category2->getCategoryId()}-->" innercode="<!--{$Category2->getPath()}-->" level="<!--{$Category2->getDepth()}-->" name="tree1_<!--{$Category2->getCategoryId()}-->" id="tree1_<!--{$Category2->getCategoryId()}-->" parentid="<!--{$Category2->getParentid()}-->" lazy="0" resizeable="0" onclick="Tree.onItemClick(event,this);onTreeClick(this);" ondblclick="Tree.onItemDblClick(event,this);" dragend="Tree.dragEnd" onmouseup="DragManager.onMouseUp(event,this)" onmouseover="DragManager.onMouseOver(event,this)" dragover="Tree.dragOver" onmouseout="DragManager.onMouseOut(event,this)" dragout="Tree.dragOut" <!--{if $smarty.foreach.counter2.iteration==$Category->getChildcount()}-->expand="4"<!--{else}-->expand="2"<!--{/if}-->><!--{if $smarty.foreach.counter.iteration==$childcount}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $Category2->getChildcount()>0}--><!--{if $smarty.foreach.counter2.iteration==$Category->getChildcount()}--><img onclick='Tree.onBranchIconClick(event);' src='imgs/Icons/treeicon05.gif'><!--{else}--><img onclick='Tree.onBranchIconClick(event);' src='imgs/Icons/treeicon02.gif'><!--{/if}--><!--{else}--><!--{if $smarty.foreach.counter2.iteration==$Category->getChildcount()}--><img src='imgs/Icons/treeicon07.gif'><!--{else}--><img src='imgs/Icons/treeicon06.gif'><!--{/if}--><!--{/if}--><img src='imgs/Icons/<!--{$Category2->getType()}-->.gif' alt='类别：<!--{assign var=typeid value=$Category2->getType()}--><!--{$categorytype[$typeid].name}-->'><input type="radio" name="CategoryIdS[<!--{$Category2->getCategoryId()}-->]" id='CategoryIdS[<!--{$Category2->getCategoryId()}-->]' value='<!--{$Category2->getCategoryId()}-->' onClick="onCheck(this);" <!--{if $Category2->getCategoryId()==$results->getParentid()}-->checked<!--{/if}-->><!--{$Category2->getTitle()}--></p>
			
			<!--第3层开始-->
			<!--{if $Category2->getChildcount()>0}-->
				<div>
				<!--{assign var=subsql3 value='WHERE parentid='|cat:$Category2->getCategoryId()|cat:' AND type LIKE \'article%\' ORDER BY orderid'}-->
				<!--{foreach key=key from='micefun'|CategoryLists:$subsql3:0:0 item=Category3 name=counter3}-->
				
				<p cid="<!--{$Category3->getCategoryId()}-->" innercode="<!--{$Category3->getPath()}-->" level="<!--{$Category3->getDepth()}-->" name="tree1_<!--{$Category3->getCategoryId()}-->" id="tree1_<!--{$Category3->getCategoryId()}-->" parentid="<!--{$Category3->getParentid()}-->" lazy="0" resizeable="0" onclick="Tree.onItemClick(event,this);onTreeClick(this);" ondblclick="Tree.onItemDblClick(event,this);" dragend="Tree.dragEnd" onmouseup="DragManager.onMouseUp(event,this)" onmouseover="DragManager.onMouseOver(event,this)" dragover="Tree.dragOver" onmouseout="DragManager.onMouseOut(event,this)" dragout="Tree.dragOut" <!--{if $smarty.foreach.counter3.iteration==$Category2->getChildcount()}-->expand="4"<!--{else}-->expand="2"<!--{/if}-->><!--{if $smarty.foreach.counter.iteration==$childcount}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $smarty.foreach.counter2.iteration==$Category->getChildcount()}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $Category3->getChildcount()>0}--><!--{if $smarty.foreach.counter3.iteration==$Category2->getChildcount()}--><img onclick='Tree.onBranchIconClick(event);' src='imgs/Icons/treeicon05.gif'><!--{else}--><img onclick='Tree.onBranchIconClick(event);' src='imgs/Icons/treeicon02.gif'><!--{/if}--><!--{else}--><!--{if $smarty.foreach.counter3.iteration==$Category2->getChildcount()}--><img src='imgs/Icons/treeicon07.gif'><!--{else}--><img src='imgs/Icons/treeicon06.gif'><!--{/if}--><!--{/if}--><img src='imgs/Icons/<!--{$Category3->getType()}-->.gif' alt='类别：<!--{assign var=typeid value=$Category3->getType()}--><!--{$categorytype[$typeid].name}-->'><input type="radio" name="CategoryIdS[<!--{$Category3->getCategoryId()}-->]" id='CategoryIdS[<!--{$Category3->getCategoryId()}-->]' value='<!--{$Category3->getCategoryId()}-->' onClick="onCheck(this);" <!--{if $Category3->getCategoryId()==$results->getParentid()}-->checked<!--{/if}-->><!--{$Category3->getTitle()}--></p>

				<!--第4层开始-->
				<!--{if $Category3->getChildcount()>0}-->
					<div>
					<!--{assign var=subsql4 value='WHERE parentid='|cat:$Category3->getCategoryId()|cat:' AND type LIKE \'article%\' ORDER BY orderid'}-->
					<!--{foreach key=key from='micefun'|CategoryLists:$subsql4:0:0 item=Category4 name=counter4}-->
					
					<p cid="<!--{$Category4->getCategoryId()}-->" innercode="<!--{$Category4->getPath()}-->" level="<!--{$Category4->getDepth()}-->" name="tree1_<!--{$Category4->getCategoryId()}-->" id="tree1_<!--{$Category4->getCategoryId()}-->" parentid="<!--{$Category4->getParentid()}-->" lazy="0" resizeable="0" onclick="Tree.onItemClick(event,this);onTreeClick(this);" ondblclick="Tree.onItemDblClick(event,this);" dragend="Tree.dragEnd" onmouseup="DragManager.onMouseUp(event,this)" onmouseover="DragManager.onMouseOver(event,this)" dragover="Tree.dragOver" onmouseout="DragManager.onMouseOut(event,this)" dragout="Tree.dragOut" <!--{if $smarty.foreach.counter4.iteration==$Category3->getChildcount()}-->expand="4"<!--{else}-->expand="2"<!--{/if}-->><!--{if $smarty.foreach.counter.iteration==$childcount}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $smarty.foreach.counter2.iteration==$Category->getChildcount()}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $smarty.foreach.counter3.iteration==$Category2->getChildcount()}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $Category4->getChildcount()>0}--><!--{if $smarty.foreach.counter4.iteration==$Category3->getChildcount()}--><img onclick='Tree.onBranchIconClick(event);' src='imgs/Icons/treeicon05.gif'><!--{else}--><img onclick='Tree.onBranchIconClick(event);' src='imgs/Icons/treeicon02.gif'><!--{/if}--><!--{else}--><!--{if $smarty.foreach.counter4.iteration==$Category3->getChildcount()}--><img src='imgs/Icons/treeicon07.gif'><!--{else}--><img src='imgs/Icons/treeicon06.gif'><!--{/if}--><!--{/if}--><img src='imgs/Icons/<!--{$Category4->getType()}-->.gif' alt='类别：<!--{assign var=typeid value=$Category4->getType()}--><!--{$categorytype[$typeid].name}-->'><input type="radio" name="CategoryIdS[<!--{$Category4->getCategoryId()}-->]" id='CategoryIdS[<!--{$Category4->getCategoryId()}-->]' value='<!--{$Category4->getCategoryId()}-->' onClick="onCheck(this);" <!--{if $Category4->getCategoryId()==$results->getParentid()}-->checked<!--{/if}-->><!--{$Category4->getTitle()}--></p>

					<!--第5层开始-->
					<!--{if $Category4->getChildcount()>0}-->
						<div>
						<!--{assign var=subsql5 value='WHERE parentid='|cat:$Category4->getCategoryId()|cat:' AND type LIKE \'article%\' ORDER BY orderid'}-->
						<!--{foreach key=key from='micefun'|CategoryLists:$subsql5:0:0 item=Category5 name=counter5}-->
						
						<p cid="<!--{$Category5->getCategoryId()}-->" innercode="<!--{$Category5->getPath()}-->" level="<!--{$Category5->getDepth()}-->" name="tree1_<!--{$Category5->getCategoryId()}-->" id="tree1_<!--{$Category5->getCategoryId()}-->" parentid="<!--{$Category5->getParentid()}-->" lazy="0" resizeable="0" onclick="Tree.onItemClick(event,this);onTreeClick(this);" ondblclick="Tree.onItemDblClick(event,this);" dragend="Tree.dragEnd" onmouseup="DragManager.onMouseUp(event,this)" onmouseover="DragManager.onMouseOver(event,this)" dragover="Tree.dragOver" onmouseout="DragManager.onMouseOut(event,this)" dragout="Tree.dragOut" <!--{if $smarty.foreach.counter5.iteration==$Category4->getChildcount()}-->expand="4"<!--{else}-->expand="2"<!--{/if}-->><!--{if $smarty.foreach.counter.iteration==$childcount}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $smarty.foreach.counter2.iteration==$Category->getChildcount()}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $smarty.foreach.counter3.iteration==$Category2->getChildcount()}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $smarty.foreach.counter4.iteration==$Category3->getChildcount()}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $Category5->getChildcount()>0}--><!--{if $smarty.foreach.counter5.iteration==$Category4->getChildcount()}--><img onclick='Tree.onBranchIconClick(event);' src='imgs/Icons/treeicon05.gif'><!--{else}--><img onclick='Tree.onBranchIconClick(event);' src='imgs/Icons/treeicon02.gif'><!--{/if}--><!--{else}--><!--{if $smarty.foreach.counter5.iteration==$Category4->getChildcount()}--><img src='imgs/Icons/treeicon07.gif'><!--{else}--><img src='imgs/Icons/treeicon06.gif'><!--{/if}--><!--{/if}--><img src='imgs/Icons/<!--{$Category5->getType()}-->.gif' alt='类别：<!--{assign var=typeid value=$Category5->getType()}--><!--{$categorytype[$typeid].name}-->'><input type="radio" name="CategoryIdS[<!--{$Category5->getCategoryId()}-->]" id='CategoryIdS[<!--{$Category5->getCategoryId()}-->]' value='<!--{$Category5->getCategoryId()}-->' onClick="onCheck(this);" <!--{if $Category5->getCategoryId()==$results->getParentid()}-->checked<!--{/if}-->><!--{$Category5->getTitle()}--></p>

						<!--第6层开始-->
						<!--{if $Category5->getChildcount()>0}-->
							<div>
							<!--{assign var=subsql6 value='WHERE parentid='|cat:$Category5->getCategoryId()|cat:' AND type LIKE \'article%\' ORDER BY orderid'}-->
							<!--{foreach key=key from='micefun'|CategoryLists:$subsql6:0:0 item=Category6 name=counter6}-->
							
							<p cid="<!--{$Category6->getCategoryId()}-->" innercode="<!--{$Category6->getPath()}-->" level="<!--{$Category6->getDepth()}-->" name="tree1_<!--{$Category6->getCategoryId()}-->" id="tree1_<!--{$Category6->getCategoryId()}-->" parentid="<!--{$Category6->getParentid()}-->" lazy="0" resizeable="0" onclick="Tree.onItemClick(event,this);onTreeClick(this);" ondblclick="Tree.onItemDblClick(event,this);" dragend="Tree.dragEnd" onmouseup="DragManager.onMouseUp(event,this)" onmouseover="DragManager.onMouseOver(event,this)" dragover="Tree.dragOver" onmouseout="DragManager.onMouseOut(event,this)" dragout="Tree.dragOut" <!--{if $smarty.foreach.counter6.iteration==$Category5->getChildcount()}-->expand="4"<!--{else}-->expand="2"<!--{/if}-->><!--{if $smarty.foreach.counter.iteration==$childcount}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $smarty.foreach.counter2.iteration==$Category->getChildcount()}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $smarty.foreach.counter3.iteration==$Category2->getChildcount()}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $smarty.foreach.counter4.iteration==$Category3->getChildcount()}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $smarty.foreach.counter5.iteration==$Category4->getChildcount()}--><img src='imgs/Icons/treeicon08.gif'><!--{else}--><img src='imgs/Icons/treeicon03.gif'><!--{/if}--><!--{if $Category6->getChildcount()>0}--><!--{if $smarty.foreach.counter6.iteration==$Category5->getChildcount()}--><img onclick='Tree.onBranchIconClick(event);' src='imgs/Icons/treeicon05.gif'><!--{else}--><img onclick='Tree.onBranchIconClick(event);' src='imgs/Icons/treeicon02.gif'><!--{/if}--><!--{else}--><!--{if $smarty.foreach.counter6.iteration==$Category5->getChildcount()}--><img src='imgs/Icons/treeicon07.gif'><!--{else}--><img src='imgs/Icons/treeicon06.gif'><!--{/if}--><!--{/if}--><img src='imgs/Icons/<!--{$Category6->getType()}-->.gif' alt='类别：<!--{assign var=typeid value=$Category6->getType()}--><!--{$categorytype[$typeid].name}-->'><input type="radio" name="CategoryIdS[<!--{$Category6->getCategoryId()}-->]" id='CategoryIdS[<!--{$Category6->getCategoryId()}-->]' value='<!--{$Category6->getCategoryId()}-->' onClick="onCheck(this);" <!--{if $Category6->getCategoryId()==$results->getParentid()}-->checked<!--{/if}-->><!--{$Category6->getTitle()}--></p>

							<!--{/foreach}-->
							</div>
						<!--{/if}-->

						<!--第6层结束-->

						<!--{/foreach}-->
						</div>
					<!--{/if}-->

					<!--第5层结束-->

					<!--{/foreach}-->
					</div>
				<!--{/if}-->

				<!--第4层结束-->

				<!--{/foreach}-->
				</div>
			<!--{/if}-->

			<!--第2层结束-->

			<!--{/foreach}-->
			</div>
		<!--{/if}-->

		<!--第2层结束-->

		<!--{/foreach}-->

</div>
</td>
</tr>
</table>

</div>
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>是否显示:</td>
						<td colspan="2">
							&nbsp;<input name='isvisible' id='isvisible' type="radio" value="0" <!--{if $results->getIsvisible()==0}-->checked<!--{/if}-->/>是
							&nbsp;<input name='isvisible' id='isvisible' type="radio" value="1" <!--{if $results->getIsvisible()==1}-->checked<!--{/if}-->/>否
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>排序:</td>
						<td colspan="2">
							&nbsp;<input name='orderid' id='orderid' type='text' size='5' value='<!--{$results->getOrderid()}-->'>&nbsp;(升序[从小到大]排列)
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>缩略图:</td>
						<td colspan="2">
							&nbsp;<input name='img' id='img' type='text' size='50' value="<!--{'micefun'|MiceRestoreQuote:$results->getImg()}-->">&nbsp;(请填写图片地址,<a href="javascript:uploadfile('img');"><font color="red">上传图片</font></a>)&nbsp;<a class="tip" onMouseOut="Tip.close(this)" onMouseOver="Tip.show(this,'缩略图为空的时候,系统自动提取简介中的第一张图片作为缩略图','0','10');"><img src="imgs/Images/icon_tip.gif" width="16" height="16"></a></td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>关键字:</td>
						<td colspan="2">
							&nbsp;<input name='tags' id='tags' type='text' size='50' value='<!--{$results->getTags()}-->'>&nbsp;(多个关键字请用逗号(,)隔开)</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>跳转地址:</td>
						<td colspan="2">
							&nbsp;<input name='url' id='url' type='text' size='50' value="<!--{'micefun'|MiceRestoreQuote:$results->getUrl()}-->">&nbsp;(浏览此分类列表时将跳转到该地址)
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>打开方式:</td>
						<td colspan="2">
							&nbsp;<select name='target' id='target'>
							<option value="_self" <!--{if "_self" eq $results->getTarget()}-->selected<!--{/if}-->>当前窗口</option>
							<option value="_blank" <!--{if "_blank" eq $results->getTarget()}-->selected<!--{/if}-->>新窗口</option>
							<option value="_parent" <!--{if "_parent" eq $results->getTarget()}-->selected<!--{/if}-->>父窗口</option>
							</select>
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>简　介:</td>
						<td colspan="2">
							<!--{$editor}-->
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>文档模板:</td>
						<td colspan="2">
							&nbsp;<select  name='subtpl' id='subtpl' style='width:200px'>
							<option value="">默认</option>
							<!--{foreach from=$afiles item=file name=counter}-->
							<option value="<!--{$file.filename}-->" <!--{if $file.filename eq $results->getSubtpl()}-->selected<!--{/if}-->><!--{$file.name}--></option>
							<!--{/foreach}-->
							</select>&nbsp;<a class="tip" onMouseOut="Tip.close(this)" onMouseOver="Tip.show(this,'文档模板默认是:index/page.php<br>模板路径格式为:index/模板文件名','220','10');"><img src="imgs/Images/icon_tip.gif" width="16" height="16"></a>
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>分类模板:</td>
						<td colspan="2">
							&nbsp;<select  name='tpl' id='tpl' style='width:200px'>
							<option value="">默认</option>
							<!--{foreach from=$cfiles item=file name=counter}-->
							<option value="<!--{$file.filename}-->" <!--{if $file.filename eq $results->getTpl()}-->selected<!--{/if}-->><!--{$file.name}--></option>
							<!--{/foreach}-->
							</select>&nbsp;<a class="tip" onMouseOut="Tip.close(this)" onMouseOver="Tip.show(this,'分类模板默认是:index/list.php<br>模板路径格式为:index/模板文件名','220','10');"><img src="imgs/Images/icon_tip.gif" width="16" height="16"></a>
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>分类封面模板:</td>
						<td colspan="2">
							&nbsp;<select name='indextpl' id='indextpl' style='width:200px'>
							<option value="">默认</option>
							<!--{foreach from=$ifiles item=file name=counter}-->
							<option value="<!--{$file.filename}-->" <!--{if $file.filename eq $results->getIndextpl()}-->selected<!--{/if}-->><!--{$file.name}--></option>
							<!--{/foreach}-->
							</select>&nbsp;<a class="tip" onMouseOut="Tip.close(this)" onMouseOver="Tip.show(this,'分类封面模板默认是:index/channel.php<br>模板路径格式为:index/模板文件名','250','10');"><img src="imgs/Images/icon_tip.gif" width="16" height="16"></a>
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>文件目录:</td>
						<td colspan="2">
							&nbsp;<input name='filename' id='filename' type='text' value='<!--{$results->getFilename()}-->'>&nbsp;<a class="tip" onMouseOut="Tip.close(this)" onMouseOver="Tip.show(this,'此分类生成html文件后存放的目录,不填写默认的目录名为分类ID','0','10');"><img src="imgs/Images/icon_tip.gif" width="16" height="16"></a>
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>分类命名规则:</td>
						<td colspan="2">
							&nbsp;<input name='listrule' id='listrule' type='text' value='<!--{$results->getListrule()}-->'>&nbsp;<a class="tip" onMouseOut="Tip.close(this)" onMouseOver="Tip.show(this,'此分类列表生成html文件的文件名命名规则,例如：list_{CID}_{PID}.html<br>{CID} 分类ID<br>{AID} 文章ID<br>{PID} 分页页码数,必须包含_{PID}.html<br><br>默认为：list_{PID}.html<br><br>分类封面生成html文件后文件名固定为：channel.html','420','80');"><img src="imgs/Images/icon_tip.gif" width="16" height="16"></a>
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>文档命名规则:</td>
						<td colspan="2">
							&nbsp;<input name='articlerule' id='articlerule' type='text' value='<!--{$results->getArticlerule()}-->'>&nbsp;<a class="tip" onMouseOut="Tip.close(this)" onMouseOver="Tip.show(this,'此分类文档生成html文件的文件名命名规则,例如：article_{M}{D}_{AID}.html<br>{Y}、{M}、{D} 年月日<br>{TIMESTAMP} INT类型的UNIX时间戳<br>{AID} 文章ID,必须包含_{PID}.html<br><br>默认为：article_{AID}.html<br><br>文章也可在添加编辑文档时给该文档设置单独的文件名','360','90');"><img src="imgs/Images/icon_tip.gif" width="16" height="16"></a>
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>浏览权限:</td>
						<td colspan="2">
							&nbsp;<select name="usergroup_id">
							<option value='0' <!--{if $results->getUsergroupId()==0}-->selected<!--{/if}-->>匿名用户</option>
							<!--{foreach from=$usergroups item=usergroup}-->
								<option value='<!--{$usergroup->getLevel()}-->' <!--{if $usergroup->getLevel()==$results->getUsergroupId()}-->selected<!--{/if}-->><!--{$usergroup->getName()}--></option>
							<!--{/foreach}-->
							</select>
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
	</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr > 
		<td height="30" valign='middle'>
			<div id='_PageBar_buttom' class="pageBarWrap" style="padding-top:6px;clear:both;bottom:0px; height:30px; line-height:30px;"><div class="pageBar" style='float:right;font-family:Tahoma'></div><div style='float:left;font-family:Tahoma'><a href='javascript:CheckForm();' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon001a16.gif" /><b>保存&nbsp;</b></a><a href='javascript:ResetForm();' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon001a13.gif" /><b>重置&nbsp;</b></a><a href='javascript:history.back(-1);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon008a20.gif" /><b>返回&nbsp;</b></a>&nbsp;&nbsp;<label><input type="checkbox" name="goon" id="goon" value="1">保存后继续添加</label></div></div>
		</td>
	</tr>
</table>

<!--内容结束-->
		</td>
		</tr>
	</table></td>
  </tr>
  </form>
</table>
</body>
</html>