<?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">
  <form id="form1" name="form1" method='post' action='' style='margin: 0px'>
    <input name="id" type="hidden" id="id" />
    <table id="DataListing" cellspacing="1" cellpadding="0" width="100%" align="Center" border="0" style="font-size: 12px" bgcolor="#C1DAD7">
  <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>
  <tr class="repeaterHead" height="32px" style="text-align: center">
    <td>ID</td>
    <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;">
    <td><?php echo ($vo["id"]); ?></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 ($vo["amount"]); ?></td>
    <td><?php echo ($vo["bank"]); ?></td>
    <td><?php echo ($vo["type"]); ?></td>
    <td><?php if($vo['status'] == 1): ?>已处理<?php else: ?>未处理<?php endif; ?></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/payconf',array('id'=>$vo['id']));?>' onClick='return confirming()'>确认充值</a> | <a href='<?php echo U('Member/paydel',array('id'=>$vo['id']));?>' onClick='return confirming();'>删除记录</a><?php else: ?><?php endif; ?></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
  <tr>
    <td class="PagerClass" colspan="8"><?php echo ($page); ?></td>
  </tr>
</table>
  </form>
</table>
<script type="text/javascript">
  function setHoverColor(e) { e.style.backgroundColor = "#c4e4e4"; }
  function unsetHoverColor(e) { e.style.backgroundColor = "#f4f4f4"; }
  function confirming() {
      var msg = confirm("确认操作？");
      if (msg != "0") {
          return true;
      }else {
          return false;
      }
  }
</script>
</body>
</html>