fixed template issue

This commit is contained in:
Focuslinkstech 2024-10-10 15:13:29 +01:00 committed by GitHub
parent 534886f8f3
commit 6be0da383c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ switch ($action) {
$ui->assign('_system_menu', 'voucher'); $ui->assign('_system_menu', 'voucher');
$ui->assign('_title', Lang::T('Order Voucher')); $ui->assign('_title', Lang::T('Order Voucher'));
run_hook('customer_view_order'); #HOOK run_hook('customer_view_order'); #HOOK
$ui->display('user-ui/order.tpl'); $ui->display('customer/order.tpl');
break; break;
case 'history': case 'history':
$ui->assign('_system_menu', 'history'); $ui->assign('_system_menu', 'history');
@ -24,7 +24,7 @@ switch ($action) {
$ui->assign('d', $d); $ui->assign('d', $d);
$ui->assign('_title', Lang::T('Order History')); $ui->assign('_title', Lang::T('Order History'));
run_hook('customer_view_order_history'); #HOOK run_hook('customer_view_order_history'); #HOOK
$ui->display('user-ui/orderHistory.tpl'); $ui->display('customer/orderHistory.tpl');
break; break;
case 'balance': case 'balance':
if (strpos($user['email'], '@') === false) { if (strpos($user['email'], '@') === false) {
@ -34,7 +34,7 @@ switch ($action) {
$ui->assign('_system_menu', 'balance'); $ui->assign('_system_menu', 'balance');
$plans_balance = ORM::for_table('tbl_plans')->where('enabled', '1')->where('type', 'Balance')->where('prepaid', 'yes')->find_many(); $plans_balance = ORM::for_table('tbl_plans')->where('enabled', '1')->where('type', 'Balance')->where('prepaid', 'yes')->find_many();
$ui->assign('plans_balance', $plans_balance); $ui->assign('plans_balance', $plans_balance);
$ui->display('user-ui/orderBalance.tpl'); $ui->display('customer/orderBalance.tpl');
break; break;
case 'package': case 'package':
if (strpos($user['email'], '@') === false) { if (strpos($user['email'], '@') === false) {
@ -127,7 +127,7 @@ switch ($action) {
$ui->assign('plans_hotspot', $plans_hotspot); $ui->assign('plans_hotspot', $plans_hotspot);
$ui->assign('plans_vpn', $plans_vpn); $ui->assign('plans_vpn', $plans_vpn);
run_hook('customer_view_order_plan'); #HOOK run_hook('customer_view_order_plan'); #HOOK
$ui->display('user-ui/orderPlan.tpl'); $ui->display('customer/orderPlan.tpl');
break; break;
case 'unpaid': case 'unpaid':
$d = ORM::for_table('tbl_payment_gateway') $d = ORM::for_table('tbl_payment_gateway')
@ -192,7 +192,7 @@ switch ($action) {
$ui->assign('plan', $plan); $ui->assign('plan', $plan);
$ui->assign('bandw', $bandw); $ui->assign('bandw', $bandw);
$ui->assign('_title', 'TRX #' . $trxid); $ui->assign('_title', 'TRX #' . $trxid);
$ui->display('user-ui/orderView.tpl'); $ui->display('customer/orderView.tpl');
break; break;
case 'pay': case 'pay':
if ($config['enable_balance'] != 'yes') { if ($config['enable_balance'] != 'yes') {
@ -383,7 +383,7 @@ switch ($action) {
$ui->assign('router', $router_name); $ui->assign('router', $router_name);
$ui->assign('plan', $plan); $ui->assign('plan', $plan);
$ui->assign('tax', $tax); $ui->assign('tax', $tax);
$ui->display('user-ui/sendPlan.tpl'); $ui->display('customer/sendPlan.tpl');
break; break;
case 'gateway': case 'gateway':
$ui->assign('_title', Lang::T('Select Payment Gateway')); $ui->assign('_title', Lang::T('Select Payment Gateway'));
@ -421,7 +421,7 @@ switch ($action) {
$ui->assign('add_cost', $add_cost); $ui->assign('add_cost', $add_cost);
$ui->assign('bills', $bills); $ui->assign('bills', $bills);
$ui->assign('plan', $plan); $ui->assign('plan', $plan);
$ui->display('user-ui/selectGateway.tpl'); $ui->display('customer/selectGateway.tpl');
break; break;
} else { } else {
sendTelegram("Payment Gateway not set, please set it in Settings"); sendTelegram("Payment Gateway not set, please set it in Settings");