<!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>我的订单 - {config.webname}</title>
<meta content="{config.webkeyword}" name="keywords" />
<meta content="{config.webdescription}" name="description" />
<link rel="stylesheet" type="text/css" href="<!--angelcms{templateskin}-->/css/basic.css" />
<link rel="stylesheet" type="text/css" href="<!--angelcms{templateskin}-->/css/style.css" />
<script type="text/javascript" src="<!--angelcms{templateskin}-->/js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="<!--angelcms{templateskin}-->/js/lang-chi.min.js"></script>
<script type="text/javascript" src="<!--angelcms{templateskin}-->/js/common.min.js"></script>
<script type="text/javascript" src="<!--angelcms{templateskin}-->/js/overlay.min.js"></script>
<script type="text/javascript" src="{config.webpath}scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
<script type="text/javascript" src="<!--angelcms{templateskin}-->/js/base.js"></script>
</head>
<body >
<!--Header-->
<!--angelcms{template src="header.html"}-->
<!--/Header-->
<!--中间区块-->
<div id="content-block">
<div class="content-block-width">
	<div id="bd">
	<div id="innerpg" class="bd-inner">
    <!--检查这里是否为一样-->
	<div class="clearfix layout-innerpg ">
		<div class="col-main">
		<div class="main-wrap">
		<div id='htmlpages' class="block first-block block-article-view">
<div class="block-head">
	<div class="head-inner">
	<h1 class="title"> 
      <span><a href="<!--angelcms{linkurl("usercenter","index")}-->">管理首页</a></span>
      我的订单
      <strong>Order</strong>
	  </h1>
	</div>
</div>
    <!--会员中心-->
