<!--#include file="CONN.ASP"-->
<!--#include file="config.asp"-->
<link rel="stylesheet" type="text/css" href="fox.CSS">
<title>大市场购物车一览</title>
<%if request.cookies("fox")("username")="" or request.cookies("fox")("domain")="" or request.cookies("fox")("id")="" then 
response.write "<li>为了规范市场，本站不允许非注册用户购买！<br><li>购买商品请您注册，可以享受更多的服务！<br><li>请您务必遵守互联网的有关规定！<br><br><li>→<a target='_blank' href='reg.asp'>请点击，免费注册>>></a>(<script language='JavaScript'>setTimeout('window.opener=top;self.close();',10000)</script>本窗口自动关闭)"
else
%>
<table width="565" height="74%" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr bgcolor="#FFFFFF">
    <td></td>
  </tr>
  <tr>
    <td width="565" bgcolor="#FFFFFF" valign=top align=center>
<script language=javascript>
<!--
function regInput(obj, reg, inputStr)
{
	var docSel	= document.selection.createRange()
	if (docSel.parentElement().tagName != "INPUT")	return false
	oSel = docSel.duplicate()
	oSel.text = ""
	var srcRange	= obj.createTextRange()
	oSel.setEndPoint("StartToStart", srcRange)
	var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
	return reg.test(str)
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

   //-->
</script>
<table border="0" width="96%" cellspacing="0" cellpadding="0">
  <tr> 
    <td height="18"> <b><font color="#FF6600">&nbsp;* 您订购的商品如下：</font></b></td>
  </tr>
  <tr> 
    <td height="16"> 
      <table width="100%" border="0" align="center" cellspacing="1" bgcolor="#e1e1e1">
        <tr align="center"> 
          <td width="208" height="25" bgcolor="#999999"><font color="#FFFFFF">商品名称</font></td>
          <td width="88" height="20" bgcolor="#999999"><font color="#FFFFFF">商品单价</font></td>
          <td width="75" height="20" bgcolor="#999999"><font color="#FFFFFF">订购数量</font></td>
          <td width="95" height="20" bgcolor="#999999"><font color="#FFFFFF">合计</font></td>
        </tr>
        <tr> 
          <td height="1" colspan="5" bgcolor="#d2d2d2"></td>
        </tr>
        <% 
        
       dim rs,sql,a,totalcash,bbbb
        bbbb=request.cookies("fox")("username")
			  sql="select * from shop where id="&request("id")
              sql="select * from FOX_basket where username='"&bbbb&"' and yz=0"
        set rs=server.createobject("adodb.recordset")
		rs.open sql,conn,3,3
        if rs.eof then
        %>
        <tr> 
          <td height="25" colspan="5" bgcolor="#f0f0f0">你还没有选购任何商品</td>
        </tr>
        <%else
        do while not rs.eof%>
        <tr bgcolor="#f0f0f0"> 
          <td width="208" height="25" align="center"><%=rs("company")%></td>
          <td width="88" height="25"> 
            <div align="center"><%=rs("jiages")%> 元</div>
          </td>
          <td width="75" height="25"> 
            <div align="center"><%=rs("shuliang")%></div>
          </td>
          <%a=0%>
          <td width="95" height="25"> 
            <div align="center"><%=rs("shuliang")*rs("jiages")%> 元</div>
          </td>
        </tr>
        <%totalcash=totalcash+(rs("shuliang")*rs("jiages"))%>
        <%rs.movenext
        			loop
        			end if
       			 rs.close
			  set rs=nothing%>
        <tr> 
          <td height="25" colspan="4" bgcolor="#f0f0f0"> 
            <div align="left">&nbsp; 本次购买费用总计：<b><font color=red><%=totalcash%></font></b>&nbsp; 元</div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<%set rs=server.createobject("adodb.recordset")
sql="select * from [FOX_user] where username='"&bbbb&"'"

rs.open sql,conn,1,1
%> 
<table border="0" width="96%" cellspacing="0" cellpadding="0">
  <tr> 
    <td height="27"> <font color="#ff0000"><b>&nbsp;* 您的购物信息已经确认将无法修改！请您认真填写每一项信息！谢谢！</b></font> </td>
  <tr> 
    <td height="16" align="center"> 
      <form method="POST" action="cashsave.asp?username=<%=bbbb%>">
        <div align="center">
        <table width="100%" border="1" cellpadding="0" bgcolor="#e1e1e1" bordercolorlight="#999999" bordercolordark="#EEEEEE" style="border-collapse: collapse">
          <tr align="center"> 
            <td width="482" height="25" colspan="4" bgcolor="#999999"> 
			<p align="left">&nbsp;<b><font color="#FFFFFF">请填写收货人的详细信息</font></b></td>
          </tr>
          <tr align="center"> 
            <td width="124" height="25"> 购货人姓名</td>
            <td width="223" height="25"> 收货地址</td>
            <td width="109" height="25"> 邮政编码 </td>
            <td width="81" height="80" rowspan="3"><input class=wenbenkuang name=verifycode type=text value="" maxLength=4 size=10>&nbsp; <img src=GetCode.asp></td>
          </tr>
          <tr align="center"> 
            <td width="124" height="30" bgcolor="#FFFFFF"> 
              <input type="text" name="lxrname" size="16" value="<%=rs("lxrname")%>"></td>
            <td width="223" height="30" bgcolor="#FFFFFF"> 
                
                
              <input type="text" name="dizhi" size="30" value="<%=rs("dizhi")%>"></td>
            <td width="96" height="30" bgcolor="#FFFFFF"> 
              <input type="text" name="code" size="10" value="<%=rs("code")%>"></td>
          </tr>
                    <tr align="center"> 
            <td width="124" height="25"> 联系电话 </td>
            <td width="333" height="25" colspan="2"> 备注说明（选择性填写）</td>
          </tr>
          <tr align="center"> 
            <td width="124" height="30" bgcolor="#FFFFFF"> 
                              
                
            <input type="text" name="usertel" size="16" value="<%=rs("usertel")%>"></td>
            <td width="333" height="30" bgcolor="#FFFFFF" colspan="2">
			<textarea rows="1" name="memo" cols="50"></textarea></td>
            <td width="81" height="30" bgcolor="#FFFFFF"> 
              <input name=B1 type=image id="B1" src="images/ok.gif" alt=确认购买 align=absMiddle width="45" height="20">
            </td>
          </tr>
        </table>
      	</div>
      </form>
    </td>
  </tr>
  <%rs.close
  set rs=nothing
  end if%>
</table>
   </td>
  </tr>
  </table>
<!--end//-->
 </body>
</html></body></html>