<!--#include file="top.asp" -->
<TABLE width=760 bgcolor="#ffffff" border=0 align=center cellPadding=0 cellSpacing=0 class="table-zuoyou">
  <TBODY>
    <TR> 
      <TD width=170 height="300" vAlign=top class="table-you"> 
	<!--#include file="conn/logininc.asp" -->
	<!--#include file="conn/searchinc.asp" -->
	<!--#include file="conn/fenleiinc.asp" -->
	</TD>
    <td width="590" valign="top">
	 <!--#include file="conn/bannerinc.asp" --> 
	<table width="590" border="0" align="center" cellpadding="0" cellspacing="0" class="table-shang">
        <tr>
          <td height="40" align="center" valign="middle"><img src="../image/lc2.gif" width="496" height="22"></td>
        </tr>
      <tr><td>
<%
'如果会员未登陆，转到会员登陆页面
if session("huiyuan")="" then
Response.redirect "cart-login.asp?userid="&userid
end if
set rs1 = conn.execute("select * from ls_userid where sessionid="&session.sessionid&"")
'如果session为空，转入无购物界面
if rs1.eof then
Response.redirect "nothing.asp?userid="&userid
end if
'如果购买多个商户的产品

If rs1.RecordCount>1 Then
rs1.close
set rs1=nothing
Response.redirect "../go-cart.asp"
end if
rs1.close
set rs1=nothing
%>
<%
'显示购物车内产品
set rs = conn.execute("select * from ls_cart where sessionid="&session.sessionid&" and userid="&userid&"")
%>
<table width="550" border="0" align="center">
<form action=shoukuan.asp?userid=<%=userid%> method="POST" name=form1>
  	  <tr><td colspan=5><br><font color="#ff0000">点击查看</font><a href=service.asp?userid=<%=userid%> target=_blank>【配送说明/服务条款】</a></td></tr>
          <tr valign="middle" bgcolor="#ff6600"> 
            <td width="250" height="20" align="center"><font color="#FFFFFF">产 
              品 名 称</font></td>
            <td width="75" align="center"><font color="#FFFFFF">市场价</font></td>
            <td width="75" height="20" align="center"><font color="#FFFFFF">会员价</font></td>
            <td width="50" height="20" align="center"><font color="#FFFFFF">数 
              量</font></td>
            <td width="100" height="20" align="center"><font color="#FFFFFF">金 
              额</font></td>
          </tr>
          <%
   On Error Resume Next
   Sum1 = 0
   Sum2 = 0
   While Not rs.EOF
     Sum1 = Sum1 + csng(rs("jg1")) * rs("sl")
     Sum2 = Sum2 + csng(rs("jg2")) * rs("sl")
     Sum1=FormatNumber(Sum1,2) 
     Sum2=FormatNumber(Sum2,2) 
	 js=Sum1-Sum2
%>
          <tr valign="middle" bgcolor="#f7f7f7"> 
            <td width="250" height="20"><%=rs("mc")%></td>
            <td width="75" align="center"><%=rs("jg1")%></td>
            <td width="75" height="20" align="center"><%=rs("jg2")%></td>
            <td width="50" height="20" align="center"> <%=rs("sl")%></td>
            <td width="100" height="20" align="center"> 
              <div align="center"><%=FormatNumber(csng(rs("jg2"))*rs("sl"),2)%></div></td>
          </tr>
          <%
     rs.MoveNext
     Wend
%>
          <tr valign="middle" bgcolor="#f7f7f7"> 
            <td height="20" colspan="5" align="right">市场价:<font color="#ff3333">￥<%=Sum1%>元</font>&nbsp;会员价:<font color="#ff3333">￥<%=Sum2%>元</font>&nbsp;立即节省:<font color="#ff3333">￥<%=js%>元&nbsp;</font></td>
          </tr>
        </table>
        <%
rs.close
set rs=nothing
%>
        <table width="530" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td align="center"><br>
              <a href="cart.asp?userid=<%=userid%>">&lt;&lt;返回购物车调整商品</a>&nbsp;&nbsp;&nbsp;&nbsp; 
              &nbsp; 
              <input name="Submit3" type="submit" class="go-wenbenkuang" value="下一步 &gt;&gt;" onFocus="this.blur()"><br><br>
            </td>
          </tr></form>
        </table>
      </td>
  </tr>
</table></td>
  </tr>
</table>
<!--#include file="bd.asp" -->