Changeset 5885

Show
Ignore:
Timestamp:
07/24/08 11:37:57 (2 months ago)
Author:
dduponchelle
Message:

Update to show and color initials states on event logs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/include/eventLogs/GetODSXmlLog.php

    r5863 r5885  
    453453                        echo "<type>".$log["type"]."</type>"; 
    454454 
     455                # Color initialisation for services and hosts status 
    455456                $color = ''; 
    456457                if ($log["msg_type"] == 0 || $log["msg_type"] == 2) 
     
    458459                if ($log["msg_type"] == 1 || $log["msg_type"] == 3) 
    459460                        $color = $tab_color_host[$log["status"]]; 
     461 
     462                # Variable initialisation to color "INITIAL STATE" on envent logs 
     463        if ($log["msg_type"] == 8) 
     464                $color = $tab_color_service[$log["status"]]; 
     465        if ($log["msg_type"] == 9) 
     466                $color = $tab_color_host[$log["status"]]; 
     467        if($log["output"] == "" && $log["status"] != "") 
     468                $log["output"] = "INITIAL STATE"; 
    460469 
    461470                echo '<status color="'.$color.'">'.$log["status"].'</status>';