查询语句
select ID,Tid,Title,Picurl from KS_Article where deltf=0 and verific=1 and picnews=1 order by id desc
循环体写法
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>[loop=3]
<td style="border-bottom:1px #CCCCCC dashed;"><A title="{$Field(Title,Text,0,,0,)}" href="{$Field(ID,GetInfoUrl,1,1)}" target=_blank><img alt="{$Field(Title,Text,0,,0,)}" src="{$Field(Picurl,Text,0,,0,)}" width="150" height="110" border="0"/>
<br>
<a href="/?list-535.html" target=_blank><img src="/images/yd.jpg" width="65" height="21" border="0"></a><br>
{$Field(Title,Text,20,,0,)}
</td>[/loop]
<tr>[loop=3]
<td style="border-bottom:1px #CCCCCC dashed;"><A title="{$Field(Title,Text,0,,0,)}" href="{$Field(ID,GetInfoUrl,1,1)}" target=_blank><img alt="{$Field(Title,Text,0,,0,)}" src="{$Field(Picurl,Text,0,,0,)}" width="150" height="110" border="0"/>
<br><a href="/?list-535.html" target=_blank><img src="/images/yd.jpg" width="65" height="21" border="0" /></a><br>
{$Field(Title,Text,20,,0,)}
</td>[/loop]
<tr>[loop=3]
<td style="border-bottom:1px #CCCCCC dashed;"><A title="{$Field(Title,Text,0,,0,)}" href="{$Field(ID,GetInfoUrl,1,1)}" target=_blank><img alt="{$Field(Title,Text,0,,0,)}" src="{$Field(Picurl,Text,0,,0,)}" width="150" height="110" border="0"/>
<br>
<a href="/?list-535.html" target=_blank><img src="/images/yd.jpg" width="65" height="21" border="0" /></a><br>
{$Field(Title,Text,20,,0,)}
</td>[/loop]
</tr>
</table>
效果如下
此主题相关图片如下:05_21_09222.gif