File:cn/tree.html
Function Code:510
Method Code:15
语法错误 (操作符丢失) 在查询表达式 'ID=' 中。 select top 1 * FROM xxcontent WHERE ID=
数据库执行错误
class/news.xmlc
...ery(content,news);

@id=$get.number(id,0);
$if(@id==0){
@id=@query.dataScalar(ID,CatalogID={@cid} and Lang='cn',Grade desc\,ID);
}
@news=@query.dataMap(*,ID={@id});
$if($not(@news)){
@news=$map();
}
$else{
@news[Modified]=@news[Modified].to(datetime).toString(yyyy.M.dd);
}
$return($empty);
}


$sub content2(cid2){
@query=$query(content,news);

@cid=$get.number(cid,0);
$if(@cid==0){
@cid=@cid2;
}
@id=@query.dataScalar(ID,CatalogID={@cid} and Lang='cn',Grade desc\,ID);

@
news=@query.dataMap(*,ID={@id});
$if($not(@news)){
@news=$map();
}
$else{
@news[Modified]=@news[Modified].to(datetime).toString(yyyy.M.dd);
}
$return($empty);
}


$function contentLeft(cid,format){
@query=$query(content,news);
@list=@query.format(@format,*,CatalogID={@cid} and Lang='cn',Grade desc\,ID);
$return(@list);
}

$sub catalog(){
@query=$query(catalog,news);

@cid=$get.number(cid,0);
@news=@query.dataMap(*,CatalogID={@cid} and Lang='cn');
$if($not(@news)){
@news=$m...