diff --git a/include/themes/classic/main.css b/include/themes/classic/main.css index 219656965..2c2ae9067 100755 --- a/include/themes/classic/main.css +++ b/include/themes/classic/main.css @@ -86,6 +86,24 @@ label { vertical-align:bottom; } +.accessGranted { + color:green; + font-weight:bold; +} + +.accessGrantedItem { + color:green; +} + +.accessRestricted { + color:red; + font-weight:bold; +} + +.accessRestrictedItem { + color:red; +} + .menuoptions { background: none repeat scroll 0 0 #eee; border-color: #f5f5f5 #e5e5e5 #ccc; diff --git a/include/themes/modern/main.css b/include/themes/modern/main.css index 708a697b4..c10e63650 100755 --- a/include/themes/modern/main.css +++ b/include/themes/modern/main.css @@ -96,6 +96,24 @@ label { vertical-align:bottom; } +.accessGranted { + color:green; + font-weight:bold; +} + +.accessGrantedItem { + color:green; +} + +.accessRestricted { + color:red; + font-weight:bold; +} + +.accessRestrictedItem { + color:red; +} + .menuoptions { background: none repeat scroll 0 0 #eee; border-color: #f5f5f5 #e5e5e5 #ccc; diff --git a/user_admin.php b/user_admin.php index 6cd055672..d3f595365 100644 --- a/user_admin.php +++ b/user_admin.php @@ -676,14 +676,14 @@ function get_permission_string(&$graph, &$policies) { $permStr = ''; if (strlen($grantStr)) { - $permStr = "Granted: " . trim($grantStr,',') . ''; + $permStr = "Granted: " . trim($grantStr,',') . ''; } if (strlen($rejectStr)) { if ($grantStr == '') { - $permStr = "Restricted: " . trim($rejectStr,',') . ''; + $permStr = "Restricted: " . trim($rejectStr,',') . ''; }else{ - $permStr .= ", " . trim($rejectStr,',') . ''; + $permStr .= ", " . trim($rejectStr,',') . ''; } } @@ -1110,15 +1110,15 @@ function graph_perms_edit($tab, $header_label) { form_selectable_cell(round(($host['id']), 2), $host['id']); if (empty($host['user_id']) || $host['user_id'] == NULL) { if ($policy['policy_hosts'] == 1) { - form_selectable_cell('Access Granted', $host['id']); + form_selectable_cell('Access Granted', $host['id']); }else{ - form_selectable_cell('Access Restricted', $host['id']); + form_selectable_cell('Access Restricted', $host['id']); } } else { if ($policy['policy_hosts'] == 1) { - form_selectable_cell('Access Restricted', $host['id']); + form_selectable_cell('Access Restricted', $host['id']); }else{ - form_selectable_cell('Access Granted', $host['id']); + form_selectable_cell('Access Granted', $host['id']); } } form_selectable_cell((isset($host_graphs[$host['id']]) ? $host_graphs[$host['id']] : 0), $host['id']); @@ -1251,15 +1251,15 @@ function graph_perms_edit($tab, $header_label) { form_selectable_cell($g['id'], $g['id']); if (empty($g['user_id']) || $g['user_id'] == NULL) { if ($policy['policy_graph_templates'] == 1) { - form_selectable_cell('Access Granted', $g['id']); + form_selectable_cell('Access Granted', $g['id']); }else{ - form_selectable_cell('Access Restricted', $g['id']); + form_selectable_cell('Access Restricted', $g['id']); } } else { if ($policy['policy_graph_templates'] == 1) { - form_selectable_cell('Access Restricted', $g['id']); + form_selectable_cell('Access Restricted', $g['id']); }else{ - form_selectable_cell('Access Granted', $g['id']); + form_selectable_cell('Access Granted', $g['id']); } } form_selectable_cell($g['totals'], $g['id']); @@ -1383,15 +1383,15 @@ function graph_perms_edit($tab, $header_label) { form_selectable_cell($t['id'], $t['id']); if (empty($t['user_id']) || $t['user_id'] == NULL) { if ($policy['policy_graphs'] == 1) { - form_selectable_cell('Access Granted', $t['id']); + form_selectable_cell('Access Granted', $t['id']); }else{ - form_selectable_cell('Access Restricted', $t['id']); + form_selectable_cell('Access Restricted', $t['id']); } } else { if ($policy['policy_graphs'] == 1) { - form_selectable_cell('Access Restricted', $t['id']); + form_selectable_cell('Access Restricted', $t['id']); }else{ - form_selectable_cell('Access Granted', $t['id']); + form_selectable_cell('Access Granted', $t['id']); } } form_checkbox_cell($t['name'], $t['id']); diff --git a/user_group_admin.php b/user_group_admin.php index d30e9cfa7..00b791c8e 100644 --- a/user_group_admin.php +++ b/user_group_admin.php @@ -605,9 +605,9 @@ function user_group_members_edit($header_label) { form_selectable_cell((strlen(get_request_var_request('filter')) ? preg_replace('/(' . preg_quote(get_request_var_request('filter')) . ')/i', "\\1", htmlspecialchars($g['full_name'])) : htmlspecialchars($g['full_name'])), $g['id']); form_selectable_cell($g['id'], $g['id']); if (user_group_is_member($g['id'], get_request_var_request('id'))) { - form_selectable_cell('Group Member', $g['id']); + form_selectable_cell('Group Member', $g['id']); }else{ - form_selectable_cell('Non Member', $g['id']); + form_selectable_cell('Non Member', $g['id']); } form_selectable_cell(($g['enabled'] == 'on' ? 'Enabled':'Disabled'), $g['id']); form_selectable_cell((isset($auth_realms[$g['realm']]) ? $auth_realms[$g['realm']]:'Unknown'), $g['id']); @@ -748,15 +748,15 @@ function user_group_graph_perms_edit($tab, $header_label) { form_selectable_cell($g['local_graph_id'], $g['local_graph_id']); if (empty($g['group_id']) || $g['group_id'] == NULL) { if ($policy['policy_graphs'] == 1) { - form_selectable_cell('Access Granted', $g['local_graph_id']); + form_selectable_cell('Access Granted', $g['local_graph_id']); }else{ - form_selectable_cell('Access Restricted', $g['local_graph_id']); + form_selectable_cell('Access Restricted', $g['local_graph_id']); } } else { if ($policy['policy_graphs'] == 1) { - form_selectable_cell('Access Restricted', $g['local_graph_id']); + form_selectable_cell('Access Restricted', $g['local_graph_id']); }else{ - form_selectable_cell('Access Granted', $g['local_graph_id']); + form_selectable_cell('Access Granted', $g['local_graph_id']); } } form_checkbox_cell($g['title_cache'], $g['local_graph_id']); @@ -891,15 +891,15 @@ function user_group_graph_perms_edit($tab, $header_label) { form_selectable_cell(round(($host['id']), 2), $host['id']); if (empty($host['group_id']) || $host['group_id'] == NULL) { if ($policy['policy_hosts'] == 1) { - form_selectable_cell('Access Granted', $host['id']); + form_selectable_cell('Access Granted', $host['id']); }else{ - form_selectable_cell('Access Restricted', $host['id']); + form_selectable_cell('Access Restricted', $host['id']); } } else { if ($policy['policy_hosts'] == 1) { - form_selectable_cell('Access Restricted', $host['id']); + form_selectable_cell('Access Restricted', $host['id']); }else{ - form_selectable_cell('Access Granted', $host['id']); + form_selectable_cell('Access Granted', $host['id']); } } form_selectable_cell((isset($host_graphs[$host['id']]) ? $host_graphs[$host['id']] : 0), $host['id']); @@ -1033,15 +1033,15 @@ function user_group_graph_perms_edit($tab, $header_label) { form_selectable_cell($g['id'], $g['id']); if (empty($g['group_id']) || $g['group_id'] == NULL) { if ($policy['policy_graph_templates'] == 1) { - form_selectable_cell('Access Granted', $g['id']); + form_selectable_cell('Access Granted', $g['id']); }else{ - form_selectable_cell('Access Restricted', $g['id']); + form_selectable_cell('Access Restricted', $g['id']); } } else { if ($policy['policy_graph_templates'] == 1) { - form_selectable_cell('Access Restricted', $g['id']); + form_selectable_cell('Access Restricted', $g['id']); }else{ - form_selectable_cell('Access Granted', $g['id']); + form_selectable_cell('Access Granted', $g['id']); } } form_selectable_cell($g['totals'], $g['id']); @@ -1165,15 +1165,15 @@ function user_group_graph_perms_edit($tab, $header_label) { form_selectable_cell($t['id'], $t['id']); if (empty($t['group_id']) || $t['group_id'] == NULL) { if ($policy['policy_trees'] == 1) { - form_selectable_cell('Access Granted', $t['id']); + form_selectable_cell('Access Granted', $t['id']); }else{ - form_selectable_cell('Access Restricted', $t['id']); + form_selectable_cell('Access Restricted', $t['id']); } } else { if ($policy['policy_trees'] == 1) { - form_selectable_cell('Access Restricted', $t['id']); + form_selectable_cell('Access Restricted', $t['id']); }else{ - form_selectable_cell('Access Granted', $t['id']); + form_selectable_cell('Access Granted', $t['id']); } } form_checkbox_cell($t['name'], $t['id']);