PATH:
home
/
letacommog
/
letaweb
/
protected
/
modules
/
profile
/
views
/
page
<div class="bg-dark space-sm"> <div class="page_title container"> <div class="title_section"> <h2 style="text-align:center;" class="">Select period</h2> </div> </div> </div> <?php $period = 'month'; ?> <?php echo CHtml::form($this->createUrl('checkout/execute'), "post", array("id"=>"checkout_form")); ?> <input type="hidden" name="siteId" value="<?php echo $site_id ?>" /> <input type="hidden" name="planId" value="<?php echo $plan->id ?>" /> <div class="wpb_wrapper"> <div class="wpb_text_column wpb_content_element "> <h1 class="text-center"><span class="f-green"><strong>Your new Plan : </strong></span> <?php echo $plan->name; ?></h1> <div class="wpb_wrapper"> <div class="title-section text-center"> <p class="lead"><a href="<?php echo Yii::app()->createUrl('profile/page/upgrade', array('id'=>$site_id)); ?>">Change</a></p> </div> </div> </div> </div> <div class="container"> <h4 class=""><input type="radio" name="wwwt" value="month"/>Pay monthly( <?php echo $plan->unit_prefix.$amount_monthly.$plan->unit_postfix; ?> each month)</h4> <h4 class=""><input type="radio" name="wwwt" value="annual" checked="checked"/>Pay annually( <?php echo $plan->unit_prefix.$amount_annually.$plan->unit_postfix; ?> x 12)</h4> </div> <div class="container"> <?php $payments = Yii::app()->payment->loadModules(true); $i = 0; $hide = false; $activePayment = sizeof($payments); foreach($payments as $payment) { $paymentClass = Yii::app()->payment->getModule($payment); $selected = false; if (isset($paymentClass) && $paymentClass->isActive()) { if($activePayment == 1) {$selected = true;$hide = true;} else if($i == 0) $selected = true; ?> <h4 class="" <?php if($hide) echo 'style="display:none;"' ?>><input type="radio" <?php if($selected) echo 'checked="checked"' ?> name="wwwpt" value="<?php echo $payment; ?>"/><?php echo $paymentClass->title; ?></h4> <div class="inline_form"> <?php $paymentClass->renderInlineCheckoutForm(); ?> </div> <?php }} ?> </div> <div class="container"> <?php if($activePayment > 0) { ?> <button class="btn btn-primary btn-lg" type="submit">Subscribe</button> <?php } else {?> There are no active payments available <?php } ?> </div> <?php echo CHtml::endForm(); ?> <script type="text/javascript"> <?php if(!$hide) { ?> $(document).ready(function() { $("input[name='wwwpt']").change(function() { var next = $(this).parent().next(); if($(this).is(":checked")) { next.show(); $('input, select', next).removeAttr('disabled'); } else { next.hide(); $('input, select', next).attr('disabled', 'disabled'); } }); $("input[name='wwwpt']").click(function() { $("input[name='wwwpt']").trigger("change"); }); $("input[name='wwwpt']").trigger("change"); }); <?php } ?> </script>
[+]
..
[-] upgrade.php
[edit]
[+]
checkout
[-] index.php
[edit]
[-] item.php
[edit]
[-] delete.php
[edit]
[-] deleteconfirmpassword.php
[edit]
[-] domain.php
[edit]
[-] subdomain.php
[edit]
[-] deleteconfirm.php
[edit]
[-] checkout.php
[edit]
[-] midnav.php
[edit]