#CIM 58 - Userflow equipments
This commit is contained in:
@@ -96,7 +96,7 @@ template_header('Asset', 'asset', 'view');
|
|||||||
$view = '
|
$view = '
|
||||||
<div class="content-title responsive-flex-wrap responsive-pad-bot-3">
|
<div class="content-title responsive-flex-wrap responsive-pad-bot-3">
|
||||||
<h2 class="responsive-width-100">'.$view_asset_h2.' - '.$_GET['equipmentID'].'</h2>
|
<h2 class="responsive-width-100">'.$view_asset_h2.' - '.$_GET['equipmentID'].'</h2>
|
||||||
<a href="index.php?page=equipments" class="btn alt mar-right-2">'.$button_cancel.'</a>
|
<a href="index.php?page='.$_SESSION['origin'].$_SESSION['p'].$_SESSION['status'].$_SESSION['sort'].$_SESSION['search'].$_SESSION['firmware'].$_SESSION['servicedate'].$_SESSION['warrantydate'].$_SESSION['partnerid'].'" class="btn alt mar-right-2">'.$button_cancel.'</a>
|
||||||
';
|
';
|
||||||
|
|
||||||
//------------------------------------
|
//------------------------------------
|
||||||
|
|||||||
@@ -9,7 +9,9 @@ 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 = 'equipments';
|
//SET PAGE ORIGIN FOR NAVIGATION AND SECURITY
|
||||||
|
$page = $_SESSION['origin'] = 'equipments';
|
||||||
|
|
||||||
//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');
|
||||||
@@ -21,15 +23,17 @@ $update_allowed = isAllowed($page_manage ,$_SESSION['profile'],$_SESSION['permis
|
|||||||
$delete_allowed = isAllowed($page_manage ,$_SESSION['profile'],$_SESSION['permission'],'D');
|
$delete_allowed = isAllowed($page_manage ,$_SESSION['profile'],$_SESSION['permission'],'D');
|
||||||
$create_allowed = isAllowed($page_manage ,$_SESSION['profile'],$_SESSION['permission'],'C');
|
$create_allowed = isAllowed($page_manage ,$_SESSION['profile'],$_SESSION['permission'],'C');
|
||||||
|
|
||||||
//GET PARAMETERS
|
//GET PARAMETERS && STORE in SESSION for FURTHER USE/NAVIGATION
|
||||||
$pagination_page = isset($_GET['p']) ? $_GET['p'] : 1;
|
$pagination_page = $_SESSION['p'] = isset($_GET['p']) ? $_GET['p'] : 1;
|
||||||
$status = isset($_GET['status']) ? '&status='.$_GET['status'] : '';
|
$status = $_SESSION['status'] = isset($_GET['status']) ? '&status='.$_GET['status'] : '';
|
||||||
$sort = isset($_GET['sort']) ? '&sort='.$_GET['sort'] : '';
|
$sort = $_SESSION['sort'] = isset($_GET['sort']) ? '&sort='.$_GET['sort'] : '';
|
||||||
$search = isset($_GET['search']) ? '&search='.$_GET['search'] : '';
|
$search = $_SESSION['search'] = isset($_GET['search']) ? '&search='.$_GET['search'] : '';
|
||||||
$software = isset($_GET['firmware']) ? '&firmware='.$_GET['firmware'] : '';
|
$software = $_SESSION['firmware'] = isset($_GET['firmware']) ? '&firmware='.$_GET['firmware'] : '';
|
||||||
$servicedate = isset($_GET['servicedate']) ? '&servicedate='.$_GET['servicedate'] : '';
|
$servicedate = $_SESSION['servicedate'] = isset($_GET['servicedate']) ? '&servicedate='.$_GET['servicedate'] : '';
|
||||||
$warrantydate = isset($_GET['warrantydate']) ? '&warrantydate='.$_GET['warrantydate'] : '';
|
$warrantydate = $_SESSION['warrantydate'] = isset($_GET['warrantydate']) ? '&warrantydate='.$_GET['warrantydate'] : '';
|
||||||
$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) ?? '';
|
||||||
|
|||||||
Reference in New Issue
Block a user