File:cn/products.html
Method:query.scalar(columns,*where,*order)
在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: Named Pipes Provider, error: 40 - 无法打开到 SQL Server 的连接)
数据库执行错误
cn/xmls/product.xmls
...lign: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">
{@ahref}
</div>
</li>
#];
@querygoods=$query(goods,goods);
@CatalogId=$http.get(CId,$null);
@...