File:news-info.htm
Method:query.map(columns,*where,*order)
语法错误 (操作符丢失) 在查询表达式 'ContentId = 118 and' 中。 select top 1 * FROM cocontent WHERE ContentId = 118 and
数据库执行错误
xmls/news.xmls
...="color: #FF0000; font-size: 12px; height: 45px; line-height: 45px; text-align: center;">对不起,当前没有数据!</div>
'];
@pager=$empty;
}
$return($empty);
}
//公司介绍
$function listAbout1(format,catalogid){
@querycon=$query(content,content);
@AreaId=$shell[AreaId];
@querycon[AreaId]=@AreaId;
@querycon[CatalogId]=@catalogid;
@tablegs=@querycon.scalar(Body,['CatalogId={*CatalogId} and AreaId=1 and Status>0']);
$return(@tablegs);
}

//新闻详情
$sub viewNews(){
@querycon=$query(content,content);
@
rowcontent=@querycon.map(*,['{*ContentId = $argv(0,0)} and {*AreaId = $shell[AreaId]}']);
$return($empty);
}


//新闻中心2
$function listNews2(format){
@querycon=$query(catalog,content);
@AreaId=$shell[AreaId];
@querycon[AreaId]=@AreaId;
@tablegs=@querycon.table( *,['ParentId=38 and AreaId=1 and Status>0'],['Grade asc']);
@aboutlist=@tablegs.format(@format);
$return(@aboutlist);
}
//新闻2列表
$sub pageNews2(){
@format=[#<li>
<p class="fareImg">
<a href="{~news-info/*ContentId}"><...