| 7068 |
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">
|
| 7073 |
anupam.sin |
5 |
<link rel="stylesheet" href="css/rechargewebapp.css" type="text/css" />
|
| 7068 |
anupam.sin |
6 |
|
|
|
7 |
<script language="javascript" type="text/javascript" src="js/jquery-1.4.2.js"></script>
|
|
|
8 |
<script language="javascript" type="text/javascript" src="js/jquery.colorbox-min.js"></script>
|
|
|
9 |
<script language="javascript" type="text/javascript" src="js/jquery.validate.js"></script>
|
|
|
10 |
<script language="javascript" type="text/javascript" src="js/jquery.dataTables.min.js"></script>
|
|
|
11 |
<script language="javascript" type="text/javascript" src="js/rechargewebapp.js"></script>
|
|
|
12 |
</head>
|
|
|
13 |
|
|
|
14 |
<body style="margin: 0;">
|
|
|
15 |
<div style="height:45px;">
|
|
|
16 |
</div>
|
|
|
17 |
<div style="height:45px;background: url('images/topbar.png') repeat-x left bottom;color: white;margin: 0px;padding-left: 35px;">
|
|
|
18 |
<span style="font-size: 35px;font-family:'Times New Roman', Times, serif;">HotSpot Recharge Dashboard<span style="font-size: 14px;font-family:Arial, Arial, sans-serif;"> - Powered by Saholic.com</span></span>
|
| 7169 |
anupam.sin |
19 |
<span style="color:yellow;margin-left:20px;">Store Code : $action.getStoreCode()</span>
|
|
|
20 |
<span style="color:yellow;margin-left:20px;">Today's Collection : $action.getCollectedAmount()</span>
|
| 7096 |
anupam.sin |
21 |
<a class='home-link' href='/rch/!doLogout'>Logout</a>
|
|
|
22 |
<a class='home-link' href='/rch/report'>REPORTS</a>
|
| 7068 |
anupam.sin |
23 |
</div>
|
|
|
24 |
<div id="main" style="width: 75%;margin: 25px 0 0 25px;border: solid 1px #2789C1;">
|
|
|
25 |
|
|
|
26 |
<div style="height: 30px;background-color: #2789C1;font-size: 14px;font-weight: bold;color: white;">
|
|
|
27 |
<div style="margin: 0px 10px 0px 10px;padding-top: 7px;">
|
|
|
28 |
<span style="float:left">PLEASE ENTER DETAILS</span>
|
|
|
29 |
</div>
|
|
|
30 |
</div>
|
|
|
31 |
|
| 7096 |
anupam.sin |
32 |
<form id='rechargeDetailsForm' action='/rch/confirm' method='post' onsubmit='return validateAllFields()'>
|
| 7073 |
anupam.sin |
33 |
#if($action.getErrorMsg() == "")
|
|
|
34 |
<div class='padding-row'>
|
|
|
35 |
</div>
|
|
|
36 |
#else
|
|
|
37 |
<div class="padding-row" style="font-size: 16px;color: red;text-align: center;border: 1px solid red;margin: 5px;padding: 5px;">
|
|
|
38 |
$action.getErrorMsg()
|
|
|
39 |
</div>
|
|
|
40 |
#end
|
|
|
41 |
<div class="row">
|
|
|
42 |
<div class="text">Recharge Type : </div>
|
|
|
43 |
<div style="0 0 0 10px;">
|
| 7080 |
anupam.sin |
44 |
<input class='rechargetype' type="radio" checked name="rechargeType" value="1">Normal</input>
|
| 7139 |
amit.gupta |
45 |
<input class='rechargetype' type="radio" name="rechargeType" value="2">New Connection (FRC)</input>
|
| 7073 |
anupam.sin |
46 |
</div>
|
|
|
47 |
</div>
|
|
|
48 |
|
|
|
49 |
<div class="row">
|
|
|
50 |
<div class="text">Device Type : </div>
|
|
|
51 |
<div style="0 0 0 10px;">
|
| 7080 |
anupam.sin |
52 |
<input class='devicetype' type="radio" checked name="deviceType" value="1">Mobile</input>
|
|
|
53 |
<input class='devicetype' type="radio" name="deviceType" value="2">DTH</input>
|
| 7073 |
anupam.sin |
54 |
</div>
|
|
|
55 |
</div>
|
|
|
56 |
|
|
|
57 |
<div class="row">
|
| 7151 |
amit.gupta |
58 |
<div class="text">Device Number* : </div>
|
| 7068 |
anupam.sin |
59 |
<div class="input-div">
|
| 7151 |
amit.gupta |
60 |
<input class='inputbox num-prefix padding48' type='text' name='repeat'></input>
|
|
|
61 |
</div>
|
|
|
62 |
</div>
|
|
|
63 |
|
|
|
64 |
<div class="row">
|
|
|
65 |
<div class="text">Confirm Device Number* : </div>
|
|
|
66 |
<div class="input-div">
|
| 7073 |
anupam.sin |
67 |
<input class='inputbox num-prefix padding48' type='text' name='number'></input>
|
| 7068 |
anupam.sin |
68 |
</div>
|
| 7073 |
anupam.sin |
69 |
</div>
|
|
|
70 |
|
|
|
71 |
#set($mobileProviderMap = $action.getMobileProvidersMap())
|
|
|
72 |
#set($dthProviderMap = $action.getDthProvidersMap())
|
|
|
73 |
|
|
|
74 |
<div class="row">
|
| 7151 |
amit.gupta |
75 |
<div class="text">Operator* : </div>
|
| 7073 |
anupam.sin |
76 |
<div class="input-div">
|
|
|
77 |
<select select id='mobileSelector' name='mobileOperator' style="height: 30px;font-size: 18px;width: 180px;">
|
|
|
78 |
<option value='0'>Select Operator</option>
|
|
|
79 |
#foreach($mobileProviderKey in $mobileProviderMap.keySet())
|
|
|
80 |
<option class='mobileProviders' value='$mobileProviderKey'>$mobileProviderMap.get($mobileProviderKey)</option>
|
|
|
81 |
#end
|
|
|
82 |
</select>
|
|
|
83 |
<select select id='dthSelector' name='dthOperator' style="display:none;height: 30px;font-size: 18px;width: 180px;">
|
|
|
84 |
<option value='0'>Select Operator</option>
|
|
|
85 |
#foreach($dthProviderKey in $dthProviderMap.keySet())
|
|
|
86 |
<option value='$dthProviderKey'>$dthProviderMap.get($dthProviderKey)</option>
|
|
|
87 |
#end
|
|
|
88 |
</select>
|
|
|
89 |
</div>
|
| 7116 |
rajveer |
90 |
<div class="text" style="text-align: left;font-size: 15px;width: 340px;color: blue;">For MNP numbers choose operator manually</div>
|
| 7073 |
anupam.sin |
91 |
</div>
|
| 7096 |
anupam.sin |
92 |
|
|
|
93 |
<div class="row planSelector">
|
|
|
94 |
<div class="text">Plan : </div>
|
|
|
95 |
<div class="input-div">
|
|
|
96 |
<select id='planDropDown' name='plan' style="height: 30px;font-size: 18px;width: 95px;">
|
|
|
97 |
</select>
|
|
|
98 |
</div>
|
|
|
99 |
</div>
|
| 7073 |
anupam.sin |
100 |
|
| 7125 |
amit.gupta |
101 |
<div class="row mk_amount_row">
|
| 7151 |
amit.gupta |
102 |
<div class="text">Amount* : </div>
|
| 7073 |
anupam.sin |
103 |
<div class="input-div">
|
|
|
104 |
<input class='inputbox rupee padding48' type='text' name='amount'></input>
|
|
|
105 |
</div>
|
|
|
106 |
</div>
|
|
|
107 |
|
|
|
108 |
<div class="row">
|
| 7151 |
amit.gupta |
109 |
<div class="text">Customer Name* : </div>
|
| 7068 |
anupam.sin |
110 |
<div class="input-div">
|
| 7073 |
anupam.sin |
111 |
<input class='inputbox padding15' type='text' name='name'></input>
|
|
|
112 |
</div>
|
|
|
113 |
</div>
|
|
|
114 |
|
|
|
115 |
<div class="row">
|
|
|
116 |
<div class="text">Email Id : </div>
|
|
|
117 |
<div class="input-div">
|
| 7068 |
anupam.sin |
118 |
<input class='inputbox padding15' type='text' name='email'></input>
|
|
|
119 |
</div>
|
| 7073 |
anupam.sin |
120 |
</div>
|
|
|
121 |
|
|
|
122 |
<div id='frc-div' style='display:none;'>
|
|
|
123 |
<div class="row">
|
| 7151 |
amit.gupta |
124 |
<div class="text">SIM Number* : </div>
|
| 7073 |
anupam.sin |
125 |
<div class="input-div">
|
| 7096 |
anupam.sin |
126 |
<input class='inputbox padding15' type='text' name='simNum'></input>
|
| 7073 |
anupam.sin |
127 |
</div>
|
| 7151 |
amit.gupta |
128 |
<div class="text" style="text-align: left;font-size: 15px;width: 340px;color: blue;">Please enter last five digits of sim only</div>
|
| 7073 |
anupam.sin |
129 |
</div>
|
|
|
130 |
|
|
|
131 |
<div class="row">
|
| 7151 |
amit.gupta |
132 |
<div class="text">CAF Number* : </div>
|
| 7073 |
anupam.sin |
133 |
<div class="input-div">
|
| 7096 |
anupam.sin |
134 |
<input class='inputbox padding15' type='text' name='cafNum'></input>
|
| 7073 |
anupam.sin |
135 |
</div>
|
|
|
136 |
</div>
|
|
|
137 |
|
| 7125 |
amit.gupta |
138 |
<div class="row mk_discount_row">
|
| 7080 |
anupam.sin |
139 |
<div class="text">Discount : </div>
|
|
|
140 |
<div class="input-div">
|
|
|
141 |
<input class='inputbox rupee padding48' type='text' name='discount'></input>
|
|
|
142 |
</div>
|
|
|
143 |
</div>
|
|
|
144 |
|
|
|
145 |
<div class="row">
|
| 7073 |
anupam.sin |
146 |
<div class="text">Alternate Number : </div>
|
|
|
147 |
<div class="input-div">
|
|
|
148 |
<input class='inputbox padding15' type='text' name='altNum'></input>
|
|
|
149 |
</div>
|
|
|
150 |
</div>
|
|
|
151 |
</div>
|
| 7139 |
amit.gupta |
152 |
|
|
|
153 |
<div class="row">
|
|
|
154 |
<div class="text">Pay method : </div>
|
|
|
155 |
<div>
|
|
|
156 |
<input class='payMethod' type="radio" checked="checked" name="payMethod" value="1">Cash</input>
|
|
|
157 |
<input class='payMethod' type="radio" name="payMethod" value="2">Card</input>
|
|
|
158 |
</div>
|
|
|
159 |
</div>
|
| 7073 |
anupam.sin |
160 |
|
| 7125 |
amit.gupta |
161 |
<input type='hidden' name='circlecode' id='circlecode' />
|
| 7073 |
anupam.sin |
162 |
<div class="row">
|
|
|
163 |
<div style="padding-top:10px;margin-top: 25px;padding-left: 200px;">
|
| 7096 |
anupam.sin |
164 |
<input type="submit" value='submit' style="height: 30px;background-color: orange;cursor: pointer;width: 140px;font-size: 21px;">
|
| 7073 |
anupam.sin |
165 |
</div>
|
|
|
166 |
</div>
|
|
|
167 |
|
|
|
168 |
<div class='padding-row'>
|
|
|
169 |
</div>
|
|
|
170 |
</form>
|
| 7068 |
anupam.sin |
171 |
</div>
|
| 7096 |
anupam.sin |
172 |
<script>
|
| 7125 |
amit.gupta |
173 |
var storeCircleCode = "$action.getStoreCircleCode()";
|
| 7096 |
anupam.sin |
174 |
jQuery('.planSelector').hide();
|
|
|
175 |
var jsonMap = $action.getPlanMapInJson();
|
| 7068 |
anupam.sin |
176 |
|
| 7096 |
anupam.sin |
177 |
jQuery('#mobileSelector').change(function() {
|
|
|
178 |
populatePlans();
|
|
|
179 |
});
|
|
|
180 |
|
|
|
181 |
if(jQuery('#mobileSelector option:selected').val() != '0'){
|
|
|
182 |
populatePlans();
|
|
|
183 |
}
|
|
|
184 |
|
|
|
185 |
function populatePlans() {
|
|
|
186 |
jQuery('.planSelector select#planDropDown').children().remove();
|
|
|
187 |
jQuery('.planSelector').hide();
|
|
|
188 |
var operatorId = jQuery('#mobileSelector option:selected').val();
|
|
|
189 |
plans = jsonMap[operatorId];
|
|
|
190 |
if(plans) {
|
|
|
191 |
jQuery.each(plans, function(i, plan) {
|
|
|
192 |
var planName = plan.name;
|
|
|
193 |
var planDisplayName = plan.displayName;
|
|
|
194 |
jQuery('.planSelector').show();
|
|
|
195 |
if(i==0) {
|
|
|
196 |
jQuery('#planDropDown').append("<option value='" + planName + "'>" + planDisplayName + "</option>");
|
|
|
197 |
} else {
|
|
|
198 |
jQuery('#planDropDown').append("<option selected='true' value='" + planName + "'>" + planDisplayName + "</option>");
|
|
|
199 |
}
|
|
|
200 |
});
|
|
|
201 |
}
|
|
|
202 |
}
|
|
|
203 |
</script>
|
|
|
204 |
|
| 7068 |
anupam.sin |
205 |
</body>
|
|
|
206 |
|
|
|
207 |
</html>
|