
AACMS бǩʹ˵



һ²ѯǩ article

ϸ

order 		
perpage		ҳСд˲ҳlimit޷ҳ
limit		ȡ
cid			ĿID
titlelen	ⳤ
titledot	ȡ׺
contentlen	ݳ
cachename	ƣ̬ģʽûã
cachetime	汣ʱ

top			Ƽ
hot			
havepic		ǷͼƬ
dateline	˷ʱ估Ժ
lastpost	޸ʱ估Ժ
viewnum		ʣΧǩ磺viewnum/10,20ѯ1020£
replynum	ظΧǩ磺replynum/0,100ѯظ0100£




ȡ4ƪ£ⳤ40ַ
<!--{block name="article" parameter="order/dateline DESC/limit/0,4/cachetime/83400/titlelen/40/titledot/0/cachename/article"}-->


ѯǩ album

ϸ

order 		
perpage		ҳСд˲ҳlimit޷ҳ
limit		ȡ
cachename	ƣ̬ģʽûã
cachetime	汣ʱ
albumid		ָID
dateline	˷ʱ估Ժ
viewnum		ʣΧǩ磺viewnum/10,20ѯ1020£



б
<!--{block name="album" parameter="cachename/albumList/perpage/10/order/albumid DESC"}-->



ͼƬѯǩ picture

ϸ

order 		
perpage		ҳСд˲ҳlimit޷ҳ
limit		ȡ
cachename	ƣ̬ģʽûã
cachetime	汣ʱ
albumid		ָID
pid			ָͼƬIDIDöŸIDȡ
dateline	˷ʱ估Ժ
viewnum		ʣΧǩ磺viewnum/10,20ѯ1020£

top			Ƽ
hot			
dateline	˷ʱ估Ժ
viewnum		ʣΧǩ磺viewnum/10,20ѯ1020£
replynum	ظΧǩ磺replynum/0,100ѯظ0100£



ġܲѯ sqlͱƣ

ϸ
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}-->


塢Ӳѯ link

ϸ
parameterĲ
id			ָIDIDöŸIDȡ
limit		ȡ
cachename	ƣ̬ģʽûã
cachetime	汣ʱ



ʹʵ

<!--ʵʼ-->
<!--{block name="link" parameter="cachename/link/limit/0,4/order/id DESC"}-->
<!--{loop $_SBLOCK['link'] $row}-->	
<li><a href="$row['url']">$row['name']</a></li>
<!--{/loop}-->
<!--ʵ-->

塢Ŀѯ category

ϸ
parameterĲ
pcid		ָϼĿIDIDöŸ
cid			ָIDIDöŸIDȡ
limit		ȡ
cachename	ƣ̬ģʽûã
cachetime	汣ʱ

ʹʵ

<!--Ŀʵʼ-->
<!--{block name="category" parameter="cachename/catList/pcid/10/limit/0,10/order/cid DESC"}-->
<!--{loop $_SBLOCK['catList'] $row}-->	
<li><a href="$row['url']">$row['cname']</a></li>
<!--{/loop}-->
<!--Ŀʵ-->