<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl>$nc_charset</tpl>" />
<title><tpl> $admin_article_class_list </tpl></title><!-- 文章分类列表 -->
<link type="text/css" rel="stylesheet" href="<tpl>$Site_Url</tpl>/admin/templates/css/toolbox.css" />
<link type="text/css" rel="stylesheet" href="<tpl>$Site_Url</tpl>/admin/templates/css/main.css" />
<script type="text/javascript" src="<tpl>$Site_Url</tpl>/js/jquery/jquery.js"></script>
<script type="text/javascript" src="<tpl>$Site_Url</tpl>/admin/templates/global.js"></script>
</head>

<body>
<div id="content">
	<h2><tpl> $admin_header_article_manage </tpl><!-- 文章管理 --> >> <tpl> $admin_article_class_list </tpl><!-- 文章分类列表 -->
    	<span class="alignRight"><a href="admin_article_class.php?action=add_article_class" target="_self">{<tpl> $admin_article_class_add </tpl><!-- 添加文章分类 -->}</a></span>    
    </h2>
    <div class="entry-body" id="p-list-div">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" id="pListTab" class="stripeMe">
          <tr>
            <th><tpl> $admin_article_class_list_name </tpl><!-- 分类名称 --></th>
            <th><tpl> $admin_article_class_list_ifput </tpl><!-- 是否发布 --></th>
			<th><tpl> $admin_article_class_menu_ifput </tpl><!-- 导航显示 --></th>
            <th><tpl> $admin_article_class_list_sort </tpl><!-- 分类排行 --></th>
            <th><tpl> $admin_article_class_list_oper </tpl><!-- 操作 --></th>
          </tr>
		  <tpl> section name=list loop=$article_class </tpl>
          <tr>
            <td class="ac"><span><tpl>if $article_class[list].article_class_topid!=0</tpl>&nbsp;|--<tpl>/if</tpl><a href="admin_article_class.php?action=add_article_class&class_id=<tpl> $article_class[list].article_class_id </tpl>"><tpl> $article_class[list].article_class_name </tpl></a></span></td>
            <td>
			<span id="state_<tpl> $article_class[list].article_class_id</tpl>"><a onclick="nc_state_update('<tpl> $article_class[list].article_class_id</tpl>','article_class_state','<tpl> $article_class[list].article_class_state </tpl>','state_<tpl> $article_class[list].article_class_id</tpl>');"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_<tpl> $article_class[list].article_class_state </tpl>.gif" alt="<tpl>$admin_article_list_edit_state</tpl>" /></a></span></td>
            <td>
			<span id="article_class_menu<tpl> $article_class[list].article_class_id</tpl>"><a onclick="nc_state_update('<tpl> $article_class[list].article_class_id</tpl>','article_class_menu','<tpl> $article_class[list].article_class_menu </tpl>','article_class_menu<tpl> $article_class[list].article_class_id</tpl>');"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_<tpl> $article_class[list].article_class_menu </tpl>.gif" alt="<tpl>$admin_article_list_edit_state</tpl>" /></a></span></td>
            <td><tpl> $article_class[list].article_class_sort </tpl></td>
            <td class="ao">
            	<tpl>if $article_class[list].article_class_topid==0 and $article_class[list].article_class_id!=1 </tpl><a href="admin_article_class.php?action=add_article_class&top_id=<tpl> $article_class[list].article_class_id </tpl>" ><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_folder_add.gif" title="<tpl> $admin_article_class_list_add_sub </tpl>" /><!-- 添加子分类 --></a> <tpl>/if</tpl>
            	<a href="admin_article_class.php?action=add_article_class&class_id=<tpl> $article_class[list].article_class_id </tpl>"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_edit.gif" title="<tpl> $admin_article_class_list_deit </tpl>" /><!-- 编辑 --></a> 
              <tpl>if  $article_class[list].article_class_id!=1 </tpl><a href="admin_article_class.php?action=del_article_class&class_id=<tpl> $article_class[list].article_class_id </tpl>" onclick="return confirm('<tpl>$admin_article_class_del_info</tpl>')"><img src="<tpl>$Site_Url</tpl>/admin/templates/images/icon_cancel.gif" title="<tpl> $admin_article_class_list_del </tpl>" /><!-- 删除 --></a><tpl>/if</tpl></td>
          </tr>
		  <tpl> /section </tpl>
          <tr>
            <td colspan="5" class="searchbar">
              <div class="pagebar">&nbsp;</div><!-- 分页 --></td>
          </tr>
        </table>
    </div>
    <!--  end of entry-body  -->
<tpl>include_php file ='admin_footer.php'</tpl><!-- 底部版权信息 -->
</div><!--  end of content  -->
<script language="javascript">
<!--
/* ajax修改状态 */
function nc_state_update(article_class_id,ajax_type,old_state,id) {
	$.get('admin_article_class.php',{'action':'article_class_ajax','ajax_type':ajax_type,'old_state':old_state,'article_class_id':article_class_id,'css_id':id},function(data){
		$("#"+id).html(data);
	});
}
//-->
</script>
</body>
</html>
