File:product-list.htm
Method:datatable.format(format,*resource)
list??format
类型不正确
xmls/product.xmls
...ductId]=@cid;
@tables=@query.table(*,['Status>0 and AreaId=1 and ProductId={*ProductId}'],['Grade desc']);
@list=@tables.format(@format);
$return(@list);
}
//产品详情
$sub cpxiangqing23(){
@format=[#
<li><a target="_blank" href="javascript:;"><img src="{*src}" /></a></li>
#];
@a=$argv(0);
@query=$query(product,product);
@query[ProductId]=@a;
@tables=@query.scalar(Images,['Status>0 and AreaId=1 and ProductId={*ProductId}']);
$if(@tables<>$null){
@list=$datatable.loadJson(@tables);
@content=@list.format(@format);
}
$else{
@content=$empty;
}
$return($empty);
}
//产品详情
$sub cpxiangqing223(){
@format=[#
<li><img src="{*src}" /></li>
#];
@a=$argv(0);
@query=$query(product,product);
@query[ProductId]=@a;
@tables=@query.scalar(Images,['Status>0 and AreaId=1 and ProductId={*ProductId}']);
$if(@tables<>$null){
@list=$datatable.loadJson(@tables);
@content2=@list.format(@format);
}
$else{
@content2=$empty;
}
$return($empty);
}
//走进烈龙--产品资料下载-分页
$sub fenye...