187 lines
10 KiB
PHP
187 lines
10 KiB
PHP
<?php
|
|
/* Smarty version 4.3.1, created on 2025-09-17 20:26:01
|
|
from '/var/www/html/yatmack/ui/ui/recharge-confirm.tpl' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '4.3.1',
|
|
'unifunc' => 'content_68caef291f3fb5_43059686',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'637a99453ac765d6df88517e7643179436d4c833' =>
|
|
array (
|
|
0 => '/var/www/html/yatmack/ui/ui/recharge-confirm.tpl',
|
|
1 => 1719138102,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
'file:sections/header.tpl' => 1,
|
|
'file:sections/footer.tpl' => 1,
|
|
),
|
|
),false)) {
|
|
function content_68caef291f3fb5_43059686 (Smarty_Internal_Template $_smarty_tpl) {
|
|
$_smarty_tpl->_subTemplateRender("file:sections/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
|
|
?>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-6 col-md-offset-3">
|
|
<div class="card card-primary card-hovered card-stacked mb30">
|
|
<div class="card-header">
|
|
<h3 class="card-title"><?php echo Lang::T('Confirm');?>
|
|
</h3></div>
|
|
<div class="card-body">
|
|
<center><b><?php echo Lang::T('Customer');?>
|
|
</b></center>
|
|
<ul class="list-group list-group-unbordered">
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Username');?>
|
|
</b> <span class="pull-right"><?php echo $_smarty_tpl->tpl_vars['cust']->value['username'];?>
|
|
</span>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Name');?>
|
|
</b> <span class="pull-right"><?php echo $_smarty_tpl->tpl_vars['cust']->value['fullname'];?>
|
|
</span>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Phone Number');?>
|
|
</b> <span class="pull-right"><?php echo $_smarty_tpl->tpl_vars['cust']->value['phonenumber'];?>
|
|
</span>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Email');?>
|
|
</b> <span class="pull-right"><?php echo $_smarty_tpl->tpl_vars['cust']->value['email'];?>
|
|
</span>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Address');?>
|
|
</b> <span class="pull-right"><?php echo $_smarty_tpl->tpl_vars['cust']->value['address'];?>
|
|
</span>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Balance');?>
|
|
</b> <span
|
|
class="pull-right"><?php echo Lang::moneyFormat($_smarty_tpl->tpl_vars['cust']->value['balance']);?>
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
<center><b><?php echo Lang::T('Plan');?>
|
|
</b></center>
|
|
<ul class="list-group list-group-unbordered">
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Plan Name');?>
|
|
</b> <span class="pull-right"><?php echo $_smarty_tpl->tpl_vars['plan']->value['name_plan'];?>
|
|
</span>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Location');?>
|
|
</b> <span
|
|
class="pull-right"><?php if ($_smarty_tpl->tpl_vars['plan']->value['is_radius']) {?>Radius<?php } else {
|
|
echo $_smarty_tpl->tpl_vars['plan']->value['routers'];
|
|
}?></span>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Type');?>
|
|
</b> <span
|
|
class="pull-right"><?php if ($_smarty_tpl->tpl_vars['plan']->value['prepaid'] == 'yes') {?>Prepaid<?php } else { ?>Postpaid<?php }?>
|
|
<?php echo $_smarty_tpl->tpl_vars['plan']->value['type'];?>
|
|
</span>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Plan Price');?>
|
|
</b> <span
|
|
class="pull-right"><?php if ($_smarty_tpl->tpl_vars['using']->value == 'zero') {
|
|
echo Lang::moneyFormat(0);
|
|
} else {
|
|
echo Lang::moneyFormat($_smarty_tpl->tpl_vars['plan']->value['price']);
|
|
}?></span>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Plan Validity');?>
|
|
</b> <span class="pull-right"><?php echo $_smarty_tpl->tpl_vars['plan']->value['validity'];?>
|
|
|
|
<?php echo $_smarty_tpl->tpl_vars['plan']->value['validity_unit'];?>
|
|
</span>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Using');?>
|
|
</b> <span class="pull-right"><?php echo ucwords($_smarty_tpl->tpl_vars['using']->value);?>
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
<center><b><?php echo Lang::T('Total');?>
|
|
</b></center>
|
|
<ul class="list-group list-group-unbordered">
|
|
<?php if ($_smarty_tpl->tpl_vars['using']->value != 'zero' && $_smarty_tpl->tpl_vars['add_cost']->value > 0) {?>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['bills']->value, 'v', false, 'k');
|
|
$_smarty_tpl->tpl_vars['v']->do_else = true;
|
|
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['k']->value => $_smarty_tpl->tpl_vars['v']->value) {
|
|
$_smarty_tpl->tpl_vars['v']->do_else = false;
|
|
?>
|
|
<li class="list-group-item">
|
|
<b><?php echo $_smarty_tpl->tpl_vars['k']->value;?>
|
|
</b> <span class="pull-right"><?php echo Lang::moneyFormat($_smarty_tpl->tpl_vars['v']->value);?>
|
|
</span>
|
|
</li>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Additional Cost');?>
|
|
</b> <span
|
|
class="pull-right"><?php echo Lang::moneyFormat($_smarty_tpl->tpl_vars['add_cost']->value);?>
|
|
</span>
|
|
</li>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Total');?>
|
|
</b> <small>(<?php echo Lang::T('Plan Price');?>
|
|
+<?php echo Lang::T('Additional Cost');?>
|
|
)</small><span class="pull-right"
|
|
style="font-size: large; font-weight:bolder; font-family: 'Courier New', Courier, monospace; "><?php echo Lang::moneyFormat($_smarty_tpl->tpl_vars['plan']->value['price']+$_smarty_tpl->tpl_vars['add_cost']->value);?>
|
|
</span>
|
|
</li>
|
|
<?php } else { ?>
|
|
<li class="list-group-item">
|
|
<b><?php echo Lang::T('Total');?>
|
|
</b> <span class="pull-right"
|
|
style="font-size: large; font-weight:bolder; font-family: 'Courier New', Courier, monospace; "><?php if ($_smarty_tpl->tpl_vars['using']->value == 'zero') {
|
|
echo Lang::moneyFormat(0);
|
|
} else {
|
|
echo Lang::moneyFormat($_smarty_tpl->tpl_vars['plan']->value['price']);
|
|
}?></span>
|
|
</li>
|
|
<?php }?>
|
|
</ul>
|
|
<form class="form-horizontal" method="post" role="form" action="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
|
|
plan/recharge-post">
|
|
<input type="hidden" name="id_customer" value="<?php echo $_smarty_tpl->tpl_vars['cust']->value['id'];?>
|
|
">
|
|
<input type="hidden" name="plan" value="<?php echo $_smarty_tpl->tpl_vars['plan']->value['id'];?>
|
|
">
|
|
<input type="hidden" name="server" value="<?php echo $_smarty_tpl->tpl_vars['server']->value;?>
|
|
">
|
|
<input type="hidden" name="using" value="<?php echo $_smarty_tpl->tpl_vars['using']->value;?>
|
|
">
|
|
<input type="hidden" name="stoken" value="<?php echo App::getToken();?>
|
|
">
|
|
<center>
|
|
<button class="btn btn-success mb-3" type="submit"><?php echo Lang::T('Recharge');?>
|
|
</button><br>
|
|
<a class="btn btn-outline-primary" href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
|
|
plan/recharge"><?php echo Lang::T('Cancel');?>
|
|
</a>
|
|
</center>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php $_smarty_tpl->_subTemplateRender("file:sections/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
|
|
}
|
|
}
|