File:cn/content-catalog.htm
Method:query.pager(columns,where,order,size,page,*countVar)
引发类型为“System.OutOfMemoryException”的异常。 select * from (select top 7 * from (select top 49 * from cocontent where Status>0 and AreaId = 1 and CatalogId = 6 order by Grade desc,Modified desc,ContentId desc) as tab1 order by grade,modified,contentid) as tab2 order by Grade desc,Modified desc,ContentId desc
数据库执行错误
cn/xmls/news.xmls
...'Grade desc,Modified desc,ContentId desc'],@countc,$argv(1,1));
@row[contentlist]=@listnews.format(@listFormat){
$if($var[Link]){
@URL=$var[Link];
}
$else{
@URL=["{~content/$var[ContentId]}"];
}
}
@row[pager]=$helper.pager(@pageFormat,@countc,@count,$argv(1,1),#1,3);
$if(@count==0){
@row[contentlist]=['<div style="color:#FF0000;font-size:12px;height:45px;line-height:45px;text-align:center;">Sorry,no data!</div>'];
@row[pager]=$empty;
}
$shell.put(@row);
$return($empty);
}

//新闻
详情
$sub viewNews(){
@querycontent=$query(content,content);
@querycata=$query(catalog,content);
@ContentId=$argv(0,0);
@querycontent[ContentId]=@ContentId;
@CatalogId=@querycontent.scalar(CatalogId,ContentId={*ContentId});
@querycata[CatalogId]=@CatalogId;
@AreaId=$shell[AreaId];
@querycata[AreaId]=@AreaId;
@cataname=@querycata.scalar(CatalogName,['CatalogId={*CatalogId} and {*AreaId = $shell.getData(en)} ']);
@rowcontent=@querycontent.row(@ContentId);
@Modified=$empty;
$if(@rowcont...