update ui class and traffic stats

This commit is contained in:
envoyr
2022-03-18 12:53:34 +01:00
parent ba0d33392c
commit 69895943bd
41 changed files with 90927 additions and 16754 deletions

View File

@@ -51,11 +51,10 @@ if ($page == 'customers' && $userinfo['customers'] != '0') {
]];
}
UI::twigBuffer('user/table.html.twig', [
UI::view('user/table.html.twig', [
'listing' => \Froxlor\UI\Listing::format($collection, $customer_list_data['customer_list']),
'actions_links' => $actions_links
]);
UI::twigOutputBuffer();
} elseif ($action == 'su' && $id != 0) {
try {
$json_result = Customers::getLocal($userinfo, array(
@@ -198,11 +197,10 @@ if ($page == 'customers' && $userinfo['customers'] != '0') {
$customer_add_data = include_once dirname(__FILE__) . '/lib/formfields/admin/customer/formfield.customer_add.php';
UI::twigBuffer('user/form.html.twig', [
UI::view('user/form.html.twig', [
'formaction' => $linker->getLink(array('section' => 'customers')),
'formdata' => $customer_add_data['customer_add']
]);
UI::twigOutputBuffer();
}
} elseif ($action == 'edit' && $id != 0) {
@@ -283,12 +281,11 @@ if ($page == 'customers' && $userinfo['customers'] != '0') {
$customer_edit_data = include_once dirname(__FILE__) . '/lib/formfields/admin/customer/formfield.customer_edit.php';
UI::twigBuffer('user/form.html.twig', [
UI::view('user/form.html.twig', [
'formaction' => $linker->getLink(array('section' => 'customers', 'id' => $id)),
'formdata' => $customer_edit_data['customer_edit'],
'editid' => $id
]);
UI::twigOutputBuffer();
}
}
}