{foreach $classtypedata as molds=‘16’ $v}
{if($v['isshow']==1)}
{if($v['pid']==0)}
{$v['classname']}{if($v['haschild'])}
{foreach $v['children']['list'] as $vv}
{if($vv['isshow']==1)}
{$vv['classname']}{/if}
{/foreach}
{/if}
{/if}
{/if}
{/foreach}
{foreach $classtypedata as molds=‘16’ $v}
{if($v['isshow']==1)}
{if($v['pid']==0)}
{$v['classname']}{if($v['haschild'])}
{foreach $v['children']['list'] as $vv}
{if($vv['isshow']==1)}
{$vv['classname']}{/if}
{/foreach}
{/if}
{/if}
{/if}
{/foreach}