diff --git a/system/controllers/order.php b/system/controllers/order.php index ac4151e2..f8a2db2f 100644 --- a/system/controllers/order.php +++ b/system/controllers/order.php @@ -48,24 +48,71 @@ switch ($action) { } if (!empty($_SESSION['nux-router'])) { if ($_SESSION['nux-router'] == 'radius') { - $radius_pppoe = ORM::for_table('tbl_plans')->where('plan_type', $account_type)->where('enabled', '1')->where('is_radius', 1)->where('type', 'PPPOE')->where('prepaid', 'yes')->find_many(); - $radius_hotspot = ORM::for_table('tbl_plans')->where('plan_type', $account_type)->where('enabled', '1')->where('is_radius', 1)->where('type', 'Hotspot')->where('prepaid', 'yes')->find_many(); + $radius_pppoe = ORM::for_table('tbl_plans') + ->where('plan_type', $account_type) + ->where('enabled', '1') + ->where('is_radius', 1) + ->where('type', 'PPPOE') + ->where('prepaid', 'yes')->find_many(); + $radius_hotspot = ORM::for_table('tbl_plans') + ->where('plan_type', $account_type) + ->where('enabled', '1') + ->where('is_radius', 1) + ->where('type', 'Hotspot') + ->where('prepaid', 'yes')->find_many(); } else { $routers = ORM::for_table('tbl_routers')->where('id', $_SESSION['nux-router'])->find_many(); $rs = []; foreach ($routers as $r) { $rs[] = $r['name']; } - $plans_pppoe = ORM::for_table('tbl_plans')->where('plan_type', $account_type)->where('enabled', '1')->where_in('routers', $rs)->where('is_radius', 0)->where('type', 'PPPOE')->where('prepaid', 'yes')->find_many(); - $plans_hotspot = ORM::for_table('tbl_plans')->where('plan_type', $account_type)->where('enabled', '1')->where_in('routers', $rs)->where('is_radius', 0)->where('type', 'Hotspot')->where('prepaid', 'yes')->find_many(); + $plans_pppoe = ORM::for_table('tbl_plans') + ->where('plan_type', $account_type) + ->where('enabled', '1') + ->where_in('routers', $rs) + ->where('is_radius', 0) + ->where('type', 'PPPOE') + ->where('prepaid', 'yes') + ->find_many(); + $plans_hotspot = ORM::for_table('tbl_plans') + ->where('plan_type', $account_type) + ->where('enabled', '1') + ->where_in('routers', $rs) + ->where('is_radius', 0) + ->where('type', 'Hotspot') + ->where('prepaid', 'yes') + ->find_many(); } } else { - $radius_pppoe = ORM::for_table('tbl_plans')->where('plan_type', $account_type)->where('enabled', '1')->where('is_radius', 1)->where('type', 'PPPOE')->where('prepaid', 'yes')->find_many(); - $radius_hotspot = ORM::for_table('tbl_plans')->where('plan_type', $account_type)->where('enabled', '1')->where('is_radius', 1)->where('type', 'Hotspot')->where('prepaid', 'yes')->find_many(); + $radius_pppoe = ORM::for_table('tbl_plans') + ->where('plan_type', $account_type) + ->where('enabled', '1') + ->where('is_radius', 1) + ->where('type', 'PPPOE') + ->where('prepaid', 'yes') + ->find_many(); + $radius_hotspot = ORM::for_table('tbl_plans') + ->where('plan_type', $account_type) + ->where('enabled', '1') + ->where('is_radius', 1) + ->where('type', 'Hotspot') + ->where('prepaid', 'yes') + ->find_many(); $routers = ORM::for_table('tbl_routers')->find_many(); - $plans_pppoe = ORM::for_table('tbl_plans')->where('plan_type', $account_type)->where('enabled', '1')->where('is_radius', 0)->where('type', 'PPPOE')->where('prepaid', 'yes')->find_many(); - $plans_hotspot = ORM::for_table('tbl_plans')->where('plan_type', $account_type)->where('enabled', '1')->where('is_radius', 0)->where('type', 'Hotspot')->where('prepaid', 'yes')->find_many(); + $plans_pppoe = ORM::for_table('tbl_plans') + ->where('plan_type', $account_type) + ->where('enabled', '1') + ->where('is_radius', 0) + ->where('type', 'PPPOE') + ->where('prepaid', 'yes') + ->find_many(); + $plans_hotspot = ORM::for_table('tbl_plans') + ->where('plan_type', $account_type) + ->where('enabled', '1')->where('is_radius', 0) + ->where('type', 'Hotspot') + ->where('prepaid', 'yes') + ->find_many(); } $ui->assign('routers', $routers); $ui->assign('radius_pppoe', $radius_pppoe); diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl index 52c566fd..a75b6de3 100644 --- a/ui/ui/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -248,7 +248,7 @@ } {if isset($xheader)} - {$xheader} + {$xheader} {/if} @@ -318,81 +318,81 @@ {$_MENU_AFTER_DASHBOARD} {if !in_array($_admin['user_type'],['Report'])} -
  • - - {Lang::T('Customer')} - - - - - -
  • - {$_MENU_AFTER_CUSTOMERS} -
  • - - {Lang::T('Services')} - - - - - -
  • +
  • + + {Lang::T('Customer')} + + + + + +
  • + {$_MENU_AFTER_CUSTOMERS} +
  • + + {Lang::T('Services')} + + + + + +
  • {/if} {$_MENU_AFTER_SERVICES} {if in_array($_admin['user_type'],['SuperAdmin','Admin'])} -
  • - - {Lang::T('Internet Plan')} - - - - - -
  • +
  • + + {Lang::T('Internet Plan')} + + + + + +
  • {/if} {$_MENU_AFTER_PLANS}
  • {if in_array($_admin['user_type'],['SuperAdmin','Admin', 'Report'])} - - {Lang::T('Reports')} - - - - + + {Lang::T('Reports')} + + + + {/if} @@ -569,11 +571,11 @@ {if $_c['maintenance_mode'] == 1} -
    -

    {Lang::T('The website is currently in maintenance mode, this means that some or all functionality may be +

    +

    {Lang::T('The website is currently in maintenance mode, this means that some or all functionality may be unavailable to regular users during this time.')}   {Lang::T('Turn Off')}

    -
    + href="{$_url}settings/maintenance">{Lang::T('Turn Off')}

    +
    {/if}
    @@ -585,19 +587,19 @@
    {if isset($notify)} - - {/if} \ No newline at end of file + +{/if} \ No newline at end of file