Update active.tpl

This commit is contained in:
Ahmad Husein 2025-02-21 18:32:32 +07:00 committed by GitHub
parent 686f3de2d3
commit 0e32f128af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,12 +7,12 @@
{if in_array($_admin['user_type'],['SuperAdmin','Admin'])} {if in_array($_admin['user_type'],['SuperAdmin','Admin'])}
<div class="btn-group pull-right"> <div class="btn-group pull-right">
<a class="btn btn-primary btn-xs" title="save" href="{Text::url('')}plan/sync" <a class="btn btn-primary btn-xs" title="save" href="{Text::url('')}plan/sync"
onclick="return ask(this, '{Lang::T('This will sync/send Caustomer active plan to Mikrotik')}?')"><span onclick="return ask(this, '{Lang::T("This will sync dan send Customer active package to Mikrotik")}?')"><span
class="glyphicon glyphicon-refresh" aria-hidden="true"></span> {Lang::T('Sync')}</a> class="glyphicon glyphicon-refresh" aria-hidden="true"></span> {Lang::T("Sync")}</a>
</div> </div>
{* <div class="btn-group pull-right"> {* <div class="btn-group pull-right">
<a class="btn btn-info btn-xs" title="save" href="{Text::url('plan/csv',$append_url)}" <a class="btn btn-info btn-xs" title="save" href="{Text::url('plan/csv',$append_url)}"
onclick="return ask(this, 'This will export to CSV?')"><span class="glyphicon glyphicon-download" onclick="return ask(this, '{Lang::T("This will export to CSV?")}')"><span class="glyphicon glyphicon-download"
aria-hidden="true"></span> CSV</a> aria-hidden="true"></span> CSV</a>
</div> *} </div> *}
{/if} {/if}
@ -30,12 +30,12 @@
class="glyphicon glyphicon-remove-circle"></span></a> class="glyphicon glyphicon-remove-circle"></span></a>
</div> </div>
<input type="text" name="search" class="form-control" <input type="text" name="search" class="form-control"
placeholder="{Lang::T('Search')}..." value="{$search}"> placeholder="{Lang::T("Search")}..." value="{$search}">
</div> </div>
</div> </div>
<div class="col-lg-2 col-xs-4"> <div class="col-lg-2 col-xs-4">
<select class="form-control" id="router" name="router"> <select class="form-control" id="router" name="router">
<option value="">{Lang::T('Location')}</option> <option value="">{Lang::T("Location")}</option>
{foreach $routers as $r} {foreach $routers as $r}
<option value="{$r}" {if $router eq $r }selected{/if}>{$r} <option value="{$r}" {if $router eq $r }selected{/if}>{$r}
</option> </option>
@ -44,7 +44,7 @@
</div> </div>
<div class="col-lg-2 col-xs-4"> <div class="col-lg-2 col-xs-4">
<select class="form-control" id="plan" name="plan"> <select class="form-control" id="plan" name="plan">
<option value="">{Lang::T('Plan Name')}</option> <option value="">{Lang::T("Plan Name")}</option>
{foreach $plans as $p} {foreach $plans as $p}
<option value="{$p['id']}" {if $plan eq $p['id'] }selected{/if}>{$p['name_plan']} <option value="{$p['id']}" {if $plan eq $p['id'] }selected{/if}>{$p['name_plan']}
</option> </option>
@ -53,9 +53,9 @@
</div> </div>
<div class="col-lg-2 col-xs-4"> <div class="col-lg-2 col-xs-4">
<select class="form-control" id="status" name="status"> <select class="form-control" id="status" name="status">
<option value="-">{Lang::T('Status')}</option> <option value="-">{Lang::T("Status")}</option>
<option value="on" {if $status eq 'on' }selected{/if}>{Lang::T('Active')}</option> <option value="on" {if $status eq 'on' }selected{/if}>{Lang::T("Active")}</option>
<option value="off" {if $status eq 'off' }selected{/if}>{Lang::T('Expired')}</option> <option value="off" {if $status eq 'off' }selected{/if}>{Lang::T("Expired")}</option>
</select> </select>
</div> </div>
<div class="col-md-2 col-xs-6"> <div class="col-md-2 col-xs-6">
@ -65,7 +65,7 @@
<div class="col-md-2 col-xs-6"> <div class="col-md-2 col-xs-6">
<a href="{Text::url('')}plan/recharge" class="btn btn-primary btn-block"><i <a href="{Text::url('')}plan/recharge" class="btn btn-primary btn-block"><i
class="ion ion-android-add"> class="ion ion-android-add">
</i> {Lang::T('Recharge Account')}</a> </i> {Lang::T("Recharge Account")}</a>
</div> </div>
</div> </div>
</div> </div>
@ -75,14 +75,14 @@
<table id="datatable" class="table table-bordered table-striped table-condensed"> <table id="datatable" class="table table-bordered table-striped table-condensed">
<thead> <thead>
<tr> <tr>
<th>{Lang::T('Username')}</th> <th>{Lang::T("Username")}</th>
<th>{Lang::T('Plan Name')}</th> <th>{Lang::T("Plan Name")}</th>
<th>{Lang::T('Type')}</th> <th>{Lang::T("Type")}</th>
<th>{Lang::T('Created On')}</th> <th>{Lang::T("Created On")}</th>
<th>{Lang::T('Expires On')}</th> <th>{Lang::T("Expires On")}</th>
<th>{Lang::T('Method')}</th> <th>{Lang::T("Method")}</th>
<th><a href="{Text::url('')}routers/list">{Lang::T('Location')}</a></th> <th><a href="{Text::url('')}routers/list">{Lang::T("Location")}</a></th>
<th>{Lang::T('Manage')}</th> <th>{Lang::T("Manage")}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -117,15 +117,15 @@
<td>{$ds['routers']}</td> <td>{$ds['routers']}</td>
<td> <td>
<a href="{Text::url('')}plan/edit/{$ds['id']}" class="btn btn-warning btn-xs" <a href="{Text::url('')}plan/edit/{$ds['id']}" class="btn btn-warning btn-xs"
style="color: black;">{Lang::T('Edit')}</a> style="color: black;">{Lang::T("Edit")}</a>
{if in_array($_admin['user_type'],['SuperAdmin','Admin'])} {if in_array($_admin['user_type'],['SuperAdmin','Admin'])}
<a href="{Text::url('')}plan/delete/{$ds['id']}" id="{$ds['id']}" <a href="{Text::url('')}plan/delete/{$ds['id']}" id="{$ds['id']}"
onclick="return ask(this, '{Lang::T('Delete')}?')" onclick="return ask(this, '{Lang::T("Delete")}?')"
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a> class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
{/if} {/if}
{if $ds['status']=='off' && $_c['extend_expired']} {if $ds['status']=='off' && $_c['extend_expired']}
<a href="javascript:extend('{$ds['id']}')" <a href="javascript:extend('{$ds['id']}')"
class="btn btn-info btn-xs">{Lang::T('Extend')}</a> class="btn btn-info btn-xs">{Lang::T("Extend")}</a>
{/if} {/if}
</td> </td>
</tr> </tr>