diff --git a/composer.json b/composer.json index 6efbb598..aae53459 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "hotspotbilling/phpnuxbill", "type": "template", "description": "PHPNuxBill a Hotspot Billing Software.", - "keywords": ["template"], + "keywords": ["template","PHPMixBill","PHPnuxBill","Mikrotik","Hotspot","Billing"], "homepage": "https://github.com/hotspotbilling/phpnuxbill", "license": "MIT", "authors": [ diff --git a/system/controllers/prepaid.php b/system/controllers/prepaid.php index 4aa267a1..6d9e39c0 100644 --- a/system/controllers/prepaid.php +++ b/system/controllers/prepaid.php @@ -36,6 +36,7 @@ switch ($action) { } $ui->assign('d', $d); + $ui->assign('cari', $username); $ui->assign('paginator', $paginator); run_hook('view_list_billing'); #HOOK $ui->display('prepaid.tpl'); @@ -367,7 +368,7 @@ switch ($action) { $paginator = Paginator::bootstrap('tbl_voucher', 'code', '%' . $code . '%'); $d = ORM::for_table('tbl_plans')->where('enabled', '1') ->join('tbl_voucher', array('tbl_plans.id', '=', 'tbl_voucher.id_plan')) - ->where_like('tbl_plans.code', '%' . $code . '%') + ->where_like('tbl_voucher.code', '%' . $code . '%') ->offset($paginator['startpoint']) ->limit($paginator['limit']) ->find_many(); @@ -380,6 +381,7 @@ switch ($action) { } $ui->assign('d', $d); + $ui->assign('_code', $code); $ui->assign('paginator', $paginator); run_hook('view_list_voucher'); #HOOK $ui->display('voucher.tpl'); diff --git a/ui/ui/hotspot.tpl b/ui/ui/hotspot.tpl index bdb8bbd7..1c466ce1 100644 --- a/ui/ui/hotspot.tpl +++ b/ui/ui/hotspot.tpl @@ -50,7 +50,8 @@