<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.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-SIZE: 9pt}
TH {FONT-SIZE: 9pt}
TD {FONT-SIZE: 9pt}
</STYLE>

</head>

<body marginheight=0 marginwidth=0 bgcolor="#396BA5">
<%             
             
set thedict=session("dict")             
             
if thedict.count=0 then             
%>             
<div align="center">
  <center>
  <table border="1" width="300" bgcolor="#C0C0C0" cellspacing="8" height="52">
    <tr>
      <td width="100%" height="40">
        <p align="center">&nbsp;您的购物车里现在没有任何物品！</td>
    </tr>
  </table>
  </center>
</div>
 <%              
else 
	set rs=Server.CreateObject("ADODB.RecordSet")%>              
              
	<div align="center" style="width: 756; height: 118"><center>            
    <table border="1" width="195" cellspacing="8" cellpadding="3" bgcolor="#C6C6C6">   
      <tr>   
        <td width="185" bgcolor="#F5F5F5">   
          <p align="center"><b><font size="3" color="#FF0000">收&nbsp; 银&nbsp;       
          台</font></b></td>      
      </tr>      
    </table>      
  </center>              
<br>         
<table border="0" width="600" cellspacing="1" height="49" cellpadding="3">               
  <tr>               
    <td width="1200" align="center" bgcolor="#B2B2B2" height="21" colspan="6" style="border-style: ridge; border-width: 1">您 订 购 的 物 品 清 单</td>               
  </tr>               
             
  <tr>               
    <td width="150" align="center" bgcolor="#C6C6C6" height="21">商品名称</td>               
    <td width="70" align="center" bgcolor="#C6C6C6" height="21">价格</td>               
    <td width="70" align="center" bgcolor="#C6C6C6" height="21">使用级别</td>               
    <td width="260" align="center" bgcolor="#C6C6C6" height="21">简介</td>               
    <td width="50" align="center" bgcolor="#C6C6C6" height="21">数量</td>               
    <td width="50" align="center" bgcolor="#C6C6C6" height="21">　</td>               
  </tr>               
             
	<%  hjje=0           
		sl=0           
	for each key in thedict             
		Rs.open "Select * from Products where id="&key,conn,1%>             
	 <tr>               
    <td width="150" align="center" bgcolor="#F5F5F5" height="20">             
      <p align="left"><%=Rs("ProductName")%></td>               
  <center>                
    <td width="70" align="center" bgcolor="#F5F5F5" height="20"><%=Rs("Price")%></td>               
    <td width="70" align="center" bgcolor="#F5F5F5" height="20"><%=Rs("ProductLevel")%></td>               
  </center>             
    <td width="260" align="center" bgcolor="#F5F5F5" height="20">             
      <p align="left"><%=Rs("Memo")%></td>               
  <center>                
    <td width="50" align="center" bgcolor="#F5F5F5" height="20"><%=thedict.item(key)%></td>               
    <td width="50" align="center" bgcolor="#F5F5F5" height="20">  
   	<%if rs("Quantity")<thedict.item(key) then%>  
    <font color="#FF0000"> 
		无货</font>  
	<%else%>  
    <font color="#009933">√</font>  
	<%end if%>  
    </td>               
  </tr>               
	<%   
 	if rs("Quantity")>=thedict.item(key) then 
	sl=sl+thedict.item(key)           
	hjje=hjje+Rs("Price")*thedict.item(key) 
	end if         
	rs.close                 
	i=i+1                 
next            
session("hjje")=hjje        
%>             
	 <tr>               
    <td width="150" align="center" bgcolor="#C0C0C0" height="20">             
      合&nbsp;&nbsp;&nbsp; 计</td>                  
    <td width="70" align="center" bgcolor="#C0C0C0" height="20"><%=hjje%>　</td>                
    <td width="70" align="center" bgcolor="#C0C0C0" height="20">　</td>                
    <td width="260" align="center" bgcolor="#C0C0C0" height="20">              
      　</td>                
    <td width="50" align="center" bgcolor="#C0C0C0" height="20"><%=sl%>　</td>                
    <td width="50" align="center" bgcolor="#C0C0C0" height="20">　</td>                
  </tr>                
	                  
</table>               
  </center>             
</div>             
    
             
<form action="dataup.asp" method="post" name="Login">        
  <div align="center">     
    <table border="1" width="600" bgcolor="#C6C6C6" cellspacing="8">     
      <tr>     
        <td width="50%" bgcolor="#F5F5F5">                 
              
             
<p align="left"><font color="#FF0000"><b>收银小姐说</b>：</font><br>         
&nbsp;&nbsp;&nbsp; 我们现在不接受人民币、美元及其他的货币，只接受虚拟分数，赚取方式：聊天室里泡分就可以。<br>  
&nbsp;&nbsp;&nbsp; 无货的商品不能购买，我们已经替您把他删掉了，不会计算的。 
 
</p>       
          <center>   
          <p>　</center></td>   
          <td width="50%" bgcolor="#BFD5FF">      
  <p align="center"><b>付 款 帐 号</b><br>昵 称：<input maxLength="14" name="user" size="20"><br>       
  密 码：<input maxLength="14" name="pass" type="password" value size="20"><br>       
  <input name="submit" type="submit" value="提 交">       
          </td>    
        </tr>    
      </table>    
  </div>    
</form>       
           
    <%            
end if%>                
          <script>document.Login.user.focus();</script>      
</body>           
           
</html>           
