Subversion Repositories SmartDukaan

Rev

Rev 6679 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6497 amit.gupta 1
#set($stats=$action.getStats())
2
#set($amounts=$stats.getAmounts())
3
#set($statusCounts=$stats.getStatusCounts())
4
#set($operatorCounts=$stats.getOperatorCounts())
5
#set($currentOrders=$stats.getCurrentOrders())
6
 
7
<html>
8
<head>
9
	<title>Coupons</title>
10
	<script type="text/javascript"></script>
11
</head>
12
<body>
13
	#parse("../content/reports-common.vm")
14
	<div>
15
	<h3>Create New Gift Voucher</h3>
16
	<form id="new-coupon" name="coupon" method="POST">
17
		<div>
18
			Type: 
19
			<select name="type">
20
				<option value="27" selected="selected">Gift Voucher</option>
21
			</select>			
22
		</div>
23
		<div>
24
			User Email:
25
			<input type="text" name="userEmail"/>
26
		</div>
27
		<div>
28
			Amount:
29
			<input type="text" name="amount"/>
30
		</div>
31
		<input type="submit" value="Create" />
32
	</form>
33
	</div>
34
	<br><br>
35
	<div>
36
		<table cellspacing="0" border="1">
37
			<tr>
38
				<th>Coupon code</th>
39
				<th>User Email Id</th>
40
				<th>Amount</th>
41
				<th>Actions</th>
42
			</tr>
43
			#foreach ( $coupon in $action.getCoupons() )
44
			#set ($arguments = $action.getArguments($coupon))
45
			<tr>
46
				<td>$coupon.getCouponCode()</td>
47
				<td>$arguments.get(0)</td>
48
				<td>$arguments.get(1)</td>
49
				<td><form method="DELETE" action="coupon-gvs/$coupon.getCouponCode()"><input type="submit" value="delete" onClick="return confirm('Are you sure?')"/></form></td>
50
			</tr>
51
			#end
52
		</table>
53
	</div>
54
</body>
55
</html>