File:en/news-details.xmls
Method:query.getRow(columns,*where,*order)
未指定的错误
越界或超过范围
en/news-details.xmls
$out main(){
$shell.running();
$shell.layout(pages/news-details.htm);
@query=$query(content,news);
@query[ContentId]=$http.argv(0);
@form=@query.getRow(*,['ContentId={*ContentId}']);
@timt=$datetime.format(@form[CreateDate],yyyy-MM-dd);
@queryca=$query(catalog,news);
@catalogname=@queryca.getList(['CatalogName,CatalogId'],['Status>0 and ParentId=3']);
@catalogname.foreach(){
@row=$map($var[value]);
$if(@row[CatalogId]==@form[CatalogId]){
@row[class]=on;
}
$else{
@row[class]=;
}
}
//友情链接
@query[ContentId]=$http.argv(0);
@form=@query.getRow(*,['ContentId={*ContentId}']);
@MetaKeywords=@query.scalar(MetaKeywo...