<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.shopping_ShoppingCart" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=AppConst.SiteName%>·订购中心</title>
<script type="Text/JavaScript" language="javascript">
function WorkSubmit(send)
{
    document.cartlist.method = "POST";
    document.cartlist.action = "ShoppingCart.aspx?action=" + send;
    document.cartlist.submit();
}
</script>
<style type="text/css">
<!--
.style1 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
<link href="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/style.css" rel="stylesheet" type="text/css" />
</head>
<body style="margin-top:0; margin-left:0; background-color:#FFFFFF" marginwidth="0" marginheight="0">
<!--#include file="~/Templets/top.aspx"-->
<table style="background-color:#CCCCCC; width:980" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td style="background-color:#FFFFFF; height:22" class="00003"><table style="width:100%"  border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td style="background-color:#FFFFFF; width:1%"><img src="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/home.gif" /></td>
        <td style="background-color:#FFFFFF; width:99%">您当前位置:<a href="<%=AppConst.SiteUrl%>" target="_blank"><%=AppConst.SiteName%></a> &gt; <a href="index.html">订购中心</a> &gt; 发送查询</td>
      </tr>
    </table></td>
  </tr>
</table>
<table style="width:980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td style="height:4"></td>
  </tr>
</table><table style="background-color:#E4E4E4; width:980" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td style="background-color:#FFFFFF" valign="top"><table style="width:100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td style="background-color:<%=AppConst.Skincolor%>; height:24"><div align="center" class="left_title" style="color:#ffffff;font-size:16px"><b>发送查询</b></div></td>
        </tr>
    </table></td>
  </tr>
</table>
<table style="width:980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td style="height:4"></td>
  </tr>
</table>
  <form method="POST" name="cartlist" id="cartlist">
<table style="background-color:#CCCCCC; width:980"  border="0" align="center" cellpadding="1" cellspacing="1">
  <tr style="background-color:#E2F3FC">
    <td style="height:22; width:86"><div align="center">型号</div></td>
    <td style="width:249"><div align="center">产品名称</div></td>
    <td style="width:257"><div align="center">公司</div></td>
    <td style="width:50"><div align="center">价格</div></td>
	<td style="width:87"><div align="center">数量</div></td>
	<td style="width:87"><div align="center">金额</div></td>
	<td style="width:87"><div align="center">产地</div></td>
    <td style="width:50"><div align="center">操作</div></td>
  </tr>
  <%If rs Is Nothing OrElse rs.EOF Then%><tr bgcolor="#ffffff"><td colspan="8" align="center" height="31"> <font color="#FF0000">购物篮内还没有产品！</font></td></tr><%End If%>
  <%Do While rs IsNot Nothing AndAlso Not rs.EOF : InitProductInfo()%>
  <tr>
    <td style="background-color:#FFFFFF; height:22"><div align="center"><%=rs("P_pattern").Value%></div></td>
    <td style="background-color:#FFFFFF"><div align="center"><a href="<%=GetDetailUrl(rs("id").Value)%>"><%=rs("P_name").Value%></a></div></td>
    <td style="background-color:#FFFFFF"><div align="center"><%=rs("C_name").Value%></div></td>
    <td style="background-color:#FFFFFF"><div align="center"><%=rs("P_price").Value%></div></td>
	<td style="background-color:#FFFFFF"><div align="center"><input type="text" name="amount" value="<%=Amount%>" size="6" /></td>
	<td style="background-color:#FFFFFF"><div align="center"><%=SumPrice%></td>
	<td style="background-color:#FFFFFF"><div align="center"><%=rs("P_from").Value%></div></td>
    <td style="background-color:#FFFFFF"><div align="center"><input type="checkbox" name="id" value="<%=rs("id").Value%>" /></div></td>
  </tr>
  <%rs.MoveNext() : Loop%>
  <tr>
    <td style="background-color:#FFFFFF; height:30" colspan="8"><div align="right">
        <input type="button" name="btnEditAmount" value="调整数量" onClick="return WorkSubmit('chqty');" />
        <input type="hidden" name="DelSend" value="Del" />
        <input type="button" name="btnBrowser" value="继续浏览" onClick="location.href='index.html'" />
        <input type="button" name="btnDel" value="删除选中的产品" onClick="return WorkSubmit('del');" /></div></td>
  </tr>
  </table>
  </form>
