{template '_header'}

商品分类

    {loop $category $row} {if empty($row['parentid'])}
  1. [ID: {$row['id']}] {$row['name']}
    1,'id'=>$row['id']))}' data-switch-value1='1|显示|label label-success|{php echo merchUrl('goods/category/enabled',array('enabled'=>0,'id'=>$row['id']))}' {/if} > {if $row['enabled']==1}显示{else}隐藏{/if}
    {ifp 'goods.category.edit|goods.category.view'} {/if}
    {if count($children[$row['id']])>0}
      {loop $children[$row['id']] $child}
    1.   [ID: {$child['id']}] {$child['name']}
      1,'id'=>$child['id']))}' data-switch-value1='1|显示|label label-success|{php echo merchUrl('goods/category/enabled',array('enabled'=>0,'id'=>$child['id']))}' {/if} > {if $child['enabled']==1}显示{else}隐藏{/if}
      {ifp 'goods.category.edit|goods.category.view'}{/if}
      {if count($children[$child['id']])>0 && intval($shopset['catlevel'])==3}
        {loop $children[$child['id']] $third}
      1.   [ID: {$third['id']}] {$third['name']}
        1,'id'=>$third['id']))}' data-switch-value1='1|显示|label label-success|{php echo merchUrl('goods/category/enabled',array('enabled'=>0,'id'=>$third['id']))}' {/if} > {if $third['enabled']==1}显示{else}隐藏{/if}
        {ifp 'goods.category.edit|goods.category.view'}{/if}
      2. {/loop}
      {/if}
    2. {/loop}
    {/if}
  2. {/if} {/loop}
提示:1. 隐藏的分类,在商户店铺的分类中将不会显示
          2. 如要增加分类,请联系平台添加
{template '_footer'}