<?php 
defined('IN_HS') or exit('Access Denied');
include admintpl('header');
?>
<body>
<?=$menu?>
<form method="post" name="myform">
<table cellpadding="2" cellspacing="1" class="tableborder">
  <tr>
    <th colspan=9>支付卡列表</th>
  </tr>
<tr align="center">
<td width="5%" class="tablerowhighlight">选中</td>
<td width="10%" class="tablerowhighlight">卡号</td>
<td width="19%" class="tablerowhighlight">密码</td>
<td width="6%" class="tablerowhighlight">面值</td>
<td width="16%" class="tablerowhighlight">开始日期</td>
<td width="7%" class="tablerowhighlight">状态</td>
<td width="7%" class="tablerowhighlight">使用者</td>
<td width="15%" class="tablerowhighlight">充值时间</td>
<td width="7%" class="tablerowhighlight">充值IP</td>
</tr>
<?php 
if(is_array($paycards))
{
foreach($paycards as $paycard){ ?>
<tr align="center">
<td><input class="checkbox_style" type="checkbox" name="id[]"  id="id[]" value="<?=$paycard['id']?>"></td>
<td><?=$paycard['serial']?></td>
<td><?=$paycard['passwd']?></td>
<td><?=$paycard['value']?></td>
<td><?=$paycard['crtdate']?></td>
<td><?=$paycard['chargeid']?></td>
<td><a href="?mod=member&file=member&action=view&username=<?=$paycard['chargeid']?>"><?=$member['username']?></a></td>
<td><?=$paycard['chargedate']?></td>
<td><?=$paycard['chargeip']?></td>
</tr>
<?php } 
}
?>
</table>
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="10%"><input class="checkbox_style" name='chkall' type='checkbox' id='chkall' onclick='checkall(this.form)' value='checkbox'>全选/反选</td>
    <td>
<input type="submit" class="btn" name="submit" value=" 删除选定的卡号 " onClick="document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=delete'">&nbsp;&nbsp;
&nbsp;&nbsp;

    </td>
  </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="30">
  <tr>
    <td align="center"><?=$pages?></td>
  </tr>
</table>
</form>
</body>
</html>