您好,登錄后才能下訂單哦!
實現代碼如下:
{loop subcat($catid) $c} {if $c['child']} {php $child = subcat($c['catid']);} <div class="wj_fenlei"> <div class="fenlei_pic"> <em><img src="{php echo $c['p_w_picpath'];}" width="298" height="144" alt="" /></em> <div class="xmtit">{php echo $c['catname'];}+</div> <div class="xian"> <span>{php echo "<a href='".$c['url']."' target='_blank'>".$c['catname']."</a>";}</span> <div class="xm_a"> {loop $child $catc} {php $subcatid[] = $catc['catid'];} {php echo "<a href='".$catc['url']."' target='_blank'>".$catc['catname']."</a>";} {/loop} </div> </div> </div> <ul> {php $subcatid = implode(',', $subcatid);} {php $arr=explode(',',$subcatid);} {pc:get sql="SELECT * from v9_news where status=99 and catid in ($subcatid) order by id DESC LIMIT 0,4--" num="6" return="data"} {loop $data $r} <li> <a href="{$r[url]}" target="_blank" title="{$r['title']}">● [{$CATEGORYS[$r[catid]][catname]}] {str_cut($r['title'],40)}</a></li> {/loop} {/pc} </ul> <div class="zs_more"> {php echo "<a href='".$c['url']."' target='_blank'>我想了解更多".$c['catname']."知識</a>";} </div> </div> {php $subcatid = null;} {/if} {/loop}
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。