CIM58 - Userflow - extended
This commit is contained in:
@@ -10,7 +10,10 @@ if (debug && debug_id == $_SESSION['id']){
|
|||||||
include_once './assets/functions.php';
|
include_once './assets/functions.php';
|
||||||
include_once './settings/settings.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
|
//Check if allowed
|
||||||
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
||||||
header('location: index.php');
|
header('location: index.php');
|
||||||
|
|||||||
@@ -10,8 +10,12 @@ include_once './assets/functions.php';
|
|||||||
include_once './settings/settings.php';
|
include_once './settings/settings.php';
|
||||||
|
|
||||||
//SET PAGE ORIGIN FOR NAVIGATION AND SECURITY
|
//SET PAGE ORIGIN FOR NAVIGATION AND SECURITY
|
||||||
|
$prev_page = $_SESSION['prev_origin'] ?? '';
|
||||||
$page = $_SESSION['origin'] = 'equipments';
|
$page = $_SESSION['origin'] = 'equipments';
|
||||||
|
|
||||||
|
//create backbutton to prev_origin
|
||||||
|
$back_btn_orgin = ($prev_page != '')? '<a href="'.$prev_page.'" class="btn alt mar-right-2">'.$button_back.'</a>':'';
|
||||||
|
|
||||||
//Check if allowed
|
//Check if allowed
|
||||||
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
||||||
header('location: index.php');
|
header('location: index.php');
|
||||||
@@ -34,7 +38,6 @@ $warrantydate = $_SESSION['warrantydate'] = isset($_GET['warrantydate']) ? '&war
|
|||||||
$partnerid = $_SESSION['partnerid'] = isset($_GET['partnerid']) ? '&partnerid='.$_GET['partnerid'] : '';
|
$partnerid = $_SESSION['partnerid'] = isset($_GET['partnerid']) ? '&partnerid='.$_GET['partnerid'] : '';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//GET PARAMETERS FOR FILTERS
|
//GET PARAMETERS FOR FILTERS
|
||||||
$filter = urlGETdetailsFilter($_GET) ?? '';
|
$filter = urlGETdetailsFilter($_GET) ?? '';
|
||||||
|
|
||||||
@@ -71,6 +74,9 @@ if (isset($_GET['download'])){
|
|||||||
downloadToExcel('equipment',$responses);
|
downloadToExcel('equipment',$responses);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
template_header('Assets', 'assets','view');
|
template_header('Assets', 'assets','view');
|
||||||
$view = '
|
$view = '
|
||||||
<div class="content-title">
|
<div class="content-title">
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
defined(page_security_key) or exit;
|
defined(page_security_key) or exit;
|
||||||
|
|
||||||
$page = 'partner';
|
//SET ORIGIN FOR NAVIGATION
|
||||||
|
$_SESSION['prev_origin'] = $_SERVER['REQUEST_URI'];
|
||||||
|
$page = $_SESSION['origin'] ='partner';
|
||||||
|
|
||||||
//Check if allowed
|
//Check if allowed
|
||||||
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
||||||
header('location: index.php');
|
header('location: index.php');
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ $general_logout = 'Uitloggen';
|
|||||||
|
|
||||||
$button_apply = 'Toepassen';
|
$button_apply = 'Toepassen';
|
||||||
$button_cancel = 'Terug';
|
$button_cancel = 'Terug';
|
||||||
|
$button_back = 'Terug';
|
||||||
$button_history = 'Geschiedenis';
|
$button_history = 'Geschiedenis';
|
||||||
$button_firmware = 'Update software';
|
$button_firmware = 'Update software';
|
||||||
$button_create_asset = 'Maak activa';
|
$button_create_asset = 'Maak activa';
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ $general_logout = 'Logout';
|
|||||||
|
|
||||||
$button_apply = 'Apply';
|
$button_apply = 'Apply';
|
||||||
$button_cancel = 'Cancel';
|
$button_cancel = 'Cancel';
|
||||||
|
$button_back = 'Back';
|
||||||
$button_history = 'History';
|
$button_history = 'History';
|
||||||
$button_firmware = 'Update firmware';
|
$button_firmware = 'Update firmware';
|
||||||
$button_create_asset = 'Create asset';
|
$button_create_asset = 'Create asset';
|
||||||
|
|||||||
Reference in New Issue
Block a user