File:partner.xmls
Method:query.getTable(columns,where,order,size,*count,*page)
未指定的错误
越界或超过范围
partner.xmls
$out main(){
$shell.layout(pages/partner.htm);
@write=$http.argv(0);
@address=$util.config(base,Address);
@tel=$util.config(base,Tel);
@mail=$util.config(base,Mail);
@icp=$util.config(base,Icp);
@yejiao=$util.config(base,foot);
@queryArea=$query(catalog,news);
@catalogName=@queryArea.getTable(['CatalogId,CatalogName'],['Status>0 and ParentId=49']);
@CatalogId=$http.argv(0);
@query=$query(content,news);
$if(@CatalogId==$null){
@query[CatalogId]=57;
}
$else{
@query[CatalogId]=@CatalogId;
}
@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,ContentId desc'],36,@count,@index);
@pager=$util.pager(36,@count,@index,page,3);
}