diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f3c5d3dae1..76d7656fbd 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,4 +1,9 @@ -2010-02-15 Miguel de Dios +2010-02-16 Raúl Mateos + + * extensions/module_groups.php: Better description text. Changed font + colour. + +2010-02-16 Miguel de Dios * include/functions_gis.php: add the function "getMapConnection" get the row of connection for id connection, "updateMap" function update the all data in diff --git a/pandora_console/extensions/module_groups.php b/pandora_console/extensions/module_groups.php index bfdfa1c254..ad449bb5d6 100644 --- a/pandora_console/extensions/module_groups.php +++ b/pandora_console/extensions/module_groups.php @@ -84,6 +84,7 @@ function mainModuleGroups() { } $color = 'transparent'; //Defaut color for cell + $font_color = '#ffffff'; //Default font color for cell if ($count == 0) { $color = '#babdb6'; //Grey when the cell for this model group and agent group hasn't modules. $alinkStart = ''; @@ -91,14 +92,16 @@ function mainModuleGroups() { } else { $alinkStart = ''; + '&modulegroup=' . $idModelGroup . '". + style="color: ' . $font_color . '";>'; $alinkEnd = ''; if (array_key_exists(0,$states) && (count($states) == 1)) $color = '#8ae234'; //Green when the cell for this model group and agent has OK state all modules. else { - if (array_key_exists(1,$states)) + if (array_key_exists(1,$states)) { $color = '#cc0000'; //Red when the cell for this model group and agent has at least one module in critical state and the rest in any state. + } else $color = '#fce94f'; //Yellow when the cell for this model group and agent has at least one in warning state and the rest in green state. } @@ -106,10 +109,10 @@ function mainModuleGroups() { array_push($row, '
+ style="background: ' . $color . '; + height: 15px; + margin-left: auto; margin-right: auto; + text-align: center; padding-top: 5px;"> ' . $alinkStart . $count . ' modules' . $alinkEnd . '
'); } array_push($tableData,$row); @@ -122,19 +125,19 @@ function mainModuleGroups() { "
    " . '
  •  
    ' . - __("Red when the cell for this model group and agent has at least one module in critical state and the others in any state.") . + __("Red cell when the module group and agent have at least one module in critical state and the others in any state.") . '
  • ' . '
  •  
    ' . - __("Yellow when the cell for this model group and agent has at least one in warning state and the others in green state.") . + __("Yellow cell when the module group and agent have at least one in warning state and the others in green state.") . '
  • ' . '
  •  
    ' . - __("Green when the cell for this model group and agent has OK state all modules.") . + __("Green cell when the module group and agent have all modules in OK state.") . '
  • ' . '
  •  
    ' . - __("Grey when the cell for this model group and agent group haven't modules.") . + __("Grey cell when the module group and agent don't have any modules.") . '
  • ' . "
" . "

";