{pc:content action="position" posid="2" order="id DESC" num="1"}{loop $data $r}<h3><a href="{$r[url]}" target="_blank" title="{$r[title]}">{$r[title]}</a></h3><p>{str_cut($r[description],200,'..')}</p>{/loop}{/pc}
{pc:content action="position" posid="2" order="id DESC" num="1" siteid="$siteid"}{loop $data $r}<h3><a href="{$r[url]}" target="_blank" title="{$r[title]}">{$r[title]}</a></h3><p>{str_cut($r[description],200,'..')}</p>{/loop}{/pc}
{pc:get sql="select `url`,`title`,`description` from `v9_position_data` a, `v9_news` b where a.id=b.id and a.posid='2' order by a.listorder desc" return="data" num="1" cache="3600"}{loop $data $r}<h3><a href="{$r[url]}" target="_blank" title="{$r[title]}">{$r[title]}</a></h3><p>{str_cut($r[description],200,'..')}</p>{/loop}{/pc}
{pc:get sql="select * from `v9_position_data` a, `v9_news` b where a.id=b.id and a.posid=推荐位ID order by a.listorder desc" return="data" num="20" cache="3600" page="$_GET"}<ul class="list lh24 f14">{loop $data $r}<li><span class="rt">{date('Y-m-d',$r[inputtime])}</span> <a href="{$r[url]}" target="_blank" >{$r[title]}</a></li>{if $n%5==0}<li class="bk20 hr"></li>{/if}{/loop}</ul><div id="pages" class="text-c">{$pages}</div>{/pc}
上一篇:列表页用推荐位实现分页效果