{include file="public/layout" /}
{include file="shop_product/left" /}

- 商品添加只允许发布在最后一级分类

{eq name="'ShopProduct@arctype_add'|is_check_access" value="1"}
新增商品分类
{/eq}

{if condition="!empty($tree['cookied_treeclicked'])"} {else /} {/if}分类名称 | 分类图片 | 显示 | 创建时间 | 操作 | 排序
--- | --- | --- | --- | --- | ---

{empty name="arctype_list"}

{else /}

{foreach name="arctype_list" item="vo" key="k" }
{gt name='vo.level' value='0'} {php} if (1 == $vo['level']) { echo ''; } else if ($vo['level'] >= 2) { echo ''; } {/php} {/gt} {gt name="vo.has_children" value="0"} {else /} {/gt} {eq name="'ShopProduct@arctype_add'|is_check_access" value="1"} {else /} {$vo.typename} {/eq} |  | {if condition='$vo.is_hidden eq 1'} 否 {else /} 是 {/if} | {$vo.add_time|date='Y-m-d H:i:s',###} | 编辑 {eq name="'ShopProduct@arctype_add'|is_check_access" value="1"} {if condition="$vo['grade'] < ($arctype_max_level - 1)"} 增加子分类 {else /} 不支持增加 {/if} {/eq} {eq name="'ShopProduct@arctype_del'|is_check_access" value="1"} 删除 {/eq} | {eq name="'ShopProduct@arctype_add'|is_check_access" value="1"} {else /} {$vo.sort_order} {/eq}
{/foreach}

{/empty}
{include file="public/footer" /}