exhibition 循环数据标签
属性列表
代码 | 名称 | 备注 |
---|---|---|
name | 缓存名称 | zh.list.product |
table | 表格 | product,picture,news,download,list 等 |
sort | 排序 | DESC/ASC |
begin | 开始读位置 | 0 开始第1条数据读取 |
rows | 数量 | 12 |
where | sql语法 |
调用案例一
<div class="link_box">
<div class="container">
<span class="link_title">
友情链接
</span>
<button id="link_btn" class="glyphicon glyphicon-plus" aria-hidden="true">
</button>
<span class="link_list">
{exhibition =>("name"=>"zhlinks","table"=>"links","sort"=>"ASC","begin"=>0,"rows"=>"20","where"=>"")
as $vo}
<a target="_blank" href="{$vo.url}">
{$vo.urlname}
</a>
{/exhibition}
</span>
</div>
</div>
调用案例二
{exhibition = >("table" = >"news", "sort" = >"ASC", "begin" = >0, "rows" = >"5", "where" = >"") as $vo}
< ul class = "left_news" >
<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>
</li >
</ul>
{/exhibition}