Subversion Repositories SmartDukaan

Rev

Rev 6268 | Rev 6292 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6050 anupam.sin 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5
 
6
<!-- Prevent MS Office toolbar from changing layout -->
7
	<meta name="google-site-verification" content="NPHVASYh9ZsYbjffRuAU4dhEHhx7xSKUj9GycYUMo_o" /> 
8
	<META name="y_key" content="116f6310a0df3c4f" />
9
	<meta name="msvalidate.01" content="A9BB200170442859BD6DF681353ACD78" />
6204 rajveer 10
 
11
	<meta name="Description" content="$action.getPageMetaDesc()" />
12
	<meta name="keywords" content="$action.getPageMetaKeywords()" />
13
    <title>$action.getPageTitle() | ${domain.name}</title>
14
 
6050 anupam.sin 15
#include ( "templates/commoncssfiles.vm" )
16
 
17
	<link rel="stylesheet" href="/css/home.css" type="text/css" />
18
	<link href="https://plus.google.com/108546508648658526684" rel="publisher" />
19
	<script language="javascript" type="text/javascript" src="/js/ga-invoker.js"></script>
6066 amit.gupta 20
	<style>
21
		label.error{
22
			color:red;
23
			float:left;
24
			font-size:12px;
25
			padding: 2px 0;
26
			width:500px;
6260 anupam.sin 27
		}
28
 
6267 anupam.sin 29
		input.error{
30
			border: solid 1px red;
6260 anupam.sin 31
		}
6267 anupam.sin 32
 
6268 anupam.sin 33
		select.error{
34
			border: solid 1px red;
35
		}
36
 
6260 anupam.sin 37
		div.icon-row{
38
    		height: 50px;
39
    		margin-top: 5px;
40
		}
41
 
42
		div.recharge-main-left-container div{
43
			height:50px;
44
			margin-top:2px;
45
		}
46
 
47
		span.label-text{
48
    		padding: 15px;
49
    		float: left;
50
    		width: 250px;
51
    		text-align: right;
52
		}
53
 
54
		div.error-msg{
55
    		color: red;
56
    		font-size:15px;
57
    		padding: 5px 5px 10px 5px;
58
    		text-align: center;
59
		}
60
 
61
		span.inputBox{
62
			padding: 10px 15px 10px 5px;
63
            display: inline-block;
64
            height: 30px;
65
            width: 280px;
66
			float:left;
67
		}
68
 
69
		.fullsize{
70
			height:100%;
71
			width:227px;
72
			padding-left: 48px;
73
			font-size: 18px;
74
			border: solid 1px grey;
75
		}
76
 
77
		.submit-button{
78
			background: -2px -5px url('/images/confirm.png');
79
            cursor: pointer;
80
            display: inline-block;
81
            font-size: 15px;
82
            font-weight: bold;
83
            text-shadow: 0px 1px 0px #E45000;
84
            outline: medium none;
85
            overflow: visible;
86
            text-align: center;
87
            height: 40px;
88
            color: white;
89
			width: 190px;
90
		}
6289 anupam.sin 91
 
92
		.textCenter{
93
			text-align:center;
94
		}
95
 
96
		.leftPadded{
97
			padding-left:50px;
98
		}
99
 
100
		.padding12{
101
			padding-bottom:12px;
102
		}
103
 
104
		table, th, td{
105
			padding:5px;
106
			border-collapse:collapse;
107
			border:1px solid darkgrey;
108
		}
109
 
110
		th{
111
			background:#2978C1;
112
			color:white;
113
		}
114
 
115
		b{
116
			color: blue;
117
			cursor: pointer;
118
		}
119
 
6066 amit.gupta 120
    </style>
6260 anupam.sin 121
 
6050 anupam.sin 122
</head>
123
 
124
<body>
125
	<noscript>
126
		<p id="noScript">Please enable <em>Javascript</em> for this Website to function correctly!</p>
127
	</noscript>
128
	$action.getHeaderSnippet()
6289 anupam.sin 129
 
130
	<div id='popularPlansDiv' style="padding:15px;border: 1px solid #2978C1;position: fixed;width: 672px;font-size: 15px;background: white;box-shadow: 0px 0px 10px 5px darkgrey;left:189px;top:110px;display:none;">
