{template 'header'}
返回
{if $mid}{$M[name]}{else}{$head_name}{/if}
{if $action=='module'} 索引 {/if}
{if $action=='letter'}
{loop $LETTER $L} {strtoupper($L)}
{/loop}
{if $CATALOG} {loop $CATALOG $i $c}
{$c[catname]}
{/loop} {else}
没有字母 {$letter} 开头的类目
{/if}
{elseif $action=='module'}
{loop $LETTER $L}
{strtoupper($L)}
{/loop}
{php $main = get_maincat(0, $mid);} {loop $main $m}

- {$m[catname]}

{if $m[child]}
{php $child = get_maincat($m[catid], $mid);} {loop $child $i $c}
{set_style($c[catname], $c[style])}
{/loop}
{/if} {/loop} {else} {loop $MODULE $m} {if $m[moduleid] > 3 && !$m[islink]}

- 更多{$m[name]}

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