File:cn/service.html
Function Code:100
Method Code:1
relaid
对像不存在
class/server.xmlc
...tID=0 and Lang='en'%},{%Grade desc,CatalogID asc%}){
@list1=@catalog1.format(@format1,*,{%ParentID={@catalog[CatalogID]}%},{%Grade desc,CatalogID asc%});
};
$return(@list);
}


//相关新闻
$function xianglist(format,cid,top){
@catalog=$query(content,zong);
@pcontent=$query(content,product);
@cataid=$get(cataid);
@id=$get.number(id,0);
$if(@id==0){
@id=@pcontent.dataScalar(ID,{%Path like '%.{@cataid}.%'%});
}
$if(@id<>$null){
@relaid=@pcontent.dataScalar(RelatedID,{%ID={@id}%});
}
$
if(@relaid==$empty){
@relaid=0,0;
}
@list=@catalog.format(@format,*,{%Path like '%.{@cid}.%' and ID in ({@relaid})%},{%Grade desc,ID desc%},@top);
$return(@list);
}

$function serverview(format){
@catalog=$query(catalog,product);
@content=$query(content,product);
@cid=$get(cid,$null);
@id=$get(id);
$if(@cid==$null){
@cid=@content.dataScalar(CatalogID,{%ID={@id}%});
}
$layout[cname]=@catalog.dataScalar(CatalogName,{%CatalogID={@cid}%});
@list=@content.format(@format,*,{%Path like...