Subversion Repositories SmartDukaan

Rev

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