<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>KGCMS企业应用管理平台 - Powered by KGCMS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<!-- <meta http-equiv="cache-control" content="no-siteapp" /> -->
<link rel="stylesheet" href="{{ kg['tpl_url'] }}style/user_transactions.css">
<script src="{{ kg['tpl_url'] }}script/jquery.min.js"></script>
<script src="{{ kg['server']['HTTP_HOST'] }}/tools/amazeui/js/amazeui.min.js"></script>
<script src="{{kg['tpl_url']}}script/common.js"></script>
<script src="{{kg['tpl_url']}}script/user_transactions.js"></script>
</head>
<body data-type="generalComponents">
	{% include 'component_header.tpl' %}
	<div class="tpl-page-container tpl-page-header-fixed">
		<div class="scrollbar-wrap">
		{% include 'component_left.tpl' %}
		<div class="tpl-content-wrapper">
			<div class="tpl-content-page-title">
				会员交易及充值记录管理
			</div>
			<ol class="am-breadcrumb">
				<li><a href="./" class="am-icon-home">首页</a></li>
				<li class="am-active">会员交易及充值记录管理</li>
			</ol>
			<div class="tpl-portlet-components">
				<div class="portlet-title">
					<div class="caption font-green bold">
						<span class="am-icon-code"></span>&nbsp;会员交易及充值记录管理
					</div>
					<ul class="list-inline ngsty-boxR">
						<li>
							<div class="am-no-marginbtm am-select-hover  am-no-outline">
								<select onchange="window.open(this.options[this.selectedIndex].value,'_self')" data-am-selected="{btnSize: 'sm'}" style="display: none;">
									<option value="user_transactions?type=0">请选择交易类型</option>
									<option {% if type==1 %}selected="selected" {% endif %}value="user_transactions?type=1">会员在线充值</option>
									<option {% if type==2 %}selected="selected" {% endif %}value="user_transactions?type=2">管理员充值[银行转账]</option>
									<option {% if type==3 %}selected="selected" {% endif %}value="user_transactions?type=3">购买商品[消费支付]</option>
									<option {% if type==4 %}selected="selected" {% endif %}value="user_transactions?type=4">提交或修改订单</option>
									<option {% if type==5 %}selected="selected" {% endif %}value="user_transactions?type=5">购买浏览权限[消费支付]</option>
									<option {% if type==6 %}selected="selected" {% endif %}value="user_transactions?type=6">操作日志</option>
								</select>
							</div>
						</li>
						<li>
							<div class="portlet-input input-small">
								<form action="#" method="get" id="search">
									<div class="input-icon right">
										<i class="am-icon-search log-search"></i>
										<input type="text" class="form-control form-control-solid am-hover ngar-Vxiugai-radius ngco-Alo-Noborder" placeholder="搜索..." name="word" value="{{word}}" id="word">
									</div>
								</form>
							</div>
						</li>
						<li>
							<div class="am-btn-group am-btn-group-xs">
								<a href="user_transactions?{{ kg['run_start_time'][1] }}" class="am-btn am-btn-secondary ng-add-hightB"><span class="am-icon-search"></span>&nbsp;刷新</a>
							</div>
						</li>
					</ul>
				</div>
				<div class="am-g">
					<div class="am-u-sm-12 ngALL-AFenyeFu-marginT ngco-No-paddingR">
						<form class="am-form" action="#" method="post" id="am-form">
							<input type="hidden" name="action" value="" id="action" />
							<table class="am-table am-table-striped am-table-hover table-main ngco-Esz-mgibdr">
								<thead>
									<tr>
										<th><input id="all" type="checkbox" onclick="kg.select_all(this.form);" class="tpl-table-fz-check checkbox-middle"></th>
										<th>订单号/流水号</th>
										<th>会员账号</th>
										<th>交易类型</th>
										<th>金额</th>
										<th>操作结果</th>
									</tr>
								</thead>
								<tbody class="list1">
									{% for row in data %}
									<tr>
										<td><input name="id" value="{{row['id']}}" type="checkbox" class="checkbox-middle"></td>
										<td>{{row['oid']}}</td>
										<td><a href="user_transactions?word={{row['username']}}">{{row['username']}}</a></td>
										<td>{{row['type_title']}}</td>
										<td>{{row['amount']}}</td>
										<td>
											<div class="am-btn-toolbar">
												<div class="am-btn-group am-btn-group-xs">
													<span class="success am-fl" style="padding-top: 4px;{% if row['result'] %}color:#5eb95e;">成功{% else %}color:#f00;">失败{% endif %}&nbsp;</span>
													<a href="javascript:;" class="am-btn am-btn-default am-btn-xs am-text-default am-hide-sm-only" data-am-popover="{content: '订单号：{{row['oid']}}<br />会员帐号：{{row['username']}}<br />交易类型：{{row['type_title']}}<br />金额：{{row['amount']}} 元<br />交易结果：{% if row['result'] %}成功{% else %}失败{% endif %}<br />交易事件：{{row['info']}}<br />操作者IP：{{row['ip']}}<br />发生时间：{{row['date']}}',trigger: 'hover focus'}">
														<span class="am-icon-pencil-square-o"></span>&nbsp;查看详情
													</a>
												</div>
											</div>
										</td>
									</tr>
									{% endfor %}
								</tbody>
							</table>
							{% if not data %}<div class="no-data"><ul>没有相关数据</ul></div>{% endif %}
						</form>
						{% if page_data['total_rows'] %}
						<div class="am-u-sm-12 am-u-md-6">
							<div class="am-btn-toolbar ng-xno-borderL" id="select-handle">
								<span class="am-input-group-btn add-span">
									<a class="add am-btn am-btn-default am-select am-back ngco-Ono-radiusR" href="javascript:;">全选</a>
								</span>
								<select class="am-select-hover" data-am-selected="{btnSize: 'sm'}" style="display: none;">
									<option selected="selected" value='0'>将选中项：</option>
									<option value="del">删除</option>
								</select>
							</div>
						</div>
						{% endif %}
						{% if page_data['total_page'] > 1 %}
						{{ pagehtml }}
						{% endif %}
					</div>
				</div>
			</div>
			{% include 'component_footer.tpl' %}
		</div>
		</div><!-- /.scrollbar-wrap -->
	</div>
</body>
