久久福利影视-久久成人综合网-久久成人亚洲-久久成人性色生活片-免费的黄色小视频-免费的黄视频

歡迎來到安信科技官方網站!【www.www122sihucom3.cn】
18112005550
工作時間: 8:30-21:30
新聞中心
News Center

【分類調用】獲取N級分類列表循環顯示

資訊分類: 二次開發  瀏覽: 2013年6月5日

  在商品列表等頁面經常會遇到獲取N級分類列表,并循環顯示出來的效果。AnxinMMall系統是使用無限級分類的算法,下面以三級分類列表調用為例,演示循環顯示分類列表的效果:

{ anxinMall:class1 $sql=select top 12 * from [anxinMall_cat] where navigation=1 order by id asc $cache=0 }
<a href="?classid=[class1:id]" class="nav-a">[class1:catname]</a>
{ anxinMall:class2 $sql=select * from [anxinMall_cat] where fid=[class1:id] order by id asc $cache=0 }
<a href="?classid=[class2:id]">[class2:catname]</a>
{ anxinMall:class3 $sql=select * from [anxinMall_cat] where fid=[class2:id] order by id asc $cache=0 }
<a href="?classid=[class3:id]">[class3:catname]</a>
{ /anxinMall:class3 }
{ /anxinMall:class2 }
{ /anxinMall:class1 }

Copyright © 2007-2022 安信科技(十五周年紀念版) All Rights Reserved  備案號:蘇ICP備15047094號-3 
網站首頁 |  新聞資訊 |  服務項目 |  軟件產品 |  試用下載 |  需求提交 |  模版建站 |  關于安信 |  產品授權 |  聯系我們 |  定制開發 | 
服務熱線:181-1200-5550  客服QQ: 120094883  | 郵箱:120094883#qq.com(#改@)