<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">
<link href=images/style.css rel=stylesheet type=text/css>
<script language="JavaScript" src="js/common.js" type="text/javascript"></script>
</head>
<body>
<h3><span><a href="tools.php?act=add_card">生成卡号</a></span></h3>
<form action="" method=post onSubmit="return checkform(this);">
<table width=100% border=0 align=center cellpadding=0 cellspacing=1 class=tableborder>
            <tr class="bgs">
			  <td width="10%" height=25>编号</td>
              <td width="20%">卡号</td>
              <td width="20%">卡密</td>
			  <td width="15%">激活日期</td>
              <td width="5%">会员ID</td>
            </tr>
<?
foreach($cards AS $row)
{
?>
            <tr>
              <td><?=$row[id]?></td>
              <td><?=$row[cardnum]?></td>
              <td><?=$row[cardkey]?></td>
			  <td><?=$row[acttime]?></td>
              <td><?=$row[userid]?></td>
            </tr>
<?
}
?>
        

	    </table>
		
		<? include tpl('page');?>
		
</form>
</body>
</html>