File:demo/productShow.html
Method:db.dataTable(sql)
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
数据库执行错误
demo/xmls/product.xmls
... <span style="width:100px;"> <input type="checkbox" name="ItemName" type="checkbox" value="{*ItemId}" class="icheckclass" /> </span>
</li>'];
@itemList=@tableItem.format(@format){
$if($var[USDPrice]==0.00){
@USDPrice=Inquiry;
}
$else{
@USDPrice=$var[USDPrice];
};
$if($var[Stock]==0){
@isStock=Inquiry;
}
$else{
@isStock=In stock ship on same day;
}
}
//-------------------------------------------查询产品规格-End-----------------------------------

//相关产品循环-Start
@dataTable=$db()
.dataTable(['select top 5 * from jxpgoods where Status=1 ORDER BY GoodsID desc']);
@GoodsFormat=@dataTable.format([#<li>
<span>
<a href="{~productShow.html&id=*GoodsID}"><img class="Pic" src="{$var[Pic]}" /></a>
</span>
<p class="prd">{$var[CAS]}</p>
<a href="{~productShow.html&id=*GoodsID}"><p class="pre">{$var[GoodsName]}</p></a>
<p class="prd">{$var[GoodsCode]}</p>
</li>#]);
//相关产品循环-End
$return($empty);
}


$sub itemlists(){
@queryItem=$query(item,goods);
@querygoods=$query...