<?php include "header.php";?>

<div class="ustatus">
<a class="submenu" href="index.php?p=coupons&amp;sp=new"><?php echo $tl["menu"]["m14"];?></a>
</div>
<div class="clear"></div>

<section>

<div class="content-border">

<table  class="table">
<tr class="content-title">
<td class="content-go">#</td>
<td><?php echo $tl["general"]["g16"];?></td>
<td><?php echo $tl["shop"]["m79"];?></td>
<td><?php echo $tl["shop"]["m80"];?></td>
<td><?php echo $tl["shop"]["m81"];?></td>
<td><?php echo $tl["shop"]["m82"];?></td>
<td class="content-go"></td>
<td class="content-go"></td>
<td class="content-go"></td>
</tr>
<?php if (isset($JAK_SHOPCOUPON_ALL) && is_array($JAK_SHOPCOUPON_ALL)) foreach($JAK_SHOPCOUPON_ALL as $v) { ?>
<tr>
<td class="content-go"><?php echo $v["id"];?></td>
<td><a href="index.php?p=coupons&sp=edit&ssp=<?php echo $v["id"];?>"><?php echo $v["title"];?></a></td>
<td><?php echo $v["code"];?></td>
<td><?php echo $v["discount"];?>&nbsp;<?php if ($v["type"] == 1) { ?>%<?php } else { ?><?php echo JAK_CURRENCY;?><?php } ?></td>
<td><img src="img/<?php if ($v["freeshipping"] == '0') { ?>not_available_s<?php } else { ?>success<?php } ?>.png" width="16" height="16" alt="shipping" /></td>
<td><?php echo $v["total"].' / '.$v["used"];?></td>
<td class="content-go"><a href="index.php?p=coupons&sp=lock&ssp=<?php echo $v["id"];?>"><img src="img/<?php if ($v["status"] == '0') { ?>locked<?php } else { ?>lockedno<?php } ?>.png" width="14" height="16" alt="locked" /></a></td>
<td class="content-go"><a href="index.php?p=coupons&sp=edit&ssp=<?php echo $v["id"];?>"><img src="img/edit.png" width="14" height="16" alt="edit" /></a></td>
<td class="content-go"><a href="index.php?p=coupons&sp=delete&ssp=<?php echo $v["id"];?>"><img src="img/delete.png" width="14" height="16" alt="delete" onclick="if(!confirm('<?php echo $tl["shop"]["coup"];?>'))return false;" /></a></td>
</tr>
<?php } ?>
</table>

<?php if ($JAK_PAGINATE) { ?>
<div class="paginate">
<?php echo $JAK_PAGINATE;?>
</div>
<?php } ?>

</div>

</section>
		
<?php include "footer.php";?>