Subversion Repositories SmartDukaan

Rev

Rev 3389 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<html>
<head>
        <title>Active Coupons</title>
        <style>
table   {       font-size: 12px;        }
td      {       border-color: #000000;  }
.payments, .carts       {       text-align: center;     }
    </style>
</head>
<body>
        #set($coupons = $action.getActiveCoupons())
        #set($vouchers = $action.getActiveGiftVouchers())
        
        <table border="1" cellspacing="0" cellpadding="4">
        <thead>
                <tr>
                        <th>Coupon Code</th>
                        <th>Successful Payments</th>
                        <th>Cart Applications</th>
                        <th>Description</th>
        </tr>
    </thead>
        <tbody>
        #foreach($coupon in $coupons)
        <tr>
                        <td>$coupon.code</td>
            <td class="payments">$coupon.getPaymentsCount()</td>
                        <td class="carts">$coupon.getCartsCount()</td>
                        <td class="desc">$coupon.getDescription()</td>
                </tr>
        #end
    </tbody>
    </table>
        
        <br>
        <br>
        
        <table border="1" cellspacing="0" cellpadding="4">
        <thead>
                <tr>
                        <th>Gift Vouchers</th>
                        <th>Total Voucher Issued</th>
                        <th>Total Voucher Redeemed</th>
                        <th>Total Voucher in Cart</th>
                        <th>Total Amount Redeemed</th>
        </tr>
    </thead>
        <tbody>
        #foreach($voucher in $vouchers)
        <tr>
                        <td>$voucher.getPromotionName()</td>
            <td>$voucher.getTotalVoucherIssued()</td>
                        <td class="carts">$voucher.getTotalVouchersRedeemed()</td>
                        <td class="desc">$voucher.getTotalVouchersInCart()</td>
                        <td class="desc">$voucher.getTotalAmountRedeemed()</td>
                </tr>
        #end
    </tbody>
    </table>
</body>
</html>