| 8917 |
kshitij.so |
1 |
#set($banners = $action.getActiveBanners("/recharge-result"))
|
|
|
2 |
#if($banners)
|
|
|
3 |
#set($bannerCount = $banners.size())
|
|
|
4 |
#else
|
|
|
5 |
#set($bannerCount = 0)
|
|
|
6 |
#end
|
| 6050 |
anupam.sin |
7 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
8 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
9 |
<head>
|
|
|
10 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
|
11 |
|
|
|
12 |
<!-- Prevent MS Office toolbar from changing layout -->
|
|
|
13 |
<meta name="google-site-verification" content="NPHVASYh9ZsYbjffRuAU4dhEHhx7xSKUj9GycYUMo_o" />
|
|
|
14 |
<META name="y_key" content="116f6310a0df3c4f" />
|
|
|
15 |
<meta name="msvalidate.01" content="A9BB200170442859BD6DF681353ACD78" />
|
| 10015 |
kshitij.so |
16 |
<meta property="fb:admins" content="564777065" />
|
| 6050 |
anupam.sin |
17 |
<title>Recharge payment details</title>
|
|
|
18 |
|
|
|
19 |
#include ( "templates/commoncssfiles.vm" )
|
| 6339 |
anupam.sin |
20 |
#include ( "templates/commonjsfiles.vm" )
|
| 8917 |
kshitij.so |
21 |
<script type="text/javascript" charset="utf-8">
|
|
|
22 |
#if ($bannerCount == 1 )
|
|
|
23 |
jQuery('#banner-menu').slidy({
|
|
|
24 |
animation: 'none',
|
|
|
25 |
children: 'a',
|
|
|
26 |
menu: false,
|
|
|
27 |
pause: true,
|
|
|
28 |
speed: 400,
|
|
|
29 |
time: 4000
|
|
|
30 |
});
|
|
|
31 |
|
|
|
32 |
#elseif ($bannerCount > 1 && $bannerCount < 3 )
|
|
|
33 |
$(document).ready(function() {
|
|
|
34 |
$('#bannerMenu').DDSlider({
|
|
|
35 |
nextSlide: '.slider_arrow_right',
|
|
|
36 |
prevSlide: '.slider_arrow_left',
|
|
|
37 |
selector: '.slider_selector'
|
|
|
38 |
});
|
|
|
39 |
});
|
|
|
40 |
#else
|
|
|
41 |
jQuery('#banner-menu').slidy({
|
|
|
42 |
animation: 'fade',
|
|
|
43 |
children: 'a',
|
|
|
44 |
menu: true,
|
|
|
45 |
pause: true,
|
|
|
46 |
speed: 200,
|
|
|
47 |
time: 5000
|
|
|
48 |
});
|
|
|
49 |
#end
|
|
|
50 |
</script>
|
|
|
51 |
<style type="text/css">
|
|
|
52 |
.slider_arrow_left {
|
|
|
53 |
background: url(/images/left_arrow.png) no-repeat top left;
|
|
|
54 |
}
|
|
|
55 |
.slider_arrow_right {
|
|
|
56 |
background: url(/images/right_arrow.png) no-repeat top left;
|
|
|
57 |
}
|
|
|
58 |
</style>
|
| 6056 |
amit.gupta |
59 |
#set($rechargeOrder = $action.getRechargeOrder())
|
|
|
60 |
#set($status = $action.getOrderStatus())
|
| 6050 |
anupam.sin |
61 |
<link rel="stylesheet" href="/css/home.css" type="text/css" />
|
|
|
62 |
<style type="text/css">
|
|
|
63 |
#myAccount .status h1 {
|
|
|
64 |
color: #030303;
|
|
|
65 |
font-size: 18px;
|
|
|
66 |
font-weight: bold;
|
|
|
67 |
}
|
|
|
68 |
#myAccount .status .note {
|
|
|
69 |
font-size: 12px;
|
|
|
70 |
font-weight: normal;
|
|
|
71 |
}
|
|
|
72 |
#myAccount .status th {
|
|
|
73 |
background: none repeat scroll 0 0 #DAF0F8;
|
|
|
74 |
border-left: 1px solid #CCCCCC;
|
|
|
75 |
border-right: 1px solid #CCCCCC;
|
|
|
76 |
border-top: 1px solid #CCCCCC;
|
|
|
77 |
font-size: 16px;
|
|
|
78 |
text-align: center;
|
|
|
79 |
}
|
|
|
80 |
#myAccount .status td {
|
|
|
81 |
border-color: #CCCCCC;
|
|
|
82 |
border-style: solid;
|
|
|
83 |
border-width: 1px;
|
|
|
84 |
font-size: 14px;
|
|
|
85 |
text-align: center;
|
|
|
86 |
}
|
|
|
87 |
|
|
|
88 |
#myAccount .status .message > ul {
|
|
|
89 |
color: #0000FF;
|
|
|
90 |
font-size: 14px;
|
|
|
91 |
}
|
|
|
92 |
a {
|
|
|
93 |
color: #0000FF;
|
|
|
94 |
outline: medium none;
|
|
|
95 |
text-decoration: none;
|
|
|
96 |
}
|
|
|
97 |
</style>
|
|
|
98 |
<link href="https://plus.google.com/108546508648658526684" rel="publisher" />
|
|
|
99 |
<script language="javascript" type="text/javascript" src="/js/ga-invoker.js"></script>
|
|
|
100 |
</head>
|
|
|
101 |
|
|
|
102 |
<body>
|
|
|
103 |
<noscript>
|
|
|
104 |
<p id="noScript">Please enable <em>Javascript</em> for this Website to function correctly!</p>
|
|
|
105 |
</noscript>
|
|
|
106 |
$action.getHeaderSnippet()
|
|
|
107 |
<!-- Main -->
|
|
|
108 |
<div id="main">
|
|
|
109 |
<div class="main-content">
|
|
|
110 |
<div class="main-top"></div>
|
|
|
111 |
<div class="main-left left">
|
| 8917 |
kshitij.so |
112 |
#if ( $bannerCount == 0 )
|
|
|
113 |
<div class="main-left-banner" style="display: none">
|
|
|
114 |
#elseif ( $bannerCount < 3 )
|
|
|
115 |
<div class="main-left-banner" style="height: 210px;">
|
|
|
116 |
#else
|
|
|
117 |
<div class="main-left-banner" style="height: 230px;">
|
|
|
118 |
#end
|
|
|
119 |
|
|
|
120 |
#if($bannerCount > 1 && $bannerCount < 3)
|
|
|
121 |
<ul id="bannerMenu">
|
|
|
122 |
#foreach($banner in $banners)
|
|
|
123 |
#if($banner.isHasMap())
|
| 10095 |
kshitij.so |
124 |
<li class="square"><a href="$banner.getLink()" #if($banner.isTarget())target="_blank"#end banner-name='$banner.getBannerName()'><img src='/images/banners/$banner.getImageName()' usemap='#map$velocityCount' height="200" width="710"/></a>
|
| 8917 |
kshitij.so |
125 |
<map name='map$velocityCount'>
|
|
|
126 |
#set($mapdetails = $action.getbannermapdetails("$banner.getBannerName()"))
|
|
|
127 |
#foreach($mapdetail in $mapdetails)
|
|
|
128 |
<area shape="rect" coords='$mapdetail.getCoordinates()' href='$mapdetail.getMapLink()' banner-name='$banner.getBannerName()'/>
|
|
|
129 |
#end
|
|
|
130 |
</map>
|
|
|
131 |
</li>
|
|
|
132 |
#else
|
| 10095 |
kshitij.so |
133 |
<li class="square"><a href="$banner.getLink()" #if($banner.isTarget())target="_blank"#end banner-name='$banner.getBannerName()'><img src='/images/banners/$banner.getImageName()' height="200" width="710" /></a></li>
|
| 8917 |
kshitij.so |
134 |
#end
|
|
|
135 |
#end
|
|
|
136 |
</ul>
|
|
|
137 |
<div class="container">
|
|
|
138 |
<div class="slider_arrow_left"></div>
|
|
|
139 |
<div class="slider_arrow_right"></div>
|
|
|
140 |
</div>
|
|
|
141 |
#else
|
|
|
142 |
<div id="banner-menu">
|
|
|
143 |
#foreach($banner in $banners)
|
|
|
144 |
#if($banner.isHasMap())
|
| 10095 |
kshitij.so |
145 |
<a href="$banner.getLink()" #if($banner.isTarget())target="_blank"#end banner-name='$banner.getBannerName()'><img src='/images/banners/$banner.getImageName()' title="$banner.getBannerName()" usemap='#map$velocityCount'/></a>
|
| 8917 |
kshitij.so |
146 |
<map name='map$velocityCount'>
|
|
|
147 |
#set($mapdetails = $action.getbannermapdetails("$banner.getBannerName()"))
|
|
|
148 |
#foreach($mapdetail in $mapdetails)
|
|
|
149 |
<area shape="rect" coords='$mapdetail.getCoordinates()' href='$mapdetail.getMapLink()' banner-name='$banner.getBannerName()'/>
|
|
|
150 |
#end
|
|
|
151 |
</map>
|
|
|
152 |
#else
|
| 10095 |
kshitij.so |
153 |
<a href="$banner.getLink()" #if($banner.isTarget())target="_blank"#end banner-name='$banner.getBannerName()'><img src='/images/banners/$banner.getImageName()' title="$banner.getBannerName()"/></a>
|
| 8917 |
kshitij.so |
154 |
#end
|
|
|
155 |
#end
|
|
|
156 |
</div>
|
|
|
157 |
#end
|
| 6050 |
anupam.sin |
158 |
</div>
|
| 6249 |
anupam.sin |
159 |
<div style='height: 30px;background-color: #2789C1;font-size: 14px;font-weight: bold;color: #FFFFFF;border: solid 1px #2789C1;width: 100%;'>
|
|
|
160 |
<div style='margin:0 10px 0 10px;padding-top:7px'>
|
|
|
161 |
RECHARGE DETAILS
|
|
|
162 |
</div>
|
|
|
163 |
</div>
|
| 6143 |
anupam.sin |
164 |
<div style="width: 100%;border: solid 1px #2789C1;float:left;font-size: 17px;color:#444444;height: 426px;" class="recharge-main-left-container">
|
| 6123 |
anupam.sin |
165 |
#if(!$action.getRechargeOrder())
|
|
|
166 |
<div>$action.getMessage()</div>
|
|
|
167 |
#else
|
| 6050 |
anupam.sin |
168 |
<div id="myAccount">
|
|
|
169 |
<div class="status" style="width: 670px; height: 380px; border-top-width: 15px; padding: 23px 20px;">
|
| 6249 |
anupam.sin |
170 |
<div style="padding-top: 10px; padding-bottom: 20px;font-size:14px;" class="note">Please note the following details about your Online Recharge request.</div>
|
| 6050 |
anupam.sin |
171 |
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="padding-top: 2px; padding-bottom: 2px; border-top-width: 0px; border-left-width: 0px;" id="rechargeData" class="tablesorter">
|
|
|
172 |
<thead>
|
|
|
173 |
<tr>
|
| 6142 |
anupam.sin |
174 |
<th width="20%">Order Id</th>
|
|
|
175 |
<th width="20%" style="padding-top: 4px; padding-bottom: 4px;">#if ($action.isDTH()) Account Number #else Mobile Number#end</th>
|
|
|
176 |
<th width="20%">Operator</th>
|
|
|
177 |
<th width="20%">Amount</th>
|
|
|
178 |
<th width="20%" class="borderRight">Status</th>
|
| 6050 |
anupam.sin |
179 |
</tr>
|
|
|
180 |
</thead>
|
|
|
181 |
<tbody>
|
|
|
182 |
<tr>
|
| 6142 |
anupam.sin |
183 |
<td>$rechargeOrder.getDisplayId()</td>
|
| 6056 |
amit.gupta |
184 |
<td style="padding-top: 5px; padding-bottom: 5px;">$rechargeOrder.getDeviceNumber()</td>
|
|
|
185 |
<td>$action.getProvider()</td>
|
|
|
186 |
<td>$rechargeOrder.getTotalAmount()</td>
|
|
|
187 |
<td class="$status.get(0)">$status.get(1)</td>
|
| 6050 |
anupam.sin |
188 |
</tr>
|
|
|
189 |
</tbody>
|
|
|
190 |
</table>
|
|
|
191 |
<div class="message" style="padding-top: 30px;">
|
| 6056 |
amit.gupta |
192 |
$status.get(2)
|
| 6050 |
anupam.sin |
193 |
</div>
|
| 12978 |
kshitij.so |
194 |
#if($action.isRechargeModeSynchronous())
|
|
|
195 |
<div id="countdown" style="margin:10px auto auto;width:125px;display:block;"></div>
|
|
|
196 |
<script src="/js/jquery.countdown360.js" type="text/javascript" charset="utf-8"></script>
|
|
|
197 |
<script type="text/javascript" charset="utf-8">
|
|
|
198 |
$("#countdown").countdown360({
|
|
|
199 |
radius : 50,
|
|
|
200 |
seconds : 60,
|
|
|
201 |
fontColor : 'white',
|
|
|
202 |
fillStyle : '#6699ff',
|
|
|
203 |
strokeStyle : '#F6F47A',
|
|
|
204 |
autostart : true,
|
|
|
205 |
onComplete : function () { hideCountDown()}
|
|
|
206 |
})
|
|
|
207 |
function hideCountDown(){
|
|
|
208 |
$('#countdown').hide();
|
|
|
209 |
jQuery.ajax({
|
|
|
210 |
type : "GET",
|
|
|
211 |
url : "/recharge-result!getRechargeStatus?rechargeOrderId="+$rechargeOrder.getId()+"&isFinal=true",
|
|
|
212 |
success : function(response) {
|
|
|
213 |
if (response=='RECHARGE_SUCCESSFUL' || response == 'RECHARGE_FAILED' || response == 'PAYMENT_SUCCESSFUL'){
|
|
|
214 |
location.reload();
|
|
|
215 |
}
|
|
|
216 |
},
|
|
|
217 |
error : function() {
|
|
|
218 |
}
|
|
|
219 |
});
|
|
|
220 |
location.reload();
|
|
|
221 |
}
|
|
|
222 |
function checkUnknownTransactions(){
|
|
|
223 |
jQuery.ajax({
|
|
|
224 |
type : "GET",
|
|
|
225 |
url : "/recharge-result!getRechargeStatus?rechargeOrderId="+$rechargeOrder.getId()+"&isFinal=false",
|
|
|
226 |
success : function(response) {
|
|
|
227 |
if (response=='RECHARGE_SUCCESSFUL' || response == 'RECHARGE_FAILED' || response == 'PAYMENT_SUCCESSFUL'){
|
|
|
228 |
location.reload();
|
|
|
229 |
}
|
|
|
230 |
if ($('#countdown').is(':visible')){
|
|
|
231 |
window.setTimeout(checkUnknownTransactions, 5000);
|
|
|
232 |
}
|
|
|
233 |
},
|
|
|
234 |
error : function() {
|
|
|
235 |
}
|
|
|
236 |
});
|
|
|
237 |
}
|
|
|
238 |
</script>
|
|
|
239 |
<script type="text/javascript">
|
|
|
240 |
$(function(){
|
|
|
241 |
if ($('#countdown').is(':visible')){
|
| 12981 |
kshitij.so |
242 |
window.setTimeout(checkUnknownTransactions, 40000);
|
| 12978 |
kshitij.so |
243 |
}
|
|
|
244 |
});
|
|
|
245 |
</script>
|
|
|
246 |
#end
|
| 6050 |
anupam.sin |
247 |
</div>
|
|
|
248 |
</div>
|
| 6123 |
anupam.sin |
249 |
#end
|
| 6050 |
anupam.sin |
250 |
</div>
|
|
|
251 |
</div>
|
| 8917 |
kshitij.so |
252 |
<div class="widgets right">
|
|
|
253 |
$action.getCartWidgetSnippet()
|
| 8462 |
kshitij.so |
254 |
</div>
|
| 6050 |
anupam.sin |
255 |
</div>
|
|
|
256 |
</div>
|
|
|
257 |
#include("templates/footer.vm")
|
| 6107 |
rajveer |
258 |
<script type="text/javascript" charset="utf-8">
|
| 6120 |
rajveer |
259 |
#set($order = $action.getRechargeOrder())
|
|
|
260 |
|
| 6150 |
rajveer |
261 |
#if($order.getStatus().name()=="RECHARGE_SUCCESSFUL")
|
| 12530 |
amit.gupta |
262 |
ga('ecommerce:addTransaction', {
|
|
|
263 |
'id': '$order.getDisplayId()', // order ID - required
|
|
|
264 |
'affiliation': '${in.shop2020.title}', // affiliation or store name
|
|
|
265 |
'revenue': '$order.getTotalAmount()', // total - required
|
|
|
266 |
'shipping': '0', // Shipping
|
|
|
267 |
'tax': '0' // Tax
|
|
|
268 |
});
|
|
|
269 |
// addItem should be called for every item in the shopping cart.
|
|
|
270 |
ga('ecommerce:addItem', {
|
|
|
271 |
'id': '$order.getDisplayId()', // order ID - required
|
|
|
272 |
'sku': '$order.getDeviceNumber()', // SKU/code - required
|
|
|
273 |
'name': '$action.getProvider()', // product name
|
|
|
274 |
'category': 'Digital', // Category or variation
|
|
|
275 |
'price': '$order.getTotalAmount()', // unit price - required
|
|
|
276 |
'quantity': '1' // Quantity
|
|
|
277 |
});
|
|
|
278 |
ga('ecommerce:send'); // Send transaction and item data to Google Analytics.
|
| 6150 |
rajveer |
279 |
#end
|
|
|
280 |
|
| 6120 |
rajveer |
281 |
trackEventWithGA('Recharge', 'Recharge Result', '$status.get(1)');
|
|
|
282 |
</script>
|
| 6106 |
rajveer |
283 |
|
|
|
284 |
|
| 6050 |
anupam.sin |
285 |
</body>
|
|
|
286 |
</html>
|