Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
3389 varun.gupt 1
<html>
2
<head>
3
	<title>Active Coupons</title>
4
	<style>
5
table	{	font-size: 12px;	}
6
td	{	border-color: #000000;	}
7
.payments, .carts	{	text-align: center;	}
8
    </style>
9
</head>
10
<body>
11
	#set($coupons = $action.getActiveCoupons())
6360 amit.gupta 12
	#set($vouchers = $action.getActiveGiftVouchers())
3389 varun.gupt 13
 
14
	<table border="1" cellspacing="0" cellpadding="4">
15
	<thead>
16
		<tr>
17
			<th>Coupon Code</th>
18
			<th>Successful Payments</th>
19
			<th>Cart Applications</th>
20
			<th>Description</th>
21
        </tr>
22
    </thead>
23
	<tbody>
24
	#foreach($coupon in $coupons)
25
        <tr>
26
			<td>$coupon.code</td>
27
            <td class="payments">$coupon.getPaymentsCount()</td>
28
			<td class="carts">$coupon.getCartsCount()</td>
29
			<td class="desc">$coupon.getDescription()</td>
30
		</tr>
31
	#end
32
    </tbody>
33
    </table>
6360 amit.gupta 34
 
35
	<br>
36
	<br>
37
 
38
	<table border="1" cellspacing="0" cellpadding="4">
39
	<thead>
40
		<tr>
41
			<th>Gift Vouchers</th>
42
			<th>Total Voucher Issued</th>
43
			<th>Total Voucher Redeemed</th>
44
			<th>Total Voucher in Cart</th>
45
			<th>Total Amount Redeemed</th>
46
        </tr>
47
    </thead>
48
	<tbody>
49
	#foreach($voucher in $vouchers)
50
        <tr>
51
			<td>$voucher.getPromotionName()</td>
52
            <td>$voucher.getTotalVoucherIssued()</td>
53
			<td class="carts">$voucher.getTotalVouchersRedeemed()</td>
54
			<td class="desc">$voucher.getTotalVouchersInCart()</td>
55
			<td class="desc">$voucher.getTotalAmountRedeemed()</td>
56
		</tr>
57
	#end
58
    </tbody>
59
    </table>
3389 varun.gupt 60
</body>
61
</html>