一个图片文章函数
select top {$Param(1)} ID,Tid,Title,Adddate,Intro,Picurl,NewsID,Popular from KS_Article where tid in(select id from KS_class where TS like '%{$Param(0)}%') and Picnews=1 and Popular=1 and Verific=1 and DelTF=0 order by Adddate desc,Id desc
[loop={$Param(1)}]
<DIV class="pt"><A href="{$Field(NewsID,GetInfoUrl,1,1)}"
target="_blank"><IMG height="70" alt="{$Field(Title,Text,0,0,0,)}"
src="{$Field(Picurl,Text,0,...,0,)}" width="70" /></A>
<H3><A href="{$Field(NewsID,GetInfoUrl,1,1)}"
target="_blank">{$Field(Title,Text,24,0,0,)}</A></H3>
<P> <A href="{$Field(NewsID,GetInfoUrl,1,1)}"
target="_blank">{$Field(Intro,Text,60,0,0,)}...</A> <A href="{$Field(NewsID,GetInfoUrl,1,1)}"
target="_blank">[详细]</A></P></DIV>
[/loop]
红色属性看自己需求来写
调用:{ SQL_函数名称(栏目Tid,条数)}
再加一个文章列表即可