<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:60:"E:\xampp\htdocs\public/../app/admin\view\category\index.html";i:1540537070;s:57:"E:\xampp\htdocs\public/../app/admin\view\public\base.html";i:1532530212;}*/ ?>
<!DOCTYPE html><html><head><title>栏目列表_后台管理</title><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/css/bootstrap.min.css"><link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/css/admin.css">
<script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/jquery.min.js"></script><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/respond.min.js"></script><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/ad.js"></script><script src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/bootstrap.min.js"></script><script type="text/javascript" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/jquery.uploadify.min.js"></script></head><body>

<h2 class="sub-header">网站栏目管理</h2>[ <a href="/admin/Category/add">增加顶级栏目</a> ] [ <a href="/admin/Article/add">发布文章</a> ]<br><br>

<form name="listarc"><div class="table-responsive">
<table class="table table-striped table-hover">
<thead><tr><th>ID</th><th>名称</th><th>文章数</th><th>别名</th><th>更新时间</th><th>操作</th></tr></thead>
<tbody id="cat-list">
<?php $catlist = tree(get_category('arctype',0));foreach($catlist as $row){ ?>
<tr id="cat-<?php echo $row["id"]; ?>">
<td><?php echo $row["id"]; ?></td>
<td><a href="/admin/Article?id=<?php echo $row["id"]; ?>"><?php for($i=0;$i<$row["deep"];$i++){echo "— ";}echo $row["name"]; ?></a></td><td><?php echo catarcnum($row["id"],'Article'); ?></td><td><?php echo $row["typedir"]; ?></td><td><?php echo date('Y-m-d',$row["addtime"]); ?></td>
<td><a href="<?php echo get_front_url(array("type"=>"list","catid"=>$row["id"])); ?>" target="_blank">预览</a> | <a href="/admin/Article/add?catid=<?php echo $row["id"]; ?>">发布文章</a> | <a href="/admin/Category/add?reid=<?php echo $row["id"]; ?>">增加子类</a> | <a href="/admin/Category/edit?id=<?php echo $row["id"]; ?>">更改</a> | <a onclick="delconfirm('/admin/Category/del?id=<?php echo $row["id"]; ?>')" href="javascript:;">删除</a></td>
</tr><?php } ?>
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->

</body></html>