<?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">
  
    <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">
  <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="type" id="type">
          <option value="1">账号</option>
          <option value="2">商户号</option>
        </select>&nbsp;&nbsp;<input type="text" name="keyword">
        <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;">
    <td><?php echo ($vo["ordernumber"]); ?></td>
    <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 (date("Y-m-d H:i:s",$vo["posttime"])); ?></td>
    <td><?php echo ($vo["memo"]); ?></td>
    <td><?php if($vo['status'] == 1): ?>已充值<?php else: ?>未充值 | <a href='<?php echo U('Member/orderdel',array('id'=>$vo['id']));?>' onClick='return confirming()'>删除记录</a><?php endif; ?></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
  <tr>
    <td class="PagerClass" colspan="7"><?php echo ($page); ?></td>
  </tr>
</table>
</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>