Auto Renewal Button
This commit is contained in:
parent
7e78c5db40
commit
783b541645
@ -9,6 +9,11 @@ $ui->assign('_title', $_L['Dashboard']);
|
|||||||
$user = User::_info();
|
$user = User::_info();
|
||||||
$ui->assign('_user', $user);
|
$ui->assign('_user', $user);
|
||||||
|
|
||||||
|
if(isset($_GET['renewal'])){
|
||||||
|
$user->auto_renewal = $_GET['renewal'];
|
||||||
|
$user->save();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//Client Page
|
//Client Page
|
||||||
$bill = User::_billing();
|
$bill = User::_billing();
|
||||||
|
@ -359,3 +359,7 @@ $_L['Balance_Plans'] = 'Balance Plans';
|
|||||||
$_L['Buy_Balance'] = 'Buy Balance?';
|
$_L['Buy_Balance'] = 'Buy Balance?';
|
||||||
$_L['Price'] = 'Price';
|
$_L['Price'] = 'Price';
|
||||||
$_L['Validity'] = 'Validity';
|
$_L['Validity'] = 'Validity';
|
||||||
|
$_L['Disable_auto_renewal'] = 'Disable auto renewal?';
|
||||||
|
$_L['Auto_Renewal_On'] = 'Auto Renewal On';
|
||||||
|
$_L['Enable_auto_renewal'] = 'Enable auto renewal?';
|
||||||
|
$_L['Auto_Renewal_Off'] = 'Auto Renewal Off';
|
||||||
|
@ -65,7 +65,16 @@
|
|||||||
{if $_c['enable_balance'] == 'yes'}
|
{if $_c['enable_balance'] == 'yes'}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="small text-warning text-uppercase text-normal">{Lang::T('Balance')}</td>
|
<td class="small text-warning text-uppercase text-normal">{Lang::T('Balance')}</td>
|
||||||
<td class="small mb15 text-bold">{Lang::moneyFormat($_user['balance'])}</td>
|
<td class="small mb15 text-bold">
|
||||||
|
{Lang::moneyFormat($_user['balance'])}
|
||||||
|
{if $_user['auto_renewal'] == 1}
|
||||||
|
<a class="label label-success pull-right" href="{$_url}home&renewal=0"
|
||||||
|
onclick="return confirm('{Lang::T('Disable auto renewal?')}')">{Lang::T('Auto Renewal On')}</a>
|
||||||
|
{else}
|
||||||
|
<a class="label label-danger pull-right" href="{$_url}home&renewal=1"
|
||||||
|
onclick="return confirm('{Lang::T('Enable auto renewal?')}')">{Lang::T('Auto Renewal Off')}</a>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/if}
|
{/if}
|
||||||
<tr>
|
<tr>
|
||||||
@ -131,39 +140,39 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<br>
|
<br>
|
||||||
{if $_c['disable_voucher'] != 'yes'}
|
{if $_c['disable_voucher'] != 'yes'}
|
||||||
<div class="box box-primary box-solid mb30">
|
<div class="box box-primary box-solid mb30">
|
||||||
<div class="box-header">
|
<div class="box-header">
|
||||||
<h3 class="box-title">{$_L['Voucher_Activation']}</h3>
|
<h3 class="box-title">{$_L['Voucher_Activation']}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<form method="post" role="form" class="form-horizontal" action="{$_url}voucher/activation-post">
|
<form method="post" role="form" class="form-horizontal" action="{$_url}voucher/activation-post">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label text-center">{$_L['Code_Voucher']}</label>
|
<label class="col-sm-4 control-label text-center">{$_L['Code_Voucher']}</label>
|
||||||
<div class="col-sm-7">
|
<div class="col-sm-7">
|
||||||
<input type="text" id="code" name="code" class="form-control"
|
<input type="text" id="code" name="code" class="form-control"
|
||||||
placeholder="{$_L['Enter_Voucher_Code']}">
|
placeholder="{$_L['Enter_Voucher_Code']}">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="form-group" align="center">
|
||||||
<div class="form-group" align="center">
|
<button class="btn btn-success" type="submit">{$_L['Recharge']}</button>
|
||||||
<button class="btn btn-success" type="submit">{$_L['Recharge']}</button>
|
</div>
|
||||||
</div>
|
</form>
|
||||||
</form>
|
</div>
|
||||||
</div>
|
<div class="box-body">
|
||||||
<div class="box-body">
|
<div class="btn-group btn-group-justified" role="group">
|
||||||
<div class="btn-group btn-group-justified" role="group">
|
<a class="btn btn-warning" href="{$_url}voucher/activation">
|
||||||
<a class="btn btn-warning" href="{$_url}voucher/activation">
|
|
||||||
<i class="ion ion-ios-cart"></i>
|
|
||||||
{$_L['Order_Voucher']}
|
|
||||||
</a>
|
|
||||||
{if $_c['payment_gateway'] != 'none' or $_c['payment_gateway'] == '' }
|
|
||||||
<a href="{$_url}order/package" class="btn btn-primary">
|
|
||||||
<i class="ion ion-ios-cart"></i>
|
<i class="ion ion-ios-cart"></i>
|
||||||
{Lang::T('Order Package')}
|
{$_L['Order_Voucher']}
|
||||||
</a>
|
</a>
|
||||||
{/if}
|
{if $_c['payment_gateway'] != 'none' or $_c['payment_gateway'] == '' }
|
||||||
|
<a href="{$_url}order/package" class="btn btn-primary">
|
||||||
|
<i class="ion ion-ios-cart"></i>
|
||||||
|
{Lang::T('Order Package')}
|
||||||
|
</a>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user