<?php
if (!defined('ROOT'))
	exit ;
?>
<!DOCTYPE html>
<html>

	<head>
		<title>充值明细</title>
		<meta name="description" content="">
		<meta name="keywords" content="">
		<?php
		include 'Inc_files.php';
		?>
	</head>

	<body data-type="index">
		<script src="<?php echo C('TMPL_PARSE_STRING.__TPL__'); ?>/assets/js/theme.js"></script>
		<div class="am-g tpl-g">
			<?php include 'Inc_head.php'?>
			<!-- 侧边导航栏 -->
			<?php
				include 'Inc_left.php';
			?>

			<!-- 内容区域 -->
			<div class="tpl-content-wrapper">
				<div class="row-content am-cf">
					<div class="row">
						<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
							<div class="widget am-cf">
								<div class="widget-head am-cf">
									<div class="widget-title  am-cf">
										充值明细
									</div>
								</div>
								<div class="widget-body  am-fr">

									<div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
										<div class="am-form-group">
											<div class="am-btn-toolbar">
												<div class="am-btn-group am-btn-group-xs">
													<a href="/recharge/add" type="button" class="am-btn am-btn-default am-btn-success">
													<span class="am-icon-plus"></span> 充值
													</a>
												</div>
											</div>
										</div>
									</div>
									<form class="form-horizontal" method="get" role="form" action="/v/lists">
										<input type="hidden" name="model_id" value="35" />
										<input type="hidden" name="uid" value="<?php echo session('user_auth.id');?>" />
										<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
											<div class="am-form-group tpl-table-list-select">
												<select data-am-selected="{btnSize: 'sm'}" name="pay_way" placeholder="支付方式">
													<option value="">支付方式</option>
													<option value="alipay" <?php echo $_GET['pay_way']=='alipay'?'selected':'';?> >支付宝</option>
													<option value="wxpay" <?php echo $_GET['pay_way']=='wxpay'?'selected':'';?> >微信</option>
													<option value="qqpay"<?php echo $_GET['pay_way']=='qqpay'?'selected':'';?> >QQ钱包</option>
												</select>
											</div>
										</div>
										<div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
											<div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
												<input type="text" name="no" value="<?php echo I('no','');?>" class="am-form-field" placeholder="订单号">
												<span class="am-input-group-btn">
												<button class="am-btn  am-btn-default am-btn-success tpl-table-list-field am-icon-search" type="submit"></button> </span>
											</div>
										</div>
									</form>
									<div class="am-u-sm-12">
										<table width="100%" class="am-table am-table-compact tpl-table-black am-table-hover" >
											<thead>
												<tr>
													<th>订单号</th>
													<th>充值金额</th>
													<th>到账金额</th>
													<th>支付方式</th>
													<th>支付时间</th>
													<th>支付流水号</th>
												</tr>
											</thead>
											<tbody>
												<?php foreach($list as $k=>$v){?>
												<tr>
													<td><?php echo $v['no'];?></td>
													<td><?php echo $v['amount'];?></td>
													<td><?php echo $v['price'];?></td>
													<td>
														<?php
														if(strstr($v['pay_way'], 'alipay')){
															echo '支付宝';
														}else if(strstr($v['pay_way'], 'wxpay')){
															echo '微信';
														}else if(strstr($v['pay_way'], 'qqpay')){
															echo 'QQ钱包';
														}else{
															echo '其他';
														}
														?>
													</td>
													<td><?php echo date('Y-m-d H:i:s',$v['pay_time']);?></td>
													<td><?php echo $v['pay_no'];?></td>
												</tr>
												<?php }?>
											</tbody>
										</table>
									</div>
									<div class="am-u-lg-12 am-cf">
										<div class="am-fr">
											<div class="am-pagination tpl-pagination">
												<?php echo $page;?>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<?php
		include 'Inc_files_boot.php';
		?>

	</body>

</html>