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

### 栏目管理

ID | 排序 | 操作 | 状态 | 导航 | 标题 | 名称(路径) | 类型 | 模板 | 内容数
--- | --- | --- | --- | --- | --- | --- | --- | --- | ---
{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'}
{$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} | {if condition="check_auth('nav')"} {eq name='vo.nav' value='1'} {else/} {/eq} {/if} | {$vo._level|str_repeat=' ',###}┣ {$vo.title} | {in name='vo.type' value='channel,page'} {$vo._level|str_repeat=' ',###}┣{$vo.name} {/in} | {switch name='vo.type'} {case value='channel'} {if condition="$vo['extend']['title'] !== null"}{$vo.extend.title}{/if} {/case} {case value='jump'} 跳转 {/case} {case value='page'} 单页 {/case} {default/} {/switch} | {switch name='vo.type'} {case value='channel'} {$vo.tpl|default='channel'}.html - {$vo.tpl_detail|default='detail'}.html {/case} {case value='page'} {$vo.tpl|default='page'}.html {/case} {default/} {/switch} | {switch name='vo.type'} {case value='channel'} {$vo.count} {/case} {default/} {/switch}
{/foreach}

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