欢迎来到安信科技官方网站!【www.anxin66.com】
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(#改@)