昨天在论坛看到有朋友提供了一个这样的sql标签,效果不错。
自己新建了一个产品模型,但是调用这个产品sql图片分页标签后,点击链接出现空网页,不知道是什么地方错误?
我把我的这个标签发出来,大家给看看
select Picurl,Title,ID from KS_U_cpzx where tid in({$CurrClassChildID}) order by id desc
循环体
<table width="750">
<tr>
[loop=5]
<td>
<div align="center">
<a href="{$Field(ID,GetInfoUrl,1,1)}" target="_blank"><img src="{$Field(Picurl,Text,0,...,0,)}" width="110" height="140" alt="{$Field(Title,Text,0,...,0,)}"></a><br />
<a href="{$Field(ID,GetInfoUrl,1,1)}" target="_blank">
{$Field(Title,Text,0,...,0,)}</a><p>
</div>
</td>
[/loop]
</tr>
<tr>
[loop=5]
<td>
<div align="center">
<a href="{$Field(ID,GetInfoUrl,1,1)}" target="_blank"><img src="{$Field(Picurl,Text,0,...,0,)}" width="110" height="140"></a><p align="center">
<a href="{$Field(ID,GetInfoUrl,1,1)}" target="_blank">{$Field(Title,Text,0,...,0,)}</a>
</div>
</td>
[/loop]
</tr>
<tr>
[loop=5]
<td>
<div align="center">
<a href="{$Field(ID,GetInfoUrl,1,1)}" target="_blank"><img src="{$Field(Picurl,Text,0,...,0,)}" width="110" height="140"></a><p align="center">
<a href="{$Field(ID,GetInfoUrl,1,1)}" target="_blank">{$Field(Title,Text,0,...,0,)}</a>
</div>
</td>
[/loop]
</tr>
</table>