From aabfd7ce7fd5e3294f7a4c26c7f0a46e93fa518c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CVeLiTi=E2=80=9D?= <“info@veliti.nl”> Date: Tue, 2 Apr 2024 09:46:09 +0200 Subject: [PATCH] CIM58 - Userflow - extended --- account.php | 5 ++++- equipments.php | 8 +++++++- partner.php | 5 ++++- settings/translations/translations_NL.php | 1 + settings/translations/translations_US.php | 1 + 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/account.php b/account.php index 49ad5ae..b037b63 100644 --- a/account.php +++ b/account.php @@ -10,7 +10,10 @@ if (debug && debug_id == $_SESSION['id']){ include_once './assets/functions.php'; include_once './settings/settings.php'; -$page = 'account'; +//SET ORIGIN FOR NAVIGATION +$_SESSION['prev_origin'] = $_SERVER['REQUEST_URI']; +$page = $_SESSION['origin'] = 'account'; + //Check if allowed if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ header('location: index.php'); diff --git a/equipments.php b/equipments.php index 0fb0fcc..107575f 100644 --- a/equipments.php +++ b/equipments.php @@ -10,8 +10,12 @@ include_once './assets/functions.php'; include_once './settings/settings.php'; //SET PAGE ORIGIN FOR NAVIGATION AND SECURITY +$prev_page = $_SESSION['prev_origin'] ?? ''; $page = $_SESSION['origin'] = 'equipments'; +//create backbutton to prev_origin +$back_btn_orgin = ($prev_page != '')? ''.$button_back.'':''; + //Check if allowed if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ header('location: index.php'); @@ -34,7 +38,6 @@ $warrantydate = $_SESSION['warrantydate'] = isset($_GET['warrantydate']) ? '&war $partnerid = $_SESSION['partnerid'] = isset($_GET['partnerid']) ? '&partnerid='.$_GET['partnerid'] : ''; - //GET PARAMETERS FOR FILTERS $filter = urlGETdetailsFilter($_GET) ?? ''; @@ -71,6 +74,9 @@ if (isset($_GET['download'])){ downloadToExcel('equipment',$responses); } + + + template_header('Assets', 'assets','view'); $view = '
diff --git a/partner.php b/partner.php index 33b1aab..0b3dfa5 100644 --- a/partner.php +++ b/partner.php @@ -1,7 +1,10 @@