
blockܲѯǩͱƣ

ϸ
parameterĲ
cachetime	ʱ䣬磺80800
cachename	ƣ磺artlist
table		ѯı 磺$_SC['tablepre']article $_SC['tablepre']Ϊǰ׺ѯıƣ
table2		Ӳѯʱĵڶ 磺$_SC['tablepre']category
on			ӲѯʱĬΪӣtable3 磺a.cid=b.cid tabletable2AS aAS b
col			ѯֶ	磺aid,title,update_time
where		ѯ	磺cid=$cid
order		ѯ	磺aid DESC
limit		ѯƣʹô˲ʱûзҳ磺0,7
perpage		ҳСÿҳʾʹô˲ʱзҳlimitperpageͬʱ֣limitȣ磺20
url			ҳURLpage=*⣬ʱʹã磺list.php?cid=$cid

ʹʵ

бʹòlimitָҳloopǩʹã

<!--{block parameter="cachetime/80800/cachename/artlist/limit/0,7/table/$_SC['tablepre']article/where/cid=1/col/aid,title,update_time/order/is_promote DESC,update_time DESC,aid DESC"}-->					

<!--{loop $_SBLOCK['artlist'] $art}-->
	<li><a href="view.php?aid={$art['aid']}">{echo cutstr($art['title'],40)}</a> <span class="time">{echo date('Y-m-d', $art['update_time'])} </span></li>
<!--{/loop}-->


ҳĲѯʹòperpageָloopǩʹã

<!--{block parameter="cachetime/80800/cachename/artList/perpage/10/table/$_SC['tablepre']article/col/aid,title,update_time/where/cid=$cid/order/aid DESC"}-->
						
<!--{loop $_SBLOCK['artList'] $value}-->
    <li><a href="/view.php?aid={$value['aid']}">$value['title']</a> <span class="time">{echo date('Y-m-d', $value['update_time']) }</span></li>
<!--{/loop}-->
