<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>
<!--#include file="FFunction.asp"-->
<!--#include file="FHeadTitle.asp"-->
<!--#include file="include/coding.asp "-->
<!--#include file="include/tishi.asp" -->
<!--#include file="include/page.asp" -->
<!--#include file="include/money.asp" -->
<!--#include file="include/defray.asp" -->
<style type="text/css" media="screen">
@import url("home/css/global/v1.2.css@t=20060512.css");
@import url("home/css/layout.css@t=20050712.css");
@import url("home/css/component.css@t=20060512.css");
@import url("home/css/sys/frontpage.css@t=20060512.css");
</style>
<body class="<%= pagestyle%>">
<div class="HackBox"></div>
<%IsShowHotKey=False
IsShowChannel=False%>
<!--#include file="FHeadAll.asp"-->
<%

hy "../user/login.asp"
userid=decode(shopnet("userid"))
If userid ="" Then
response.write "<br>非常抱谦，参数错误。"
response.end
end if
'禁止网页缓存及涮新
Response.Buffer = True 
Response.ExpiresAbsolute = Now() - 1 
Response.Expires = 0 
Response.CacheControl = "no-cache"%>

 <%
 if clng(request("number"))>clng(request("cpnumber")) then
 response.Write("<script> alert(""购买数量超过了剩余产品数量！"");window.history.back();</script>")
 response.end
 end if
 %>
 
  <table width="762" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="table-zuoyou">
    <tr>
    <td width="760" height="400" valign="top" class="table-shang"> 
      <table width="760" border="0" cellpadding="0" cellspacing="0" >
          <tr> 
            <td height="30" valign="middle" >&nbsp;您目前的位置：<a href="index.asp">首页</a> 
              -&gt; 购物结算(订单确认)</td>
          </tr>
          <tr> 
            <td height="1" background="../image/1x3.gif"></td>
          </tr>
          <tr> 
            <td height="10"></td>
          </tr>
      </table>

<table width="580" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#efefef">
          <tr valign="middle"> 
            <td height="30" colspan="5" align="left" valign="bottom" background="../image/bk3.jpg" >&nbsp;&nbsp;您的订单信息&nbsp;&nbsp; </td>
          </tr>
          <tr valign="middle" bgcolor="#C0C0C0"> 
            <td height="22" align="center" bgcolor="#FFFFFF">产 
              品 名 称</td>
            
          <td width="80" align="center" bgcolor="#FFFFFF">配送费用</td>
            <td width="59" height="22" align="center" bgcolor="#FFFFFF">会员价</td>
            <td width="29" height="22" align="center" bgcolor="#FFFFFF">数量</td>
            <td width="64" height="22" align="center" bgcolor="#FFFFFF">小 
              计</td>
          </tr>
<%Set rs= Server.CreateObject("ADODB.Recordset")
sql="select * from chanpin where id="&decode(shopnet("cpid"))&""
rs.open sql,conn,3,3
if rs.eof then
width="500"
my_bt="操 作 失 败 ！"
my_nr="<meta http-equiv=refresh content=5;url=javascript:history.go(-1)>&nbsp;<b>对不起！参数错误！！！</b></font><br>·该条产品不存在或已被删除，请确保您的连接来自本网站！"
my()
Response.Write"</td></tr></table>"
bottom()
response.end
else 
jg2=rs("jg2")
mc=rs("mc")
mai=shopnet("feiyong")
%>
          <tr valign="middle"> 
            <td height="22" align="center" bgcolor="#FFFFFF"><%=mc%></td>
            <td width="80" align="center" bgcolor="#FFFFFF"><% 
			Select case shopnet("feiyong")
      case "特快专递"
       amount4=""&shopnet("amount")&""
     case "平邮"
	     amount4=""&shopnet("amount1")&""
     case "快递"
	     amount4=""&shopnet("amount2")&""
     case else
	 	 amount4="0"
	End Select
	%><%=amount4%></td>
            <td width="59" height="22" align="center" bgcolor="#FFFFFF"><%=jg2%></td>
            <td width="29" height="22" align="center" bgcolor="#FFFFFF"><%=shopnet("number")%> </td>
            <td width="64" height="22" align="center" bgcolor="#FFFFFF"><%Response.Write FormatNumber(csng(rs("jg2"))*shopnet("number"),2)%></td>
          </tr>

          <tr valign="middle"> 
            <td height="22" colspan="5" align="right" bgcolor="#FFFFFF">合计总付款金额：
            <font color=red><%allamount=FormatNumber(csng(rs("jg2"))*shopnet("number")+amount4,2)%><%=allamount%></font><font color="#FF6600">元</font>&nbsp;&nbsp;&nbsp;&nbsp;</td>
          </tr>
      </table>
 <%
