Subversion Repositories SmartDukaan

Rev

Rev 6680 | Rev 7563 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6680 Rev 6730
Line 52... Line 52...
52
			<span style='color:blue;text-decoration:underline;' onclick='showOptional()'>
52
			<span style='color:blue;text-decoration:underline;' onclick='showOptional()'>
53
				Optional Parameters
53
				Optional Parameters
54
			</span>
54
			</span>
55
		<div id='optional' style='display:none'>
55
		<div id='optional' style='display:none'>
56
			<div class='form-div'>
56
			<div class='form-div'>
-
 
57
				Coupon Code:
-
 
58
				<input type="text" name="couponCode"/>
-
 
59
			</div>
-
 
60
			<div class='form-div'>
57
				Limit per user:
61
				Limit per user:
58
				<input type="text" name="userLimit"/>
62
				<input type="text" name="userLimit"/>
59
			</div>
63
			</div>
60
    		<div class='form-div'>
64
    		<div class='form-div'>
61
    			Global Limit:
65
    			Global Limit:
Line 92... Line 96...
92
		</div>
96
		</div>
93
	</form>
97
	</form>
94
	</div>
98
	</div>
95
	<br><br>
99
	<br><br>
96
	<div>
100
	<div>
97
		<table cellspacing="0" border="1">
101
		<table style="width:100%;" cellpadding="5" cellspacing="0" border="1">
98
			<tr>
102
			<tr>
99
				<th>Coupon code</th>
103
				<th>Coupon code</th>
100
				<th>User Email Id</th>
104
				<th>User Email Id</th>
101
				<th>Amount</th>
105
				<th>Amount</th>
-
 
106
				<th>Applicable On</th>
102
				<th>Actions</th>
107
				<th>Actions</th>
103
			</tr>
108
			</tr>
104
			#foreach ( $coupon in $action.getCoupons() )
109
			#foreach ( $coupon in $action.getCoupons() )
105
			#set ($arguments = $action.getArguments($coupon))
110
			#set ($arguments = $action.getArguments($coupon))
106
			<tr>
111
			<tr>
107
				<td>$coupon.getCouponCode()</td>
112
				<td>$coupon.getCouponCode()</td>
108
				<td>$arguments.get(0)</td>
113
				<td>$arguments.get(0)</td>
109
				<td>$arguments.get(1)</td>
114
				<td>$arguments.get(1)</td>
-
 
115
				<td>$arguments.get(2)</td>
-
 
116
				<td>
-
 
117
					#if($arguments.get(0) == "ERROR")
-
 
118
						ERROR
-
 
119
					#else
-
 
120
					<form style='margin:0px;text-align:center;' method="DELETE" action="coupon-gvs/$coupon.getCouponCode()">
110
				<td><form method="DELETE" action="coupon-gvs/$coupon.getCouponCode()"><input type="submit" value="delete" onclick="return confirm('Are you sure?')"/></form></td>
121
						<input type="submit" value="delete" onclick="return confirm('Are you sure?')"/>
-
 
122
					</form>
-
 
123
					#end
-
 
124
				</td>
111
			</tr>
125
			</tr>
112
			#end
126
			#end
113
		</table>
127
		</table>
114
	</div>
128
	</div>
115
</body>
129
</body>