📄 orderofind.asp
字号:
<%@ LANGUAGE="VBSCRIPT" %>
<!--#include file="conn.asp" -->
<%
Form_ID = Request.form("Form_Id")
IF Session("LoginSuccess")="" Then
response.redirect "orderlogin.asp"
Else
set Rs3 = Server.CreateObject("ADODB.recordset")
sql3="select * from OrderList where Form_Id="&Form_Id&""
rs3.open sql3,conn,1,1
IF rs3.RecordCount >=1 then
IF Session("LoginSuccess")=rs3("User_Id") Then
%>
<html>
<head>
<title>客户订货单详细信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<href="style.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<%
id=Form_Id
set rs=server.createobject("adodb.recordset")
sqltext="select * from OrderList where Form_Id=" & id
rs.open sqltext,conn,1,1
%>
<body text="#000000">
<br> <div align="center">
<center>
<form method='POST' action="OrderList_Save.asp?Form_Id=<%=rs("Form_Id")%>">
<TABLE width=562 height="159" border="0" cellPadding=4 cellSpacing=1 bgColor=#5A8BCE>
<TBODY>
<TR vAlign=top bgColor=#eeeeee>
<TD colSpan=2 width="548" height="10" bgcolor="#006699"></TD></TR>
<TR vAlign=top bgColor=#E6F7FF>
<TD width="548" height="32" colSpan=2>客户订货单详细资料--</TD>
</TR>
<TR bgColor=#eeeeee>
<TD width=126 bgColor=#E6F7FF height=25 align="right"><SPAN class="style1"
>订货单号:</SPAN></TD>
<TD width=410 height=25> <%=rs("Form_Id")%></TD></TR>
<tr>
<TD width=126 bgColor=#E6F7FF height=25 align="right"><SPAN class="style1"
>收货人姓名:</SPAN></TD>
<TD width=410 height=25 bgcolor="#eeeeee"> <%=rs("Name")%></TD></TR>
<tr>
<TD width=126 bgColor=#E6F7FF height=25 align="right"><SPAN class="style1"
>收货人联系地址:</SPAN></TD>
<TD width=410 height=25 bgcolor="#eeeeee"> <%=rs("Address")%></TD>
</tr>
<tr>
<TD width=126 bgColor=#E6F7FF height=25 align="right"><SPAN class="style1"
>邮政编码:</SPAN></TD>
<TD width=410 height=25 bgcolor="#eeeeee"> <%=rs("Zip")%></TD>
</tr>
<tr>
<TD width=126 bgColor=#E6F7FF height=25 align="right"><SPAN class="style1"
>联系电话:</SPAN></TD>
<TD width=410 height=25 bgcolor="#eeeeee"> <%=rs("Phone")%></TD>
</tr>
<tr>
<TD width=126 bgColor=#E6F7FF height=25 align="right"><SPAN class="style1"
>电子信箱:</SPAN></TD>
<TD width=410 height=25 bgcolor="#eeeeee"> <%=rs("Email")%></TD>
</tr>
<tr>
<TD width=126 bgColor=#E6F7FF height=25 align="right"><SPAN class="style1"
>付款方式:</SPAN></TD>
<TD width=410 height=25 bgcolor="#eeeeee"> <%=rs("Pays")%></TD>
</tr>
<tr>
<TD width=126 bgColor=#E6F7FF height=25 align="right"><SPAN class="style1"
>备注:</SPAN></TD>
<TD width=410 height=25 bgcolor="#eeeeee"> <%=rs("Remark")%></TD>
</tr>
<tr>
<TD width=126 bgColor=#E6F7FF height=24 align="right"><SPAN class="style1"
>订货日期:</SPAN></TD>
<TD width=410 height=24 bgcolor="#eeeeee"> <%=rs("RegTime")%></TD>
</tr>
<tr>
<TD width=126 bgColor=#E6F7FF height=25 align="right"><SPAN class="style1"
>订单是否已经处理:</SPAN></TD>
<TD width=410 height=25 bgcolor="#eeeeee"> <%If rs("Flag")="尚未处理" Then%>尚未处理<%else%>已经发货<%End If%>
</TD>
</tr>
<TR vAlign=top bgColor=#E6F7FF>
<TD width="548" height="31" colSpan=2>订货商品细目--</TD>
</TR>
<%
set rs2=server.createobject("adodb.recordset")
sqltext2="select * from ShopList where Form_Id=" & id
rs2.open sqltext2,conn,1,1
%>
<TR vAlign=top bgColor=#eeeeee>
<TD colSpan=2 width="548" height="15">
<div align="center">
<table width="100%" height="68" border="0" cellpadding="0" cellspacing="1" bordercolorlight="#006699" bordercolordark="#eeeeee" bgcolor="#5A8BCE">
<tr bgcolor="#E6F7FF">
<td width="16%" height="18" align="center"><span class="style1">商品编号</span></td>
<td width="33%" height="18" align="center"><span class="style1">商品名称</span></td>
<td width="21%" height="18" align="center"><span class="style1">商品价格</span></td>
<td width="12%" height="18" align="center"><span class="style1">商品数量</span></td>
<td width="18%" height="18" align="center"><span class="style1">金额小计</span></td>
</tr>
<%Sum=0
While Not rs2.EOF%>
<tr bgcolor="#FFFFFF">
<td width="22%" height="22" align="center"><%=rs2("Product_Id")%></td>
<td width="33%" height="22" align="center"><%=rs2("Product_Name")%></td>
<td width="21%" height="22" align="center"><%=rs2("P_NewPrice")%></td>
<td width="12%" height="22" align="center"><%=rs2("Number")%></td>
<td width="18%" height="22" align="center"><%=rs2("P_NewPrice")*rs2("Number")%>元</td>
<%Sum=Sum+rs2("P_NewPrice")*rs2("Number")%>
</tr>
<%
rs2.MoveNext
Wend
%>
</center>
<tr bgcolor="#FFFFFF">
<td width="100%" height="22" colspan="5">
<p align="right">总计金额:<%=Sum%>元</p>
</td>
</tr>
</table>
</div>
</TD></TR>
<center>
<TR bgColor=#eeeeee>
<TD colSpan=2 width="548" height="27">
<p align="center">
<input name="B4" type="button" class="smallInput" onclick="javascript:window.history.go(-1)" value="返回">
</TD></TR>
<TR bgColor=#eeeeee>
<TD colSpan=2 width="548" height="4" bgcolor="#006699"></TD></TR></TBODY></TABLE>
</center>
</div>
</form>
<p>
<%
Else
response.redirect "loginsb.asp?msg=您不能查看不属于您的订单,请重新输入您自己的订单号!"
End If
Else
response.redirect "loginsb.asp?msg=您输入的订单号不存在或格式不正确,请重新输入!"
End IF
End if
rs3.close
conn.close
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -