Subversion Repositories SmartDukaan

Rev

Rev 6182 | Rev 6199 | 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" />
10
	<title>Instant recharge for your mobile and DTH</title>
11
 
12
#include ( "templates/commoncssfiles.vm" )
13
 
14
	<link rel="stylesheet" href="/css/home.css" type="text/css" />
15
	<link href="https://plus.google.com/108546508648658526684" rel="publisher" />
16
	<script language="javascript" type="text/javascript" src="/js/ga-invoker.js"></script>
6066 amit.gupta 17
	<style>
18
		label.error{
19
			color:red;
20
			float:left;
21
			font-size:12px;
22
			padding: 2px 0;
23
			width:500px;
24
    </style>
6050 anupam.sin 25
</head>
26
 
27
<body>
28
	<noscript>
29
		<p id="noScript">Please enable <em>Javascript</em> for this Website to function correctly!</p>
30
	</noscript>
31
	$action.getHeaderSnippet()
32
	<!-- Main -->
33
	<div id="main">
34
		<div class="main-content">
35
			<div class="main-top"></div>
36
			<div class="main-left left">
37
				<div class="main-left-banner">
38
					<script type='text/javascript'><!--//<![CDATA[
39
               var m3_u = (location.protocol=='https:'?'https://open.saholic.com/openx/www/delivery/ajs.php':'http://open.saholic.com/openx/www/delivery/ajs.php');
40
               var m3_r = Math.floor(Math.random()*99999999999);
41
               if (!document.MAX_used) document.MAX_used = ',';
42
               document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
43
               document.write ("?zoneid=1");
44
               document.write ('&amp;cb=' + m3_r);
45
               if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
46
               document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
47
               document.write ("&amp;loc=" + escape(window.location));
48
               if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
49
               if (document.context) document.write ("&context=" + escape(document.context));
50
               if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
51
               document.write ("'><\/scr"+"ipt>");
52
            //]]>--></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>
53
				</div>
54
				<div class="recharge-main-left-container">
55
				<!--
56
					<div id="rowOne"></div>
57
					<div id="rowTwo">
58
						<span id="spantext">Recharge Your : </span><span id="hello"></span><span id="hellotoo"></span>
59
					</div>
60
					<div class="rowWidth"><span id="mobNumberText">Hello World : </span><input id="mobNumberBox" type="text"></div>-->
61
					<div id="firstCol" style="width:33%; text-align:right; float:left">
62
						<br><br><br>
63
						Recharge Your :
64
						<br><br><br>
6066 amit.gupta 65
						#if($action.getServiceType() == "2")
6050 anupam.sin 66
							DTH Number :
67
						#else
68
							Mobile Number :
69
						#end
70
						<br><br><br>
71
						Operator :
72
						<br><br><br>
6178 anupam.sin 73
						<span class='planSelector' style='display:none'>Plan : <br><br><br></span>
6050 anupam.sin 74
						Amount :
75
						<br><br><br>
76
						Email :
77
						<br>
78
					</div>
79
					<div id="secondCol" style="width:3%; float:left"><br></div>
80
					<div id="thirdCol" style="width:64%;  float:left;text-align:left">
6103 amit.gupta 81
					<br>
82
					#set($errorMsg=$action.getError())
83
					#if($errorMsg.equals(""))
84
						<br>
85
					#else
86
						<div style="color: red;font-size:15px;">$errorMsg</div>
87
					#end
6050 anupam.sin 88
						<form id='serviceSelectForm' action='/recharge' method='post'>
89
						<input id='serviceType' type="hidden" name='serviceType' value=''>
90
						<input name='form' type="hidden" value='serviceSelect'>
91
						</form>
92
						<p style="display:block">
6058 anupam.sin 93
							#if($action.getServiceType() == "2")
94
								#set($dthImageSrc = '/images/dth_pressed.png')
95
								#set($phoneImageSrc = '/images/phone.png')
6050 anupam.sin 96
							#else
6058 anupam.sin 97
								#set($phoneImageSrc = '/images/phone_pressed.png')
98
								#set($dthImageSrc = '/images/dth.png')
6050 anupam.sin 99
							#end
100
							<img id="phone-image" src=$phoneImageSrc style="cursor:pointer"><img id="dth-image" src=$dthImageSrc style="cursor:pointer">
101
						</p>
102
						<br>
103
						<form id='rechargeDetailsForm' action='/confirm' method='post'>
6058 anupam.sin 104
						#if($action.getServiceType() == "2")
6050 anupam.sin 105
							#set($inputClass = 'full-size-input')
6073 amit.gupta 106
							<input type="text" name='dthnumber' maxlength="20" class="$inputClass"></input>
6050 anupam.sin 107
						#else
108
							#set($inputClass = 'regular-size-input')
6066 amit.gupta 109
							<input type="text" name='number' maxlength="10" class="$inputClass"></input>
6050 anupam.sin 110
						#end
111
						<input type='hidden' name='rechargeType' value='$action.getServiceType()'>
112
						<br><br>
6057 anupam.sin 113
						#set($providerMap = $action.getProviderMap())
114
						#set($providerKeys = $action.getProviderKeys())
6178 anupam.sin 115
						<select id='operatorSelector' name='operator' style="font-size:20px; padding: 5px;">
6057 anupam.sin 116
							<option value='0'>Select Operator</option>
117
							#foreach($providerKey in $providerKeys)
118
								<option value='$providerKey'>$providerMap.get($providerKey)</option>
119
							#end
6050 anupam.sin 120
						</select>
6141 anupam.sin 121
						#if($action.getServiceType() == "1")
6143 anupam.sin 122
							<span style="font-size: 12px; padding-left: 10px;color: blue;">MNP Users choose operator manually</span>
6178 anupam.sin 123
						#else
124
							<span style="color: blue; display: inline-block; width: 247px; font-size: 12px; margin-top: -5px;" id="accNumberHelp"></span>
6141 anupam.sin 125
						#end
6050 anupam.sin 126
						<br><br>
6178 anupam.sin 127
						<span id='planSelector' class='planSelector'>
128
							<select id='planDropDown' name='plan' style='font-size: 18px;padding: 5px;'></select>
129
							<span id='planDescription' style='font-size: 13px;padding-left: 10px;color: blue;'></span>
130
							<br><br>
131
						</span>
6066 amit.gupta 132
						#if($action.getServiceType() == "1")
133
							#set($name='amount')
134
						#else
135
							#set($name='dthamount')
136
						#end
137
						<input type="text" maxlength="5" name='$name' style="background: white url('/images/Rupee.png') no-repeat 2px;" class='regular-size-input'></input>
6050 anupam.sin 138
						<div style="margin-top:20px">
6111 anupam.sin 139
							#if($action.getUserInfo().isLoggedIn())
140
								#set($emailId = $action.getUserInfo().getEmail())
141
							#else
142
								#set($emailId = "")
143
							#end
144
							<input type="text" name='email' class='full-size-input' value ='$emailId'></input>
6050 anupam.sin 145
							<br>
146
							<span style="font-size:13px">We will send recharge confirmation on this address.</span>
147
						</div>
148
						</form>
149
						<br><br>
6066 amit.gupta 150
						<div id="confirm-button" class="submit-button">CONFIRM &gt;</div>
6050 anupam.sin 151
					</div>
6066 amit.gupta 152
 
6050 anupam.sin 153
				</div>
154
			</div>
6066 amit.gupta 155
			<div class="widgets right">
156
				<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 157
			</div>
158
		</div>
159
	</div>
160
	#include("templates/footer.vm")
161
	#include ( "templates/commonjsfiles.vm" )
6178 anupam.sin 162
		<script>
163
	jQuery('.planSelector').hide();
164
	#if($action.getServiceType() == "1")
165
	var jsonMap = $action.getPlanMapInJson();
166
	jQuery('#operatorSelector').change(function() {
167
		jQuery('#planSelector select#planDropDown').children().remove();
168
		jQuery('.planSelector').hide();
169
		var operatorId = jQuery('#operatorSelector option:selected').val();
170
		plans = jsonMap[operatorId];
171
		jQuery.each(plans, function(i, plan) {
172
			var planName = plan.name;
173
			var planDisplayName = plan.displayName;
174
			var planDescription = plan.description;
175
			jQuery('.planSelector').show();
176
			if(i==0) {
177
    			jQuery('#planDropDown').append("<option selected='true' value='" + planName + "' desc='" + planDescription + "'>" + planDisplayName + "</option>");
178
    		} else {
179
    			jQuery('#planDropDown').append("<option value='" + planName + "' desc='" + planDescription + "'>" + planDisplayName + "</option>");
180
			}
181
		});
182
		jQuery('#planDescription').html(jQuery('#planDropDown option:selected').attr('desc'));
183
	});
184
	jQuery('#planDropDown').change(function() {
185
		jQuery('#planDescription').html(jQuery('#planDropDown option:selected').attr('desc'));
186
	});
187
	#else	
6184 anupam.sin 188
	var helpMap = {"1":"Your VC number starts with 0 and is 11 digits long.",
189
				"2":"Smart card number starts with 2 and is 12 digits long",
190
				"3":"Smart card number starts with 4 and is 11 digits long.",
191
				"4":"Subscriber ID starts with 1 and is 10 digits long.",
192
				"5":"To get your customer ID, SMS ID to 9212012299 from your registered mobile no."};
6178 anupam.sin 193
	jQuery('#operatorSelector').change(function() {
194
		jQuery('#accNumberHelp').html(helpMap[jQuery('#operatorSelector option:selected').val()]);
195
	});
196
	#end
197
	</script>
6050 anupam.sin 198
</body>
199
</html>