<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>
<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="5%" height=25>编号</td>
              <td width="6%">购卡人</td>
              <td width="10%">电话</td>
			  <td width="48%">地址</td>
              <td width="5%">数量</td>
              <td width="5%">价格</td>
			  <td width="10%">购卡日期</td>
              <td width="10%">配送状态</td>
            </tr>
<?
foreach($cards AS $row)
{
?>
            <tr bgcolor="#FFFFFF" align="center">
              <td><input name="id[]" type="checkbox" id="id[]" value="<?=$row[id]?>" /><?=$row[id]?></td>
              <td><?=$row[username]?></td>
              <td><?=$row[phone]?></td>
			  <td><?=$row[address]?></td>
              <td><?=$row[cardnum]?></td>
              <td class="fe43">￥<?=$row[money]?></td>
              <td><?=$row[addtime]?></td>
			  <td><?=$row[zt]?></td>
            </tr>
<?
}
?>
   <tr align=center>
          <td colspan="8" align="left" >&nbsp;&nbsp;
                <input name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/>
                <select name="type" id="type" >
                  <option>请选择操作</option>
                  <option value="zt0">未配送</option>
                  <option value="zt1">已配送</option>
                  <option value="delete">删除</option>
              </select>
                <input type="hidden" name="act" value="shopcard_batch">

                <input type="submit" name="submit2" id="submit2" value=" 确 定 " onClick="if(!confirm('确定要操作吗？'))return false;">
            
            <? include tpl('page');?></td>
        </tr>
	    </table>
		
</form>
</body>
</html>