Show
Ignore:
Timestamp:
07/23/08 17:34:47 (4 months ago)
Author:
ncordier
Message:

display right type of commands

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/include/configuration/configObject/command/listCommand.php

    r5226 r5853  
    100100                $cmd["command_line"] = str_replace('#S#', "/", $cmd["command_line"]); 
    101101                $cmd["command_line"] = str_replace('#BS#', "\\", $cmd["command_line"]); 
    102                  
     102 
     103                if ($cmd["command_type"] == 1) { 
     104                        $command_type = _("Notification"); 
     105                } 
     106                else if ($cmd["command_type"] == 2) { 
     107                        $command_type = _("Check"); 
     108                } 
     109                else if ($cmd["command_type"] == 3) { 
     110                        $command_type = _("Miscellaneous"); 
     111                } 
     112                else { 
     113                        $command_type = _("Other"); 
     114                } 
     115 
    103116                $elemArr[$i] = array("MenuClass"=>"list_".$style,  
    104117                                                "RowMenu_select"=>$selectedElements->toHtml(), 
     
    106119                                                "RowMenu_link"=>"?p=".$p."&o=c&command_id=".$cmd['command_id']."&type=".$cmd['command_type'], 
    107120                                                "RowMenu_desc"=>substr($cmd["command_line"], 0, 50)."...", 
    108                                                 "RowMenu_type"=>$cmd["command_type"] == 2 ? _("Check") : _("Notification"), 
     121                                                "RowMenu_type"=>$command_type, 
    109122                                                "RowMenu_options"=>$moptions); 
    110123                $style != "two" ? $style = "two" : $style = "one";