File:aboutUs-welfare-info.htm
Method:query.map(columns,*where,*order)
语法错误 (操作符丢失) 在查询表达式 'ContentId < 41 and AreaId = 1 and' 中。 select top 1 * FROM cocontent WHERE ContentId < 41 and AreaId = 1 and
数据库执行错误
xmls/news.xmls
...ne-height: 45px; text-align: center;">对不起,当前没有数据!</div>
'];
@pager=$empty;
}
$return($empty);
}


//新闻2详情
$sub viewNews2(){
@conId=$argv(0,0);
@querycon=$query(content,content);
@querycata=$query(catalog,content);
@rowcontent=@querycon.map(*,['{*ContentId = @conId} and {*AreaId = $shell[AreaId]}']);
$return($empty);
}
//新闻上一页下一页
$sub newspn1(){
@query=$query(content,content);
@id=$argv(0);
@cid=@query.scalar(CatalogId,['{*ContentId = @id} and {*AreaId = $shell[AreaId]}']);
@
queryPrev=@query.map(*,['{*ContentId < @id} and {*AreaId = $shell[AreaId]} and {*CatalogId = @cid}']);
@queryNext=@query.map(*,['{*ContentId > @id} and {*AreaId = $shell[AreaId]} and {*CatalogId = @cid}']);
$if(@queryPrev<>$null){
@conId=@queryPrev[ContentId];
@title=@queryPrev[Title];
@prev=["<p class="nextBooks1">上一篇:<a href="{~aboutUs-welfare-info/@conId}">{@title}</a></p>"];
}
$else{
@prev=["<p class="nextBooks1">上一篇:<a href="JavaScript:;">无</a></p>"];
}
$if(@queryNext<>$null){
@c...