File:web/Agent-brand-xq.html
Function Code:510
Method Code:16
语法错误 (操作符丢失) 在查询表达式 'CatalogID=' 中。
select top 1 ParentID FROM xxcatalog WHERE CatalogID=
数据库执行错误
class/agent-brand.xmlc
...
$function bannermtaZX(format){
@content=$query(content,news);
@list=@content.format(@format,TOP 5 *,{%Recommend=2 and CatalogID in (3,4,5)%},{%Modified desc,Time desc,Grade desc%}){
}
$return(@list);
}
$function agentNavs(format){
@catalog=$query(catalog,news);
@catalogidd=$get.number(catalogidd);
$if(@catalogidd==0){
@catalogid=$get.number(catalogid);
@id=$get.number(id);
@content=$query(content,news);
$if(@id<>0){
@catalogide=@catalog.dataScalar(ParentID,CatalogID={@id});
@catalogid=@catalog.dataScalar(ParentID,CatalogID={@catalogide});;
}
}
$else{
@catalogid=@catalog.dataScalar(ParentID,CatalogID={@catalogidd});
}
@list=@catalog.format(@format,*,ParentID={@catalogid},{%CatalogID asc ,Grade desc%}){
//@href={%#&:{#root}web/Agent-brand{@catalog.index(1)}_catalogid_{@catalogid}_catalogidd_{@catalog[CatalogID]}.html%};
@i=@catalog.index(1);
@href={%#&:{#^:?xmls=web/Agent-brand{@i\}.html&catalogid={@catalogid\}&catalogidd={@catalog[CatalogID]\}}%};
$if(@cata...