PHPCMS V9任意页面调用分页


{pc:get sql="SELECT b.catid,b.title,b.updatetime FROM `v9_hits` a,`v9_news` b where concat('c-1-',b.id) = a.hitsid order by inputtime desc" page="$page" num="8" return="data"}
 
    {loop $data $r} {if time()-$r[updatetime]<24*3600}{/if}{$r[title]}
    {/loop}
{$pages} {/pc}

 

你可能感兴趣的:(PHPCMS)