<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>
<!--#include file="top.asp"-->
<!--#include file="../include/money.asp"-->
<!--#include file="../include/tishi.asp"-->

<table width="762" border="0" align="center" cellpadding="2" cellspacing="0" style='BORDER-COLLAPSE: collapse;MARGIN: 3px'>
  <tr> 
    <td height="15" colspan="2"></td>
  </tr>
  <tr> 
    <td width="180" valign="top"> 
      <!--#include file="left.asp"-->    </td>
    <td width="582" height="280" valign="top">

  <!--#include file="../include/page.asp"-->
    <%hy "login.asp"

'显示已售商品
Set rs=Server.CreateObject("ADODB.Recordset")
sql="select * from list where userid="&myuserid&" and over=1 order by id desc"
rs.open sql,conn,1,1 
if not rs.eof then
page1("10")%> 
<%i=1
do while not rs.eof and i<=rs.pagesize%>  

<table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC"> <div align="left"> &nbsp;<br>商品单号：<%=rs("bh")%>&nbsp;&nbsp;完成状态：
  <%if rs("buyxingyong")=0 then%> 
  <span style="color: #FF0000"><span style="font-weight: bold">已完成，但买家还没有给您信用评定</span>
    <%else%>
    <span style="color: #0000FF">完成，买家给您评定的信用是<%=rs("buyxingyong")%>点
    <%end if%>
    </span></div>
        <tr align="center" valign="middle" bgcolor="#f7f7f7">
          <td width="225">商品名称</td> 
          <td width="85" height="20">客户</td>
          <td width="118" height="20">出售日期</td>
          <td width="58" height="20">价格</td>
          <td width="52" height="20">数量</td>
        </tr>

        <tr valign="middle" bgcolor="#FFFFFF">
          <td width="225"><%=rs("mc")%></td> 
          <td width="85" height="20"><div align="center"><%=RS("username")%>&nbsp;</div></td>
          <td width="118" height="20" align="center"><%=rs("sj")%></td>
          <td width="58" height="20" align="center"><%=rs("jg2")%>元</td>
          <td width="52" height="20" align="center"><%=rs("sl")%></td>
        </tr>
       <%i=i+1
rs.MoveNext                                              
loop
%>
</td>
  </tr>    <tr align="center" valign="middle">
        <td colspan="6" bgcolor="#efefef"><%page2("abc=cpgl&keywords="&request("keywords")&"&xs="&request("xs")&"&")
rs.close:%></td>
      </tr></table>
	 <% else

width="450"
my_bt="提示:"
my_nr="<meta http-equiv=refresh content=20;url=index.asp>·您还没有出售过任何商品！"

my()
rs.close
set rs=nothing
end if%>
</table>
<!--#include file="../bottom.asp"-->
