destoon调用子分类
destoon调用子分类:
<!--{php $tagsb=tag("table=category&condition=moduleid=5 and parentid=0&pagesize=10&order=listorder,catid&template=null");}--> {loop $tagsb $i $tb} <div class="xp_product" id="chag{$i+1}" {if $i>0} style="display: none;"{/if}> <ul> {php $allcate=get_maincat($tb[catid],5);} <?php $tempcate=""; foreach($allcate as $k => $v) { $tempcate.=$v["catid"] .","; } $tempcate=substr($tempcate,0,-1); ?> <!--{php $tags=tag("moduleid=5&length=36&condition=status=3 and thumb!='' and catid in (".$tempcate.")&areaid=$cityid&pagesize=12&order=addtime desc&width=90&height=90&cols=5&target=_blank&lazy=$lazy&template=null")}--> {loop $tags $t} <li> <div class="xp_picBox"> <a href='{$t[linkurl]}' target="_blank"><img src="https://www.360muye.cn/skin/default/img/logo.png" width="{$width}" height="{$height}" alt="{$t[alt]}"/></a> </div> <div class="xp_textBox"><a href='{$t[linkurl]}' target="_blank" title="{$t[title]}">{$t[title]}</a></div> </li> {/loop} </ul> </div> {/loop}
通过上面的代码即可调用destoon的二级栏目,转载请注明:鹏程木业网

浙公网安备 33010602011771号