| Line 105... |
Line 105... |
| 105 |
<div style="font-size:15px;">$action.getMessage()</div>
|
105 |
<div style="font-size:15px;">$action.getMessage()</div>
|
| 106 |
#end
|
106 |
#end
|
| 107 |
|
107 |
|
| 108 |
#if($action.getCouponMessage() == "")
|
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>
|
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>
|
110 |
<input id="discountCode" 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>
|
111 |
<input type="button" value="Apply" id="applyRechargeCoupon" class="new-button" style="height: 20px;"></input>
|
| 112 |
</div>
|
112 |
</div>
|
| 113 |
#elseif($action.getCouponMessage() == "Invalid Coupon")
|
113 |
#elseif($action.getCouponMessage() == "Invalid Coupon")
|
| 114 |
<div style="margin-top:7px;color:red;text-align:center;padding:5px 0 5px 0;width:100%;background-color:white;font-size:14px;border:solid 1px red">$action.getCouponMessage()</div>
|
114 |
<div style="margin-top:7px;color:red;text-align:center;padding:5px 0 5px 0;width:100%;background-color:white;font-size:14px;border:solid 1px red">$action.getCouponMessage()</div>
|
| 115 |
<div style="font-size: 13px;padding: 10px 10px 10px 0px;"><span class="left">Have a Coupon Code? Enter here:</span>
|
115 |
<div style="font-size: 13px;padding: 10px 10px 10px 0px;"><span class="left">Have a Coupon Code? Enter here:</span>
|
| Line 138... |
Line 138... |
| 138 |
<input type='hidden' name='plan' value='$action.getPlan()'>
|
138 |
<input type='hidden' name='plan' value='$action.getPlan()'>
|
| 139 |
<input type='hidden' name='couponCode' value='$action.getCouponCode()'>
|
139 |
<input type='hidden' name='couponCode' value='$action.getCouponCode()'>
|
| 140 |
<input type='hidden' name='couponAmount' value='$action.getCouponAmount()'>
|
140 |
<input type='hidden' name='couponAmount' value='$action.getCouponAmount()'>
|
| 141 |
<input type='hidden' name='totalAmount' value='$action.getTotalAmount()'>
|
141 |
<input type='hidden' name='totalAmount' value='$action.getTotalAmount()'>
|
| 142 |
<input type='hidden' name='message' value='$action.getMessage()'>
|
142 |
<input type='hidden' name='message' value='$action.getMessage()'>
|
| - |
|
143 |
<input type='hidden' name='hash' value='$action.getHiddenUserId()'>
|
| 143 |
#if($action.getAmount() == '0')
|
144 |
#if($action.getAmount() == '0')
|
| 144 |
#if(!$action.getErrorMessage().isEmpty())
|
145 |
#if(!$action.getErrorMessage().isEmpty())
|
| 145 |
<div id="messageError">
|
146 |
<div id="messageError">
|
| 146 |
<span></span>
|
147 |
<span></span>
|
| 147 |
<p>
|
148 |
<p>
|
| Line 184... |
Line 185... |
| 184 |
</form>
|
185 |
</form>
|
| 185 |
</div>
|
186 |
</div>
|
| 186 |
</div>
|
187 |
</div>
|
| 187 |
<!-- /color by color lightbox -->
|
188 |
<!-- /color by color lightbox -->
|
| 188 |
#include ( "templates/commonjsfiles.vm" )
|
189 |
#include ( "templates/commonjsfiles.vm" )
|
| 189 |
<script>
|
- |
|
| 190 |
jQuery('#applyRechargeCoupon').click(function() {
|
- |
|
| 191 |
jQuery('#create-recharge-form').attr('action', '/confirm!applyRechargeCoupon');
|
- |
|
| 192 |
jQuery('#create-recharge-form').submit();
|
- |
|
| 193 |
});
|
- |
|
| 194 |
|
- |
|
| 195 |
jQuery('#recharge-pay-now-button').click(function() {
|
- |
|
| 196 |
jQuery('#create-recharge-form').attr('action', '/confirm!createRecharge');
|
- |
|
| 197 |
jQuery('#create-recharge-form').submit();
|
- |
|
| 198 |
});
|
- |
|
| 199 |
|
- |
|
| 200 |
jQuery('#recharge-now-button').click(function() {
|
- |
|
| 201 |
jQuery('#recharge-now-button').hide();
|
- |
|
| 202 |
var formName = "create-recharge-form";
|
- |
|
| 203 |
var captcha_response_input = jQuery("form[name='" + formName + "'] :input[name='captcha_response_field']");
|
- |
|
| 204 |
var entered_text = jQuery.trim(captcha_response_input.val());
|
- |
|
| 205 |
if(entered_text == '' || entered_text == 'Enter the characters shown'){
|
- |
|
| 206 |
dispError("Please enter the characters shown.");
|
- |
|
| 207 |
captcha_response_input.blur();
|
- |
|
| 208 |
jQuery('#recharge-now-button').show();
|
- |
|
| 209 |
return;
|
- |
|
| 210 |
}
|
- |
|
| 211 |
jQuery('#create-recharge-form').attr('action', '/confirm!createRecharge');
|
- |
|
| 212 |
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>');
|
- |
|
| 213 |
jQuery('#create-recharge-form').submit();
|
- |
|
| 214 |
});
|
- |
|
| 215 |
|
- |
|
| 216 |
function dispError(msg) {
|
- |
|
| 217 |
alert(msg);
|
- |
|
| 218 |
}
|
- |
|
| 219 |
|
- |
|
| 220 |
jQuery('#captchaanchor').click(function () { jQuery('#captchaImage').attr('src', '/captcha?rand=' + Math.floor(Math.random()*100) ); });
|
- |
|
| 221 |
|
- |
|
| 222 |
jQuery('#captcha_response_box').val('Enter the characters shown')
|
- |
|
| 223 |
.focus(function(){
|
- |
|
| 224 |
if ($(this).val() == 'Enter the characters shown') {
|
- |
|
| 225 |
$(this).val('');
|
- |
|
| 226 |
$(this).removeClass('captcha_text_blur');
|
- |
|
| 227 |
$(this).addClass('captcha_text_focus');
|
- |
|
| 228 |
}
|
- |
|
| 229 |
})
|
- |
|
| 230 |
.blur(function(){
|
- |
|
| 231 |
if ($(this).val() == '') {
|
- |
|
| 232 |
$(this).val('Enter the characters shown');
|
- |
|
| 233 |
$(this).removeClass('captcha_text_focus');
|
- |
|
| 234 |
$(this).addClass('captcha_text_blur');
|
- |
|
| 235 |
}
|
- |
|
| 236 |
});
|
- |
|
| 237 |
</script>
|
- |
|
| 238 |
<script type="text/javascript" charset="utf-8">
|
190 |
<script type="text/javascript" charset="utf-8">
|
| 239 |
$(function(){
|
191 |
$(function(){
|
| 240 |
$('ul.product-description li').truncate({addtitle: true});
|
192 |
$('ul.product-description li').truncate({addtitle: true});
|
| 241 |
|
193 |
|
| 242 |
$('#pay-now-button').click(function(){
|
194 |
$('#pay-now-button').click(function(){
|