File:japan/newsDetails.htm
Method:query.map(columns,*where,*order)
关键字 'ORDER' 附近有语法错误。 select top 1 * FROM cocontent WHERE ContentId < 197 and AreaId = 4 and ORDER BY ContentId desc
数据库执行错误
japan/xmls/news.xmls
...@content=['<div style="color: #FF0000; font-size: 12px; height: 45px; line-height: 45px; text-align: center;">对不起,当前没有数据!</div>
'];
@pager=$empty;
}
$return($empty);
}
//新闻详情
$sub viewNews(){
@querycon=$query(content,content);
@[email protected](*,['{*ContentId = $argv(0,0)} and {*AreaId = $shell[AreaId]}']);
$return($empty);
}
$sub newspn(){
@query=$query(content,content);
@id=$argv(0);
@[email protected](CatalogId,['{*ContentId = @id} and {*AreaId = $shell[AreaId]}']);
@
[email protected](*,['{*ContentId < @id} and {*AreaId = $shell[AreaId]} and {*CatalogId = @cid}'],['ContentId desc']);
@[email protected](*,['{*ContentId > @id} and {*AreaId = $shell[AreaId]} and {*CatalogId = @cid}'],['ContentId asc']);
$if(@queryPrev<>$null){
@conId=@queryPrev[ContentId];
@title=@queryPrev[Title];
@prev=["<a class="disb colo3" href="{~newsDetails/@conId}"><span>上一篇:</span>{@title}</a>"];
}
$else{
@prev=["<a class="disb colo3" href="javascript:;"><span>上一篇:</span>...