2022-09-06 10:31:33 +07:00
|
|
|
{include file="sections/header.tpl"}
|
|
|
|
|
2023-09-15 14:03:23 +07:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="panel panel-hovered mb20 panel-primary">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<a class="btn btn-primary btn-xs" title="save" href="{$_url}services/sync/hotspot"
|
|
|
|
onclick="return confirm('This will sync/send hotspot plan to Mikrotik?')"><span
|
|
|
|
class="glyphicon glyphicon-refresh" aria-hidden="true"></span> sync</a>
|
2024-02-13 13:54:01 +07:00
|
|
|
</div>{Lang::T('Hotspot Plans')}
|
2023-09-15 14:03:23 +07:00
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="md-whiteframe-z1 mb20 text-center" style="padding: 15px">
|
|
|
|
<div class="col-md-8">
|
|
|
|
<form id="site-search" method="post" action="{$_url}services/hotspot/">
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group-addon">
|
|
|
|
<span class="fa fa-search"></span>
|
|
|
|
</div>
|
|
|
|
<input type="text" name="name" class="form-control"
|
2024-02-13 13:54:01 +07:00
|
|
|
placeholder="{Lang::T('Search by Name')}...">
|
2023-09-15 14:03:23 +07:00
|
|
|
<div class="input-group-btn">
|
2024-02-13 13:54:01 +07:00
|
|
|
<button class="btn btn-success" type="submit">{Lang::T('Search')}</button>
|
2023-09-15 14:03:23 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
2024-02-26 11:43:57 +07:00
|
|
|
<a href="{$_url}services/add" class="btn btn-primary btn-block"><i
|
2024-02-13 13:54:01 +07:00
|
|
|
class="ion ion-android-add"> </i> {Lang::T('New Service Plan')}</a>
|
2023-09-15 14:03:23 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-bordered table-striped table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2024-02-13 13:54:01 +07:00
|
|
|
<th>{Lang::T('Plan Name')}</th>
|
|
|
|
<th>{Lang::T('Plan Type')}</th>
|
|
|
|
<th>{Lang::T('Bandwidth Plans')}</th>
|
|
|
|
<th>{Lang::T('Plan Price')}</th>
|
|
|
|
<th>{Lang::T('Time Limit')}</th>
|
|
|
|
<th>{Lang::T('Data Limit')}</th>
|
|
|
|
<th>{Lang::T('Plan Validity')}</th>
|
|
|
|
<th>{Lang::T('Routers')}</th>
|
2023-09-15 14:03:23 +07:00
|
|
|
<th>{Lang::T('Expired IP Pool')}</th>
|
2024-02-13 13:54:01 +07:00
|
|
|
<th>{Lang::T('Manage')}</th>
|
2024-02-21 14:37:44 +07:00
|
|
|
<th>ID</th>
|
2023-09-15 14:03:23 +07:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{foreach $d as $ds}
|
2024-01-16 09:00:56 +07:00
|
|
|
<tr {if $ds['enabled'] != 1}class="danger" title="disabled"
|
2024-03-13 14:32:10 +07:00
|
|
|
{elseif $ds['prepaid'] != 'yes'}class="warning" title="Postpaid" {/if}>
|
2024-02-21 14:37:44 +07:00
|
|
|
<td class="headcol">{$ds['name_plan']}</td>
|
2023-09-15 14:03:23 +07:00
|
|
|
<td>{$ds['typebp']}</td>
|
|
|
|
<td>{$ds['name_bw']}</td>
|
|
|
|
<td>{Lang::moneyFormat($ds['price'])}</td>
|
|
|
|
<td>{$ds['time_limit']} {$ds['time_unit']}</td>
|
|
|
|
<td>{$ds['data_limit']} {$ds['data_unit']}</td>
|
|
|
|
<td>{$ds['validity']} {$ds['validity_unit']}</td>
|
2023-10-02 17:11:02 +07:00
|
|
|
<td>
|
2023-10-03 15:46:55 +07:00
|
|
|
{if $ds['is_radius']}
|
2023-10-02 17:11:02 +07:00
|
|
|
<span class="label label-primary">RADIUS</span>
|
|
|
|
{else}
|
|
|
|
{if $ds['routers']!=''}
|
|
|
|
<a href="{$_url}routers/edit/0&name={$ds['routers']}">{$ds['routers']}</a>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
</td>
|
2024-02-20 10:07:07 +07:00
|
|
|
<td>{$ds['pool_expired']}{if $ds['list_expired']}{if $ds['pool_expired']} | {/if}{$ds['list_expired']}{/if}</td>
|
2023-09-15 14:03:23 +07:00
|
|
|
<td>
|
|
|
|
<a href="{$_url}services/edit/{$ds['id']}"
|
2024-02-13 13:54:01 +07:00
|
|
|
class="btn btn-info btn-xs">{Lang::T('Edit')}</a>
|
2023-09-15 14:03:23 +07:00
|
|
|
<a href="{$_url}services/delete/{$ds['id']}" id="{$ds['id']}"
|
2024-02-13 13:54:01 +07:00
|
|
|
onclick="return confirm('{Lang::T('Delete')}?')"
|
2024-02-16 15:09:28 +07:00
|
|
|
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
|
2023-09-15 14:03:23 +07:00
|
|
|
</td>
|
2024-02-21 14:37:44 +07:00
|
|
|
<td>{$ds['id']}</td>
|
2023-09-15 14:03:23 +07:00
|
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{$paginator['contents']}
|
2022-09-06 10:31:33 +07:00
|
|
|
|
2023-09-15 14:03:23 +07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-09-06 10:31:33 +07:00
|
|
|
|
2023-09-15 14:03:23 +07:00
|
|
|
{include file="sections/footer.tpl"}
|