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