<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">
<script type="text/javascript" src="../include/calendar.php"></script>
<link rel="stylesheet" rev="stylesheet" href="../include/calendar/calendar.css" type="text/css" media="all" />
<link href=images/style.css rel=stylesheet type=text/css>
<script language="JavaScript" src="js/common.js" type="text/javascript"></script>
<body>
<table width=100% border=0 align=center cellpadding=0 cellspacing=1 class=tableborder>

      <form name="form" action="" method=post>
		<tr class="bgs">
			<td width="5%">选中</td>
            <td width="5%">类型</td>
			<td width="20%">流水号</td>
            <td width="5%">金额</td>
            <td width="5%">数值</td>			
			<td width="5%">手续费</td>
			<td width="10%">支付结果</td>
            <td width="5%">用户ID</td>
            <td width="5%">商户ID</td>
			<td width="10%">支付时间</td>
			<td width="10%">操作</td>
        </tr>
       
		<?php 
		if(is_array($pays))
		{
			foreach($pays as $pay)
			{ 
		?>
		<tr align="center" onMouseOut="this.style.backgroundColor='#F1F3F5'" onMouseOver="this.style.backgroundColor='#BFDFFF'" bgColor='#F1F3F5'>
		<td><input name="id[]" type="checkbox" id="id[]" value="<?=$pay[payid]?>" /><?=$row[id]?></td>
		<td><?=$pay['moneytype']?></td>
        <td><a href="payonline.php?act=view&payid=<?=$pay['payid']?>"><?=$pay['orderid']?></a></td>
		<td><?=$pay['amount']?></td>
        <td><?=$pay['nums']?></td>
		<td><?=$pay['trade_fee']?></td>
		<td><?=$STATUS[$pay['status']]?></td>
        <td><a href="member.php?act=edit&id=<?=$pay['userid']?>"><?=$pay['userid']?></a></td>
        <td><?=$pay['comid']?></td>
		<td><?=$pay['receivetime'] ? date('Y-m-d h:i:s', $pay['receivetime']) : ''?></td>
		<td class="tda">
		<?php if(!$pay['status']){?>
		<a href="payonline.php?act=check&payid=<?=$pay['payid']?>">审核</a>
		<?php } ?>
		</td>
		</tr>
		<?php
			} 
		}
		?>
        <tr>
          <td colspan="11">&nbsp;&nbsp;
			<input name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/>
			<input type="hidden" name="act" value="delete">
			<input type="submit" name="submit2" id="submit2" value=" 删 除 " onClick="if(!confirm('确定要操作吗？\n\n此操作不可以恢复！'))return false;">
            <? include tpl('page');?>
			</td>
        </tr>
      </form>
    </table>
</body>
</html>