{template 'header'}
{php $mid = $moduleid;} {php $c0 = get_maincat(0, $mid, 1);}

{loop $c0 $k0 $v0} {if $k0 < 16 && $v0[child]} {php $_c1 = get_maincat($v0[catid], $mid, 2);} {php $c1 = get_maincat($v0[catid], $mid);}
- > {$v0[catname]} {if $_c1} {$_c1[0][catname]} {else} {$c1[0][catname]} {/if}
  {loop $c1 $k1 $v1}
  {set_style($v1[catname], $v1[style])}
  {if $v1[child]} {php $c2 = get_maincat($v1[catid], $mid);}
    {loop $c2 $k2 $v2} {if $k2}|{/if}{set_style($v2[catname], $v2[style])} {/loop}
  {/if}
  {/loop}
{/if} {/loop}

{ad(14)}

- 推荐
- 上新
- 人气
- 热销
- 热评

- 网站动态

购物车
优惠券
商品关注
浏览历史
{loop $c0 $k0 $v0} {if $v0[child]}

{$v0[catname]}

{php $child = get_maincat($v0[catid], $moduleid, 1);}

{loop $child $i $c}
- {set_style($c[catname], $c[style])}
{/loop}

{loop $tags $i $t}
{$DT[money_sign]}{$t[price]}

{$t[title]}

{/loop}
{/if} {/loop}
{template 'footer'}