{template 'header'}
{if $action=='letter'}
{loop $LETTER $L} {$L} {/loop} {$M[name]}
{if $CATALOG}

{loop $CATALOG $i $c} {if $i%8==0}
{/if} {set_style($c[catname], $c[style])} ({$c[item]}) {if $i%8==7}
{/if} {/loop}

{else}
没有字母 {$letter} 开头的类目
{/if}
{elseif $action=='module'}
{loop $LETTER $L} {$L} {/loop} {$M[name]}
{template 'catalog', 'chip'}
{else} {loop $MODULE $m} {if $m[moduleid] > 3 && !$m[islink]}
更多{$m[name]}

{php $child = get_maincat(0, $m[moduleid]);} {loop $child $i $c} {if $i%8==0}
{/if} {set_style($c[catname], $c[style])} {if $i%8==7}
{/if} {/loop}

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