{if $showtype==1} {loop childcatids($catid) $catid} {/loop}
{$_CAT[$catid][catname]} {if $child && $_CAT[$catid][child]} £º {loop childcatids($catid) $i $catid} {if $i>0}|{/if} {$_CAT[$catid][catname]} {/loop} {/if}
{elseif $showtype==2} {loop childcatids($catid) $catid} {/loop}
{$_CAT[$catid][catname]}
{if $child && $_CAT[$catid][child]} {loop childcatids($catid) $catid} {$_CAT[$catid][catname]}
{/loop} {/if}
{else} {$cattree($catid,$open)} {/if}