📄 pro_detail_admin.asp
字号:
<!-- #include file="admin_protect.inc" -->
<!-- #include file="../opendb.inc" -->
<html>
<head>
<title>商品介绍</title>
<meta http-equiv="Content-Type" content="text/html; chaRset=gb2312">
<script language="JavaScript">
<!--
function validateform()
{
num=document.form.Num.value;
if(num<0)
{
alert("输入错误!");
document.returnvalue=false;
return;
}
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open(sqlOpenDB) '打开数据库
Sql0="Select ProductID,Name,Unit,QuantityPerUnit,UnitPrice,UnitsInStock,UnitsOnOrder,Image,Description From Product Where ProductID='" & Request.QueryString("ProID") & "'"
Set Rs=Conn.Execute(Sql0)
%>
<p> </p>
<table width="400" border="1" cellspacing="0" align="center" height="159">
<tr>
<td rowspan="5" width="118"><%=Rs("Image")%> </td>
<td nowrap colspan="2" height="30"><b>货物号码:</b></td>
<td colspan="2" height="30"><%=Rs("ProductID")%></td>
</tr>
<tr>
<td nowrap colspan="2" height="30"><b>货物名称:</b></td>
<td colspan="2" height="30"><%=Rs("Name")%></td>
</tr>
<tr>
<td width="55" nowrap height="30"><b>单位:</b></td>
<td width="59" nowrap height="30"><%=Rs("Unit")%></td>
<td width="65" nowrap height="30"><b>规格:</b></td>
<td width="101" height="30"><%=Rs("QuantityPerUnit")%></td>
</tr>
<tr>
<td width="55" nowrap height="30"><b>单价:</b></td>
<td width="59" nowrap height="30"><%=FormatCurrency(Rs("UnitPrice"))%></td>
<td width="65" nowrap height="30"><b>现有:</b></td>
<td width="101" height="30"><%=Rs("UnitsInStock")-Rs("UnitsOnOrder")%></td>
</tr>
<!-- <tr valign="top">
<td colspan="4" height="31"> </td>
</tr> -->
<tr valign="top">
<td colspan="5" height="102"><%=Rs("Description")%></td>
</tr>
</table>
<div align="center">
<p> </p>
<form Name="form" method="POST" action="deal_order_admin.asp" onSubmit="validateform();return document.returnvalue">
<font face="楷体_GB2312"><b>定购数量:</b></font>
<input type="text" Name="Num" size="4" maxlength="4" value="1">
<input type="hidden" Name="ProID" value="<%=request.querystring("proID")%>">
<input type="submit" Name="Submit" value="放入订单">
</form>
<p> </p>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -