diff --git a/system/controllers/autoload.php b/system/controllers/autoload.php index 9984947f..04689be8 100644 --- a/system/controllers/autoload.php +++ b/system/controllers/autoload.php @@ -36,7 +36,11 @@ switch ($action) { case 'plan': $server = _post('server'); $jenis = _post('jenis'); - $d = ORM::for_table('tbl_plans')->where('routers', $server)->where('type', $jenis)->where('enabled', '1')->find_many(); + if($server=='radius'){ + $d = ORM::for_table('tbl_plans')->where('is_radius', 1)->where('type', $jenis)->where('enabled', '1')->find_many(); + }else{ + $d = ORM::for_table('tbl_plans')->where('routers', $server)->where('type', $jenis)->where('enabled', '1')->find_many(); + } $ui->assign('d', $d); $ui->display('autoload.tpl'); diff --git a/ui/ui/autoload-server.tpl b/ui/ui/autoload-server.tpl index 51e6616b..4bb7e40a 100644 --- a/ui/ui/autoload-server.tpl +++ b/ui/ui/autoload-server.tpl @@ -1,4 +1,7 @@ {foreach $d as $ds} + {if $_c['radius_enable']} + + {/if} {/foreach} \ No newline at end of file