131
		<div style="padding-bottom: 15px;font-size: 20px;font-weight: bold;color: #555555;">
132
			<span>Popular Plans</span>
133
			<span id="closePlans" style="background: url('/images/closePlans.png');height: 25px;width: 25px;cursor:pointer;float: right;"></span>
134
		</div>
135
		<div id="popularPlansInner" style="height: 202px;overflow: auto;border: 1px solid darkgrey;">
136
 
137
		</div>
138
    </div>
139
 
6050 anupam.sin 140
	<!-- Main -->
141
	<div id="main">
142
		<div class="main-content">
143
			<div class="main-top"></div>
144
			<div class="main-left left">
145
				<div class="main-left-banner">
146
					<script type='text/javascript'><!--//<![CDATA[
147
               var m3_u = (location.protocol=='https:'?'https://open.saholic.com/openx/www/delivery/ajs.php':'http://open.saholic.com/openx/www/delivery/ajs.php');
148
               var m3_r = Math.floor(Math.random()*99999999999);
149
               if (!document.MAX_used) document.MAX_used = ',';
150
               document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
151
               document.write ("?zoneid=1");
152
               document.write ('&amp;cb=' + m3_r);
153
               if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
154
               document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
155
               document.write ("&amp;loc=" + escape(window.location));
156
               if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
157
               if (document.context) document.write ("&context=" + escape(document.context));
158
               if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
159
               document.write ("'><\/scr"+"ipt>");
160
            //]]>--></script><noscript><a href='http://open.saholic.com/openx/www/delivery/ck.php?n=a592d2cd&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://open.saholic.com/openx/www/delivery/avw.php?zoneid=1&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a592d2cd' border='0' alt='' /></a></noscript>
161
				</div>
6249 anupam.sin 162
				<div style='height: 30px;background-color: #2789C1;font-size: 14px;font-weight: bold;color: #FFFFFF;border: solid 1px #2789C1;width: 100%;'>
163
					<div style='margin:0 10px 0 10px;padding-top:7px'>
164
						ENTER YOUR DETAILS
165
					</div>
166
				</div>
6050 anupam.sin 167
				<div class="recharge-main-left-container">
6260 anupam.sin 168
    				#if($action.getOperatorId()!=0)
169
    					<h1 style="margin-top:5px; text-align:center;">$action.getPageName()</h1>
170
    				#end
171
    				#set($serviceType=$action.getServiceType())
172
    				<div style='height:15px;' class='error-msg'>
173
						#set($errorMsg=$action.getError())
174
						#if($errorMsg.equals(""))
175
    					#else
176
    						Oops! There seems to be some network issue. Please try later.
177
    					#end
178
    				</div>
179
    				<form id='serviceSelectForm' action='/recharge' method='post'>
180
    					<input id='serviceType' type="hidden" name='serviceType' value=''>
181
    					<input name='form' type="hidden" value='serviceSelect'>
182
    				</form>
183
 
184
    				<form id='rechargeDetailsForm' action='/confirm' method='post' onsubmit="trackEventWithGA('Recharge', 'Confirm', '')">
6289 anupam.sin 185
						<input type='hidden' id='circleName' name='circleName' value=''>
6260 anupam.sin 186
    					<input type='hidden' name='rechargeType' value='$serviceType'>
187
    					#set($providerMap = $action.getProviderMap())
188
 
189
        				#if($serviceType=="1")
190
        					<div class='icon-row'>
191
        						<span class='label-text' style='float:left'>Recharge Your :</span>
192
        						<span id='phone-image-not-clickable' style="background-image:url('/images/phone_pressed.png'); display:inline-block; height:50px; width:107px;">
193
        						</span>
194
        						<span id='dth-image' style="background-image:url('/images/dth.png'); display:inline-block; height:50px; width:107px;cursor:pointer">
195
        						</span>
196
        					</div>
197
 
198
        					<div id='mobile-number' class='row'>
199
        						<span class='label-text'>Mobile Number :</span>
200
        						<span class='inputBox'>
201
        							<input type='text' name='number' maxlength="10" class='fullsize' style="background: white url('/images/+91.png') no-repeat 2px;">
