在“自定义函数标签”中新建了一个SQL标签,采用[终级分页标签].
显示不正常的截图:应该出现页数的位置只显示{$PageList}
此主题相关图片如下:1.gif
以下是用到的sql语句和循环体语句:
SQL语句:
select KS_Article.ID,KS_Article.Tid,KS_Article.Title,KS_Article.Articlecontent,KS_Article.Picurl,KS_Class.ID from KS_Article,KS_Class where ks_class.id=20071918664018 and Picurl<>'' order by ks_article.id desc
循环体:
<table cellSpacing=4 cellPadding=0 width=577 align=center bgColor=#f1f1ee border=0
<tr>
[loop=3]
<td align="center">
<a href='{$Field(ID,GetInfoUrl,1,1)}' target="_blank">
<img width="150" height="100" src="{$Field(Picurl,Text,0,...,0,/images/nopic.gif)}" border="0">
</a>
<div>
<a href='{$Field(ID,GetInfoUrl,1,1)}' target="_blank">
{$Field(Title,Text,20,,0,)}
</a>
</div>
</td>
[/loop]
</tr>
<tr>
[loop=3]
<td align="center">
<a href='{$Field(ID,GetInfoUrl,1,1)}' target="_blank">
<img width="150" height="100" src="{$Field(Picurl,Text,0,...,0,/images/nopic.gif)}" border="0">
</a>
<div>
<a href='{$Field(ID,GetInfoUrl,1,1)}' target="_blank">
{$Field(Title,Text,20,,0,)}
</a>
</div>
</td>
[/loop]
</tr>
<tr>
[loop=3]
<td align="center">
<a href='{$Field(ID,GetInfoUrl,1,1)}' target="_blank">
<img width="150" height="100" src="{$Field(Picurl,Text,0,...,0,/images/nopic.gif)}" border="0">
</a>
<div>
<a href='{$Field(ID,GetInfoUrl,1,1)}' target="_blank">
{$Field(Title,Text,20,,0,)}
</a>
</div>
</td>
[/loop]
</tr>
<tr>
[loop=3]
<td align="center">
<a href='{$Field(ID,GetInfoUrl,1,1)}' target="_blank">
<img width="150" height="100" src="{$Field(Picurl,Text,0,...,0,/images/nopic.gif)}" border="0">
</a>
<div>
<a href='{$Field(ID,GetInfoUrl,1,1)}' target="_blank">
{$Field(Title,Text,20,,0,)}
</a>
</div>
</td>
[/loop]
</tr>
</table>
[此贴子已经被作者于2008-2-28 11:22:20编辑过]