栏目id多个

婳沨网络 · 64次点击 · 3周前

<!-- 测试 -->
{loop table="classtype" id="14,16,17,18" isshow="1" as="v"}
<a class="a1 {if(isset($type) && in_array($type['id'],$classtypedata[$v['id']]['children']['ids']))}color{/if}" href="{$v['url']}">{$v['classname']}</a>

{if($classtypedata[$v['id']]['haschild'])}
<ul>
{foreach $classtypedata[$v['id']]['children']['list'] as $vv}
<li><a href="{$vv['url']}">{$vv['classname']}</a></li>
{/foreach}
</ul>
{/if}

{loop tid="$v['id']" isshow="1" isall="1" as="vv"}
{$vv['title']}内容
{/loop}

{/loop}
<!-- 测试 end -->

被收藏 0  ∙  0 赞  
加入收藏
0 回复  
善言善语 (您需要 登录 后才能回复 没有账号 ?)

请先登录网站