File:cn/productview.html
Method:query.scalar(columns,*where,*order)
在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: SQL Network Interfaces, error: 26 - 定位指定的服务器/实例时出错)
数据库执行错误
cn/xmls/product.xmls
...<span><a href="{~productview.html&gId=*Goodshao}"><img src="../files/goods/{*Goodshao}.gif" width="100" height="100" /> </a></span>"];
}
}
$if(@count==0){
@content=['<div style="color:#FF0000;font-size:12px;height:45px;line-height:45px;text-align:center;">对不起,爱玛特生物暂无你需要的这个产品!</div>'];
@Pager=$empty;
}
$return($empty);
}
//查询内容
$sub GoodsDetails(){
@querygoods=$query(goods,goods);
@queryfile=$query(document,download);
@Goodshao=$http.get(gId);
@queryfile[Goodshao]=@Goodshao;
@FilePath=@queryfile.scalar(['FilePath'],['Goodshao={*Goodshao}']);
$if(@FilePath==$null){
@FilePath=$empty;
}
@querygoods[Goodshao]=@Goodshao;
@rowgoods=@querygoods.map(*,['Goodshao={*Goodshao}']);
@countmn=@querygoods.scalar(['count(*)'],['Goodshao={*Goodshao}']);
@listitemma=ma;
@Modified=$empty;
$if(@countmn==0){
@rowgoods=$map();
$write(['<script>history.back();</script>']);
$end;
}
$else{
@Modified=@rowgoods[Modified];
@Modified=$datetime.format(@Modified,yyyy-MM-dd);
@...