<?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/';
</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="55%"><span style='float:left'><b>栏目名称</b></span></td>
<td width="12%"><strong>类型</strong></td>
<td width="5%"><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 \'article%\' ORDER BY orderid'}-->
		<!--{foreach key=key from='micefun'|CategoryLists:$subsql:0:0 item=Category}-->

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

			<!--{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}-->
			
			<tr onmouseover="changeto()" onmouseout="changeback()" style="background-color:#F9FBFC" level="<!--{$Category2->getDepth()}-->">
			<!--{assign var=counter value=$counter+1}-->
			<td rowno="<!--{$counter}-->"><!--{$counter}--></td>
			<td><input name="checkbox[<!--{$Category2->getCategoryId()}-->]" id="checkbox[<!--{$Category2->getCategoryId()}-->]" type="checkbox" value="<!--{$Category2->getCategoryId()}-->"/></td>
			<td title="<!--{$Category2->getTitle()}-->"><q style='padding:0 8px'></q><!--{if 0==$Category2->getChildcount()}--><img src='imgs/Images/butNoChild.gif'/><!--{else}--><img src='imgs/Images/butExpand.gif' onclick='Fold(this)'/><!--{/if}--><a href="<!--{$edit}--><!--{$Category2->getCategoryId()}-->"><!--{$Category2->getTitle()}--></a></td>
			<td align="center"><!--{assign var=typeid value=$Category2->getType()}--><!--{$categorytype[$typeid].name}--> <img src="imgs/Icons/<!--{$Category2->getType()}-->.gif"></td>
			<td align="center"><!--{if 0==$Category2->getIsvisible()}--><img src='imgs/Icons/icon403a12.gif' alt="显示"><!--{/if}--><!--{if 1==$Category2->getIsvisible()}-->隐藏<!--{/if}--></td>
			<td align="center"><!--{$Category2->getDepth()}--></td>
			<td align="center"><a href="<!--{$edit}--><!--{$Category2->getCategoryId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$preview}--><!--{$Category2->getCategoryId()}-->" target="_blank"><img src='imgs/Icons/icon003a15.gif' alt="预览" border="0"></a><a href="<!--{$delete}--><!--{$Category2->getCategoryId()}-->" onclick="JavaScript:return confirm('确定删除吗?')"><img src='imgs/Icons/icon003a3.gif' alt="删除" border="0"></a></td>
			</tr>
			
			<!--第3层开始-->
			<!--{if $Category2->getChildcount()>0}-->

				<!--{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}-->
				
				<tr onmouseover="changeto()" onmouseout="changeback()" style="background-color:#F9FBFC"    level="<!--{$Category3->getDepth()}-->">
				<!--{assign var=counter value=$counter+1}-->
				<td rowno="<!--{$counter}-->"><!--{$counter}--></td>
				<td><input name="checkbox[<!--{$Category3->getCategoryId()}-->]" id="checkbox[<!--{$Category3->getCategoryId()}-->]" type="checkbox" value="<!--{$Category3->getCategoryId()}-->"/></td>
				<td title="<!--{$Category3->getTitle()}-->"><q style='padding:0 8px'></q><q style='padding:0 8px'></q><!--{if 0==$Category3->getChildcount()}--><img src='imgs/Images/butNoChild.gif'/><!--{else}--><img src='imgs/Images/butExpand.gif' onclick='Fold(this)'/><!--{/if}--><a href="<!--{$edit}--><!--{$Category3->getCategoryId()}-->"><!--{$Category3->getTitle()}--></a></td>
				<td align="center"><!--{assign var=typeid value=$Category3->getType()}--><!--{$categorytype[$typeid].name}--> <img src="imgs/Icons/<!--{$Category3->getType()}-->.gif"></td>
				<td align="center"><!--{if 0==$Category3->getIsvisible()}--><img src='imgs/Icons/icon403a12.gif' alt="显示"><!--{/if}--><!--{if 1==$Category3->getIsvisible()}-->隐藏<!--{/if}--></td>
				<td align="center"><!--{$Category3->getDepth()}--></td>
				<td align="center"><a href="<!--{$edit}--><!--{$Category3->getCategoryId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$preview}--><!--{$Category3->getCategoryId()}-->" target="_blank"><img src='imgs/Icons/icon003a15.gif' alt="预览" border="0"></a><a href="<!--{$delete}--><!--{$Category3->getCategoryId()}-->" onclick="JavaScript:return confirm('确定删除吗?')"><img src='imgs/Icons/icon003a3.gif' alt="删除" border="0"></a></td>
				</tr>

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

					<!--{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}-->
					
					<tr onmouseover="changeto()" onmouseout="changeback()" style="background-color:#F9FBFC"    level="<!--{$Category4->getDepth()}-->">
					<!--{assign var=counter value=$counter+1}-->
					<td rowno="<!--{$counter}-->"><!--{$counter}--></td>
					<td><input name="checkbox[<!--{$Category4->getCategoryId()}-->]" id="checkbox[<!--{$Category4->getCategoryId()}-->]" type="checkbox" value="<!--{$Category4->getCategoryId()}-->"/></td>
					<td title="<!--{$Category4->getTitle()}-->"><q style='padding:0 8px'></q><q style='padding:0 8px'></q><q style='padding:0 8px'></q><!--{if 0==$Category4->getChildcount()}--><img src='imgs/Images/butNoChild.gif'/><!--{else}--><img src='imgs/Images/butExpand.gif' onclick='Fold(this)'/><!--{/if}--><a href="<!--{$edit}--><!--{$Category4->getCategoryId()}-->"><!--{$Category4->getTitle()}--></a></td>
					<td align="center"><!--{assign var=typeid value=$Category4->getType()}--><!--{$categorytype[$typeid].name}--> <img src="imgs/Icons/<!--{$Category4->getType()}-->.gif"></td>
					<td align="center"><!--{if 0==$Category4->getIsvisible()}--><img src='imgs/Icons/icon403a12.gif' alt="显示"><!--{/if}--><!--{if 1==$Category4->getIsvisible()}-->隐藏<!--{/if}--></td>
					<td align="center"><!--{$Category4->getDepth()}--></td>
					<td align="center"><a href="<!--{$edit}--><!--{$Category4->getCategoryId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$preview}--><!--{$Category4->getCategoryId()}-->" target="_blank"><img src='imgs/Icons/icon003a15.gif' alt="预览" border="0"></a><a href="<!--{$delete}--><!--{$Category4->getCategoryId()}-->" onclick="JavaScript:return confirm('确定删除吗?')"><img src='imgs/Icons/icon003a3.gif' alt="删除" border="0"></a></td>
					</tr>

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

						<!--{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}-->
						
						<tr onmouseover="changeto()" onmouseout="changeback()" style="background-color:#F9FBFC"    level="<!--{$Category5->getDepth()}-->">
						<!--{assign var=counter value=$counter+1}-->
						<td rowno="<!--{$counter}-->"><!--{$counter}--></td>
						<td><input name="checkbox[<!--{$Category5->getCategoryId()}-->]" id="checkbox[<!--{$Category5->getCategoryId()}-->]" type="checkbox" value="<!--{$Category5->getCategoryId()}-->"/></td>
						<td title="<!--{$Category5->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==$Category5->getChildcount()}--><img src='imgs/Images/butNoChild.gif'/><!--{else}--><img src='imgs/Images/butExpand.gif' onclick='Fold(this)'/><!--{/if}--><a href="<!--{$edit}--><!--{$Category5->getCategoryId()}-->"><!--{$Category5->getTitle()}--></a></td>
						<td align="center"><!--{assign var=typeid value=$Category5->getType()}--><!--{$categorytype[$typeid].name}--> <img src="imgs/Icons/<!--{$Category5->getType()}-->.gif"></td>
						<td align="center"><!--{if 0==$Category5->getIsvisible()}--><img src='imgs/Icons/icon403a12.gif' alt="显示"><!--{/if}--><!--{if 1==$Category5->getIsvisible()}-->隐藏<!--{/if}--></td>
						<td align="center"><!--{$Category5->getDepth()}--></td>
						<td align="center"><a href="<!--{$edit}--><!--{$Category5->getCategoryId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$preview}--><!--{$Category5->getCategoryId()}-->" target="_blank"><img src='imgs/Icons/icon003a15.gif' alt="预览" border="0"></a><a href="<!--{$delete}--><!--{$Category5->getCategoryId()}-->" onclick="JavaScript:return confirm('确定删除吗?')"><img src='imgs/Icons/icon003a3.gif' alt="删除" border="0"></a></td>
						</tr>

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

							<!--{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}-->
							
							<tr onmouseover="changeto()" onmouseout="changeback()" style="background-color:#F9FBFC"    level="<!--{$Category6->getDepth()}-->">
							<!--{assign var=counter value=$counter+1}-->
							<td rowno="<!--{$counter}-->"><!--{$counter}--></td>
							<td><input name="checkbox[<!--{$Category6->getCategoryId()}-->]" id="checkbox[<!--{$Category6->getCategoryId()}-->]" type="checkbox" value="<!--{$Category6->getCategoryId()}-->"/></td>
							<td title="<!--{$Category6->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==$Category6->getChildcount()}--><img src='imgs/Images/butNoChild.gif'/><!--{else}--><img src='imgs/Images/butExpand.gif' onclick='Fold(this)'/><!--{/if}--><a href="<!--{$edit}--><!--{$Category6->getCategoryId()}-->"><!--{$Category6->getTitle()}--></a></td>
							<td align="center"><!--{assign var=typeid value=$Category6->getType()}--><!--{$categorytype[$typeid].name}--> <img src="imgs/Icons/<!--{$Category6->getType()}-->.gif"></td>
							<td align="center"><!--{if 0==$Category6->getIsvisible()}--><img src='imgs/Icons/icon403a12.gif' alt="显示"><!--{/if}--><!--{if 1==$Category6->getIsvisible()}--><img src='imgs/Icons/icon403a11.gif' alt="隐藏"><!--{/if}--></td>
							<td align="center"><!--{$Category6->getDepth()}--></td>
							<td align="center"><a href="<!--{$edit}--><!--{$Category6->getCategoryId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$preview}--><!--{$Category6->getCategoryId()}-->" target="_blank"><img src='imgs/Icons/icon003a15.gif' alt="预览" border="0"></a><a href="<!--{$delete}--><!--{$Category6->getCategoryId()}-->" 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>