<?php
session_start();
require('../conn.php');
require('../functions.php');
require('admin.php');
$page=$_GET['page'];
if(is_numeric($page)==false){
	$page=1;
}else{
	$page=$page+1;
}

//删除会员
$state2=guolv($_GET['state2']);
if(is_numeric($state2)){
	$mysql->execute("update `txdata` set `state`=2 where `id`='{$state2}'");
	echo "<script>alert('操作成功');location.href='txlist.php'</script>";
	exit;
}
?>

<?php include('head.php')?>    

    <div class="container-fluid">
        
        <div class="row-fluid">
		<?php
		include('left.php');
		?>
<div class="span9">
            <h1 class="page-title">等待提现</h1>
		
<div class="well">
    <div id="myTabContent" class="tab-content">
      <div class="tab-pane active in" id="home">
		<div class="well">
<div class="pull-right">
<a href="outexcel.php" target="_blank" class="btn btn-primary">批量支付导出excel</a>
<button class="btn"><a href="txlist0.php">首页</a></button>
<button class="btn"><a href="?page=<?php echo $page?>">下一页</a></button>
</div>			
    <table class="table">
      <thead>
        <tr>
		  <th>申请时间</th>
		  <th>用户ID</th>
		  <th>真实姓名</th>
		  <th>支付宝</th>
		  <th>提现金额</th>
		  <th>操作</th>
        </tr>
      </thead>
      <tbody>
<?php
$row=$mysql->query("select * from `txdata` where `state`=0 order by `id` desc");
$row_tx=page_array(50,$page,$row,0);
	  foreach($row_tx as $v_tx){
		$time=date("Y-m-d H:i",$v_tx['time']);
print <<<table
        <tr>
		  <td>{$time}</td>
		  <td>{$v_tx['uid']}</td>
		  <td>{$v_tx['realname']}</td>
		  <td>{$v_tx['alipay']}</td>
		  <td>{$v_tx['money']}</td>
		  <td>
			<a class="btn" href="?state2={$v_tx['id']}">拒绝支付</a>
		  </td>
        </tr>
table;

	  }
	  ?>  
      </tbody>
    </table>
</div>
      </div>
      <div class="tab-pane fade" id="profile">
      </div>
  </div>

</div>

        </div>
    </div>
    

    
    <footer>
        <hr>
        
        <p class="pull-right"><!--power by right--></p>
        
        
        <p><!--power by --></p>
    </footer>
    

    

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="lib/bootstrap/js/bootstrap.js"></script>
	


  </body>
</html>


