{include file='ebcms@common/header' /}

栏目管理

{php} $rules = \app\content\model\Channel::with('extend') -> order('sort desc,id asc') -> select(); $rules = \ebcms\Tree::tree($rules); $data = []; \ebcms\Tree::leveltree($rules,$data); {/php} {foreach name='data' item='vo'} {/foreach}
排序 ID 操作 状态 标题 路径 模型 模板 跳转 内容数
{$vo.id} {if condition="check_auth('delete')"} {/if} {if condition="check_auth('edit')"} {/if} {if condition="check_auth('status')"} {eq name='vo.status' value='1'} {else/} {/eq} {/if} {$vo._level|str_repeat='   ',###}┣ {$vo.title} {$vo._level|str_repeat='   ',###}┣{$vo.name} {if condition="$vo['extend']['title'] !== null"}{$vo.extend.title}{/if} {$vo.tpl|default='channel'}.html - {$vo.tpl_detail|default='detail'}.html {$vo.eb_url} {$vo.count}
{include file='ebcms@common/footer' /}