<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>  
<%Response.CodePage=65001%>  
<%Response.Charset="utf-8"%>
<!--#include file="../inc/conn.asp" -->
<!--#include file="../inc/Function.asp" -->
<!--#include file="../inc/Yidacms_template.asp" -->
<!--#include file="../inc/inc.Asp" -->
<!--#include file="userSystem.asp" -->
<%
if session("shuaiweb_useremail")="" then
	response.write "请从新登录！"
	response.end
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>会员中心</title>
<link rel="stylesheet" type="text/css" href="../template/user/images/user.css" media="all">
</head>
<body>
<%
usersystem1()
set rs = server.createobject("adodb.recordset")
sql="select * from shuaiweb_buy where shuaiweb_useremailbuy ='"&session("shuaiweb_useremail")&"' ORDER BY id DESC"
rs.open sql,dbok,1,1
i = 1
if rs.bof and rs.eof then
	response.write "没发现你有提交过的订单!"
		Else
do while not rs.eof 
%>
<table width="650" height="91" border="0" cellpadding="8" style="margin-bottom:30px; border-bottom:1px #CCCCCC dotted; height:1px;">
  <tr bgcolor="#33CCFF">
    <td>第 <%=i%> 条</td>
    <td colspan="2">状态：
     <%if rs("shuaiweb_reading") = 1 then%>
      <font color="red">已发货</font>
     <%else%>
      未发货
     <%end if%>
     </td>
    <td>
     <%if rs("shuaiweb_reading") = 1 then%>
     <font color="#000000">已发货的订单不能删除！</font>
     <%else%>
     <a href="user.asp?yidacms=buydel&id=<%=rs("id")%>"><font color="#000000">删除</font></a>
     <%end if%>
   </td>
  </tr>
  <tr>
    <td width="101" bgcolor="#CCCCcc">订单号：</td>
    <td width="190"><%=rs("shuaiweb_buyNumber")%></td>
    <td width="127" bgcolor="#CCCCcc">联系电话：</td>
    <td width="158"><%=rs("shuaiweb_buytel")%></td>
  </tr>
  <tr>
    <td bgcolor="#CCCCcc">订购的商品名：</td>
    <td><%=rs("shuaiweb_buyprname")%></td>
    <td bgcolor="#CCCCcc">数量：</td>
    <td><%=rs("shuaiweb_buyamount")%></td>
  </tr>
</table>
<%
i=i+1
rs.MoveNext 
loop   
rs.close
End If 
%>
</body>
</html>