exhibition 循环数据标签

属性列表

代码 名称 备注
name 缓存名称 zh.list.product
table 表格 product,picture,news,download,list 等
sort 排序 DESC/ASC
begin 开始读位置 0 开始第1条数据读取
rows 数量 12
where sql语法

调用案例一

  1. <div class="link_box">
  2. <div class="container">
  3. <span class="link_title">
  4. 友情链接
  5. </span>
  6. <button id="link_btn" class="glyphicon glyphicon-plus" aria-hidden="true">
  7. </button>
  8. <span class="link_list">
  9. {exhibition =>("name"=>"zhlinks","table"=>"links","sort"=>"ASC","begin"=>0,"rows"=>"20","where"=>"")
  10. as $vo}
  11. <a target="_blank" href="{$vo.url}">
  12. {$vo.urlname}
  13. </a>
  14. {/exhibition}
  15. </span>
  16. </div>
  17. </div>

调用案例二

  1. {exhibition = >("table" = >"news", "sort" = >"ASC", "begin" = >0, "rows" = >"5", "where" = >"") as $vo}
  2. < ul class = "left_news" >
  3. <li > <a style = "white-space: nowrap; overflow: hidden;text-overflow: ellipsis; width: 200px;"href = "{@jmp('zh',$vo['static_url'])}"title = "{$vo.name}" > {$vo.name} < /a>
  4. </li >
  5. </ul>
  6. {/exhibition}