202
        						</span>
203
        					</div>
204
 
205
        					<div id='operator' class='row'>
206
        						<span class='label-text'>Operator :</span>
207
        						<span class='inputBox' style='width:170px'>
208
        							<select select id='operatorSelector' name='operator' style="height: 30px;font-size: 18px;width: 180px;">
209
        								<option value='0'>Select Operator</option>
210
            							#foreach($providerKey in $providerMap.keySet())
211
            								<option value='$providerKey' #if($action.getOperatorId()==$providerKey)selected="true"#end>$providerMap.get($providerKey)</option>
212
            							#end
213
        							</select>
214
        						</span>
215
        						<span style="font-size: 12px; color: blue;float: left;padding: 15px 0 15px 0;">MNP Users choose operator manually</span>
216
        					</div>
217
 
218
        					<div id='plan' class='row planSelector'>
219
        						<span class='label-text'>Plan :</span>
220
        						<span class='inputBox' style='width:90px'>
221
        							<select id='planDropDown' name='plan' style="height: 30px;font-size: 18px;width: 95px;">
222
        							</select>
223
        						</span>
224
        						<span id="planDescription" style="font-size: 12px; color: blue;float: left;padding: 15px 0 15px 0;display: inline-block;"></span>
225
        					</div>
6289 anupam.sin 226
 
227
							<div id='showPlansDiv' style="height: 20px;font-size: 14px;padding-left: 284px;margin-top: 9px;display:none">
228
                            	<span id='showPlans'></span>
229
                            </div>
230
 
6260 anupam.sin 231
        					<div id='amount' class='row'>
232
        						<span class='label-text'>Amount :</span>
233
        						<span class='inputBox'>
6289 anupam.sin 234
        							<input  id="amountInput" maxlength="4" name='amount' type='text' class='fullsize' style="background: white url('/images/Rupee.png') no-repeat 2px;">
6260 anupam.sin 235
        						</span>
236
        					</div>
237
        				#else
238
 
239
        					<div class='icon-row'>
240
        						<span class='label-text' style='float:left'>Recharge Your :</span>
241
        						<span id='phone-image' style="background-image:url('/images/phone.png'); display:inline-block; height:50px; width:107px;cursor:pointer">
242
        						</span>
243
        						<span id='dth-image-not-clickable' style="background-image:url('/images/dth_pressed.png'); display:inline-block; height:50px; width:107px;">
244
        						</span>
245
        					</div>
246
 
247
        					<div id='operator' class='row'>
248
        						<span class='label-text'>Operator :</span>
249
        						<span class='inputBox' style='width:170px'>
250
        							<select select id='operatorSelector' name='operator' style="height: 30px;font-size: 18px;width: 180px;">
251
        								<option value='0'>Select Operator</option>
252
            							#foreach($providerKey in $providerMap.keySet())
253
            								<option value='$providerKey' #if($action.getOperatorId()==$providerKey)selected="true"#end>$providerMap.get($providerKey)</option>
254
            							#end
255
        							</select>
256
        						</span>
257
        						<span id="accNumberHelp" style="font-size: 12px; color: blue;padding: 5px 0 5px 0;width: 240px;display: inline-block;"></span>
258
        					</div>
259
 
260
        					<div id='mobile-number' class='row'>
261
        						<span id='dthIdAlias' class='label-text'>Account Number :</span>
262
        						<span class='inputBox'>
263
        							<input type="text" name="dthnumber" class="fullsize" style="width: 265px;padding-left: 10px;">
264
        						</span>
265
        					</div>
266
 
267
        					<div id='amount' class='row'>
268
        						<span class='label-text'>Amount :</span>
269
        						<span class='inputBox'>
270
        							<input  maxlength="5" name='dthamount' type='text' class='fullsize' style="background: white url('/images/Rupee.png') no-repeat 2px;">
271
        						</span>
272
        					</div>
6050 anupam.sin 273
						#end
6260 anupam.sin 274
 
275
    					<div id='email' class='row'>
276
    						<span class='label-text'>Email Id :</span>
277
    						#if($action.getUserInfo().isLoggedIn())
