<?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" />
<script language="JavaScript">
var baseurl = '<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/';
//alert(<!--{$filecategoryid}-->);
</script>
<script type="text/javascript" src="js/Main.js"></script>
<script language="JavaScript">
function add(){
	window.location.href="<!--{$create}-->";
	window.event.returnValue = false;
}

function edit(){
	var arr = $("contentlist").$T("input");
	var flag = true;

	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("value")>0){
			if($("checkbox["+c.$A("value")+"]").checked){
				window.location.href="<!--{$edit}-->"+c.$A("value");
				window.event.returnValue = false;
				flag = false;
				return;
			}
		}
	}

	if(flag){
		Dialog.alert( "请先选择要编辑的分类！" ) ;
	}

	return ;
}
 
function preview(){
	var arr = $("contentlist").$T("input");
	var flag = true;

	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("value")>0){
			if($("checkbox["+c.$A("value")+"]").checked){
				window.open("<!--{$preview}-->"+c.$A("value"));
				flag = false;
			}
		}
	}

	if(flag){
		Dialog.alert( "请先选择要预览的分类！" ) ;
	}
	
	return;
}

function del(){
	var arr = $("contentlist").$T("input");
	var flag = true;

	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("value")>0){
			if($("checkbox["+c.$A("value")+"]").checked){
				document.form1.submit();
				flag = false;
				return;
			}
		}
	}

	if(flag){
		Dialog.alert( "请先选择要删除的分类！" ) ;
	}

	return ;
}
</script>
</head>

<body>
<table width="100%" border="0" cellspacing="6" cellpadding="0" style="border-collapse: separate; border-spacing: 6px;">
	 <form action="<!--{$delete}-->" method="post" name="form1" id="form1">
      <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:void(0);' class='micePushBtn' tabindex='-1' id='BtnAdd' onClick="add();"><img src="imgs/Icons/icon003a2.gif" width="20" height="20" /><b>新建&nbsp;</b></a> 
				<a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnEdit' onClick="edit();return false;"><img src="imgs/Icons/icon003a4.gif" width="20" height="20" /><b>编辑&nbsp;</b></a> 
				<a href='javascript:void(0);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='BtnPreview' onClick="preview();return false;" priv="article_browse" ><img src="imgs/Icons/icon003a15.gif" width="20" height="20" /><b>预览&nbsp;</b></a> 
				<a href='javascript:void(0);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='BtnDel' onClick="del();return false;" priv="article_modify" ><img src="imgs/Icons/icon003a3.gif" width="20" height="20" /><b>删除&nbsp;</b></a></div>
			 </td>
            </tr>
            <tr>
              <td style="padding-top:0px;padding-left:6px;padding-right:6px;padding-bottom:8px;">

<!--内容开始-->
<table width="100%" border='0' align="center" cellpadding='0' cellspacing='0'>
<tr>
<td style="padding:0px 5px;">

