<%@ LANGUAGE="VBScript" %>
<!--#include file="Inc/Conn.asp" -->
<!--#include file="Lock.asp"-->
<!--#include file="Inc/Util.asp" -->
<%
Set rsid = Server.CreateObject("ADODB.recordset")
sql="Select ID From [Product]"
rsid.open sql,conn,1,1
chkstr = ""
Do until rsid.Eof
If Session("C_"&rsid("ID"))<>"" Then 
chkstr = chkstr & Session("C_"&rsid("ID"))
End if
rsid.MoveNext
Loop
rsid.Close
Set rsid=Nothing
If Len(chkstr)=0 Then 
Response.Redirect "Index.asp"
End if

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] Where [Product_ID] In (" & ProductList & ")"
rs.open sql,conn,1,1
%>
<HTML>
<HEAD>
<TITLE>商品结算</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="ziyan/Style.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<FORM name=FORM1" action="ShopCheck4.asp" method=post>
<input type=hidden Name="username" Value="<%=Request.form("username")%>" >
<input type=hidden Name="Comane" Value="<%=Request.form("Comane")%>" >
<input type=hidden Name="Somane" Value="<%=Request.form("Somane")%>" >
<input type=hidden Name="Add" Value="<%=Request.form("Add")%>" >
<input type=hidden Name="Zip" Value="<%=Request.form("Zip")%>" >
<input type=hidden Name="Phone" Value="<%=Request.form("Phone")%>" >
<input type=hidden Name="Fox" Value="<%=Request.form("Fox")%>" >
<input type=hidden Name="Email" Value="<%=Request.form("email")%>" >
<input type=hidden Name="Pays" Value="<%=Request.form("Bank")%>" >
<input type=hidden Name="Remark" Value="<%=Request.form("Remark")%>" >
  <TABLE width=95% align="center" cellPadding=4 cellSpacing=1 bgColor=#CCCCCC 1>
    <TBODY>
      <TR vAlign=top bgColor=#eeeeee> 
        <TD height="22" colSpan=4> 
          <div align="center">购物结算--(第三步)信息确认</div></TD>
      </TR>
      <tr bgcolor="#FFFFFF"> 
        <TD height=7 colspan="4" align="right"> 
          <div align="center"> 
            <center>
              <table border="0" cellpadding="0" cellspacing="1" width="98%" height="61" bgcolor="#CCCCCC">
                <tr bgcolor="#006699"> 
                  <td align="center" width="197"  height="22" bgcolor="#eeeeee">商品编号</td>
                  <td align="center" width="522"  height="22" bgcolor="#eeeeee">商品名称</td>
                  <td align="center" width="205" height="22" bgcolor="#eeeeee">商品数量</td>
                </tr>
<%
Do While Not rs.EOF
Quatity = CInt( Request( "Q_" & rs("Product_ID")) )
If Quatity <= 0 Then Quatity = 1
Session(rs("Product_ID")) = Quatity
%>
                <tr> 
                  <td align="center" width="197" height="23" bgcolor="#FFFFFF"><%=rs("Product_ID")%> 
                  </td>
                  <td align="center" width="522" height="23" bgcolor="#FFFFFF"><%=rs("Name")%> 
                  </td>
                  <td align="center" width="205" height="23" bgcolor="#FFFFFF"><%=Session(rs("Product_ID"))%></td>
                </tr>
                <%
rs.MoveNext
Loop
%>
                <tr bgcolor="#FFFFFF"> 
                  <td height="22" ColSpan="3" Align="Right">&nbsp;</td>
                </tr>
              </table>
            </center>
          </div>
          <blockquote> </blockquote></TD>
      </tr>
      <tr> 
        <TD width=205 bgcolor=#FFFFFF height=3 align="right">收货人姓名：</TD>
        <TD height=3 colspan="3" bgcolor="#FFFFFF"><%=Request.form("Somane")%></TD>
      </tr>
      <tr> 
        <TD bgcolor=#FFFFFF height=3 align="right">收货人公司名称：</TD>
        <TD height=3 colspan="3" bgcolor="#FFFFFF"><%=Request.form("Comane")%></TD>
      </tr>
      <tr> 
        <TD width=205 bgcolor=#FFFFFF height=7 align="right">收货地址：</TD>
        <TD height=7 bgcolor="#FFFFFF" colspan="3"><%=Request.form("Add")%></TD>
      </tr>
      <tr> 
        <TD width=205 bgcolor=#FFFFFF height=7 align="right">邮政编码：</TD>
        <TD width=286 height=7 bgcolor="#FFFFFF"><%=Request.form("Zip")%></TD>
        <TD width=102 height=7 bgcolor="#FFFFFF"> 
          <p align="center"><font color="#FF0000">联系电话：</font></TD>
        <TD width=327 height=7 bgcolor="#FFFFFF"><%=Request.form("Phone")%></TD>
      </tr>
      <tr> 
        <TD width=205 bgcolor=#FFFFFF height=7 align="right">电子信箱：</TD>
        <TD height=7 bgcolor="#FFFFFF"><%=Request.form("Email")%></TD>
        <TD height=7 bgcolor="#FFFFFF"> <div align="center"><font color="#FF0000">联系传真：</font></div></TD>
        <TD height=7 bgcolor="#FFFFFF"><%=Request.form("Fox")%></TD>
      </tr>
      <tr> 
        <TD width=205 bgcolor=#FFFFFF height=7 align="right">所选汇款账号：</TD>
        <TD height=7 bgcolor="#FFFFFF" colspan="3"><%=Request.form("Bank")%></TD>
      </tr>
      <tr> 
        <TD width=205 bgcolor=#FFFFFF height=7 align="right">订单备注：</TD>
        <TD height=7 bgcolor="#FFFFFF" colspan="3"><%=Request.form("Remark")%></TD>
      </tr>
      <TR bgColor=#FFFFFF> 
        <TD colSpan=4> 
          <DIV align=center> 
            <input type="button" value="上一步" name="B4" onclick="javascript:window.history.go(-1)">
            <INPUT  type="submit" value="提交定单" name=Submit2>
          </DIV></TD>
      </TR>
    </TBODY>
  </TABLE>
<BR></FORM>
</BODY></HTML>
<%
rs.close
conn.close
%>