<div class="block-content clearfix">
	<div class="article-content clearfix" style="padding-top:10px;">

    <!--angelcms{if {action}=="list"}-->
    <!--交易订单-->
    <div class="tab_head">
      <ul class="tabs">
        <li class="selected"><a href="<!--angelcms{linkurl("userorder","list")}-->">交易订单</a></li>
        <li><a href="<!--angelcms{linkurl("userorder","close")}-->">已关闭订单</a></li>
      </ul>
    </div>

    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ftable">
      <tr>
        <th width="16%" align="left">订单号</th>
        <th align="left">订单商品</th>
        <th width="10%">收货人</th>
        <th width="18%">订单金额</th>
        <th width="18%">下单时间</th>
        <th width="12%">订单状态</th>
        <th width="12%">操作</th>
      </tr>
      <!--angelcms{set DataTable list1=get_order_list(10, page, "user_id='"+userModel.id+"' and status<=3", out totalcount)}--> <!--取得一个DataTable-->
      <!--angelcms{set string pagelist1=get_page_link(10, page, totalcount, "userorder", action, "__id__")}--> <!--取得分页页码列表-->
      <!--angelcms{foreach(DataRow dr in list1.Rows)}-->
      <tr>
        <td>{dr[order_no]}</td>
        <td>
          <!--angelcms{set List<Angelcms.Model.Age_article> ls=get_order_goods_list({strtoint({dr[id]})})}-->
          <!--angelcms{if(ls!=null)}-->
          <!--angelcms{foreach(Angelcms.Model.Age_article modelt in ls)}-->
          <a target="_blank" title="{modelt.title}" href="<!--angelcms{linkurl("products_show",{modelt.id})}-->"><img width="60" height="60" alt="{modelt.title}" src="{modelt.img_url}"></a>
          <!--angelcms{/foreach}-->
          <!--angelcms{/if}-->
        </td>
        <td align="center">{dr[accept_name]}</td>
        <td align="center"><strong>￥{dr[order_amount]}</strong><br /><!--angelcms{=get_payment_title({strtoint({dr[payment_id]})})}--></td>
        <td align="center">{dr[add_time]}</td>
        <td align="center">
          <!--angelcms{=get_order_status({strtoint({dr[id]})})}-->
        </td>
        <td align="center">
          <a href="<!--angelcms{linkurl("userorder_show",{dr[id]})}-->">查看订单</a><br />
          <!--angelcms{if(get_order_payment_status({strtoint({dr[id]})}))}-->
          <a href="<!--angelcms{linkurl("payment","confirm",{dr[order_no]})}-->">去付款</a> |
          <!--angelcms{/if}-->
          <!--angelcms{if({strtoint({dr[status]})}<2)}-->
          <a href="javascript:;" onclick="clickSubmit('{config.webpath}tools/submit_ajax.ashx?action=order_cancel&order_no={dr[order_no]}');">取消</a>
          <!--angelcms{/if}-->
        </td>
      </tr>
      <!--angelcms{/foreach}-->
      <!--angelcms{if(totalcount<1)}-->
      <tr><td colspan="8" align="center">暂无记录</td></tr>
      <!--angelcms{/if}-->
    </table>
    
    <div class="page_foot">
      <div class="flickr right">{pagelist1}</div><!--放置页码列表-->
    </div>
    <!--交易订单-->
    
    <!--angelcms{else if(action=="close")}-->
    <div class="tab_head">
      <ul class="tabs">
        <li><a href="<!--angelcms{linkurl("userorder","list")}-->">交易订单</a></li>
        <li class="selected"><a href="<!--angelcms{linkurl("userorder","close")}-->">已关闭订单</a></li>
      </ul>
    </div>
    
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ftable">
      <tr>
        <th width="16%" align="left">订单号</th>
        <th align="left">订单商品</th>
        <th width="10%">收货人</th>
        <th width="18%">订单金额</th>
        <th width="18%">下单时间</th>
        <th width="12%">订单状态</th>
        <th width="12%">操作</th>
      </tr>
      <!--angelcms{set DataTable list2=get_order_list(10, page, "user_id='"+userModel.id+"' and status>3", out totalcount)}--> <!--取得一个DataTable-->
      <!--angelcms{set string pagelist2=get_page_link(10, page, totalcount, "userorder", action, "__id__")}--> <!--取得分页页码列表-->
      <!--angelcms{foreach(DataRow dr in list2.Rows)}-->
      <tr>
        <td>{dr[order_no]}</td>
        <td>
          <!--angelcms{set List<Angelcms.Model.Age_article> ls=get_order_goods_list({strtoint({dr[id]})})}-->
          <!--angelcms{if(ls!=null)}-->
          <!--angelcms{foreach(Angelcms.Model.Age_article modelt in ls)}-->
          <a target="_blank" title="{modelt.title}" href="<!--angelcms{linkurl("products_show",{modelt.id})}-->"><img width="60" height="60" alt="{modelt.title}" src="{modelt.img_url}"></a>
          <!--angelcms{/foreach}-->
          <!--angelcms{/if}-->
        </td>
        <td align="center">{dr[accept_name]}</td>
        <td align="center"><strong>￥{dr[order_amount]}</strong><br /><!--angelcms{=get_payment_title({strtoint({dr[payment_id]})})}--></td>
        <td align="center">{dr[add_time]}</td>
        <td align="center"><!--angelcms{=get_order_status({strtoint({dr[id]})})}--></td>
        <td align="center"><a href="<!--angelcms{linkurl("userorder_show",{dr[id]})}-->">查看订单</a></td>
      </tr>
      <!--angelcms{/foreach}-->
      <!--angelcms{if(totalcount<1)}-->
      <tr><td colspan="8" align="center">暂无记录</td></tr>
      <!--angelcms{/if}-->
    </table>
    
    <div class="page_foot">
      <div class="flickr right">{pagelist2}</div><!--放置页码列表-->
    </div>
    <!--angelcms{/if}-->   

	</div>
	</div>
    <!--会员中心-->
  <div class="clear"></div>
		<div class="block-foot"><div><div>-</div></div></div>
			</div>
		</div>
		</div>
		<div class="col-sub">
   <div class="block first-block block-products  list-240" id="block-products-89301" rel="89301"> 
   <!--UserCenter navtion-->
    <!--angelcms{template src="ucenter_nav.html"}-->
    <!--UserCenter navtion-->
    <div class="block-foot">
	<div><div>-</div></div></div>
	</div>
	

	</div>
	
	</div>
	</div>
	</div>
</div>
</div>
<!--Footer-->
<!--angelcms{template src="footer.html"}-->
<!--/Footer-->
</body>
</html>