From 364ee773e448c49691758b970c861fc7f65a7303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVeLiTi=E2=80=9D?= <“info@veliti.nl”> Date: Tue, 16 Dec 2025 11:39:14 +0100 Subject: [PATCH] Enhance UI and functionality across multiple pages - Added filter panels and search functionality to media, orders, partners, pricelists, products, products attributes, software versions, translations, and users pages. - Implemented security checks for create, update, and delete permissions on various pages. - Updated CSS styles for improved layout and responsiveness, including new styles for filter panels and buttons. - Refactored existing forms to utilize the new filter panel design for a more consistent user experience. - Adjusted API versioning in servicereport and servicereports pages for better compatibility. - Improved button icons for filter actions and form submissions for better user interaction. --- accounts.php | 65 +++++++----- assets/admin.js | 20 ++++ assets/functions.php | 2 +- cartests.php | 68 +++++++------ communications.php | 70 ++++++++----- contracts.php | 67 ++++++++----- equipment.php | 6 +- equipment_manage.php | 2 +- equipments.php | 117 +++++++++++----------- equipments_mass_update.php | 2 +- histories.php | 54 +++++----- media.php | 70 +++++++------ orders.php | 37 ++++++- partners.php | 58 ++++++----- pricelists.php | 43 +++++--- products.php | 60 ++++++++---- products_attributes.php | 44 ++++++--- products_software_versions.php | 50 +++++++--- report_contracts_billing.php | 2 +- report_healthindex.php | 4 +- rmas.php | 69 +++++++------ servicereport.php | 5 +- servicereports.php | 48 +++++---- style/admin.css | 174 ++++++++++++++++++++++++++++----- translations.php | 44 ++++++--- users.php | 60 +++++++----- 26 files changed, 824 insertions(+), 417 deletions(-) diff --git a/accounts.php b/accounts.php index e0aeb49..72e748c 100644 --- a/accounts.php +++ b/accounts.php @@ -12,12 +12,18 @@ include_once './settings/settings_redirector.php'; //SET ORIGIN FOR NAVIGATION $_SESSION['prev_origin'] = ''; +$page = 'accounts'; //Check if allowed -if (isAllowed('accounts',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ +if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ header('location: index.php'); exit; } +//PAGE Security +$page_manage = 'account_manage'; +$update_allowed = isAllowed($page_manage ,$_SESSION['profile'],$_SESSION['permission'],'U'); +$delete_allowed = isAllowed($page_manage ,$_SESSION['profile'],$_SESSION['permission'],'D'); +$create_allowed = isAllowed($page_manage ,$_SESSION['profile'],$_SESSION['permission'],'C'); //GET PARAMETERS $pagination_page = isset($_GET['p']) ? $_GET['p'] : 1; @@ -62,6 +68,16 @@ $view = '
'.$account_p .'
+