278
    							#set($emailId = $action.getUserInfo().getEmail())
279
    						#else
280
    							#set($emailId = "")
281
    						#end
282
    						<span class='inputBox'>
283
    							<input  name='email' value ='$emailId' type='text' class='fullsize' style='background-color: white;padding-left:15px;width:260px;'>
284
    							<label for="email" style="color: #555;float: left;font-size: 13px;padding: 2px 0;width: 400px;">We will send confirmation of the recharge on this address.</label>
285
    						</span>
286
    					</div>
287
 
288
						<div id="submit-button" style="margin-top: 50px;text-align: center;margin: 50px 0px 25px 0px;">
289
							<input type="submit" value="CONFIRM" class="submit-button">
6050 anupam.sin 290
						</div>
6260 anupam.sin 291
    				</form>
292
 
6050 anupam.sin 293
				</div>
294
			</div>
6066 amit.gupta 295
			<div class="widgets right">
296
				<div style="width:258px; margin-left:10px;float:right;height:636px;background-image:url('/images/back1.jpg');border:solid 1px #2789C1"></div>
6050 anupam.sin 297
			</div>
298
		</div>
299
	</div>
300
	#include("templates/footer.vm")
301
	#include ( "templates/commonjsfiles.vm" )
6289 anupam.sin 302
	<script>
303
    	jQuery('.planSelector').hide();
304
    	#if($action.getServiceType() == "1")
305
        	var jsonMap = $action.getPlanMapInJson();
306
        	jQuery('#operatorSelector').change(function() {
307
        		jQuery('#planSelector select#planDropDown').children().remove();
308
        		jQuery('.planSelector').hide();
309
        		var operatorId = jQuery('#operatorSelector option:selected').val();
310
				var operatorName = jQuery('#operatorSelector option:selected').text();
311
				if(operatorName == "AIRTEL" || operatorName == "VODAFONE") {
312
					jQuery('#showPlansDiv').show();
313
					jQuery('#showPlans').html("See popular <b class='showDenomination' denominationType='1'>TOPUP</b> and <b class='showDenomination' denominationType='2'>SPECIAL</b> plans for " + operatorName);
314
				} else {
315
					jQuery('#showPlansDiv').hide();
316
				}
317
        		plans = jsonMap[operatorId];
318
        		jQuery.each(plans, function(i, plan) {
319
        			var planName = plan.name;
320
        			var planDisplayName = plan.displayName;
321
        			var planDescription = plan.description;
322
        			jQuery('.planSelector').show();
323
        			if(i==0) {
324
            			jQuery('#planDropDown').append("<option value='" + planName + "' desc='" + planDescription + "'>" + planDisplayName + "</option>");
325
            		} else {
326
            			jQuery('#planDropDown').append("<option selected='true' value='" + planName + "' desc='" + planDescription + "'>" + planDisplayName + "</option>");
327
        			}
328
        		});
329
        		jQuery('#planDescription').html(jQuery('#planDropDown option:selected').attr('desc'));
330
        	});
331
 
332
    	#else	
333
        	var helpMap = {"1":"Your VC number starts with 0 and is 11 digits long.",
334
        				"2":"Smart card number starts with 2 and is 12 digits long.",
335
        				"3":"Smart card number starts with 4 and is 11 digits long.",
336
        				"4":"Subscriber ID starts with 1 and is 10 digits long.",
337
        				"5":"For customer ID, SMS ID to 9212012299 from your registered mobile no."};
338
        	var dthIdAliasMap = {"1":"VC Number :",
339
        						"2":"Smart Card Number :",
340
        						"3":"Smart Card Number :",
341
        						"4":"Subscriber Id :",
342
        						"5":"Customer Id :",
343
        						"0":"Account Number :"};
344
        	jQuery('#operatorSelector').change(function() {
345
        		jQuery('#accNumberHelp').html(helpMap[jQuery('#operatorSelector option:selected').val()]);
346
        		jQuery('#dthIdAlias').html(dthIdAliasMap[jQuery('#operatorSelector option:selected').val()]);
347
        	});
348
    	#end
6178 anupam.sin 349
	</script>
6050 anupam.sin 350
</body>
351
</html>