{php} $sortUrl = url('manager.category/sort'); $delUrl = url('manager.category/del'); {/php} {layout name="manager/layout" /}
{if $power_add}
{if $member['groupId'] == 1} 新增栏目
{/if}
{/if}
{empty name="items"} 无记录 {else /}

| 栏目 | 类型 | 前台菜单|手机底部|pc底部 | 操作
{foreach $items as $item}
| {$item.title} | {$item.modelName} | {$item.state?'是':'否'}|手机{$item.foot_show_mobile?'显示':'隐藏'}|PC{$item.foot_show?'显示':'隐藏'} | 向上 向下 编辑 {if $member['groupId'] == 1} 删除 {/if} {if $member['groupId'] == 1} 添加子栏目 {/if}
{if isset($item['children'])}

{foreach $item['children'] as $child}
| {$child.title} | {$child.modelName} | {$child.state?'是':'否'}|手机{$child.foot_show_mobile?'显示':'隐藏'}|PC{$child.foot_show?'显示':'隐藏'} | 向上 向下 编辑 {if $member['groupId'] == 1} 删除 {/if} {if $member['groupId'] == 1 || $child.create_child == 1} 添加子栏目 {/if}

{if isset($child['children']) && !empty($child['children'])} {foreach $child['children'] as $c}
| {$c.title} | {$c.modelName} | {$c.state?'是':'否'}|手机{$c.foot_show_mobile?'显示':'隐藏'}|PC{$c.foot_show?'显示':'隐藏'} | 向上 向下 编辑 {if $member['groupId'] == 1} 删除 {/if} {if $member['groupId'] == 1} 添加子栏目 {/if}
{/foreach} {/if}

{/foreach}

{/if}
{/foreach}

{/empty}