<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_juan">添加代金券</a></span></h3>
<table width=100% border=0 align=center cellpadding=0 cellspacing=1 class=tableborder>
              <tr class="bgs">
			  <td width="5%" height=25>编号</td>
              <td width="5%">金额</td>
              <td width="5%">会员ID</td>
			  <td width="10%">赠送条件</td>
              <td width="15%">使用条件</td>
              <td width="10%">有效期</td>
              <td width="8%">使用商家ID</td>
              <td width="8%">使用时间</td>
			  <td width="7%">指定商家</td>
              <td width="10%">操作</td>
            </tr>
<?
foreach($juans AS $row)
{
?>
            <tr>
              <td><?=$row[id]?></td>
              <td>￥<?=$row[money]?></td>
              <td><?=$row[userid]?></td>
              <td><?=$row[ssid]?></td>
              <td>消费满￥<?=$row[xfmy]?></td>
              <td><?=$row[yxday]?></td>
              <td><? if($row[actcid]){ ?><a href="../com.php?act=view&id=<?=$row[actcid]?>" target="_blank"><?=$row[actcid]?></a><? } ?></td>
              <td><?=$row[acttime]?></td>
			  <td><? if($row[comid]){ ?><a href="../com.php?act=view&id=<?=$row[comid]?>" target="_blank"><?=$row[comid]?></a><? } ?></td>
              <td class="tda"><a href="tools.php?act=del_juan&id=<?=$row[id]?>">删除</a></td>
            </tr>
<?
}
?>
        
	    </table>
		
		<? include tpl('page');?>
		
</body>
</html>