<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>栏目管理</title>
<link href="__PUBLIC__/Admin/css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="page_tilte">
        &nbsp;&nbsp;用户提现管理
</div>
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="0" class="table">
  
    <table id="DataListing" cellspacing="1" cellpadding="0" width="100%" align="Center" border="0" style="font-size: 12px" bgcolor="#C1DAD7">
   <!--    <form id="form1" name="form1" method='post' action='' style='margin: 0px'>
  <tr bgcolor="white" style="height: 38px;">
    <td id="searchTD" style="text-align: center" colspan="7">
                处理状态：
                <select name="status" id="status">
      <option <?php if($status == '0' ): ?>selected="selected" <?php else: ?><?php endif; ?> value="0">未处理</option>
      <option <?php if($status == '1' ): ?>selected="selected" <?php else: ?><?php endif; ?> value="1">已处理</option>
      <option <?php if($status == '2' ): ?>selected="selected" <?php else: ?><?php endif; ?> value="2">取消提现</option>
      <option <?php if($status == '' ): ?>selected="selected" <?php else: ?><?php endif; ?> value="">所有</option>

    </select>&nbsp;&nbsp;
                <input type="submit" value="立即查询" />
            </td>
  </tr>
</form> -->

   <form id="form2" name="form2" method='post' action='' style='margin: 0px'>
   <tr bgcolor="white" style="height: 38px;">
    <td id="searchTD" style="text-align: right" colspan="15">
        账号&nbsp;<input name="qu" type="text" id="qu" />
        &nbsp; 
        <input type="submit" value="查询账号" />
    </td>
  </tr>
  </form>


  <tr class="repeaterHead" height="32px" style="text-align: center">
    <td>
                申请提现金额
            </td>
    <td>
                申请账户
            </td>
    <td>
                银行账户信息
            </td>
     <td>
                备注
            </td>
      <td>
                处理状态
            </td>
    <td>
                申请日期
            </td>
    <td>
                操作
            </td>
  </tr>
  <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr class="repeaterTd0" style="text-align:center;">
    <?php  
       $userBank =  checkBank($vo['username']);
       $bankName =  $userBank['bankname'];
       $bankrealname =  $userBank['bankrealname'];
       $bankcode =  $userBank['bankcode'];
       $bankaddress =  $userBank['bankaddress'];
    ?>
    <td><?php echo ($vo["amount"]); ?></td>
     <?php  $uid = idToUser($vo['username']); ?>
    <td><a href='<?php echo U('Member/edit',array('id'=>$uid));?>'><?php echo ($vo["username"]); ?></a></td>
    <td>银行名称：<?php echo $bankName; ?> <br>卡/帐号：<?php echo $bankcode; ?><br>银行户名：<?php echo $bankrealname; ?><br>付款地址：<?php echo $bankaddress; ?></td>
    <td><?php if($vo['status'] == 1): ?>已处理<?php elseif($vo['status'] == 0): ?>未处理<?php else: ?>取消提现<?php endif; ?></td>
    <td><?php echo ($vo["memo"]); ?></td>
    <td><?php echo (date("Y-m-d H:i:s",$vo["posttime"])); ?></td>
    <td><?php if($vo['status'] == 0): ?><a href='<?php echo U('Member/dealconf',array('id'=>$vo['id']));?>' onClick='return confirming()'>确认提现</a> | <a href='<?php echo U('Member/dealchannel',array('id'=>$vo['id']));?>' onClick='return confirming22();'>取消提现</a><?php else: ?><?php endif; ?></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>

  <tr>
    <td class="PagerClass" colspan="7"><?php echo ($page); ?></td>
  </tr>
</table>
<script type="text/javascript">
    function confirming() {
        var msg = confirm("确认处理提现吗？");
        if (msg != "0") {
            return true;
        }
        else {
            return false;
        }
    }

    function confirming22() {
        var msg = confirm("确认取消提现吗？");
        if (msg != "0") {
            return true;
        }
        else {
            return false;
        }
    }
</script>
</body>
</html>