177 lines
9.7 KiB
PHP
177 lines
9.7 KiB
PHP
<?php
|
|
/* Smarty version 4.3.1, created on 2025-12-18 17:05:29
|
|
from '/var/www/html/yatmack/ui/ui/hotspot.tpl' */
|
|
|
|
/* @var Smarty_Internal_Template $_smarty_tpl */
|
|
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
|
|
'version' => '4.3.1',
|
|
'unifunc' => 'content_69440a290aa457_82730110',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'4fc9d1aacd9b9e29cc2e209df58e39240ebb4c99' =>
|
|
array (
|
|
0 => '/var/www/html/yatmack/ui/ui/hotspot.tpl',
|
|
1 => 1713579334,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
'file:sections/header.tpl' => 1,
|
|
'file:pagination.tpl' => 1,
|
|
'file:sections/footer.tpl' => 1,
|
|
),
|
|
),false)) {
|
|
function content_69440a290aa457_82730110 (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-sm-12">
|
|
<div class="card card-hovered mb20 card-primary">
|
|
<div class="card-header">
|
|
<?php echo Lang::T('Hotspot Plans');?>
|
|
|
|
<div class="btn-group pull-right">
|
|
<a class="btn btn-primary btn-xs" title="save" href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
|
|
services/sync/hotspot"
|
|
onclick="return confirm('This will sync/send hotspot plan to Mikrotik?')"><span
|
|
class="fa fa-refresh" aria-hidden="true"></span> sync</a>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="md-whiteframe-z1 mb20 text-center row" style="padding: 15px">
|
|
<div class="col-md-8">
|
|
<form id="site-search" method="post" action="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
|
|
services/hotspot/">
|
|
<div class="input-group">
|
|
<div class="input-group-text" id="basic-addon1">
|
|
<span class="fa fa-search"></span>
|
|
</div>
|
|
<input type="text" name="name" class="form-control"
|
|
placeholder="<?php echo Lang::T('Search by Name');?>
|
|
...">
|
|
<div class="input-group-btn">
|
|
<button class="btn btn-success" id="button-addon2" style="height: 52px;" type="submit"><?php echo Lang::T('Search');?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<a href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
|
|
services/add" class="btn btn-primary btn-block"><i class="fa fa-plus">
|
|
</i> <?php echo Lang::T('New Service Plan');?>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="table-responsive">
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th><?php echo Lang::T('Plan Name');?>
|
|
</th>
|
|
<th><?php echo Lang::T('Plan Type');?>
|
|
</th>
|
|
<th><?php echo Lang::T('Bandwidth Plans');?>
|
|
</th>
|
|
<th><?php echo Lang::T('Plan Category');?>
|
|
</th>
|
|
<th><?php echo Lang::T('Plan Price');?>
|
|
</th>
|
|
<th><?php echo Lang::T('Time Limit');?>
|
|
</th>
|
|
<th><?php echo Lang::T('Data Limit');?>
|
|
</th>
|
|
<th><?php echo Lang::T('Plan Validity');?>
|
|
</th>
|
|
<th><?php echo Lang::T('Routers');?>
|
|
</th>
|
|
<th><?php echo Lang::T('Expired IP Pool');?>
|
|
</th>
|
|
<th><?php echo Lang::T('ID');?>
|
|
</th>
|
|
<th><?php echo Lang::T('Manage');?>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['d']->value, 'ds');
|
|
$_smarty_tpl->tpl_vars['ds']->do_else = true;
|
|
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['ds']->value) {
|
|
$_smarty_tpl->tpl_vars['ds']->do_else = false;
|
|
?>
|
|
<tr <?php if ($_smarty_tpl->tpl_vars['ds']->value['enabled'] != 1) {?>class="danger" title="disabled" <?php } elseif ($_smarty_tpl->tpl_vars['ds']->value['prepaid'] != 'yes') {?>class="warning" title="Postpaid" <?php }?>>
|
|
<td class="headcol"><?php echo $_smarty_tpl->tpl_vars['ds']->value['name_plan'];?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['ds']->value['plan_type'];?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['ds']->value['name_bw'];?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['ds']->value['typebp'];?>
|
|
</td>
|
|
<td><?php echo Lang::moneyFormat($_smarty_tpl->tpl_vars['ds']->value['price']);?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['ds']->value['time_limit'];?>
|
|
<?php echo $_smarty_tpl->tpl_vars['ds']->value['time_unit'];?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['ds']->value['data_limit'];?>
|
|
<?php echo $_smarty_tpl->tpl_vars['ds']->value['data_unit'];?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['ds']->value['validity'];?>
|
|
<?php echo $_smarty_tpl->tpl_vars['ds']->value['validity_unit'];?>
|
|
</td>
|
|
<td>
|
|
<?php if ($_smarty_tpl->tpl_vars['ds']->value['is_radius']) {?>
|
|
<span class="label label-primary">RADIUS</span>
|
|
<?php } else { ?>
|
|
<?php if ($_smarty_tpl->tpl_vars['ds']->value['routers'] != '') {?>
|
|
<a href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
|
|
routers/edit/0&name=<?php echo $_smarty_tpl->tpl_vars['ds']->value['routers'];?>
|
|
"><?php echo $_smarty_tpl->tpl_vars['ds']->value['routers'];?>
|
|
</a>
|
|
<?php }?>
|
|
<?php }?>
|
|
</td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['ds']->value['pool_expired'];
|
|
if ($_smarty_tpl->tpl_vars['ds']->value['list_expired']) {
|
|
if ($_smarty_tpl->tpl_vars['ds']->value['pool_expired']) {?> |
|
|
<?php }
|
|
echo $_smarty_tpl->tpl_vars['ds']->value['list_expired'];
|
|
}?></td>
|
|
<td><?php echo $_smarty_tpl->tpl_vars['ds']->value['id'];?>
|
|
</td>
|
|
<td>
|
|
<a href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
|
|
services/edit/<?php echo $_smarty_tpl->tpl_vars['ds']->value['id'];?>
|
|
"
|
|
class="btn btn-info btn-xs"><?php echo Lang::T('Edit');?>
|
|
</a>
|
|
<a href="<?php echo $_smarty_tpl->tpl_vars['_url']->value;?>
|
|
services/delete/<?php echo $_smarty_tpl->tpl_vars['ds']->value['id'];?>
|
|
" id="<?php echo $_smarty_tpl->tpl_vars['ds']->value['id'];?>
|
|
"
|
|
onclick="return confirm('<?php echo Lang::T('Delete');?>
|
|
?')"
|
|
class="btn btn-danger btn-xs"><i class="fa fa-trash"></i></a>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<?php $_smarty_tpl->_subTemplateRender("file:pagination.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
|
|
?>
|
|
</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);
|
|
}
|
|
}
|