<?php include_once(mvc::$cfg['PATH_TPL'].'public/topSeller.php');?>
<div class="maintb">
	<?php include_once(mvc::$cfg['PATH_TPL'].'seller/leftMenu.php');?>
	<div class="main_middle">
		<div class="mod-main">
			<div class="martb5">
			    <ol class="breadcrumb">
				  <li><a href="/seller/capital">资金管理</a></li>
				  <li class="active">资金冻结记录</li>
				</ol>
			</div>
			<form name="Sform" action="" method="get">
				<div class="act_row">
					<span>冻结日期：</span>
					<input type="text" name="time" value="<?php echo $Params['time'];?>" class="form-control timeLimit">
					<span>状态：</span>
					<select name="status" class="form-control">
						
						<?php foreach ($TimeArr as $K => $V) { ?>
							<option value="<?php echo $K;?>"<?php if($Params['status'] == $K){echo "selected";}?>><?php echo $V;?></option>
						<?php } ?>

					</select>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<span class="marr5">账户余额：<b class="red2"><?php echo sprintf('%.2f',$shopBase['money']);?></b> 元</span>
					<?php if($shopBase['money_unav'] > 0){?><span class="marr10">不可用金额：<a href="/seller/moneyUnav" class="blue"><b><?php echo sprintf('%.2f',$shopBase['money_unav']);?></b></a> 元</span><?php }?>
					<button class="btn btn-primary" type="submit">查询</button>
				</div>
			</form>
			<div class="clear"></div>
			<table class="table table-bordered">
				<thead>
					<tr>
						<th width="70px">冻结金额</th>
						<th>内容</th>
						<th width="70px">当前状态</th>
						<th width="150px">添加时间</th>
						<th width="150px">完成时间</th>
						<th width="150px">关闭时间</th>
					</tr>
				</thead>
				<tbody>
				<?php if(!empty($list)){ ?>
					<?php foreach ($list as  $v){ ?>
						<tr>
							<td><?php echo sprintf('%.2f',$v['mou_money']);?></td>
							<td><?php echo $v['mou_title'];?></td>
							<?php if($v['mou_status']==-1){?>
							<td>已关闭</td>
							<?php }elseif($v['mou_status']==1){?>
							<td>转账完成</td>
							<?php }else{?>
							<td>处理中</td>
							<?php }?>
							<td><?php echo date('Y-m-d H:i:s',$v['mou_atime']);?></td>
							<td><?php echo $v['mou_ok_time']?date('Y-m-d H:i:s',$v['mou_ok_time']):'';?></td>
							<td><?php echo $v['mou_close_time']?date('Y-m-d H:i:s',$v['mou_close_time']):'';?></td>
						</tr>
					<?php } ?>
				<?php }else{ ?>
					<tr>
						<td colspan="9" class="center warn">非常抱歉，未找到符合条件的资金冻结记录</td>
					</tr>
				<?php } ?>

				</tbody>
			</table>
			<div class="padtb5"></div>
			<?php echo $Page;?>
		</div>
	</div>
	<div class="clear"></div>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		//绑定时间控件
		laydate.render({
		  type: 'datetime'
		  ,range: true
		  ,elem: '.timeLimit'
		});
	});
</script>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footAll.php');?>