rs.close
set rs=nothing%>     
      <table width="580" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#efefef">
        <tr> 
          <td height="30" colspan="2" align="left" valign="bottom" background="../image/bk3.jpg" bgcolor="#FF6600">&nbsp;&nbsp;您的配送信息</td>
        </tr>
        <tr> 
          <TD width="100" align="right" valign="middle" bgcolor="#FFFFFF" class=main1>真实姓名：</TD>
          <td width="480" height="22" valign="middle" bgcolor="#FFFFFF">&nbsp;<%=request("name")%></td>
        </tr>
        <tr> 
          <TD align="right" valign="middle" bgcolor="#FFFFFF" class=main1>联系地址：</TD>
          <td width="480" height="22" valign="middle" bgcolor="#FFFFFF">&nbsp;<%=request("dz")%></td>
        </tr>
        <tr> 
          <TD align="right" valign="middle" bgcolor="#FFFFFF" class=main1>邮政编码：</TD>
          <td width="480" height="22" valign="middle" bgcolor="#FFFFFF">&nbsp;<%=request("yb")%></td>
        </tr>
        <tr> 
          <TD align="right" valign="middle" bgcolor="#FFFFFF" class=main1>联系电话：</TD>
          <td width="480" height="22" valign="middle" bgcolor="#FFFFFF">&nbsp;<%=request("tel")%></td>
        </tr>
		        <tr> 
          <TD align="right" valign="middle" bgcolor="#FFFFFF" class=main1>手机：</TD>
          <td width="480" height="22" valign="middle" bgcolor="#FFFFFF">&nbsp;<%=request("shouji")%></td>
        </tr>
        <tr> 
          <TD align="right" valign="middle" bgcolor="#FFFFFF" class=main1>电子信箱：</TD>
          <td height="22" valign="middle" bgcolor="#FFFFFF">&nbsp;<%=request("mail")%></td>
        </tr>
                <tr> 
          <td height="22" align="right" valign="middle" bgcolor="#FFFFFF">配送方式：</td>
          <td height="22" valign="middle" bgcolor="#FFFFFF"> <%Response.Write("&nbsp;<font color=#ff6600>"&fahuofangshi&"</font>&nbsp;(预计收货时间："&shouhuosj&")<br>&nbsp;配送费用：")
%><%=amount4%>元&nbsp;&nbsp;&nbsp;<%if mai="卖家承担运费" then response.write ""&mai&"" End if%>&nbsp;&nbsp;&nbsp;<%=shopnet("feiyong")%>方式</td>
        </tr>
       
        <tr>
          <td height="22" align="right" valign="middle" bgcolor="#FFFFFF">支付方式：</td>
          <td height="22" valign="middle" bgcolor="#FFFFFF">&nbsp;<%=request("pay")%></td>
        </tr>
        <tr> 
          <td height="22" align="right" valign="middle" bgcolor="#FFFFFF">产品脱销方案：</td>
          <td height="22" valign="middle" bgcolor="#FFFFFF">&nbsp;<%=request("tx")%></td>
        </tr>
        <tr> 
          <td height="22" align="right" valign="middle" bgcolor="#FFFFFF">您的备注：</td>
          <td height="22" valign="middle" bgcolor="#FFFFFF">&nbsp;<%=request("beizhu")%></td>
        </tr>
        <tr align="center" valign="middle"> 
          <form name="form2" method="post" action="orderok.asp">
		  <%session("buy")=shopnet("cpid")%>
            <td height="40" colspan="2" bgcolor="#FFFFFF"> <input name="imageField3" type="submit" value="确认订单" width="85" height="20" border="0" onFocus="this.blur()"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="submit6" type="button" value="返回修改" width="85" height="20" border="0" onClick="javascript:history.back()"">
              <input name="userid" type="hidden" id="userid" value="<%=shopnet("userid")%>"> 
              <input name="name" type="hidden" id="name" value="<%=request("name")%>"> 
              <input name="dz" type="hidden" id="dz" value="<%=request("dz")%>"> 
              <input name="yb" type="hidden" id="yb" value="<%=request("yb")%>"> 
			  <input name="pay" type="hidden" id="pay" value="<%=request("pay")%>">
              <input name="tel" type="hidden" id="tel" value="<%=request("tel")%>"> 
              <input name="mail" type="hidden" id="mail" value="<%=request("mail")%>"> 
              <input name="feiyong" type="hidden" id="feiyong" value="<%=shopnet("feiyong")%>"> 
              <input name="tx" type="hidden" id="tx" value="<%=request("tx")%>"> 
              <input name="allamount" type="hidden" id="allamount" value="<%=encode(allamount)%>"> 
			  <input name="amount4" type="hidden" id="amount4" value="<%=encode(amount4)%>">
			  <input name="num" type="hidden" id="num" value="<%=shopnet("number")%>">
              <input name="beizhu" type="hidden" id="read" value="<%=shopnet("beizhu")%>">
              <input name="cpid" type="hidden" id="zj" value="<%=shopnet("cpid")%>"> 
			  <input name="mc" type="hidden" id="zj" value="<%=mc%>">
			  <input name="shouji" type="hidden" id="zj" value="<%=shopnet("shouji")%>">
              <input name="jg2" type="hidden" id="lb" value="<%=jg2%>">            </td>
          </form>
        </tr>
      </table></td>
  </tr>
</table>
<%
End If

%>
<!--#include file="bottom.asp" -->
