|
|
调用和并列部分已用不同颜色标出。
{if !$DT[page_bigcat]}
{php $child = get_maincat(0, $mid, 1);}
{loop $child $i $c}
{if $i%2==0}
{/if}
[url=]{set_style($c[catname], $c[style])}[/url]
{if $c[child]}
{php $sub = get_maincat($c[catid], $mid, 2);}
{loop $sub $j $s}
{if $j
{if $c[child]}
{php $sub = get_maincat($c[catid], $mid, 1);}
{loop $sub $j $s}
{if $s[child]}
{php $sub = get_maincat($s[catid], $CATEGORY, 2);}
[url=]{set_style($s[catname], $s[style])}[/url]
{loop $sub $k $l}
[url=]{set_style($l[catname], $l[style])}[/url]
{php $sub = get_maincat($l[catid], $CATEGORY, 2);}
{loop $sub $m $n}
{if $m
{/if}
{/loop}
{/loop}
{php $sub = get_maincat($s[catid], $CATEGORY, 1);}
{loop $sub $k $l}
{php $sub = get_maincat($l[catid], $CATEGORY, 2);}
{loop $sub $m $n}
{if $m
{/if}
{/loop}
{/loop}
{else}
[url=]{set_style($s[catname], $s[style])}[/url]
{/if}
{/loop}
{if $j>8}[url=]更多[/url]{/if}
{/if}
{if $i%2==1}{/if}
{/loop}
[ 本帖最后由 lzy305 于 2012-1-5 15:16 编辑 ] |
|