File:news.xmls
Method:query.scalar(columns,*where,*order)
未指定的错误
越界或超过范围
news.xmls
$out main(){
$shell.running();
$shell.layout(pages/new.htm);
@CatalogId=$http.argv(0);
@query=$query(content,news);
$if(@CatalogId==$null){
@query[CatalogId]=65;
}
$else{
@query[CatalogId]=@CatalogId;
}
@query[Tag]=1;
@sql=['1>0 and Status>0 and CatalogId={*CatalogId}'];
@count=@query.scalar(['count(*)'],@sql);
@index=$http.get(page,#n,1);
@list=@query.getList(*,@sql,['Grade desc,CreateDate desc'],12,@count,@index);
@listqi=@query.dataList(['select * from newscontent where 1>0 and Status>0 and CatalogId={*CatalogId} and Tag not like'%1%' order by Grade desc,ReleaseTime desc']);
@listzd=@query.dataList(['select * from newscontent where 1>0 and Status>0 and CatalogId={*CatalogId} and Tag like'%1%' order by Grade desc,ReleaseTime desc']);
@pager=$util.pager(12...