File:demo/productShow.html
Method:query.table(columns,*where,*order,*top)
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
...
}
@view=@querygoods.map(*,['Status=1 and GoodsID={*GoodsID}']);
$if(@view==$null){
@view=$map();
$write(['<script>alert("Abnormal data"); window.location = "product.html";</script>']);
}
}
$else{
@view=$map();
$write(['<script>alert("Abnormal data"); window.location = "product.html";</script>']);
}


//产品详情页面-End
//-------------------------------------------查询产品规格-Start----------------------------------

@queryItem=$query(item,goods);
@queryItem[GoodsCode]=@view[GoodsCode];
@
tableItem=@queryItem.table(*,['GoodsCode={*GoodsCode}'],['Grade desc,ItemId asc']);
@format=['<li style="background:#e5f0f9;">
<span style="width:170px;">{*ItemName}</span>
<span style="width:230px;">{*USDStock}</span>
<span style="width:130px;">US</span>
<span style="width:120px;">{*USDPrice}</span>
<span style="width:155px;"><input name="qutity" maxlength="4" id="qu{*ItemId}" value="1" onblur="CheckServisNumber(this);" onbeforepaste="clipboardData.setData('text',clipboardData.getData('t...