Update blockuser handling
This commit is contained in:
@@ -10,12 +10,11 @@ if (debug && debug_id == $_SESSION['id']){
|
||||
include_once './assets/functions.php';
|
||||
include_once './settings/settings.php';
|
||||
|
||||
/*Check if allowed
|
||||
if (isAllowed('usage_reporting',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
||||
//Check if allowed
|
||||
if (debug_id != $_SESSION['id']){
|
||||
header('location: index.php');
|
||||
exit;
|
||||
}
|
||||
*/
|
||||
|
||||
//Return report_usage_servicereports
|
||||
$api_url = '/v1/application/totals=/report_usage_servicereports';
|
||||
@@ -108,9 +107,20 @@ $usage_warranty = usageReportingView(json_decode(json_encode($report_usage_warra
|
||||
$usage_other = usageReportingView(json_decode(json_encode($report_usage_other), true)) ?? '';
|
||||
$usage_equipment = usageReportingView(json_decode(json_encode($report_usage_equipment), true)) ?? '';
|
||||
$usage_changes = usageReportingView(json_decode(json_encode($report_usage_changes), true)) ?? '';
|
||||
$usage_users = usageReportingView(json_decode(json_encode($report_usage_users), true)) ?? '';
|
||||
$usage_users = json_decode(json_encode($report_usage_users), true) ?? '';
|
||||
|
||||
$view .= '
|
||||
<div class="dashboard">
|
||||
<div class="content-block stat">
|
||||
<div class="data" onclick="location.href=\'index.php?page=equipments\'">
|
||||
<h3>Users</h3>
|
||||
<p>'.$usage_users['count'].'</p>
|
||||
</div>
|
||||
<i class="fas fa-box-open"></i>
|
||||
<div class="footer">
|
||||
<i class="fa-solid fa-rotate fa-xs"></i>Users in contract scope</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-block-wrapper">
|
||||
<div class="content-block order-details">
|
||||
<div class="block-header">
|
||||
@@ -149,14 +159,6 @@ $view .= '
|
||||
</div>'.$usage_changes.'
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content-block-wrapper">
|
||||
<div class="content-block order-details">
|
||||
<div class="block-header">
|
||||
<i class="fa-solid fa-bars fa-sm"></i>Users
|
||||
</div>'.$usage_users.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
|
||||
//OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user