Subversion Repositories SmartDukaan

Rev

Rev 6267 | Rev 6289 | 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
		}
6066 amit.gupta 91
    </style>
6260 anupam.sin 92
 
6050 anupam.sin 93
</head>
94
 
95
<body>
96
	<noscript>
97
		<p id="noScript">Please enable <em>Javascript</em> for this Website to function correctly!</p>
98
	</noscript>
99
	$action.getHeaderSnippet()
100
	<!-- Main -->
101
	<div id="main">
102
		<div class="main-content">
103
			<div class="main-top"></div>
104
			<div class="main-left left">
105
				<div class="main-left-banner">
106
					<script type='text/javascript'><!--//<![CDATA[
107
               var m3_u = (location.protocol=='https:'?'https://open.saholic.com/openx/www/delivery/ajs.php':'http://open.saholic.com/openx/www/delivery/ajs.php');
108
               var m3_r = Math.floor(Math.random()*99999999999);
109
               if (!document.MAX_used) document.MAX_used = ',';
110
               document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
111
               document.write ("?zoneid=1");
112
               document.write ('&amp;cb=' + m3_r);
113
               if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
114
               document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
115
               document.write ("&amp;loc=" + escape(window.location));
116
               if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
117
               if (document.context) document.write ("&context=" + escape(document.context));
118
               if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
119
               document.write ("'><\/scr"+"ipt>");
120
            //]]>--></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>
121
				</div>
6249 anupam.sin 122
				<div style='height: 30px;background-color: #2789C1;font-size: 14px;font-weight: bold;color: #FFFFFF;border: solid 1px #2789C1;width: 100%;'>
123
					<div style='margin:0 10px 0 10px;padding-top:7px'>
124
						ENTER YOUR DETAILS
125
					</div>
126
				</div>
6050 anupam.sin 127
				<div class="recharge-main-left-container">
6260 anupam.sin 128
    				#if($action.getOperatorId()!=0)
129
    					<h1 style="margin-top:5px; text-align:center;">$action.getPageName()</h1>
130
    				#end
131
    				#set($serviceType=$action.getServiceType())
132
    				<div style='height:15px;' class='error-msg'>
133
						#set($errorMsg=$action.getError())
134
						#if($errorMsg.equals(""))
135
    					#else
136
    						Oops! There seems to be some network issue. Please try later.
137
    					#end
138
    				</div>
139
    				<form id='serviceSelectForm' action='/recharge' method='post'>
140
    					<input id='serviceType' type="hidden" name='serviceType' value=''>
141
    					<input name='form' type="hidden" value='serviceSelect'>
142
    				</form>
143
 
144
    				<form id='rechargeDetailsForm' action='/confirm' method='post' onsubmit="trackEventWithGA('Recharge', 'Confirm', '')">
145
    					<input type='hidden' name='rechargeType' value='$serviceType'>
146
    					#set($providerMap = $action.getProviderMap())
147
 
148
        				#if($serviceType=="1")
149
        					<div class='icon-row'>
150
        						<span class='label-text' style='float:left'>Recharge Your :</span>
151
        						<span id='phone-image-not-clickable' style="background-image:url('/images/phone_pressed.png'); display:inline-block; height:50px; width:107px;">
152
        						</span>
153
        						<span id='dth-image' style="background-image:url('/images/dth.png'); display:inline-block; height:50px; width:107px;cursor:pointer">
154
        						</span>
155
        					</div>
156
 
157
        					<div id='mobile-number' class='row'>
158
        						<span class='label-text'>Mobile Number :</span>
159
        						<span class='inputBox'>
160
        							<input type='text' name='number' maxlength="10" class='fullsize' style="background: white url('/images/+91.png') no-repeat 2px;">
161
        						</span>
162
        					</div>
163
 
164
        					<div id='operator' class='row'>
165
        						<span class='label-text'>Operator :</span>
166
        						<span class='inputBox' style='width:170px'>
167
        							<select select id='operatorSelector' name='operator' style="height: 30px;font-size: 18px;width: 180px;">
168
        								<option value='0'>Select Operator</option>
169
            							#foreach($providerKey in $providerMap.keySet())
170
            								<option value='$providerKey' #if($action.getOperatorId()==$providerKey)selected="true"#end>$providerMap.get($providerKey)</option>
171
            							#end
172
        							</select>
173
        						</span>
174
        						<span style="font-size: 12px; color: blue;float: left;padding: 15px 0 15px 0;">MNP Users choose operator manually</span>
175
        					</div>
176
 
177
        					<div id='plan' class='row planSelector'>
178
        						<span class='label-text'>Plan :</span>
179
        						<span class='inputBox' style='width:90px'>
180
        							<select id='planDropDown' name='plan' style="height: 30px;font-size: 18px;width: 95px;">
181
        							</select>
182
        						</span>
183
        						<span id="planDescription" style="font-size: 12px; color: blue;float: left;padding: 15px 0 15px 0;display: inline-block;"></span>
184
        					</div>
185
 
186
        					<div id='amount' class='row'>
187
        						<span class='label-text'>Amount :</span>
188
        						<span class='inputBox'>
189
        							<input  maxlength="4" name='amount' type='text' class='fullsize' style="background: white url('/images/Rupee.png') no-repeat 2px;">
190
        						</span>
191
        					</div>
192
        				#else
193
 
194
        					<div class='icon-row'>
195
        						<span class='label-text' style='float:left'>Recharge Your :</span>
196
        						<span id='phone-image' style="background-image:url('/images/phone.png'); display:inline-block; height:50px; width:107px;cursor:pointer">
