diff --git a/system/controllers/autoload.php b/system/controllers/autoload.php index c6e9b03c..e0920b5e 100644 --- a/system/controllers/autoload.php +++ b/system/controllers/autoload.php @@ -28,7 +28,10 @@ switch ($action) { $ui->assign('d', $d); $ui->display('autoload-pool.tpl'); break; - + case 'bw_name': + $bw = ORM::for_table('tbl_bandwidth')->select("name_bw")->find_one($routes['2']); + echo $bw['name_bw']; + die(); case 'server': $d = ORM::for_table('tbl_routers')->where('enabled', '1')->find_many(); $ui->assign('d', $d); diff --git a/system/controllers/autoload_user.php b/system/controllers/autoload_user.php index be1fc66b..3da9b5e2 100644 --- a/system/controllers/autoload_user.php +++ b/system/controllers/autoload_user.php @@ -45,6 +45,10 @@ switch ($action) { die('--'); } break; + case 'bw_name': + $bw = ORM::for_table('tbl_bandwidth')->select("name_bw")->find_one($routes['2']); + echo $bw['name_bw']; + die(); case 'inbox_unread': $count = ORM::for_table('tbl_customers_inbox')->where('customer_id', $user['id'])->whereRaw('date_read is null')->count('id'); if ($count > 0) { diff --git a/ui/ui/app-settings.tpl b/ui/ui/app-settings.tpl index 6979cdcd..bb09077e 100644 --- a/ui/ui/app-settings.tpl +++ b/ui/ui/app-settings.tpl @@ -62,7 +62,8 @@
{Lang::T('This Token will act as SuperAdmin/Admin')}
@@ -576,7 +590,7 @@{Lang::T('If enabled, the system will notify Admin when router goes Offline, If admin have 10 or more router and many customers, it will get overlapping, you can disabled')} +
+ {Lang::T('If enabled, the system will notify Admin when router goes Offline, If admin have 10 or more router and many customers, it will get overlapping, you can disabled')}
{Lang::T('If user buy same internet plan, expiry date will extend')}
+ {Lang::T(' for Customer')}
+{Lang::T('expired')} | -{Lang::dateTimeFormat($unpaid['expired_date'])} | -
{Lang::T('Plan Name')} | -{$unpaid['plan_name']} | -
{Lang::T('Plan Price')} | -{$unpaid['price']} | -
{Lang::T('Routers')} | -{$unpaid['routers']} | -
{str_replace(' Bill', '', $k)} | -
- {if strpos($v, ':') === false}
- {Lang::moneyFormat($v)}
- ∞
- {assign var="total" value=$v+$total}
- {else}
- {assign var="exp" value=explode(':',$v)}
- {Lang::moneyFormat($exp[0])}
- {if $exp[1]==0}{Lang::T('paid
+
+
+ {if $exp[1]>0}
+ {assign var="total" value=$exp[0]+$total}
+ {/if}
+ {/if}
+
|
+ ||||
{Lang::T('Total')} | ++ {if $total==0} + {ucwords(Lang::T('paid off'))} + {else} + {Lang::moneyFormat($total)} + {/if} + | +
{Lang::T('Plan Name')} | -
- {$_bill['namebp']}
- {if $_bill['status'] != 'on'}
- {Lang::T('expired')}
+
+
|