File:goods-offer.html
Method:query(table,*app,*connect)
default.content
对像不存在
help.xmls
...d,['ParentId=1 and Status=1'],['Grade desc,CatalogId']);
@helpMap=@queryhelp.map(*,['Status=1 and CatalogPath like {#like(%,CatalogPath,%)} and CatalogId={*CatalogId}'],['Grade desc,ContentId']);
}
$else{
@queryhelp[ContentId]=@id;
@helpMap=@queryhelp.map(*,['ContentId={*ContentId} and Status=1 and CatalogPath like {#like(%,CatalogPath,%)}']);
}
$if(@helpMap==$null){
$write(数据不存在);
$end();
}
$return($empty);
}

$sub helpnavi(format1,format2){
@querycata=$query(catalog,content);
@
queryhelp=$query(content,content);
@catatb=@querycata.table(['CatalogId,CatalogName'],['ParentId=1 and Status=1'],['Grade desc,CatalogId']);
@catalist=@catatb.format(@format1){
@queryhelp[CatalogId]=$var[CatalogId];
@ctb=@queryhelp.table(['Title,ContentId,CatalogId'],['CatalogId={*CatalogId} and Status=1'],['Grade desc,ContentId asc']);
@clist=@ctb.format(@format2);
}
$return(@catalist);
}

$sub selectElement(format){
@query=$query(element,page);
@query[ParentId]=6;
@tableMap=@query...