
<table width="200" height="80" border="0" cellspacing="0" cellpadding="0">
<tr> 
<td> 
<div align="center">
<table width="100%" border="0" cellpadding="0" cellspacing="0" height="70" background="image/catBg.gif">
<tr> 
<td height="80" rowspan="5" width="40">　</td></tr>
<%
	if request.Cookies("bjx")("username")<>"" then 
	set rs_c=server.CreateObject("adodb.recordset")
	rs_c.open "select count(*) as rec_count from BJX_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai=7",conn,1,1
	rec_count=rs_c("rec_count")
	rs_c.close
	rs_c.open "select sum(zonger) as zongji from BJX_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai=7",conn,1,1
	%><tr>
<td height="20">　您的购物车有<font color=red><%=rec_count%></font>件商品<br>　总金额：<font color=red><%=rs_c("zongji")%></font>元<br>　<a href="buy.asp?action=show&lx=1" target=_blank>查看购物车/结帐&gt;&gt;</a></td>
</tr>
<%rs_c.close
		set rs_c=nothing
		else%>
<tr> 
<td height="20"> 
　您的购物车有<font color=red>0</font>件商品<br>
　总金额：<font color=red>0</font>元</td>
</tr>
<tr> 
<td height="1" colspan="2"></td>
</tr>
<%end if%>
</table>
</div>
</td>
</tr>
</table>
