<!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/center.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/js.js"></script>
	<script src="{{kg['tpl_url']}}js/common.js"></script>
	<script src="{{kg['tpl_url']}}js/center.js"></script>
	<script type="text/javascript" charset="utf-8">
		$(function(){
		console.log($.cookie('mini_sidebar'))
			console.log(jQuery('#main-content').hasClass("margin-left-0"))
		})
	</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'][3]}}</font></font></a></li>
												<li><a href="center"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">{{kg['lang'][4]}}</font></font></a></li>
												<li><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">{{kg['lang'][5]}}</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><i class="fa fa-user"></i><span class="hidden-inline-mobile"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">你好，{{kg['user']['username']}}</font></font></span></h4>
											</div>
											<div class="box-body">
												<div class="tabbable header-tabs user-profile">
													<ul class="nav nav-tabs">
														<li><a href="#pro_help" data-toggle="tab"><span class="hidden-inline-mobile"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">{{kg['lang'][33]}}</font></font></span></a></li>
														<li><a href="#pro_edit" data-toggle="tab"><span class="hidden-inline-mobile"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">{{kg['lang'][19]}}</font></font></span></a></li>
														<li class="active"><a href="#pro_overview" data-toggle="tab"><span class="hidden-inline-mobile"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">{{kg['lang'][6]}}</font></font></span></a></li>
													</ul>
													<div class="tab-content">
														<!-- 会员基本信息 -->
														<div class="tab-pane fade active in" id="pro_overview">
															<div class="">
																<table class="table table-striped table-bordered table_a">
																	<tbody>
																		<tr>
																			<td class="img_tx" rowspan="5">
																				<div class="image">
																					<div class="ewm-upload" id="qrcodeUpload">
																						<input type="file" class="input-file" id="qrcodeInput" title="点击修改图像">
																						<div id="input_add"></div>
																						<div class="ewm-box">
																							<img src="{% if kg['user']['image'] %}{{kg['user']['image']}}{% else %}{{kg['tpl_url']}}images/noavatar_big.jpg{% endif %}" onload="kg.img_auto_size(this)" width="148" height="148" border="0">
																							<button type="button" class="am-btn-circle am-btn am-btn-danger am-margin-horizontal btn-remove hide" data-btn="remove"><i class="am-icon-remove"></i></button>
																						</div>
																					</div>
																				</div>
																			</td>
																			<td class="td">{{kg['lang'][9]}}</td>
																			<td>{{kg['user']['username']}}</td>
																			<td class="td">{{kg['lang'][10]}}</td>
																			<td>{{kg['user']['money']}}</td>
																		</tr>
																		<tr>
																			<td class="td">{{kg['lang'][11]}}</td>
																			<td>{{kg['user']['rank_name']}}</td>
																			<td class="td">{{kg['lang'][12]}}</td>
																			<td>{{kg['user']['usemoney']}}</td>
																		</tr>
																		<tr>
																			<td class="td">{{kg['lang'][13]}}</td>
																			<td>{{kg['user']['scores']}}</td>
																			<td class="td">{{kg['lang'][14]}}</td>
																			<td>{{kg['user']['frequency']}}</td>
																		</tr>
																		<tr>
																			<td class="td">{{kg['lang'][15]}}</td>
																			<td>{{kg['user']['joinip']}}</td>
																			<td class="td">{{kg['lang'][16]}}</td>
																			<td>{{kg['user']['jointime']}}</td>
																		</tr>
																		<tr>
																			<td class="td">{{kg['lang'][17]}}</td>
																			<td>{{kg['user']['loginip'][1]}}</td>
																			<td class="td">{{kg['lang'][18]}}</td>
																			<td>{{kg['user']['logintime'][1]}}</td>
																		</tr>
																	</tbody>
																</table>
															</div>
														</div>
														<!-- 会员基本信息end -->
														<!-- 我的资料信息 -->
														<div class="tab-pane fade" id="pro_edit">
															<div class="">
																<table class="table table-striped table-bordered table_a">
																	<tbody>
																		<tr>
																			<td class="td">{{kg['lang'][21]}}</td>
																			<td>{{kg['user']['email']}}</td>
																			<td class="td">{{kg['lang'][22]}}</td>
																			<td>{{kg['user']['qq']}}</td>
																		</tr>
																		<tr>
																			<td class="td">{{kg['lang'][23]}}</td>
																			<td>{{kg['user']['nickname']}}</td>
																			<td class="td">{{kg['lang'][24]}}</td>
																			<td>{% if kg['user']['sex'] == 0 %}{{kg['lang'][25]}}{% elif kg['user']['sex'] == 1 %}{{kg['lang'][26]}}{% else %}{{kg['lang'][27]}}{% endif %}</td>
																		</tr>
																		<tr>
																			<td class="td">{{kg['lang'][28]}}</td>
																			<td>{{kg['user']['phone']}}</td>
																			<td class="td">{{kg['lang'][29]}}</td>
																			<td>{{kg['user']['fax']}}</td>
																		</tr>
																		<tr>
																			<td class="td">{{kg['lang'][30]}}</td>
																			<td>{{kg['user']['companyname']}}</td>
																			<td class="td">{{kg['lang'][31]}}</td>
																			<td>{{kg['user']['companyweb']}}</td>
																		</tr>
																		<tr>
																			<td class="td">{{kg['lang'][32]}}</td>
																			<td colspan="3">{{kg['user']['companyaddress']}}</td>
																		</tr>
																	</tbody>
																</table>
															</div>
														</div>
														<!-- 我的资料信息end -->
														 <!-- 最近交易记录 -->
														<div class="tab-pane fade" id="pro_help">
															<div class="">
																<table class="table table-striped table-bordered table-hover" style="margin-bottom: 20px;">
																	<thead>
																		<tr>
																			<th>{{kg['lang'][35]}}</th>
																			<th>{{kg['lang'][36]}}</th>
																			<th>{{kg['lang'][37]}}</th>
																			<th>{{kg['lang'][38]}}</th>
																		</tr>
																	</thead>
																	<tbody>
																		{% for row in kg['transaction'] %}
																		<tr>
																			<td>{{row['oid']}}&nbsp;/&nbsp;{{row['date']}}</td>
																			<td>{{row['amount']}}</td>
																			<td>{{row['type']}}</td>
																			<td>{% if row['result'] %}{{kg['lang'][39]}}{% else %}{{kg['lang'][40]}}{% endif %}</td>
																		</tr>
																		{% endfor %}
																	</tbody>
																</table>
																{% if not kg['transaction'] %}<div class="center no_data">没有相关数据</div>{% endif %}
																<div class="row {% if not kg['transaction'] %}hide{% endif %}">
																	<div class="col-sm-12" style="padding-bottom: 10px;">
																		<div class="center" style="position: relative;">
																			<a href="/user/order_logs" class="btn btn-primary">查看更多</a>
																		</div>
																	</div>
																</div>
															</div>
														</div>
														<!-- 最近交易记录end -->
													</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>