新建标签,图文
flid为参数,即:{$Param(0)}来表示分类的id
查询语句为:select ID,Title,Author,Adddate,Picurl from KS_U_fengxianjiaoyu where tid='{$Param(0)}'
循环体为:[loop=2]<div class="pic_art">
<div class="pic_art_img"><a class="" href="{$Field(ID,GetInfoUrl,116,1)}" title="新闻标题:{$Field(Title,Text,0,...,0,)}
作 者:{$Field(Author,Text,0,...,0,)}
更新时间:{$Field(Adddate,Date,YYYY-MM-DD)}" target="_blank"><img class='pic1' src='{$Field(Picurl,Text,0,...,0,)}' width='130' height='90' border='0'></a></div>
<div class="pic_art_title"><a class="" href="{$Field(ID,GetInfoUrl,116,1)}" title="新闻标题:{$Field(Title,Text,0,...,0,)}
作 者:{$Field(Author,Text,0,...,0,)}
更新时间:{$Field(Adddate,Date,YYYY-MM-DD)}" target="_blank">{$Field(Title,Text,20,0,0,)}</a></div>
</div>[/loop]
模板调用为:{SQL_图文(330)},其中330为分类的id
可在前台页面上并不显示内容,是什么原因呢,谢谢帮助!