File:cn/news-center.xmls
Method:query.getList(columns,where,order,size,*count,*page)
未指定的错误
越界或超过范围
cn/news-center.xmls
$out main(){
$shell.running();
$shell.layout(pages/news-center.htm);
@queryca=$query(catalog,news);
@catalogname=@queryca.getList(['CatalogName,CatalogId'],['Status>0 and ParentId=3']);
@catalogname.foreach(){
@row=$map($var[value]);
$if($http.argv(0)){
$if(@row[CatalogId]==$http.argv(0)){
@row[class]=on;
}
$else{
@row[class]=;
}
}
$else{
$if(@row[CatalogId]==59){
@row[class]=on;
}
$else{
@row[class]=;
}
}
}
@query=$query(content,news);
$if($http.argv(0)){
@query[CatalogId]=$http.argv(0);
}
$else{
@query[CatalogId]=59;
}
@count=@query.scalar(['count(*)'],['Stat...