| Line 89... |
Line 89... |
| 89 |
#set($verifyingMethod='return verifyCaptcha("create-recharge-form")')
|
89 |
#set($verifyingMethod='return verifyCaptcha("create-recharge-form")')
|
| 90 |
#else
|
90 |
#else
|
| 91 |
#set($verifyingMethod='return true')
|
91 |
#set($verifyingMethod='return true')
|
| 92 |
#end
|
92 |
#end
|
| 93 |
|
93 |
|
| 94 |
<form id="create-recharge-form" name='create-recharge-form' style="float:left;padding-top:20px;padding-left:50px" action='/confirm!createRecharge' onsubmit='$verifyingMethod'>
|
94 |
<form id="create-recharge-form" action='' name='create-recharge-form' style="float:left;padding-top:20px;padding-left:50px">
|
| 95 |
<br>
|
95 |
<br>
|
| 96 |
|
96 |
|
| 97 |
<span style="display:inline-block; width:300px">#if($action.getRechargeType()=="1")Mobile Number#else Account Number#end : </span><span>$action.getNumber()</span><br>
|
97 |
<span style="display:inline-block; width:300px">#if($action.getRechargeType()=="1")Mobile Number#else Account Number#end : </span><span>$action.getNumber()</span><br>
|
| 98 |
<span style="display:inline-block; width:300px">Operator : </span><span>$action.getOperatorName()</span><br>
|
98 |
<span style="display:inline-block; width:300px">Operator : </span><span>$action.getOperatorName()</span><br>
|
| 99 |
<span style="display:inline-block; width:300px">Recharge amount : </span><span>Rs. $action.getTotalAmount()</span><br>
|
99 |
<span style="display:inline-block; width:300px">Recharge amount : </span><span>Rs. $action.getTotalAmount()</span><br>
|
| 100 |
<hr style="width: 615px;height: 2px;background-color: black;border: none;margin: 25px 0px;">
|
100 |
<hr style="width: 615px;height: 2px;background-color: black;border: none;margin: 25px 0px;">
|
| 101 |
|
101 |
|
| 102 |
#if($action.shouldPromptForWallet())
|
102 |
#if($action.shouldPromptForWallet())
|
| 103 |
<div style="font-size:15px;color:red">If you want to use wallet please <a href="/login?redirectUrl=/recharge"><b>LOGIN NOW</b></a></div>
|
103 |
<div style="font-size:15px;color:red">If you want to use wallet please <a href="/login?redirectUrl=/recharge"><b>LOGIN NOW</b></a></div>
|
| 104 |
#else
|
104 |
#else
|
| 105 |
<div style="font-size:15px;color:red;">$action.getMessage()</div>
|
105 |
<div style="font-size:15px;">$action.getMessage()</div>
|
| 106 |
#end
|
106 |
#end
|
| - |
|
107 |
|
| - |
|
108 |
#if($action.getCouponMessage() == "")
|
| - |
|
109 |
<div style="font-size: 13px;padding: 10px 10px 10px 0px;"><span class="left">Have a Coupon Code? Enter here:</span>
|
| - |
|
110 |
<input name="discountCode" style="width:200px;height:18px;margin-left:30px;" class="searchbox" type="text"></input>
|
| - |
|
111 |
<input type="button" value="Apply" id="applyRechargeCoupon" class="new-button" style="height: 20px;"></input>
|
| - |
|
112 |
</div>
|
| - |
|
113 |
#else
|
| - |
|
114 |
#if($action.getCouponAmount() > 0)
|
| 107 |
<br><br>
|
115 |
<br>
|
| - |
|
116 |
<div style="font-size:15px;color:red;">Coupon applied for Rs.$action.getCouponAmount()</div>
|
| - |
|
117 |
#else
|
| - |
|
118 |
<div style="font-size:15px;color:red;">$action.getCouponMessage()</div>
|
| - |
|
119 |
#end
|
| - |
|
120 |
#end
|
| - |
|
121 |
<br>
|
| - |
|
122 |
|
| 108 |
<span style="display:inline-block; width:300px">Amount to pay : </span><span style="font-size:20px"><b>Rs. $action.getAmount()</b></span>
|
123 |
<span style="display:inline-block; width:300px">Amount to pay : </span><span style="font-size:20px"><b>Rs. $action.getAmount()</b></span>
|
| 109 |
<br><br><br>
|
124 |
<br><br><br>
|
| 110 |
<input type='hidden' name='rechargeType' value='$action.getRechargeType()'>
|
125 |
<input type='hidden' name='rechargeType' value='$action.getRechargeType()'>
|
| 111 |
<input type='hidden' name='operator' value='$action.getOperator()'>
|
126 |
<input type='hidden' name='operator' value='$action.getOperator()'>
|
| 112 |
<input type='hidden' name='userId' value='$action.getUserId()'>
|
127 |
<input type='hidden' name='userId' value='$action.getUserId()'>
|
| 113 |
<input type='hidden' name='amount' value='$action.getAmount()'>
|
128 |
<input type='hidden' name='amount' value='$action.getAmount()'>
|
| 114 |
<input type='hidden' name='walletAmountUsed' value='$action.getWalletAmountUsed()'>
|
129 |
<input type='hidden' name='walletAmountUsed' value='$action.getWalletAmountUsed()'>
|
| 115 |
<input type='hidden' name='number' value='$action.getNumber()'>
|
130 |
<input type='hidden' name='number' value='$action.getNumber()'>
|
| 116 |
<input type='hidden' name='email' value='$action.getEmail()'>
|
131 |
<input type='hidden' name='email' value='$action.getEmail()'>
|
| 117 |
<input type='hidden' name='plan' value='$action.getPlan()'>
|
132 |
<input type='hidden' name='plan' value='$action.getPlan()'>
|
| - |
|
133 |
<input type='hidden' name='couponCode' value='$action.getCouponCode()'>
|
| - |
|
134 |
<input type='hidden' name='couponAmount' value='$action.getCouponAmount()'>
|
| 118 |
<input type='hidden' name='totalAmount' value='$action.getTotalAmount()'>
|
135 |
<input type='hidden' name='totalAmount' value='$action.getTotalAmount()'>
|
| - |
|
136 |
<input type='hidden' name='message' value='$action.getMessage()'>
|
| 119 |
#if($action.getAmount() == '0')
|
137 |
#if($action.getAmount() == '0')
|
| 120 |
#if(!$action.getErrorMessage().isEmpty())
|
138 |
#if(!$action.getErrorMessage().isEmpty())
|
| 121 |
<div id="messageError">
|
139 |
<div id="messageError">
|
| 122 |
<span></span>
|
140 |
<span></span>
|
| 123 |
<p>
|
141 |
<p>
|
| Line 129... |
Line 147... |
| 129 |
<img src="/captcha" id="captchaImage" /><br/><br/>
|
147 |
<img src="/captcha" id="captchaImage" /><br/><br/>
|
| 130 |
<input id="captcha_response_box" class='captcha_text_blur' type="text" name="captcha_response_field" autocomplete="off">
|
148 |
<input id="captcha_response_box" class='captcha_text_blur' type="text" name="captcha_response_field" autocomplete="off">
|
| 131 |
<br/>
|
149 |
<br/>
|
| 132 |
<span style='font-size:14px'>Cannot read the image? <a id="captchaanchor" style="cursor: pointer;" >Click here</a>.</span>
|
150 |
<span style='font-size:14px'>Cannot read the image? <a id="captchaanchor" style="cursor: pointer;" >Click here</a>.</span>
|
| 133 |
<br><br>
|
151 |
<br><br>
|
| 134 |
<input id='recharge-now-button' style='width:200px' type="submit" value="RECHARGE NOW" class="make-payment-button">
|
152 |
<input id='recharge-now-button' style='width:200px' type="button" value="RECHARGE NOW" class="make-payment-button">
|
| 135 |
</div>
|
153 |
</div>
|
| 136 |
#else
|
154 |
#else
|
| 137 |
<div style="text-align:center;">
|
155 |
<div style="text-align:center;">
|
| 138 |
<input type="submit" value="PAY NOW" class="submit-button">
|
156 |
<input id='recharge-pay-now-button' type="button" value="PAY NOW" class="submit-button">
|
| 139 |
</div>
|
157 |
</div>
|
| 140 |
#end
|
158 |
#end
|
| 141 |
</form>
|
159 |
</form>
|
| 142 |
</div>
|
160 |
</div>
|
| 143 |
</div>
|
161 |
</div>
|
| Line 161... |
Line 179... |
| 161 |
</div>
|
179 |
</div>
|
| 162 |
</div>
|
180 |
</div>
|
| 163 |
<!-- /color by color lightbox -->
|
181 |
<!-- /color by color lightbox -->
|
| 164 |
#include ( "templates/commonjsfiles.vm" )
|
182 |
#include ( "templates/commonjsfiles.vm" )
|
| 165 |
<script>
|
183 |
<script>
|
| - |
|
184 |
jQuery('#applyRechargeCoupon').click(function() {
|
| - |
|
185 |
jQuery('#create-recharge-form').attr('action', '/confirm!applyRechargeCoupon');
|
| 166 |
function verifyCaptcha(formName){
|
186 |
jQuery('#create-recharge-form').submit();
|
| - |
|
187 |
});
|
| - |
|
188 |
|
| - |
|
189 |
jQuery('#recharge-pay-now-button').click(function() {
|
| - |
|
190 |
jQuery('#create-recharge-form').attr('action', '/confirm!createRecharge');
|
| - |
|
191 |
jQuery('#create-recharge-form').submit();
|
| - |
|
192 |
});
|
| - |
|
193 |
|
| - |
|
194 |
jQuery('#recharge-now-button').click(function() {
|
| - |
|
195 |
jQuery('#recharge-now-button').hide();
|
| - |
|
196 |
var formName = "create-recharge-form";
|
| 167 |
var captcha_response_input = jQuery("form[name='" + formName + "'] :input[name='captcha_response_field']");
|
197 |
var captcha_response_input = jQuery("form[name='" + formName + "'] :input[name='captcha_response_field']");
|
| 168 |
var entered_text = jQuery.trim(captcha_response_input.val());
|
198 |
var entered_text = jQuery.trim(captcha_response_input.val());
|
| 169 |
if(entered_text == '' || entered_text == 'Enter the characters shown'){
|
199 |
if(entered_text == '' || entered_text == 'Enter the characters shown'){
|
| 170 |
dispError("Please enter the characters shown.");
|
200 |
dispError("Please enter the characters shown.");
|
| 171 |
captcha_response_input.blur();
|
201 |
captcha_response_input.blur();
|
| 172 |
jQuery('#recharge-loading').remove();
|
- |
|
| 173 |
jQuery('#recharge-now-button').show();
|
202 |
jQuery('#recharge-now-button').show();
|
| 174 |
return false;
|
203 |
return;
|
| 175 |
}
|
204 |
}
|
| - |
|
205 |
jQuery('#create-recharge-form').attr('action', '/confirm!createRecharge');
|
| - |
|
206 |
jQuery('#captcha-div').append('<span id=\'recharge-loading\' style="display:inline-block;width:200px;height: 30px;background: url(\'/images/loading.gif\') no-repeat 8px 0;padding-left: 45px;padding-top: 7px;">Please Wait ...</span>');
|
| 176 |
return true;
|
207 |
jQuery('#create-recharge-form').submit();
|
| 177 |
}
|
208 |
});
|
| 178 |
|
209 |
|
| 179 |
function dispError(msg) {
|
210 |
function dispError(msg) {
|
| 180 |
alert(msg);
|
211 |
alert(msg);
|
| 181 |
}
|
212 |
}
|
| 182 |
|
213 |
|