📄 ment3.asp
字号:
<%@ LANGUAGE="VBSCRIPT" %>
<!--#include file="conn.asp" -->
<%
Id=Session("LoginSuccess")
ProductList = Session("ProductList")
Products = Split(Request("cpbm"), ", ")
For I=0 To UBound(Products)
PutToShopBag Products(I), ProductList
Next
Session("ProductList") = ProductList
ProductList = Session("ProductList")
If Len(ProductList) =0 Then
Response.Redirect "nothing.asp"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql = "Select * From Product"
sql = sql & " Where Product_Id In (" & ProductList & ")"
rs.open sql,conn,3,3
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>商品结算</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="Microsoft FrontPage 4.0" name=GENERATOR>
<href="style.css">
<link rel="stylesheet" type="text/css" href="style.css">
<style type="text/css">
<!--
.style1 {color: #000000}
-->
</style>
</HEAD>
<BODY>
<BR><BR>
<FORM name=FORM1"
action=ment4.asp method=post>
<input type=hidden Name="UserId" Value="<%=Request.form("UserId")%>" >
<input type=hidden Name="Name" Value="<%=Request.form("Name")%>" >
<input type=hidden Name="Address" Value="<%=Request.form("Address")%>" >
<input type=hidden Name="Zip" Value="<%=Request.form("Zip")%>" >
<input type=hidden Name="Phone" Value="<%=Request.form("Phone")%>" >
<input type=hidden Name="Email" Value="<%=Request.form("Email")%>" >
<input type=hidden Name="Pays" Value="<%=Request.form("Pays")%>" >
<input type=hidden Name="Remark" Value="<%=Request.form("Remark")%>" >
<div align="center">
<center>
<TABLE cellSpacing=0 cellPadding=0 width=362>
<TBODY>
<TR>
<TD align=middle width="372">
<TABLE width=508 border="0" cellPadding=5 cellSpacing=1 bgColor=#5A8BCE class=main1>
<TBODY>
<TR vAlign=top bgColor=#eeeeee>
<TD colSpan=4 width="494" bgcolor="#EEEEEE">购物结算--(第三步)信息确认</TD></TR>
<tr>
<TD width=482 bgcolor=#EEEEEE height=7 align="right" colspan="4">
<div align="center"><center>
<table width="524" height="61" border="0" cellpadding="5" cellspacing="1" bgcolor="#5A8BCE">
<tr bgcolor="#E6F7FF">
<td width="80" height="20" align="center"><span class="style1">商品编号</span></td>
<td width="170" height="20" align="center" bgcolor="#E6F7FF"><span class="style1">商品名称</span></td>
<td width="76" height="20" align="center"><span class="style1">商品价格</span></td>
<td width="67" height="20" align="center"><span class="style1">商品数量</span></td>
<td width="83" height="20" align="center"><span class="style1">总价</span></td>
</tr>
<%
Sum = 0
While Not rs.EOF
Quatity = CInt( Request( "Q_" & rs("Product_Id")) )
If Quatity <= 0 Then
Quatity = CInt( Session(rs("Product_Id")) )
If Quatity <= 0 Then Quatity = 1
End If
Session(rs("Product_Id")) = Quatity
Sum = Sum + ccur(rs("P_NewPrice")) * Quatity
%>
<tr bgcolor="#FFFFFF">
<td width="80" height="23" align="center"><%=rs("Product_ID")%></td>
<td width="170" height="23" align="center"><%=rs("Product_Name")%></td>
<td width="76" height="23" align="center"><%=rs("P_NewPrice")%></td>
<td width="67" height="23" align="center"><%=Quatity%></td>
<td width="83" height="23" Align="center"><%=ccur(rs("P_NewPrice"))*Quatity%>元</td>
</tr>
<%
rs.MoveNext
Wend
%>
<tr bgcolor="#FFFFFF">
<td width="520" height="12" ColSpan="6" Align="Right"><font Color="Red">总价格=人民币 <%=Sum%>元</font></td>
</tr>
</table>
</center></div><blockquote>
</blockquote>
</TD>
</tr>
<tr>
<TD width=103 bgcolor=#EEEEEE height=7 align="right">收货人姓名:</TD>
<TD width=379 height=7 bgcolor="#EEEEEE" colspan="3"><%=Request.form("Name")%></TD>
</tr>
<tr>
<TD width=103 bgcolor=#EEEEEE height=7 align="right">收货人地址:</TD>
<TD width=379 height=7 bgcolor="#EEEEEE" colspan="3"><%=Request.form("Address")%></TD>
</tr>
<tr>
<TD width=103 bgcolor=#EEEEEE height=7 align="right">邮政编码:</TD>
<TD width=127 height=7 bgcolor="#EEEEEE"><%=Request.form("Zip")%></TD>
<TD width=106 height=7 bgcolor="#EEEEEE">
<p align="center" class="style1">联系电话: </TD>
<TD width=146 height=7 bgcolor="#EEEEEE"><%=Request.form("Phone")%></TD>
</tr>
<tr>
<TD width=103 bgcolor=#EEEEEE height=7 align="right">电子信箱:</TD>
<TD width=379 height=7 bgcolor="#EEEEEE" colspan="3"><%=Request.form("Email")%></TD>
</tr>
<tr>
<TD width=103 bgcolor=#EEEEEE height=7 align="right">付款方式:</TD>
<TD width=379 height=7 bgcolor="#EEEEEE" colspan="3"><%=Request.form("Pays")%></TD>
</tr>
<tr>
<TD width=103 bgcolor=#EEEEEE height=7 align="right">订单备注:</TD>
<TD width=379 height=7 bgcolor="#EEEEEE" colspan="3"><%=Request.form("Remark")%></TD>
</tr>
<TR vAlign=top bgColor=#eeeeee>
<TD colSpan=4 width="494" bgcolor="#EEEEEE"></TD></TR>
<TR bgColor=#eeeeee>
<TD colSpan=4 width="494" bgcolor="#EEEEEE">
<DIV align=center><input name="B4" type="button" class="smallInput" onclick="javascript:window.history.go(-1)" value="上一步">
<INPUT class=smallInput type=submit size=3 value=提交定单 name=Submit2>
</DIV></TD></TR></TBODY></TABLE>
</TD></TR></TBODY></TABLE></center>
</div>
<BR></FORM>
</BODY></HTML>
<%
rs.close
conn.close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -