如何在首页显示三级,四级分类,以及并列显示!
调用和并列部分已用不同颜色标出。{if !$DT}
{php $child = get_maincat(0, $mid, 1);}
{loop $child $i $c}
{if $i%2==0}
{/if}
{set_style($c, $c)}
{if $c}
{php $sub = get_maincat($c, $mid, 2);}
{loop $sub $j $s}
{if $j
{if $c}
{php $sub = get_maincat($c, $mid, 1);}
{loop $sub $j $s}
{if $s}
{php $sub = get_maincat($s, $CATEGORY, 2);}
[*]{set_style($s, $s)}
{loop $sub $k $l}
[*]{set_style($l, $l)}
{php $sub = get_maincat($l, $CATEGORY, 2);}
{loop $sub $m $n}
{if $m
{/if}
{/loop}
{/loop}
{php $sub = get_maincat($s, $CATEGORY, 1);}
{loop $sub $k $l}
{php $sub = get_maincat($l, $CATEGORY, 2);}
{loop $sub $m $n}
{if $m
{/if}
{/loop}
{/loop}
{else}
[*]{set_style($s, $s)}
{/if}
{/loop}
{if $j>8}[*]更多{/if}
{/if}
{if $i%2==1}{/if}
{/loop}
[ 本帖最后由 lzy305 于 2012-1-5 15:16 编辑 ]
支持一下!!!!!!!!!!
这个方法很不错支持一下
不用代码
直接手工 HTML,想咋整就咋整
做个记号
做个记号
http://bbs.destoon.com/static/image/smiley/default/victory.gif
http://bbs.destoon.com/static/image/smiley/default/victory.gif
http://bbs.destoon.com/static/image/smiley/default/victory.gif
正好需要这个,学习下
怎么用呢?能否详细点。
http://bbs.destoon.com/static/image/smiley/default/smile.gif
页:
[1]