歡迎來到安信科技官方網(wǎng)站!【www.boomerlogic.com】
      18112005550
      工作時間: 8:30-21:30
      新聞中心
      News Center

      【分類調用】獲取N級分類列表循環(huán)顯示

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

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

      { 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 
      網(wǎng)站首頁 |  新聞資訊 |  服務項目 |  軟件產(chǎn)品 |  試用下載 |  需求提交 |  模版建站 |  關于安信 |  產(chǎn)品授權 |  聯(lián)系我們 |  定制開發(fā) | 
      服務熱線:181-1200-5550  客服QQ: 120094883  | 郵箱:120094883#qq.com(#改@)