update ui class and traffic stats
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user