File:cn/products.html
Method:query(table,*app,*connect)
default.catalog
对像不存在
cn/xmls/product.xmls
...a==0){
@prolistta=['<div style="color:#FF0000;font-size:12px;height:45px;line-height:45px;text-align:center;">对不起,当前没有数据!</div>'];
@Pager=$empty;
}
$return($empty);
}





//产品类别
$function getCatalogList(format){
@querygcata=$query(catalog,goods);
@ParentId=$http.get(PId);
@querygcata[ParentId]=@ParentId;
@tablectmn=@querygcata.table(*,['ParentId={*ParentId}'],['Grade asc,CatalogId desc']);
@listta=@tablectmn.format(@format){
}
$return(@listta);
}
//产品数量
$sub getCount(){
@
querygcata=$query(catalog,goods);
@ParentId=$http.get(PId);
@querygcata[ParentId]=@ParentId;
@countmn=@querygcata.scalar(['count(*)'],['ParentId={*ParentId}']);
$return($empty);
}
//产品
$sub ProductList(){
@format=[#
<li>
{@pic}
<table width="100%" border="0" class="jstable">
<tr>
<td colspan="2">{#left(EnglishName,26,...)}</td>
</tr>
<tr>
<td><p>产品编号:</p></td>
<td>{*Goodshao}</td>
</tr>
<tr>
<td><p>CAS No:</p></td>
<td>{*CAS}</td>
</tr>
</table>
<div class="pidous">
{@...