<ul> {pc:get sql="SELECT * from v9_news where status=99 and catid in(1,2,3,4,5,6,7,8) order by inputtime DESC" return="data"} {php $i==1} {loop $data $r} {if $r[thumb]!=""} <li><a href="{$r[‘url‘]}" ><img src="{thumb($r[‘thumb‘],520,280)}" alt="{str_cut($r[‘title‘],44)}" />{$n}{str_cut($r[‘title‘],44)}</a></li> {php $i++} {/if} {php if($i==5)break;} {/loop} {/pc} </ul>
时间: 2024-08-08 22:09:15