<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<base href="{{kg['server']['WEB_URL']}}">
	<meta name="keywords" content="{{kg['web']['keyword']}}" />
	<meta name="description" content="{{kg['web']['description']}}" />
	<meta name="copyright" content="KGCMS {{kg['server']['KGCMS_VERSION']}}" />
	<!-- 自适应移动端 -->
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- 禁止缩放 -->
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>{{kg['web']['title']}}</title>
	<link rel="stylesheet" href="/tools/amazeui/css/amazeui.css" type="text/css" media="print, screen">
	<link rel="stylesheet" href="{{kg['tpl_url']}}css/cloud-admin.css" type="text/css" media="print, screen">
	<link rel="stylesheet" href="{{kg['tpl_url']}}css/default.css" type="text/css" media="print, screen">
	<link rel="stylesheet" href="{{kg['tpl_url']}}font-awesome/css/font-awesome.min.css" type="text/css" media="print, screen">
	<link rel="stylesheet" href="{{kg['tpl_url']}}css/my_address.css" type="text/css" media="print, screen">
	<script src="{{kg['server']['HTTP_HOST']}}/tools/ueditor/ueditor.parse.js"></script>
	<script src="{{kg['tpl_url']}}js/jquery-3.0.0.min.js"></script>
	<script src="{{kg['tpl_url']}}js/jquery.cookie.min.js"></script>
	<script src="{{kg['tpl_url']}}js/bootstrap.min.js"></script>
	<script src="{{kg['tpl_url']}}js/area.js"></script>
	<script src="{{kg['tpl_url']}}js/js.js"></script>
	<script src="{{kg['tpl_url']}}js/common.js"></script>
	<script src="{{kg['tpl_url']}}js/info_modify.js"></script>
</head>

<body>
	<!-- 头部 -->
	{% include 'component_header.tpl' %}
	<!-- 头部end -->
	<div>
		<div class="container" style="padding: 0;">
			<section id="page">
				<!-- 左侧导航栏 -->
				{% include 'component_left.tpl' %}
				<!-- 左侧导航栏end -->
				<!-- 右侧内容 -->
				<div id="main-content">
					<div class="container" style="width: 100%;">
						<div class="row">
							<div id="content" class="col-lg-12">
								<!-- 内容头部位置 -->
								<div class="row">
									<div class="col-sm-12">
										<div class="page-header">
											<ul class="breadcrumb">
												<li><i class="fa fa-home"></i><a href="./"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">{{kg['lang'][2]}}</font></font></a></li>
												<li><a href="center"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">{{kg['lang'][3]}}</font></font></a></li>
												<li><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">{{kg['lang'][4]}}</font></font></li>
											</ul>
										</div>
									</div>
								</div>
								<!-- 内容头部位置end -->
								<div class="row">
									<div class="col-md-12">
										<div class="box border primary">
											<div class="box-title">
												<h4>{{kg['lang'][0]}}</h4>
											</div>
											<div class="box-body">
												<table class="table table-bordered table-hover table_my_address">
													<thead>
														<tr>
															<th>{{kg['lang'][5]}}</th>
															<th>{{kg['lang'][6]}}</th>
															<th>{{kg['lang'][7]}}</th>
															<th>{{kg['lang'][8]}}</th>
															<th>{{kg['lang'][9]}}</th>
														</tr>
													</thead>
													<tbody>
														{% for row in kg['order'] %}
														<tr>
															<td>{{row['oid']}}</td>
															<td>{{row['date']}}</td>
															<td>{{row['amount']}}</td>
															<td>{{row['status_title']}}</td>
															<td>
																<a class="btn btn-xs btn-info" href="checkout?id={{row['id']}}"><i class="fa fa-eye">&nbsp;</i>{{kg['lang'][10]}}</a>
																{% if row['status'] == 0 %}
																<a class="btn btn-xs btn-primary" href="/user/order?action=pay&id={{row['id']}}"><i class="fa fa-credit-card">&nbsp;</i>{{kg['lang'][11]}}</a>
																<a class="btn btn-xs btn-success" href="/user/order?action=cancel&id={{row['id']}}"><i class="fa fa-pencil">&nbsp;</i>{{kg['lang'][12]}}</a>
																<a class="btn btn-xs btn-pink" href="checkout?id={{row['id']}}"><i class="fa fa-pencil-square-o">&nbsp;</i>{{kg['lang'][13]}}</a>
																{% endif %}
																{% if row['status'] in [-4, 4] %}
																<a class="btn btn-xs btn-danger" href="/user/order?action=del&id={{row['id']}}"><i class="fa fa-trash-o">&nbsp;</i>{{kg['lang'][14]}}</a>
																{% endif %}
																{% if row['status'] == 4 %}
																<a class="btn btn-xs btn-default" href="javascript(viod0);"><i class="fa fa-check-circle">&nbsp;</i>{{kg['lang'][15]}}</a>
																{% endif %}
															</td>
														</tr>
														{% endfor %}
													</tbody>
												</table>
												{% if not kg['order'] %}<div class="center no_data">没有相关数据</div>{% endif %}
												<div class="row">
													<div class="col-sm-12">
														{% if kg['order'] %}{{kg['page_html']}}{% endif %}
													</div>
												</div>
											</div>
										</div>	
									</div>
								</div>
								<div class="row">
									<div class="col-sm-12">{% include 'component_footer.tpl' %}</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!-- 右侧内容end -->
			</section>
		</div>
	</div>
</body>

</html>