SQL语句
SELECT top 10 id, foldername,(select count(*) from ks_article where tid=ks_class.id and verific=1) as sum from ks_class where channelid=1
循环体
[loop=10]
<a href='{$Field(id,GetInfoUrl,100,1)}'>
{$Field(foldername,Text,0,...,0,)}({$Field(ssum,Num,0,2)}篇)
</a>
[/loop]
不同模型修改下红色部分