Latest News : 亮瞎双眼的那些年!

destoon调用主模块下全部分类

destoon admin 858 views 0 comments

    {php $mid = $moduleid;}  //$moduleid为你想调用的模块ID值
{php $child = get_maincat(0, $mid, 1);}
{loop $child $i $c}
{if $i<10 && $c[child]}
{php $sub = get_maincat($c[catid], $mid, 1);}
<ul>
<li><a href=”{$MODULE[$mid][linkurl]}{$c[linkurl]}” target=”_blank”><strong>{set_style($c[catname], $c[style])}</strong></a></li>
{loop $sub $j $s}
{if $j<4}<li><a href=”{$MODULE[$mid][linkurl]}{$s[linkurl]}” target=”_blank”>{set_style($s[catname], $s[style])}</a></li>{/if}
{/loop}
</ul>
{/if}
{/loop}

Please indicate: 无趣的人生也产生有意思的事件 » destoon调用主模块下全部分类

Related Articles

  • No related articles!

Hi, you must log in to comment !