File:aboutUs-welfare-info.htm
Method:query.map(columns,*where,*order)
语法错误 (操作符丢失) 在查询表达式 'ContentId = 41 and' 中。 select top 1 * FROM cocontent WHERE ContentId = 41 and
数据库执行错误
xmls/news.xmls
...elected}<span>{*text}</span>
{?pager}
<a href="{*prev}" class="n">上一页</a>
{*list}
<a href="{*next}" class="n">下一页</a><br style="clear: both;" />#],3,@count,$get(page,1),page,3);
$if(@count==0){
@content=['<div style="color: #FF0000; font-size: 12px; height: 45px; line-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<>$nu...