<?php
$ltime=time()-86400*3;
?>
{pc:get sql="select * FROM v9_news where inputtime>$ltime order by id desc" num="13" page="$page" return="data"}
{loop $data $n $r}
<li><a target="_blank" href="{$r[url]}" {title_style($r[style])}>{$r[title]}</a></li>
{/loop}
<ul class="pagelist">
{$pages}
</ul>
{/pc}
原文地址:http://my.oschina.net/guomingliang/blog/293250