<table style="background-color:#CCCCCC; width:980"  border="0" align="center" cellpadding="1" cellspacing="1">
  <tr>
    <td style="background-color:#FFFFFF; height:22" colspan="8">
    <form name="form1" method="post" action="send.aspx" onSubmit="return checkSend();">
      <table style="width:99%"  border="0" align="center" cellpadding="3" cellspacing="1">
		<tr style="background-color:<%=AppConst.Skincolor%>">
          <td style="width:22%"><div align="center" class="style1">发送信息</div></td>
          <td style="width:78%">&nbsp;</td>
        </tr>
        <tr>
          <td style="background-color:#E2F3FC"><div align="center">收件人：</div></td>
          <td style="background-color:#FFFFFF; line-height:120%"><%=IsNull(receiver, "没有收件人!")%>
            <input type="hidden" name="to" value="<%=ReceiverMail%>" /></td>
        </tr>
		<!--
        <tr>
          <td style="background-color:#F7FAE7"><div align="center">标题：</div></td>
          <td style="background-color:#FFFFFF"><input name="title" type="text" id="title" size="30" /></td>
        </tr>-->
        <tr>
          <td style="background-color:#E2F3FC"><div align="center">备注：</div></td>
          <td style="background-color:#FFFFFF"><textarea name="body" cols="55" rows="10" id="body"></textarea></td>
        </tr>
        <tr style="background-color:<%=AppConst.Skincolor%>">
          <td style="height:22"><div align="center" class="style1">请填写你的信息</div></td>
          <td>&nbsp;</td>
        </tr>
        <tr style="background-color:#FAFAFA">
          <td style="background-color:#E2F3FC"><div align="center">姓&nbsp;&nbsp;&nbsp;&nbsp;名：</div></td>
          <td style="background-color:#FFFFFF"><input name="name" type="text" id="name" value="<%=rs_date("M_name").Value%>" size="30" /></td>
        </tr>
        <tr style="background-color:#FAFAFA">
          <td style="background-color:#E2F3FC"><div align="center">公司名称：</div></td>
          <td style="background-color:#FFFFFF"><input name="company" type="text" id="company" value="<%=rs_date("c_name").Value%>" size="30" /></td>
        </tr>
        <tr style="background-color:#FAFAFA">
          <td style="background-color:#E2F3FC"><div align="center">联系电话：</div></td>
          <td style="background-color:#FFFFFF"><input name="tel" type="text" id="tel" value="<%=rs_date("M_tel").Value%>" size="30" /></td>
        </tr>
        <tr style="background-color:#FAFAFA">
          <td style="background-color:#E2F3FC"><div align="center">手&nbsp;&nbsp;&nbsp;&nbsp;机：</div></td>
          <td style="background-color:#FFFFFF"><input name="M_Combined" type="text" id="M_Combined" value="<%=rs_date("M_Combined").Value%>" size="13" /></td>
        </tr>
        <tr style="background-color:#FAFAFA">
          <td style="background-color:#E2F3FC"><div align="center">电子信箱：</div></td>
          <td style="background-color:#FFFFFF"><input name="email" type="text" id="email" value="<%=rs_date("M_email").Value%>" size="30" /></td>
        </tr>

        <tr style="background-color:#FAFAFA">
		          <td style="background-color:#E2F3FC"><div align="center">通讯地址：</div></td>
          <td style="background-color:#FFFFFF; height:24"><input name="M_Adder" type="text" id="M_Adder" value="<%=rs_date("M_Adder").Value%>" size="30" /></td>
        </tr>
		        <tr style="background-color:#FAFAFA">
		          <td style="background-color:#E2F3FC"><div align="center">邮编：</div></td>
          <td style="background-color:#FFFFFF; height:24"><input name="ZipCode" type="text" id="M_Adder" value="<%=rs_date("M_Zipcode").Value%>" size="30" /></td>
        </tr>
        <tr style="background-color:#FAFAFA">
          <td style="background-color:#E2F3FC"><div align="center">是否需要发票：</div></td>
          <td style="background-color:#FFFFFF; height:24">
            <input type="radio" name="NeedInvoice" value="1" />是
            <input name="NeedInvoice" type="radio" value="0" checked="checked" />否
          </td>
        </tr>
        <tr style="background-color:#FAFAFA">
          <td style="background-color:#E2F3FC"><div align="center">发票公司名称：</div></td>
          <td style="background-color:#FFFFFF; height:24">
			<input name="InvoiceContent" type="text" id="M_Adder" value="<%=rs_date("c_name").Value%>" size="30" />
	      </td>
        </tr>
        <tr style="background-color:#FAFAFA">
		          <td style="background-color:#E2F3FC"><div align="center">支付方式：</div></td>
          <td style="background-color:#FFFFFF; height:24">
			<input name="PaymentType" type="text" id="PaymentType" value="" size="30" /></td>
        </tr>		
        <tr style="background-color:#FAFAFA">
          <td style="background-color:#E2F3FC">&nbsp;</td>
          <td style="background-color:#FFFFFF; height:24"><input type="submit" name="Submit" value="发 送" />
		      <input type="hidden" name="strid" value="<%=GetCookie("strid")%>" />
		      <input type="hidden" name="sPrice" value="<%=GetCookie("sumPrice")%>" />
	      </td>
        </tr>
        <tr style="background-color:#FAFAFA">
          <td style="background-color:#FFFFFF">&nbsp;</td>
          <td style="background-color:#FFFFFF">&nbsp;</td>
        </tr>
      </table>
		</form>
    </td>
  </tr>
</table>
<center><!--#include file="~/Templets/Botton.aspx" --></center>
</body>
<%Page_Loaded()%>
</html>
