diff --git a/account.php b/account.php index 212a49c..5959e2e 100644 --- a/account.php +++ b/account.php @@ -23,6 +23,7 @@ if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){ $update_allowed = isAllowed($page ,$_SESSION['profile'],$_SESSION['permission'],'U'); $delete_allowed = isAllowed($page ,$_SESSION['profile'],$_SESSION['permission'],'D'); $create_allowed = isAllowed($page ,$_SESSION['profile'],$_SESSION['permission'],'C'); +$healthindex_allowed = isAllowed('report_healthindex' ,$_SESSION['profile'],$_SESSION['permission'],'R'); //GET Details from URL $GET_VALUES = urlGETdetails($_GET) ?? ''; @@ -248,6 +249,11 @@ if ($_SESSION['permission'] == 3 || $_SESSION['permission'] == 4){ $view_users = ' '.$button_partner_assigned_users.''; } +$healthindex =''; +if ($healthindex_allowed === 1){ + $healthindex = ''.$view_asset_data_ranking.''; +} + $view .= '
| '.$view_asset_data_ranking.' | +'.$equipment_label1.' | +'.$equipment_label2.' | +'.$equipment_label3.' | +'.$equipment_label4.' | ++ | '.$general_soldto.' | +'.$general_shipto.' | +'.$view_asset_actions.' | +
|---|---|---|---|---|---|---|---|---|
| '.$message_no_assets.' | +||||||||
| '.$response->healthindex.' | +'.$indicators.' | +'.$response->serialnumber.' | +'.$$status_text.' | +'.$response->productcode.'-'.$response->productname.' | '; +$view .= '';
+ if (!empty($picture)){
+ $view .='
+ |
+ '.$soldto.' | +'.$shipto.' | +'.$general_view .' | +