197
        						</span>
198
        						<span id='dth-image-not-clickable' style="background-image:url('/images/dth_pressed.png'); display:inline-block; height:50px; width:107px;">
199
        						</span>
200
        					</div>
201
 
202
        					<div id='operator' class='row'>
203
        						<span class='label-text'>Operator :</span>
204
        						<span class='inputBox' style='width:170px'>
205
        							<select select id='operatorSelector' name='operator' style="height: 30px;font-size: 18px;width: 180px;">
206
        								<option value='0'>Select Operator</option>
207
            							#foreach($providerKey in $providerMap.keySet())
208
            								<option value='$providerKey' #if($action.getOperatorId()==$providerKey)selected="true"#end>$providerMap.get($providerKey)</option>
209
            							#end
210
        							</select>
211
        						</span>
212
        						<span id="accNumberHelp" style="font-size: 12px; color: blue;padding: 5px 0 5px 0;width: 240px;display: inline-block;"></span>
213
        					</div>
214
 
215
        					<div id='mobile-number' class='row'>
216
        						<span id='dthIdAlias' class='label-text'>Account Number :</span>
217
        						<span class='inputBox'>
218
        							<input type="text" name="dthnumber" class="fullsize" style="width: 265px;padding-left: 10px;">
219
        						</span>
220
        					</div>
221
 
222
        					<div id='amount' class='row'>
223
        						<span class='label-text'>Amount :</span>
224
        						<span class='inputBox'>
225
        							<input  maxlength="5" name='dthamount' type='text' class='fullsize' style="background: white url('/images/Rupee.png') no-repeat 2px;">
226
        						</span>
227
        					</div>
6050 anupam.sin 228
						#end
6260 anupam.sin 229
 
230
    					<div id='email' class='row'>
231
    						<span class='label-text'>Email Id :</span>
232
    						#if($action.getUserInfo().isLoggedIn())
233
    							#set($emailId = $action.getUserInfo().getEmail())
234
    						#else
235
    							#set($emailId = "")
236
    						#end
237
    						<span class='inputBox'>
238
    							<input  name='email' value ='$emailId' type='text' class='fullsize' style='background-color: white;padding-left:15px;width:260px;'>
239
    							<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>
240
    						</span>
241
    					</div>
242
 
243
						<div id="submit-button" style="margin-top: 50px;text-align: center;margin: 50px 0px 25px 0px;">
244
							<input type="submit" value="CONFIRM" class="submit-button">
6050 anupam.sin 245
						</div>
6260 anupam.sin 246
    				</form>
247
 
6050 anupam.sin 248
				</div>
249
			</div>
6066 amit.gupta 250
			<div class="widgets right">
251
				<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 252
			</div>
253
		</div>
254
	</div>
255
	#include("templates/footer.vm")
256
	#include ( "templates/commonjsfiles.vm" )
6178 anupam.sin 257
		<script>
258
	jQuery('.planSelector').hide();
259
	#if($action.getServiceType() == "1")
260
	var jsonMap = $action.getPlanMapInJson();
261
	jQuery('#operatorSelector').change(function() {
262
		jQuery('#planSelector select#planDropDown').children().remove();
263
		jQuery('.planSelector').hide();
264
		var operatorId = jQuery('#operatorSelector option:selected').val();
265
		plans = jsonMap[operatorId];
266
		jQuery.each(plans, function(i, plan) {
267
			var planName = plan.name;
268
			var planDisplayName = plan.displayName;
269
			var planDescription = plan.description;
270
			jQuery('.planSelector').show();
271
			if(i==0) {
6249 anupam.sin 272
    			jQuery('#planDropDown').append("<option value='" + planName + "' desc='" + planDescription + "'>" + planDisplayName + "</option>");
273
    		} else {
6178 anupam.sin 274
    			jQuery('#planDropDown').append("<option selected='true' value='" + planName + "' desc='" + planDescription + "'>" + planDisplayName + "</option>");
275
			}
276
		});
277
		jQuery('#planDescription').html(jQuery('#planDropDown option:selected').attr('desc'));
278
	});
279
	jQuery('#planDropDown').change(function() {
280
		jQuery('#planDescription').html(jQuery('#planDropDown option:selected').attr('desc'));
281
	});
282
	#else	
6184 anupam.sin 283
	var helpMap = {"1":"Your VC number starts with 0 and is 11 digits long.",
6240 anupam.sin 284
				"2":"Smart card number starts with 2 and is 12 digits long.",
6184 anupam.sin 285
				"3":"Smart card number starts with 4 and is 11 digits long.",
286
				"4":"Subscriber ID starts with 1 and is 10 digits long.",
6240 anupam.sin 287
				"5":"For customer ID, SMS ID to 9212012299 from your registered mobile no."};
6260 anupam.sin 288
	var dthIdAliasMap = {"1":"VC Number :",
289
						"2":"Smart Card Number :",
290
						"3":"Smart Card Number :",
291
						"4":"Subscriber Id :",
292
						"5":"Customer Id :",
293
						"0":"Account Number :"};
6178 anupam.sin 294
	jQuery('#operatorSelector').change(function() {
295
		jQuery('#accNumberHelp').html(helpMap[jQuery('#operatorSelector option:selected').val()]);
6240 anupam.sin 296
		jQuery('#dthIdAlias').html(dthIdAliasMap[jQuery('#operatorSelector option:selected').val()]);
6178 anupam.sin 297
	});
298
	#end
299
	</script>
6050 anupam.sin 300
</body>
301
</html>