File:cn/goods2.htm
Method:query(*table,*app,*connect)
default
对像不存在
cn/xmls/frame.xmls
$sub main(){
$shell.call($get(method));
}
//多层分类,两层
$sub GoodsCatalog(format,format1){
@listta=$cache.get(menumob);
@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);
}
$cache.set(menumob,@listta,60000);
$return(@listta);
}
$sub GoodsCatalogPc(format,format1){
@listta=$cache.get(menupc);
$if(@listta<>$null){
$retu...