<table width="99%" cellpadding="2" cellspacing="0" class="dataTable" bgcolor="#BEBEBE" id="contentlist">
<tr class="dataTableHead">
<td width="4%" height="30"></td>
<td width="4%" height="30"><input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this.form)' value='checkbox'></td>
<td width="60%"><span style='float:left'><b>栏目名称</b></span></td>
<td width="12%"><strong>类型</strong></td>
<td width="8%"><strong>级别</strong></td>
<td width="12%"><strong>操作</strong></td>
</tr>
		<!--{assign var=counter value=0}-->
		<!--{assign var=subsql value='WHERE parentid=0 AND type LIKE \'m%\' ORDER BY orderid'}-->
		<!--{foreach key=key from='micefun'|FilecategoryLists:$subsql:0:0 item=Filecategory}-->

		<tr onmouseover="changeto()" onmouseout="changeback()" style="background-color:#F9FBFC" level="<!--{$Filecategory->getDepth()}-->">
		<!--{assign var=counter value=$counter+1}-->
		<td rowno="<!--{$counter}-->"><!--{$counter}--></td>
		<td><input name="checkbox[<!--{$Filecategory->getFilecategoryId()}-->]" id="checkbox[<!--{$Filecategory->getFilecategoryId()}-->]" type="checkbox" value="<!--{$Filecategory->getFilecategoryId()}-->"/></td>
		<td title="<!--{$Filecategory->getTitle()}-->"><!--{if 0==$Filecategory->getChildcount()}--><img src='imgs/Images/butNoChild.gif'/><!--{else}--><img src='imgs/Images/butExpand.gif' onclick='Fold(this)'/><!--{/if}--><a href="<!--{$edit}--><!--{$Filecategory->getFilecategoryId()}-->"><!--{$Filecategory->getTitle()}--></a></td>
		<td align="center"><!--{assign var=typeid value=$Filecategory->getType()}--><!--{$filecategorytype[$typeid].name}--></td>
		<td align="center"><!--{$Filecategory->getDepth()}--></td>
		<td align="center"><a href="<!--{$edit}--><!--{$Filecategory->getFilecategoryId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$delete}--><!--{$Filecategory->getFilecategoryId()}-->" onclick="JavaScript:return confirm('确定删除吗?')"><img src='imgs/Icons/icon003a3.gif' alt="删除" border="0"></a></td>
		</tr>
		
		<!--第2层开始-->
		<!--{if $Filecategory->getChildcount()>0}-->

			<!--{assign var=subsql2 value='WHERE parentid='|cat:$Filecategory->getFilecategoryId()|cat:' AND type LIKE \'m%\' ORDER BY orderid'}-->
			<!--{foreach key=key from='micefun'|FilecategoryLists:$subsql2:0:0 item=Filecategory2}-->
			
			<tr onmouseover="changeto()" onmouseout="changeback()" style="background-color:#F9FBFC" level="<!--{$Filecategory2->getDepth()}-->">
			<!--{assign var=counter value=$counter+1}-->
			<td rowno="<!--{$counter}-->"><!--{$counter}--></td>
			<td><input name="checkbox[<!--{$Filecategory2->getFilecategoryId()}-->]" id="checkbox[<!--{$Filecategory2->getFilecategoryId()}-->]" type="checkbox" value="<!--{$Filecategory2->getFilecategoryId()}-->"/></td>
			<td title="<!--{$Filecategory2->getTitle()}-->"><q style='padding:0 8px'></q><!--{if 0==$Filecategory2->getChildcount()}--><img src='imgs/Images/butNoChild.gif'/><!--{else}--><img src='imgs/Images/butExpand.gif' onclick='Fold(this)'/><!--{/if}--><a href="<!--{$edit}--><!--{$Filecategory2->getFilecategoryId()}-->"><!--{$Filecategory2->getTitle()}--></a></td>
			<td align="center"><!--{assign var=typeid value=$Filecategory2->getType()}--><!--{$filecategorytype[$typeid].name}--></td>
			<td align="center"><!--{$Filecategory2->getDepth()}--></td>
			<td align="center"><a href="<!--{$edit}--><!--{$Filecategory2->getFilecategoryId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$delete}--><!--{$Filecategory2->getFilecategoryId()}-->" onclick="JavaScript:return confirm('确定删除吗?')"><img src='imgs/Icons/icon003a3.gif' alt="删除" border="0"></a></td>
			</tr>
			
			<!--第3层开始-->
			<!--{if $Filecategory2->getChildcount()>0}-->

				<!--{assign var=subsql3 value='WHERE parentid='|cat:$Filecategory2->getFilecategoryId()|cat:' AND type LIKE \'m%\' ORDER BY orderid'}-->
				<!--{foreach key=key from='micefun'|FilecategoryLists:$subsql3:0:0 item=Filecategory3}-->
				
				<tr onmouseover="changeto()" onmouseout="changeback()" style="background-color:#F9FBFC"    level="<!--{$Filecategory3->getDepth()}-->">
				<!--{assign var=counter value=$counter+1}-->
				<td rowno="<!--{$counter}-->"><!--{$counter}--></td>
				<td><input name="checkbox[<!--{$Filecategory3->getFilecategoryId()}-->]" id="checkbox[<!--{$Filecategory3->getFilecategoryId()}-->]" type="checkbox" value="<!--{$Filecategory3->getFilecategoryId()}-->"/></td>
				<td title="<!--{$Filecategory3->getTitle()}-->"><q style='padding:0 8px'></q><q style='padding:0 8px'></q><!--{if 0==$Filecategory3->getChildcount()}--><img src='imgs/Images/butNoChild.gif'/><!--{else}--><img src='imgs/Images/butExpand.gif' onclick='Fold(this)'/><!--{/if}--><a href="<!--{$edit}--><!--{$Filecategory3->getFilecategoryId()}-->"><!--{$Filecategory3->getTitle()}--></a></td>
				<td align="center"><!--{assign var=typeid value=$Filecategory3->getType()}--><!--{$filecategorytype[$typeid].name}--></td>
				<td align="center"><!--{$Filecategory3->getDepth()}--></td>
				<td align="center"><a href="<!--{$edit}--><!--{$Filecategory3->getFilecategoryId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$delete}--><!--{$Filecategory3->getFilecategoryId()}-->" onclick="JavaScript:return confirm('确定删除吗?')"><img src='imgs/Icons/icon003a3.gif' alt="删除" border="0"></a></td>
				</tr>

				<!--第4层开始-->
				<!--{if $Filecategory3->getChildcount()>0}-->

					<!--{assign var=subsql4 value='WHERE parentid='|cat:$Filecategory3->getFilecategoryId()|cat:' AND type LIKE \'m%\' ORDER BY orderid'}-->
					<!--{foreach key=key from='micefun'|FilecategoryLists:$subsql4:0:0 item=Filecategory4}-->
					
					<tr onmouseover="changeto()" onmouseout="changeback()" style="background-color:#F9FBFC"    level="<!--{$Filecategory4->getDepth()}-->">
					<!--{assign var=counter value=$counter+1}-->
					<td rowno="<!--{$counter}-->"><!--{$counter}--></td>
					<td><input name="checkbox[<!--{$Filecategory4->getFilecategoryId()}-->]" id="checkbox[<!--{$Filecategory4->getFilecategoryId()}-->]" type="checkbox" value="<!--{$Filecategory4->getFilecategoryId()}-->"/></td>
					<td title="<!--{$Filecategory4->getTitle()}-->"><q style='padding:0 8px'></q><q style='padding:0 8px'></q><q style='padding:0 8px'></q><!--{if 0==$Filecategory4->getChildcount()}--><img src='imgs/Images/butNoChild.gif'/><!--{else}--><img src='imgs/Images/butExpand.gif' onclick='Fold(this)'/><!--{/if}--><a href="<!--{$edit}--><!--{$Filecategory4->getFilecategoryId()}-->"><!--{$Filecategory4->getTitle()}--></a></td>
					<td align="center"><!--{assign var=typeid value=$Filecategory4->getType()}--><!--{$filecategorytype[$typeid].name}--></td>
					<td align="center"><!--{$Filecategory4->getDepth()}--></td>
					<td align="center"><a href="<!--{$edit}--><!--{$Filecategory4->getFilecategoryId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$delete}--><!--{$Filecategory4->getFilecategoryId()}-->" onclick="JavaScript:return confirm('确定删除吗?')"><img src='imgs/Icons/icon003a3.gif' alt="删除" border="0"></a></td>
					</tr>

					<!--第5层开始-->
					<!--{if $Filecategory4->getChildcount()>0}-->

						<!--{assign var=subsql5 value='WHERE parentid='|cat:$Filecategory4->getFilecategoryId()|cat:' AND type LIKE \'m%\' ORDER BY orderid'}-->
						<!--{foreach key=key from='micefun'|FilecategoryLists:$subsql5:0:0 item=Filecategory5}-->
						
						<tr onmouseover="changeto()" onmouseout="changeback()" style="background-color:#F9FBFC"    level="<!--{$Filecategory5->getDepth()}-->">
						<!--{assign var=counter value=$counter+1}-->
						<td rowno="<!--{$counter}-->"><!--{$counter}--></td>
						<td><input name="checkbox[<!--{$Filecategory5->getFilecategoryId()}-->]" id="checkbox[<!--{$Filecategory5->getFilecategoryId()}-->]" type="checkbox" value="<!--{$Filecategory5->getFilecategoryId()}-->"/></td>
						<td title="<!--{$Filecategory5->getTitle()}-->"><q style='padding:0 8px'></q><q style='padding:0 8px'></q><q style='padding:0 8px'></q><q style='padding:0 8px'></q><!--{if 0==$Filecategory5->getChildcount()}--><img src='imgs/Images/butNoChild.gif'/><!--{else}--><img src='imgs/Images/butExpand.gif' onclick='Fold(this)'/><!--{/if}--><a href="<!--{$edit}--><!--{$Filecategory5->getFilecategoryId()}-->"><!--{$Filecategory5->getTitle()}--></a></td>
						<td align="center"><!--{assign var=typeid value=$Filecategory5->getType()}--><!--{$filecategorytype[$typeid].name}--></td>
						<td align="center"><!--{$Filecategory5->getDepth()}--></td>
						<td align="center"><a href="<!--{$edit}--><!--{$Filecategory5->getFilecategoryId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$delete}--><!--{$Filecategory5->getFilecategoryId()}-->" onclick="JavaScript:return confirm('确定删除吗?')"><img src='imgs/Icons/icon003a3.gif' alt="删除" border="0"></a></td>
						</tr>

						<!--第6层开始-->
						<!--{if $Filecategory5->getChildcount()>0}-->

							<!--{assign var=subsql6 value='WHERE parentid='|cat:$Filecategory5->getFilecategoryId()|cat:' AND type LIKE \'m%\' ORDER BY orderid'}-->
							<!--{foreach key=key from='micefun'|FilecategoryLists:$subsql6:0:0 item=Filecategory6}-->
							
							<tr onmouseover="changeto()" onmouseout="changeback()" style="background-color:#F9FBFC"    level="<!--{$Filecategory6->getDepth()}-->">
							<!--{assign var=counter value=$counter+1}-->
							<td rowno="<!--{$counter}-->"><!--{$counter}--></td>
							<td><input name="checkbox[<!--{$Filecategory6->getFilecategoryId()}-->]" id="checkbox[<!--{$Filecategory6->getFilecategoryId()}-->]" type="checkbox" value="<!--{$Filecategory6->getFilecategoryId()}-->"/></td>
							<td title="<!--{$Filecategory6->getTitle()}-->"><q style='padding:0 8px'></q><q style='padding:0 8px'></q><q style='padding:0 8px'></q><q style='padding:0 8px'></q><q style='padding:0 8px'></q><!--{if 0==$Filecategory6->getChildcount()}--><img src='imgs/Images/butNoChild.gif'/><!--{else}--><img src='imgs/Images/butExpand.gif' onclick='Fold(this)'/><!--{/if}--><a href="<!--{$edit}--><!--{$Filecategory6->getFilecategoryId()}-->"><!--{$Filecategory6->getTitle()}--></a></td>
							<td align="center"><!--{assign var=typeid value=$Filecategory6->getType()}--><!--{$filecategorytype[$typeid].name}--></td>
							<td align="center"><!--{$Filecategory6->getDepth()}--></td>
							<td align="center"><a href="<!--{$edit}--><!--{$Filecategory6->getFilecategoryId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$delete}--><!--{$Filecategory6->getFilecategoryId()}-->" onclick="JavaScript:return confirm('确定删除吗?')"><img src='imgs/Icons/icon003a3.gif' alt="删除" border="0"></a></td>
							</tr>

							<!--{/foreach}-->

						<!--{/if}-->

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

						<!--{/foreach}-->

					<!--{/if}-->

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

					<!--{/foreach}-->

				<!--{/if}-->

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

				<!--{/foreach}-->

			<!--{/if}-->

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

			<!--{/foreach}-->

		<!--{/if}-->

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

		<!--{/foreach}-->

</table></td>
 </tr>
</table>
<table width="99%" 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:void(0);' class='micePushBtn' tabindex='-1' id='BtnAdd' onClick="add();"><img src="imgs/Icons/icon003a2.gif" width="20" height="20" /><b>新建&nbsp;</b></a> 
				<a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnEdit' onClick="edit();return false;"><img src="imgs/Icons/icon003a4.gif" width="20" height="20" /><b>编辑&nbsp;</b></a> 
				<a href='javascript:void(0);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='BtnPreview' onClick="preview();return false;" priv="article_browse" ><img src="imgs/Icons/icon003a15.gif" width="20" height="20" /><b>预览&nbsp;</b></a> 
				<a href='javascript:void(0);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='BtnDel' onClick="del();return false;" priv="article_modify" ><img src="imgs/Icons/icon003a3.gif" width="20" height="20" /><b>删除&nbsp;</b></a></div></div>
		</td>
	</tr>
</table>

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