destoon实现产品栏目一级分类二级分类循环的调用方法,
{if isset($MODULE[5]) && $DT[page_sell]}
{php $mid = 5;}
{php $child = get_maincat(0, $mid, 1);}
{loop $child $i $m}
<li class="item_li"><a href="{$MODULE[$mid][linkurl]}{$m[linkurl]}" title="{set_style($m[catname], $m[style])}" target="_blank">{set_style($m[catname], $m[style])}</a>
<div class="drop_li" style="display: none;">
{php $child = get_maincat($m[catid], $CATEGORY, 1);}
{loop $child $i $c}
{if $i< 5 }
<a href="{$MODULE[$mid][linkurl]}{$c[linkurl]}" target="_blank">> {set_style($c[catname], $c[style])}</a>
{/if}
{/loop}
</div></li>
{/loop}
{/if}
一级分类名:
{$m[catname]}
二级分类名:
{$c[catname]}
三级分类名:
{$b[catname]}