此主题相关图片如下:20080525134145843.png
SQL语句:
select top 10 ID,Tid,Title,Intro,Hits,Author
from KS_Article where tid in ({$CurrClassChildID}) and Verific=1 order by Hits desc
循环体:
<ul>
[loop=10]
<li> <img src="/images/g{$AutoID}.gif" alt="第{$AutoID}名:《{$Field(Title,Text,0,...,0,)}》,作者:{$Field(Author,Text,0,...,0,)}"> <a href="{$Field(KS_Article.id,GetInfoUrl,1,1)}" target="_blank" title="《{$Field(Title,Text,0,...,0,)}》,作者:{$Field(Author,Text,0,...,0,)},阅读:{$Field(hits,Num,0,2)}次,内容简介:{$Field(Intro,Text,150,...,0,)}">{$Field(Title,Text,35,...,0,)}</a></li>
[/loop]
</ul>