?? previeworder.asp
字號(hào):
<!--#include file="inc/conn.asp" -->
<%
UserName=session("UserName")
Receiver=request.form("Receiver")
Postcode=request.form("Postcode")
Phone=request.form("Phone")
Add=request.form("Add")
Email=request.form("Email")
paytype=request.form("paytype")
Notes=request.form("Notes")
CompanyName=request.form("CompanyName")
Fax=request.form("Fax")
'判斷購(gòu)物車是否為空
ProductList = Session("ProductList")
if productlist<>"" then
sql="select * from Productwygk where Product_Id in ("&productlist&") order by Product_Id"
Set rs = conn.Execute( sql )
else
response.redirect "error.asp?error=007"
response.end
end if
%>
<HTML>
<HEAD>
<TITLE>Settlement of the goods</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Contact" content="www.wygk.cn 網(wǎng)域高科 QQ:38306293">
<link href="mt_style.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<table width=100% cellpadding=0 cellspacing=0><tr><td><form name=confirm action="ordersent.asp" method=post><%=name%> <br> Hello!<br> this is your oder list,if right please click <input type="submit" value="ReferOrder">,Or previous <input type="button" name="Submit21" onclick="javascript:history.go(-1)" value="Previous"><br><br> contact us telphone:<%=adm_tel%> Email:<%=adm_mail%><br><br><br>
<input type=hidden value="ok" name="confirm">
<table border="0" cellspacing="1" cellpadding="0" align="center" width="520" bgcolor="#000000">
<tr bgcolor="#FFFFFF">
<td height="25" colspan=4> Consignee information</td></tr>
<tr bgcolor="#FFFFFF">
<td height="25" colspan=4><font color="B0266D"> Cosignee name:<%=Receiver%><br>
CosigneeTelphone:<%=Phone%><br>
Cosignee Email:<%=Email%><br>
Cosignee Address:<%=Add%><br>
Company:<%=CompanyName%><br>
Fax:<%=Fax%><br>
pay type:<%=Paytype%> <br>
remit accounts:
<%
sqlp="select paytype,paymentmessage from paydefault where paytype='"&paytype&"'"
set rsp=server.createobject("ADODB.Recordset")
rsp.open sqlp,conn,1,1
response.write rsp("paymentmessage")
rsp.close
set rsp=nothing
%>
<br>
Explain:<%=Notes%><br>
<INPUT TYPE="hidden" name="Receiver" value="<%=Receiver%>">
<INPUT TYPE="hidden" name="Phone" value="<%=Phone%>">
<INPUT TYPE="hidden" name="Add" value="<%=Add%>">
<INPUT TYPE="hidden" name="Email" value="<%=Email%>">
<INPUT TYPE="hidden" name="Postcode" value="<%=Postcode%>">
<INPUT TYPE="hidden" name="PayType" value="<%=paytype%>">
<INPUT TYPE="hidden" name="Notes" value="<%=Notes%>">
<INPUT TYPE="hidden" name="CompanyName" value="<%=CompanyName%>">
<INPUT TYPE="hidden" name="Fax" value="<%=Fax%>">
</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="50%" height="25" align="center">
<font color="B0266D">ProductName</font>
</td>
<td width="10%" align="center">
<font color="B0266D">ProductQuantity</font>
</td>
<td width="20%" align="center">
<font color="B0266D">unit price</font>
</td>
<td width="20%" align="center">
<font color="B0266D">total</font>
</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("Title")) = Quatity
Sum = Sum + csng(rs("Price")) * Quatity
Sum=FormatNumber(Sum,2)
session("sum")=sum
%>
<tr bgcolor="#FFFFFF">
<td width="50%" height="20"> <font color="B0266D"><%=rs("Title")%></font></td>
<td width="10%"> <font color="B0266D"><%=Quatity%></font></td>
<td width="20%"> <font color="B0266D"><%=FormatNumber(rs("Price"),2)%></font></td>
<td width="20%"> <font color="B0266D"><%=FormatNumber(csng(rs("Price"))*Quatity,2)%></font></td>
</tr>
<%
rs.MoveNext
Wend
rs.close
set rs=nothing
%>
<tr bgcolor="#FFFFFF">
<td colspan="4" height="25" align="right">
<b><font color="#B0266D">total prices=<%=Sum%></font>
</td>
</tr>
</table>
</form></table>
</BODY>
</HTML>
<%
set conn=nothing
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -