<?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 uploadmaimg(){
	var diag = new Dialog("Diag2");
    
	diag.Width = 700;
	diag.Height = 500;
	diag.Title = "上传组图";
	diag.URL = "<!--{$smarty.const.MICE_URL}-->admin.php/maimg/index/maimg_id/<!--{$maimg_id}-->";
	diag.OKEvent = uploadmaimgclose;	
	diag.show();
}

function uploadmaimgclose(){
	$D.close();
}

function onTreeClick(p){
	p = $(p);
	var checked=true;
	if($("CategoryIdS["+p.$A("cid")+"]").checked){
		checked=false;
	}
	$("CategoryIdS["+p.$A("cid")+"]").checked = checked;

	var level = p.$A("level");
	var innercode = p.$A("innercode");
	var arr = $("tree1").$T("P");
	var flag = true;
	var k=0;
	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("cid")){
			//选择该分类后，自动选择该分类的所有父分类
			var ncid=","+c.$A("cid")+",";
			var y=innercode.indexOf(ncid);
			if(y>='0'){				
				if(checked==true){
					$("CategoryIdS["+c.$A("cid")+"]").checked = checked;
				}else{
					var check_flag = false;
					for(var j=k;j<arr.length;j++){
						if(arr[i].$A("level")<level){
							if($("CategoryIdS["+arr[j].$A("cid")+"]").checked && arr[j].$A("level")>=level && arr[j].$A("cid")!=p.$A("cid")){
								check_flag = true;
								break;
							}
						}else{
							break;
						}
					}
					$("CategoryIdS["+c.$A("cid")+"]").checked = check_flag;					
				}			
			}
			
			//选择该分类后，自动选择该分类的所有子分类
			//if(c!=p&&flag){
			//	continue;
			//}
			//if(c==p){
			//	flag = false;
			//	continue;
			//}
			//if(c.$A("level")>level){
			//	$("CategoryIdS["+c.$A("cid")+"]").checked = checked;
			//}else{
			//	break;
			//}
		}
		k++;
	}

}

function onCheck(ele){
	ele = $(ele);
	//alert(ele.value);
	if(ele.type=="checkbox"){
		var p = ele.getParent("P");
		onTreeClick(p);
		return ;
		var checked = ele.checked;
		var level = p.$A("level");
		var innercode = p.$A("innercode");
		var arr = $("tree1").$T("P");
		var flag = true;
		for(var i=0;i<arr.length;i++){
			var c = arr[i];
			
			
			if(c.$A("cid")){
				//选择该分类后，自动选择该分类的所有父分类
				var ncid=","+c.$A("cid")+",";
				var y=innercode.indexOf(ncid);
				if(y>='0'){
					$("CategoryIdS["+c.$A("cid")+"]").checked = checked;
				}
				
				//选择该分类后，自动选择该分类的所有子分类
				//if(c!=p&&flag){
				//	continue;
				//}
				//if(c==p){
				//	flag = false;
				//	continue;
				//}
				//if(c.$A("level")>level){
				//	$("CategoryIdS["+c.$A("cid")+"]").checked = checked;
				//}else{
				//	break;
				//}
			}
		}
	}
}
</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/article3.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="70%" valign="top">
			<fieldset class="adminform">
				<legend>基本设置</legend>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height="280">
					<tr>
						<td width="65" class="keyred" height='20'>标 题:</td>
						<td colspan="2">
							<input name='article_id' id='article_id' type='hidden' value='<!--{$results->getArticleId()}-->'>
							&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="65" class="keyred" height='20'>视频文件:</td>
						<td colspan="2">
							&nbsp;<input name='upfile' id='upfile' type='text' size='35' value="<!--{'micefun'|MiceRestoreQuote:$results->getUpfile()}-->" verify="视频文件地址|NotNull">&nbsp;(请填写视频文件地址,<a href="javascript:uploadfile('upfile');"><font color="red">上传视频</font></a>)&nbsp;<a class="tip" onMouseOut="Tip.close(this)" onMouseOver="Tip.show(this,'单击【上传视频】可上传或查看以前上传的视频','0','0');"><img src="imgs/Images/icon_tip.gif" width="16" height="16"></a></td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>关键字:</td>
						<td colspan="2">
							&nbsp;<input name='tags' id='tags' type='text' size='35' maxlength='200' value='<!--{$results->getTags()}-->'>&nbsp;(多个标签用逗号[,]或空格分开)
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>缩略图:</td>
						<td colspan="2">
							&nbsp;<input name='img' id='img' type='text' size='35' value="<!--{'micefun'|MiceRestoreQuote:$results->getImg()}-->">&nbsp;(请填写图片地址,<a href="javascript:uploadfile('img');"><font color="red">上传缩略图</font></a>&nbsp;&nbsp;<a href="javascript:uploadmaimg();"><input name="maimg_id" id="maimg_id" type="hidden" value="<!--{$maimg_id}-->"><font color="red">上传组图</font></a>)&nbsp;<a class="tip" onMouseOut="Tip.close(this)" onMouseOver="Tip.show(this,'缩略图为空的时候,系统自动提取内容中的第一张图片作为缩略图','0','0');"><img src="imgs/Images/icon_tip.gif" width="16" height="16"></a></td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>跳转地址:</td>
						<td colspan="2">
							&nbsp;<input name='url' id='url' type='text' size='35' value="<!--{'micefun'|MiceRestoreQuote:$results->getUrl()}-->">&nbsp;(浏览此文档将跳转到该地址)
						</td>
					</tr>
					<tr>
						<td width="65" class="keyred" height='20'>分 类:<br><br><a class="tip" onMouseOut="Tip.close(this)" onMouseOver="Tip.show(this,'一个文档可选择多个分类,选择框变灰的分类类别不是【新闻文章】类型,无法选择,将鼠标放到分类前的图标上可查看此分类的类别','0','0');"><img src="imgs/Images/icon_tip.gif" width="16" height="16"></a>&nbsp;&nbsp;</td>
						<td colspan="2">
<div style="width:260px;height:155px;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'>文档库</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<!--{if $Category->getType()=="article3"}--> cid="<!--{$Category->getCategoryId()}-->"<!--{else}--> cid="0"<!--{/if}--> 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="CheckBox" <!--{if $Category->getType()=="article3"}-->name="CategoryIdS[<!--{$Category->getCategoryId()}-->]" id='CategoryIdS[<!--{$Category->getCategoryId()}-->]' value='<!--{$Category->getPath()}-->|' onClick="onCheck(this);" <!--{else}-->name="NoSelect[<!--{$Category->getCategoryId()}-->]" id='NoSelect[<!--{$Category->getCategoryId()}-->]' value='0' disabled <!--{/if}--><!--{'micefun'|IsChecked:$Category->getCategoryId():$results->getCategoryId():$category_id}-->><!--{$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<!--{if $Category2->getType()=="article3"}--> cid="<!--{$Category2->getCategoryId()}-->"<!--{else}--> cid="0"<!--{/if}--> 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="CheckBox" <!--{if $Category2->getType()=="article3"}-->name="CategoryIdS[<!--{$Category2->getCategoryId()}-->]" id='CategoryIdS[<!--{$Category2->getCategoryId()}-->]' value='<!--{$Category2->getPath()}-->|' onClick="onCheck(this);" <!--{else}-->name="NoSelect[<!--{$Category2->getCategoryId()}-->]" id='NoSelect[<!--{$Category2->getCategoryId()}-->]' value='0' disabled <!--{/if}--><!--{'micefun'|IsChecked:$Category2->getCategoryId():$results->getCategoryId():$category_id}-->><!--{$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<!--{if $Category3->getType()=="article3"}--> cid="<!--{$Category3->getCategoryId()}-->"<!--{else}--> cid="0"<!--{/if}--> 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="CheckBox" <!--{if $Category3->getType()=="article3"}-->name="CategoryIdS[<!--{$Category3->getCategoryId()}-->]" id='CategoryIdS[<!--{$Category3->getCategoryId()}-->]' value='<!--{$Category3->getPath()}-->|' onClick="onCheck(this);" <!--{else}-->name="NoSelect[<!--{$Category3->getCategoryId()}-->]" id='NoSelect[<!--{$Category3->getCategoryId()}-->]' value='0' disabled <!--{/if}--><!--{'micefun'|IsChecked:$Category3->getCategoryId():$results->getCategoryId():$category_id}-->><!--{$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<!--{if $Category4->getType()=="article3"}--> cid="<!--{$Category4->getCategoryId()}-->"<!--{else}--> cid="0"<!--{/if}--> 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="CheckBox" <!--{if $Category4->getType()=="article3"}-->name="CategoryIdS[<!--{$Category4->getCategoryId()}-->]" id='CategoryIdS[<!--{$Category4->getCategoryId()}-->]' value='<!--{$Category4->getPath()}-->|' onClick="onCheck(this);" <!--{else}-->name="NoSelect[<!--{$Category4->getCategoryId()}-->]" id='NoSelect[<!--{$Category4->getCategoryId()}-->]' value='0' disabled <!--{/if}--><!--{'micefun'|IsChecked:$Category4->getCategoryId():$results->getCategoryId():$category_id}-->><!--{$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<!--{if $Category5->getType()=="article3"}--> cid="<!--{$Category5->getCategoryId()}-->"<!--{else}--> cid="0"<!--{/if}--> 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="CheckBox" <!--{if $Category5->getType()=="article3"}-->name="CategoryIdS[<!--{$Category5->getCategoryId()}-->]" id='CategoryIdS[<!--{$Category5->getCategoryId()}-->]' value='<!--{$Category5->getPath()}-->|' onClick="onCheck(this);" <!--{else}-->name="NoSelect[<!--{$Category5->getCategoryId()}-->]" id='NoSelect[<!--{$Category5->getCategoryId()}-->]' value='0' disabled <!--{/if}--><!--{'micefun'|IsChecked:$Category5->getCategoryId():$results->getCategoryId():$category_id}-->><!--{$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<!--{if $Category6->getType()=="article3"}--> cid="<!--{$Category6->getCategoryId()}-->"<!--{else}--> cid="0"<!--{/if}--> 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="CheckBox" <!--{if $Category6->getType()=="article3"}-->name="CategoryIdS[<!--{$Category6->getCategoryId()}-->]" id='CategoryIdS[<!--{$Category6->getCategoryId()}-->]' value='<!--{$Category6->getPath()}-->|' onClick="onCheck(this);" <!--{else}-->name="NoSelect[<!--{$Category6->getCategoryId()}-->]" id='NoSelect[<!--{$Category6->getCategoryId()}-->]' value='0' disabled <!--{/if}--><!--{'micefun'|IsChecked:$Category6->getCategoryId():$results->getCategoryId():$category_id}-->><!--{$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>
							<input type="hidden" name="category_id" id="category_id">
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
		<td  width="30%" valign="top">
			<fieldset class="adminform">
				<legend>细节设置</legend>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height="280">
					<tr>
						<td width="65" class="key" height='20'>撰写时间:</td>
						<td colspan="2">
							&nbsp;<input name="ctime" id="cTime" type="text" class="input1" value="<!--{'micefun'|Num2Time2:$results->getCreatedat()}-->" size="10" micetype="Time" style="font-family: Arial; font-size: 9px;" />
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>撰写日期:</td>
						<td colspan="2">
							&nbsp;<input name="cdate" id="cDate" type="text" class="input1" value="<!--{'micefun'|Num2Date:$results->getCreatedat()}-->" size="14" micetype="Date" style="font-family: Arial; font-size: 10px;" />
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>文章来源:</td>
						<td colspan="2">
							&nbsp;<input name='comefrom' id='comefrom' type='text' value="<!--{if $results->getComefrom()==''}-->本站<!--{else}--><!--{$results->getComefrom()}--><!--{/if}-->">
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>浏览次数:</td>
						<td colspan="2">
							&nbsp;<input name='browses' id='browses' type='text' value='<!--{$results->getBrowses()}-->'></td>
					</tr>
					<tr>
						<td width="65" 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="65" class="key" height='20'>浏览权限:</td>
						<td colspan="2">
							&nbsp;<select name="usergroup_id">
							<option value='-1' <!--{if $results->getUsergroupId()==-1}-->selected<!--{/if}-->>和分类权限相同</option>
							<option value='0' <!--{if $results->getUsergroupId()==0}-->selected<!--{/if}-->>匿名用户</option>
							<!--{foreach from=$usergroups item=usergroup}-->
								<option value='<!--{$usergroup->getUsergroupId()}-->' <!--{if $usergroup->getUsergroupId()==$results->getUsergroupId()}-->selected<!--{/if}-->><!--{$usergroup->getName()}--></option>
							<!--{/foreach}-->
							</select>
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>消费点数:</td>
						<td colspan="2">
							&nbsp;<input name='pointnum' id='pointnum' type='text' value='<!--{$results->getPointnum()}-->' size="16">&nbsp;<a class="tip" onMouseOut="Tip.close(this)" onMouseOver="Tip.show(this,'浏览此文档扣取用户的点数(等已登录用户有效)<br>正值表示扣取用户点数,负值表示为用户加上的点数','0','10');"><img src="imgs/Images/icon_tip.gif" width="16" height="16"></a></td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>文件名:</td>
						<td colspan="2">
							&nbsp;<input name='filename' id='filename' type='text' value='<!--{$results->getFilename()}-->' size="16">&nbsp;<a class="tip" onMouseOut="Tip.close(this)" onMouseOver="Tip.show(this,'此文档生成html文件的文件名<br>默认按照该分类设置的规则命名<br><br>此文档生成html文件的文件名命名规则：<br>例如：article_{Y}{M}{D}_{AID}.html<br>{Y}、{M}、{D} 年月日<br>{TIMESTAMP} INT类型的UNIX时间戳<br>{AID} 文章ID,必须包含_{PID}.html<br><br>默认为：article_{AID}.html','240','80');"><img src="imgs/Images/icon_tip.gif" width="16" height="16"></a></td>
					</tr>
					<tr>
						<td width="65" 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="65" class="key" height='20'>置顶:</td>
						<td colspan="2">
							&nbsp;<input name='istop' id='istop' type="radio" value="1" <!--{if $results->getIstop()==1}-->checked<!--{/if}-->/>是
							&nbsp;<input name='istop' id='istop' type="radio" value="0" <!--{if $results->getIstop()==0}-->checked<!--{/if}-->/>否
						</td>
					</tr>
					<tr>
						<td width="65" class="key" height='20'>推荐:</td>
						<td colspan="2">
							&nbsp;<input name='iscommend' id='iscommend' type="radio" value="1" <!--{if $results->getIscommend()==1}-->checked<!--{/if}-->/>是
							&nbsp;<input name='iscommend' id='iscommend' type="radio" value="0" <!--{if $results->getIscommend()==0}-->checked<!--{/if}-->/>否
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
	</tr>
</table>
<table width="99%" align="center" border="0" cellpadding="0" cellspacing="0">
  <tr align="center">
	<td height="5">
		<fieldset class="adminform">
			<legend>视频描述</legend>
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td width="65"  class="key">内　容:</td>
					<td colspan="2">
						<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
							<tr > 
								<td  bgcolor="#F9F9F9" height="30" valign='middle'>
									<!--{$editor}-->
								</td>
							</tr>
						</table>
					</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>