我在使用SQL文章通用分页时打开面分页显示不成功,显示则是{PageListStr},不知道是什么原因,请大虾们帮忙,是不是代码出问题了?这是系统自带的,我不太懂,更没有修改过,愿代码如下:
查询语句代码:
select id,title,keywords,hits,intro,adddate,author,(select count(id) from ks_comment where channelid=1 and infoid=ks_article.id) as commenttotal from KS_Article where tid in({$CurrClassChildID}) and deltf=0 and verific=1 order by id desc
循 环 体{$AutoID}代码:
<style>
dt a:link, dt a:visited{font-size:14px;font-weight:bold;color:#003366}
dt a:hover{color:#ff0000;text-decoration:none}
dd {font-size:12px;color:#555;line-height:26px}
.info span{color:#ff6600}
.info a:link,.info a:visited{color:#555;text-decoration:none}
.info a:hover{color:#555}
</style>
[loop=10]
<dl>
<dt><br><img src="../../Images/index_03.gif" width="5" height="9" align="absmiddle"/> <a href='{$Field(id,GetInfoUrl,1,1)}'>{$Field(Title,Text,0,...,0,)} </a></dt>
<dd >{$Field(intro,Text,0,...,0,)}</dd>
<dd class="info"><span>更新时间:</span> {$Field(Adddate,Date,YYYY-MM-DD)} <span> 作者:</span> {$Field(author,Text,0,...,0,)} <span> 评论总数:</span> {$Field(commenttotal,Num,0,2)}<span> 点击次数:</span> <font color=red>{$Field(hits,Num,0,2)}</font></dd>
</dl>
<div style="border-bottom:#ccc 1px dashed"></div>
[/loop]