diff --git a/system/controllers/customers.php b/system/controllers/customers.php index d6a86c0f..8fb4689c 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -184,13 +184,18 @@ switch ($action) { $zero = 1; $gateway = 'Recharge Zero'; } + $usings = explode(',', $config['payment_usings']); + $usings = array_filter(array_unique($usings)); + if(count($usings)==0){ + $usings[] = Lang::T('Cash'); + } + $ui->assign('usings', $usings); $ui->assign('bills', $bills); $ui->assign('add_cost', $add_cost); $ui->assign('cust', $cust); $ui->assign('gateway', $gateway); $ui->assign('channel', $channel); $ui->assign('server', $b['routers']); - $ui->assign('using', 'cash'); $ui->assign('plan', $plan); $ui->display('recharge-confirm.tpl'); } else { diff --git a/system/controllers/plan.php b/system/controllers/plan.php index 4cb6c12d..a14053db 100644 --- a/system/controllers/plan.php +++ b/system/controllers/plan.php @@ -114,6 +114,12 @@ switch ($action) { $zero = 1; $gateway = 'Recharge Zero'; } + $usings = explode(',', $config['payment_usings']); + $usings = array_filter(array_unique($usings)); + if(count($usings)==0){ + $usings[] = Lang::T('Cash'); + } + $ui->assign('usings', $usings); $ui->assign('bills', $bills); $ui->assign('add_cost', $add_cost); $ui->assign('cust', $cust); diff --git a/ui/ui/recharge-confirm.tpl b/ui/ui/recharge-confirm.tpl index e4c987ab..2b841873 100644 --- a/ui/ui/recharge-confirm.tpl +++ b/ui/ui/recharge-confirm.tpl @@ -5,82 +5,91 @@