File:detail.html
Method:query.scalar(columns,*where,*order)
Syntax error (missing operator) in query expression 'CatalogId= and AreaId=1'. select top 1 ParentId FROM cocatalog WHERE CatalogId= and AreaId=1
数据库执行错误
xmls/news.xmls
...j==0){
@style=['pull-right'];
}
}
$if(@count==0){
@content=['<div style="color:#FF0000;font-size:12px;height:45px;line-height:45px;text-align:center;">对不起,当前没有数据!</div>'];
@Pager=$empty;
}
$return($empty);
}


//新闻详情
$sub viewNews(){
@querycata=$query(catalog,content);
@querycontent=$query(content,content);
@ContentId=$http.get(id,0);
@querycontent[ContentId]=@ContentId;
@CatalogId=@querycontent.scalar(CatalogId,['ContentId={*ContentId}']);
@querycata[CatalogId]=@CatalogId;
@
ParentId=@querycata.scalar(ParentId,['CatalogId={*CatalogId} and AreaId=1']);
@querycata[CatalogId]=@ParentId;
@cataname=@querycata.scalar(CatalogName,['CatalogId={*CatalogId} and AreaId=1']);
@AreaId=$shell[AreaId];
@querycata[AreaId]=@AreaId;
@rowcontent=@querycontent.row(@ContentId);
@Modified=$empty;
$if(@rowcontent<>$null){
@Modified=@rowcontent[Modified];
@Modified=$datetime.format(@Modified,yyyy-MM-dd);
@Click=@rowcontent[Click];
@querycontent[ContentId]=@ContentId;
@querycont...