<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>购 物 车</title>
<STYLE type=text/css>
A:link {COLOR: #000000; FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:visited {	COLOR: #000000; FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:active { COLOR: #ff0000; FONT-FAMILY: 宋体; TEXT-DECORATION: none}
A:hover {COLOR: #ff0000; TEXT-DECORATION: none}
body{font-family:宋体;font-size:9pt}
TH {FONT-SIZE: 9pt}
TD {FONT-SIZE: 9pt}
</STYLE>
<script>
function ShowTips(strURL,pThis)
{
	var s = "<table border=0 cellspacing=1 cellpadding=2 bgcolor=#000066>" ;
	s += "<tr bgcolor=#6B8C4A><td align=center><font color=#FFFFFF>&nbsp;&nbsp;&nbsp;商品图片&nbsp;&nbsp;&nbsp;</font></td></tr><tr bgcolor=#ececc6><td align=center>" ;
	s += "<BR>&nbsp;&nbsp;&nbsp;<img src=" + strURL + "  border=0>&nbsp;&nbsp;&nbsp;<BR><BR>" ;
	s += "</td></tr></table>" ;

	Tips.innerHTML = s ;

	pThis.bgColor = "#ddddff" ;
	var pTip = document.all["Tips"].style ;
	pTip.left = event.x ;
	pTip.top = event.y + document.body.scrollTop;
	pTip.display = "" ;
	if(Tips.offsetTop + Tips.offsetHeight - document.body.scrollTop > document.body.offsetHeight)
	{
		pTip.top = event.y - Tips.offsetHeight + document.body.scrollTop ;
	}
}

function Hidden(pThis)
{
	var obj = document.all["Tips"].style ;
	obj.left = 0 ;
	obj.top = 0 ;
	obj.display = "none" ;
	pThis.bgColor = "#FFFFFF" ;
}
</script>

</head>
<!--#include file="conn.asp"--> 
<body oncontextmenu="return false;">
<div id="Tips" style="position:absolute; left:0; top:0; width:100; display=none;"></div>
<%  
set thedict=session("dict")  
    
if thedict.count=0 then    
%>    
        <p align="center">   
 您的购物车里现在没有任何物品！&nbsp; 
  
  
<p align="center">  
<input type="submit" value="继续购买" name="B1" onclick="javascript:window.close();">  
  
<%    
else    
	set rs=Server.CreateObject("ADODB.RecordSet")%>    
    
	<div align="center"><center>
	 要用购买物品功能，必须是聊天室注册用户，付款是从您在聊天室里的积分中扣除！
<table border="0" width="600" cellspacing="1" height="53" cellpadding="3" bgcolor="#000000" style="border-collapse: collapse" bordercolor="#111111">      
  <tr>      
    <td width="1200" align="center" bgcolor="#6B8C4A" height="25" colspan="6" style="padding: 0">
    <p align="left">&nbsp;<font color="#FFFFFF"><b>购物车</b></font></td>      
  </tr>      
  <tr>      
    <td width="150" align="center" bgcolor="#E7E7C6" height="21">商品名称</td>      
    <td width="70" align="center" bgcolor="#E7E7C6" height="21">价格</td>      
    <td width="70" align="center" bgcolor="#E7E7C6" height="21">使用级别</td>      
    <td width="260" align="center" bgcolor="#E7E7C6" height="21">简介</td>      
    <td width="50" align="center" bgcolor="#E7E7C6" height="21">数量</td>      
    <td width="50" align="center" bgcolor="#E7E7C6" height="21">
    取消</td>      
  </tr>      
   <form method="POST" name="aaa" action="catjs.asp" >
	<%  hjje=0  
		sl=0  
		i=0
	for each key in thedict    
		Rs.open "Select * from Products where id="&key,conn,1%>    
  </center>    
	 <tr>      
    <td width="150" align="center" bgcolor="#FFFFFF" height="20" onmouseover="ShowTips('<%=Rs("Facies")%>',this);" onmouseout="Hidden(this);">
        <p align="left">
&nbsp;<%=Rs("ProductName")%>

</td>      
  <center>       
    <td width="70" align="center" bgcolor="#FFFFFF" height="20"><%=Rs("Price")%></td>      
    <td width="70" align="center" bgcolor="#FFFFFF" height="20"><%=Rs("ProductLevel")%></td>      
  </center>    
    <td width="260" align="center" bgcolor="#FFFFFF" height="20">    
      <p align="left"><%=Rs("Memo")%></td>      
  <center>       
    <td width="50" align="center" bgcolor="#FFFFFF" height="20">
    <input id="n<%=i%>" name="n<%=i%>" value=<%=thedict.item(key)%> size="2">
    
    </td>      
    <td width="50" align="center" bgcolor="#FFFFFF" height="20">

<input type=button  name=cancel  class="main4"  value="取消"  onclick="if (confirm('确实要删除吗？')) {aaa.n<%=i%>.value=0;aaa.submit();}" style="font-size: 8pt">    
   
    
    </td>      
  </tr>      
	<%  
	sl=sl+thedict.item(key)  
	hjje=hjje+Rs("Price")*thedict.item(key)  
	rs.close        
	i=i+1        
next    %>        
         
</table> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
总计：<font color="#FF0000"><%=hjje%> </font></center>     
</div>     
<p align="center">      
        <input type="submit" value="重新计算" name="B4" >&nbsp;&nbsp;
        <input type="button" value="全部清空" name="B3" onclick="javascript:location='delall.asp';">&nbsp;&nbsp;&nbsp;    
        <input type="button" value="继续购买" name="B1" onclick="javascript:window.close();">&nbsp;&nbsp;       
        <input type="button" value="去收银台" name="B2" onclick="javascript:opener.location='checkout.asp';window.close();">      
        　</p>    

</form>	
<%     
end if%>         
      
<script>window.focus();</script>     
</body>      
      
</html>