File:cn/product.htm
Method:query(*table,*app,*connect)
default
对像不存在
cn/xmls/frame.xmls
...in(){
$shell.call($get(method));
}

//多层分类,两层
$sub GoodsCatalog(format,format1){
@querygcata=$query(catalog,goods);
@tablectmn=@querygcata.table(*,['ParentId=0 and Status>0 and {*AreaId = $shell.getData(cn)}'],['Grade desc,CatalogId desc']);
@listta=@tablectmn.format(@format){
@tablect=@querygcata.table(*,['{*ParentId = $var[CatalogId]} and Status>0'],['Grade desc,CatalogId desc']);
@listtb=@tablect.format(@format1);
}
$return(@listta);
}


//帮助
$sub HelpList(format,format1){
@
querygcont=$query(content,help);
@querygcata=$query(catalog,help);
@tablectmn=@querygcata.table(*,['Status>0 and ParentId=0 and {*AreaId = $shell.getData(cn)}'],['Grade desc,CatalogId asc']);
@listta=@tablectmn.format(@format){
@tablect=@querygcont.table(*,['{*CatalogId = $var[CatalogId]} and Status>0 and {*AreaId = $shell.getData(cn)}'],['Grade desc,CatalogId asc']);
@listtb=@tablect.format(@format1);
}
$return(@listta);
}