Changeset 6689

Show
Ignore:
Timestamp:
10/02/08 11:35:42 (2 months ago)
Author:
dduponchelle
Message:

Host and service details interface update to introduce new actions access.

Location:
trunk/centreon/www/include/monitoring/objectDetails
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/include/monitoring/objectDetails/hostDetails.php

    r6678 r6689  
    1919                exit(); 
    2020 
     21        /* 
     22         * ACL Actions 
     23         */ 
     24        $GroupListofUser = array(); 
     25        $GroupListofUser =  getGroupListofUser($pearDB); 
     26         
     27        $allActions = false; 
     28        if(count($GroupListofUser) > 0 && isUserAdmin($pearDB) == 1) { 
     29        $authorized_actions = array(); 
     30        $authorized_actions = getActionsACLList($GroupListofUser); 
     31                if(count($authorized_actions) == 0) $allActions = false; 
     32        } 
     33        else { 
     34                // if user is admin, or without ACL, he cans perform all actions 
     35                $allActions = true; 
     36        } 
     37 
     38        /* 
     39         * ACL 
     40         */ 
    2141        $ndo_base_prefix = getNDOPrefix(); 
    2242 
     
    255275                $tpl->assign("m_mon_ed_flapping_detect", _("Flap detection for this host")); 
    256276                $tpl->assign("m_mon_acknowledge", _("Acknowledge this host")); 
    257                  
     277 
     278                // if user is admin, allActions is true, else, we introduce all actions allowed for user 
     279                $tpl->assign("acl_allActions", $allActions); 
     280                if (isset($authorized_actions) && $allActions == false){                 
     281                        foreach ($authorized_actions as $actions) { 
     282                                $tpl->assign($actions, $actions);        
     283                        } 
     284                } 
     285                         
    258286                $tpl->assign("p", $p); 
    259287                $tpl->assign("en", $en); 
  • trunk/centreon/www/include/monitoring/objectDetails/serviceDetails.php

    r6678 r6689  
    1818        if (!isset($oreon)) 
    1919                exit(); 
     20 
     21        /* 
     22         * ACL Actions 
     23         */ 
     24        $GroupListofUser = array(); 
     25        $GroupListofUser =  getGroupListofUser($pearDB); 
     26         
     27        $allActions = false; 
     28        // Get list of actions allowed for user 
     29        if(count($GroupListofUser) > 0 && isUserAdmin($pearDB) == 1) { 
     30        $authorized_actions = array(); 
     31        $authorized_actions = getActionsACLList($GroupListofUser); 
     32                if(count($authorized_actions) == 0) $allActions = false; 
     33        } 
     34        else { 
     35                // if user is admin, or without ACL, he cans perform all actions 
     36                $allActions = true; 
     37        } 
    2038 
    2139        $ndo_base_prefix = getNDOPrefix(); 
     
    233251                $tpl->assign("cmt_comment", _("Comments")); 
    234252                $tpl->assign("cmt_persistent", _("Persistent")); 
     253 
     254                // if user is admin, allActions is true, else, we introduce all actions allowed for user 
     255                $tpl->assign("acl_allActions", $allActions); 
     256                if(isset($authorized_actions)){ 
     257                        foreach($authorized_actions as $actions) { 
     258                                $tpl->assign($actions, $actions);                        
     259                        } 
     260                } 
    235261                 
    236262                $tpl->assign("p", $p); 
  • trunk/centreon/www/include/monitoring/objectDetails/template/hostDetails.ihtml

    r6646 r6689  
    107107                                        <tr class='ListHeader'> 
    108108                                                <td class="ListColHeaderCenter" colspan="2">{$options}</td> 
    109                                         </tr> 
     109                                        </tr>                            
    110110                                        <tr class='list_one'> 
    111111                                                <td class="ListColLeft">{$m_mon_host_checks_active}</td> 
     
    116116                                                <td class="ListColLeft"><font style='background-color:{$color_onoff[$host_data.passive_checks_enabled]};'>&nbsp;{$en_disable[$host_data.passive_checks_enabled]}&nbsp;</font></td> 
    117117                                        </tr> 
    118                                         <tr class='list_two'> 
    119                                                 <td class="ListColLeft">{$m_mon_host_notification}</td> 
    120                                                 <td class="ListColLeft"><font style='background-color:{$color_onoff[$host_data.notifications_enabled]};'>&nbsp;{$en_disable[$host_data.notifications_enabled]}&nbsp;</font></td> 
    121                                         </tr> 
     118                                                {if $host_notifications || $acl_allActions == true} 
     119                                                        <tr class='list_two'> 
     120                                                                <td class="ListColLeft">{$m_mon_host_notification}</td> 
     121                                                                <td class="ListColLeft"><font style='background-color:{$color_onoff[$host_data.notifications_enabled]};'>&nbsp;{$en_disable[$host_data.notifications_enabled]}&nbsp;</font></td> 
     122                                                        </tr> 
     123                                                {/if} 
    122124                                        <tr class='list_one'> 
    123125                                                <td class="ListColLeft">{$m_mon_obsess_over_host}</td> 
    124126                                                <td class="ListColLeft"><font style='background-color:{$color_onoff[$host_data.obsess_over_host]};'>&nbsp;{$en_disable[$host_data.obsess_over_host]}&nbsp;</font></td> 
    125127                                        </tr> 
    126                                         <tr class='list_one'> 
    127                                                 <td class="ListColLeft">{$m_mon_event_handler}</td> 
    128                                                 <td class="ListColLeft"><font style='background-color:{$color_onoff[$host_data.event_handler_enabled]};'>&nbsp;{$en_disable[$host_data.event_handler_enabled]}&nbsp;</font></td> 
    129                                         </tr> 
    130                                         <tr class='list_two'> 
    131                                                 <td class="ListColLeft">{$m_mon_flap_detection}</td> 
    132                                                 <td class="ListColLeft"><font style='background-color:{$color_onoff[$host_data.flap_detection_enabled]};'>&nbsp;{$en_disable[$host_data.flap_detection_enabled]}&nbsp;</font></td> 
    133                                         </tr> 
    134                                          
    135                                         {if $host_data.current_state != UP} 
    136                                         <tr class='list_one'> 
    137                                                 <td class="ListColLeft">{$m_mon_services_en_acknowledge}</td> 
    138                                                 <td class="ListColLeft"><font style='background-color:{$color_onoff[$host_data.problem_has_been_acknowledged]};'>&nbsp;{$en_disable[$host_data.problem_has_been_acknowledged]}&nbsp;</font></td> 
    139                                         </tr> 
    140                                         {/if} 
     128                                                {if $host_event_handler || $acl_allActions == true} 
     129                                                        <tr class='list_one'> 
     130                                                                <td class="ListColLeft">{$m_mon_event_handler}</td> 
     131                                                                <td class="ListColLeft"><font style='background-color:{$color_onoff[$host_data.event_handler_enabled]};'>&nbsp;{$en_disable[$host_data.event_handler_enabled]}&nbsp;</font></td> 
     132                                                        </tr> 
     133                                                {/if} 
     134                                                {if $host_flap_detection || $acl_allActions == true} 
     135                                                        <tr class='list_two'> 
     136                                                                <td class="ListColLeft">{$m_mon_flap_detection}</td> 
     137                                                                <td class="ListColLeft"><font style='background-color:{$color_onoff[$host_data.flap_detection_enabled]};'>&nbsp;{$en_disable[$host_data.flap_detection_enabled]}&nbsp;</font></td> 
     138                                                        </tr> 
     139                                                {/if} 
     140                                                {if $host_data.current_state != UP} 
     141                                                        {if $host_acknowledgement || $acl_allActions == true} 
     142                                                                <tr class='list_one'> 
     143                                                                        <td class="ListColLeft">{$m_mon_services_en_acknowledge}</td> 
     144                                                                        <td class="ListColLeft"><font style='background-color:{$color_onoff[$host_data.problem_has_been_acknowledged]};'>&nbsp;{$en_disable[$host_data.problem_has_been_acknowledged]}&nbsp;</font></td> 
     145                                                                </tr> 
     146                                                        {/if} 
     147                                                {/if} 
    141148                                </table> 
    142149                                <br /> 
     
    148155                                                <td class="ListColHeaderCenter">{$hosts_command}</td> 
    149156                                        </tr> 
    150                                         <tr class='list_one'> 
    151                                                 <td class="ListColLeft">{$img_en[$host_data.active_checks_enabled]}&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=6&select[{$h.host_name}]=1&en={$en_inv[$host_data.active_checks_enabled]}'>{$en_inv_text[$host_data.active_checks_enabled]} {$m_mon_check_this_host}</a></td> 
    152                                         </tr> 
    153                                         <tr class='list_two'> 
    154                                                 <td class="ListColLeft">{$img_en[$host_data.notifications_enabled]}&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=9&select[{$h.host_name}]=1&en={$en_inv[$host_data.notifications_enabled]}'>{$en_inv_text[$host_data.notifications_enabled]} {$m_mon_notify_this_host}</a></td> 
    155                                         </tr> 
    156                                         <tr class='list_one'> 
    157                                                 <td class="ListColLeft"><img src='./img/icones/16x16/warning.gif' border='1'>&nbsp;<a href='main.php?p=20305&o=ah&host_name={$h.host_name}'>{$m_mon_SCH_downtime}</a></td> 
    158                                         </tr> 
    159                                         <tr class='list_two'> 
    160                                                 <td class="ListColLeft"><img src='./img/icones/16x16/messages.gif' border='1'>&nbsp;<a href='main.php?p=20306&o=ah&host_name={$h.host_name}'>{$m_mon_add_comment}</a></td> 
    161                                         </tr> 
    162                                         <tr class='list_one'> 
    163                                                 <td class="ListColLeft"><img src='./img/icones/16x16/element_previous.gif' border='0'>&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=8&select[{$h.host_name}]=1&en=0'>{$m_mon_disable_not_all_services}</a></td> 
    164                                         </tr> 
    165                                         <tr class='list_two'> 
    166                                                 <td class="ListColLeft"><img src='./img/icones/16x16/element_next.gif' border='0'>&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=8&select[{$h.host_name}]=1&en=1'>{$m_mon_enable_not_all_services}</a></td> 
    167                                         </tr> 
    168                                         <tr class='list_one'> 
    169                                                 <td class="ListColLeft"><img src='./img/icones/16x16/undo.gif' border='1'>&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=1&select[{$h.host_name}]=1'>{$m_mon_SCH_immediate_check}<a></td> 
    170                                         </tr> 
    171                                         <tr class='list_two'> 
    172                                                 <td class="ListColLeft"><img src='./img/icones/16x16/undo.gif' border='1'>&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=2&select[{$h.host_name}]=1'>{$m_mon_SCH_immediate_check_f}</a></td> 
    173                                         </tr> 
    174                                         <tr class='list_one'> 
    175                                                 <td class="ListColLeft"><img src='./img/icones/16x16/element_previous.gif' border='0'>&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=5&select[{$h.host_name}]=1&en=0'>{$m_mon_diable_check_all_svc}</a></td> 
    176                                         </tr> 
    177                                         <tr class='list_two'> 
    178                                                 <td class="ListColLeft"><img src='./img/icones/16x16/element_next.gif' border='0'>&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=5&select[{$h.host_name}]=1&en=1'>{$m_mon_enable_check_all_svc}</a></td> 
    179                                         </tr> 
    180                                         <tr class='list_one'> 
    181                                                 <td class="ListColLeft">{$img_en[$host_data.event_handler_enabled]}&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=45&select[{$h.host_name}]=1&en={$en_inv[$host_data.event_handler_enabled]}'>{$en_inv_text[$host_data.event_handler_enabled]} {$m_mon_ed_event_handler}</a></td> 
    182                                         </tr> 
    183                                         <tr class='list_two'> 
    184                                                 <td class="ListColLeft">{$img_en[$host_data.flap_detection_enabled]}&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=43&select[{$h.host_name}]=1&en={$en_inv[$host_data.flap_detection_enabled]}'>{$en_inv_text[$host_data.flap_detection_enabled]} {$m_mon_ed_flapping_detect}</a></td> 
    185                                         </tr> 
     157                                        {if $host_checks || $acl_allActions == true}     
     158                                                <tr class='list_one'> 
     159                                                        <td class="ListColLeft">{$img_en[$host_data.active_checks_enabled]}&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=6&select[{$h.host_name}]=1&en={$en_inv[$host_data.active_checks_enabled]}'>{$en_inv_text[$host_data.active_checks_enabled]} {$m_mon_check_this_host}</a></td> 
     160                                                </tr> 
     161                                        {/if} 
     162                                        {if $host_notifications || $acl_allActions == true}      
     163                                                <tr class='list_two'> 
     164                                                        <td class="ListColLeft">{$img_en[$host_data.notifications_enabled]}&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=9&select[{$h.host_name}]=1&en={$en_inv[$host_data.notifications_enabled]}'>{$en_inv_text[$host_data.notifications_enabled]} {$m_mon_notify_this_host}</a></td> 
     165                                                </tr> 
     166                                        {/if} 
     167                                        {if $host_schedule_downtime || $acl_allActions == true}  
     168                                                <tr class='list_one'> 
     169                                                        <td class="ListColLeft"><img src='./img/icones/16x16/warning.gif' border='1'>&nbsp;<a href='main.php?p=20305&o=ah&host_name={$h.host_name}'>{$m_mon_SCH_downtime}</a></td> 
     170                                                </tr> 
     171                                        {/if} 
     172                                        {if $host_comment || $acl_allActions == true}                                            
     173                                                <tr class='list_two'> 
     174                                                        <td class="ListColLeft"><img src='./img/icones/16x16/messages.gif' border='1'>&nbsp;<a href='main.php?p=20306&o=ah&host_name={$h.host_name}'>{$m_mon_add_comment}</a></td> 
     175                                                </tr> 
     176                                        {/if} 
     177                                        {if $host_notifications_for_services || $acl_allActions == true}         
     178                                                <tr class='list_one'> 
     179                                                        <td class="ListColLeft"><img src='./img/icones/16x16/element_previous.gif' border='0'>&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=8&select[{$h.host_name}]=1&en=0'>{$m_mon_disable_not_all_services}</a></td> 
     180                                                </tr> 
     181                                        {/if} 
     182                                        {if $host_notifications_for_services || $acl_allActions == true} 
     183                                                <tr class='list_two'> 
     184                                                        <td class="ListColLeft"><img src='./img/icones/16x16/element_next.gif' border='0'>&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=8&select[{$h.host_name}]=1&en=1'>{$m_mon_enable_not_all_services}</a></td> 
     185                                                </tr> 
     186                                        {/if} 
     187                                        {if $host_schedule_check || $acl_allActions == true}                                             
     188                                                <tr class='list_one'> 
     189                                                        <td class="ListColLeft"><img src='./img/icones/16x16/undo.gif' border='1'>&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=1&select[{$h.host_name}]=1'>{$m_mon_SCH_immediate_check}<a></td> 
     190                                                </tr> 
     191                                        {/if} 
     192                                        {if $host_schedule_check || $acl_allActions == true}                                     
     193                                                <tr class='list_two'> 
     194                                                        <td class="ListColLeft"><img src='./img/icones/16x16/undo.gif' border='1'>&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=2&select[{$h.host_name}]=1'>{$m_mon_SCH_immediate_check_f}</a></td> 
     195                                                </tr> 
     196                                        {/if} 
     197                                        {if $host_checks_for_services || $acl_allActions == true}        
     198                                                <tr class='list_one'> 
     199                                                        <td class="ListColLeft"><img src='./img/icones/16x16/element_previous.gif' border='0'>&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=5&select[{$h.host_name}]=1&en=0'>{$m_mon_diable_check_all_svc}</a></td> 
     200                                                </tr> 
     201                                        {/if} 
     202                                        {if $host_checks_for_services || $acl_allActions == true}        
     203                                                <tr class='list_two'> 
     204                                                        <td class="ListColLeft"><img src='./img/icones/16x16/element_next.gif' border='0'>&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=5&select[{$h.host_name}]=1&en=1'>{$m_mon_enable_check_all_svc}</a></td> 
     205                                                </tr> 
     206                                        {/if} 
     207                                        {if $host_event_handler || $acl_allActions == true}                                      
     208                                                <tr class='list_one'> 
     209                                                        <td class="ListColLeft">{$img_en[$host_data.event_handler_enabled]}&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=45&select[{$h.host_name}]=1&en={$en_inv[$host_data.event_handler_enabled]}'>{$en_inv_text[$host_data.event_handler_enabled]} {$m_mon_ed_event_handler}</a></td> 
     210                                                </tr> 
     211                                        {/if} 
     212                                        {if $host_flap_detection || $acl_allActions == true} 
     213                                                <tr class='list_two'> 
     214                                                        <td class="ListColLeft">{$img_en[$host_data.flap_detection_enabled]}&nbsp;<a href='./main.php?p={$p}&o=hd&cmd=43&select[{$h.host_name}]=1&en={$en_inv[$host_data.flap_detection_enabled]}'>{$en_inv_text[$host_data.flap_detection_enabled]} {$m_mon_ed_flapping_detect}</a></td> 
     215                                                </tr> 
     216                                        {/if}    
    186217                                        {if $host_data.current_state != UP} 
    187                                         <tr class='list_one'> 
    188                                                 <td class="ListColLeft">{$img_en[$host_data.problem_has_been_acknowledged]}&nbsp; 
    189                                                 <a href='./main.php?p={$p}&o=hak&cmd=14&host_name={$h.host_name}&en={$en_acknowledge[$host_data.problem_has_been_acknowledged]}'> 
    190                                                 {$en_acknowledge_text[$host_data.acknowledged]} 
    191                                                 {$m_mon_acknowledge}</a></td> 
    192                                         </tr> 
     218                                                {if $host_acknowledgement || $acl_allActions == true}                    
     219                                                        <tr class='list_one'> 
     220                                                                <td class="ListColLeft">{$img_en[$host_data.problem_has_been_acknowledged]}&nbsp; 
     221                                                                <a href='./main.php?p={$p}&o=hak&cmd=14&host_name={$h.host_name}&en={$en_acknowledge[$host_data.problem_has_been_acknowledged]}'> 
     222                                                                {$en_acknowledge_text[$host_data.acknowledged]} 
     223                                                                {$m_mon_acknowledge}</a></td> 
     224                                                        </tr> 
     225                                                {/if} 
    193226                                        {/if} 
    194227                                </table> 
  • trunk/centreon/www/include/monitoring/objectDetails/template/serviceDetails.ihtml

    r6646 r6689  
    113113                                                <td class="ListColHeaderCenter">{$m_mon_service_command}</td> 
    114114                                        </tr> 
    115                                         <tr class='list_one'> 
    116                                                 <td class="ListColLeft">{$img_en[$service_data.active_checks_enabled]}&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=7&select[{$h.host_name};{$svc_description}]=1&en={$en_inv[$service_data.active_checks_enabled]}' class='link'>{$en_inv_text[$service_data.active_checks_enabled]} {$m_mon_check_this_service}</a></td> 
    117                                         </tr> 
    118                                         <tr class='list_two'> 
    119                                                 <td class="ListColLeft"><img src='./img/icones/16x16/undo.gif' border='1'>&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=3&select[{$h.host_name};{$svc_description}]=1&host_name={$h.host_name}&service_description={$svc_description}'>{$m_mon_schedule}</a></td> 
    120                                         </tr> 
    121                                         <tr class='list_one'> 
    122                                                 <td class="ListColLeft"><img src='./img/icones/16x16/undo.gif' border='1'>&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=4&select[{$h.host_name};{$svc_description}]=1&host_name={$h.host_name}&service_description={$svc_description}'>{$m_mon_schedule_force}</a></td> 
    123                                         </tr> 
    124                                         <tr class='list_two'> 
    125                                                 <td class="ListColLeft"><img src='./img/icones/16x16/undo.gif' border='1'>&nbsp;<a href='./main.php?p={$p}&o=svcpc&cmd=16&host_name={$h.host_name}&service_description={$svc_description}'>{$m_mon_submit_passive}</a></td> 
    126                                         </tr> 
    127                                         <tr class='list_one'> 
    128                                                 <td class="ListColLeft">{$img_en[$service_data.passive_checks_enabled]}&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=11&select[{$h.host_name};{$svc_description}]=1&en={$en_inv[$service_data.passive_checks_enabled]}'>{$en_inv_text[$service_data.passive_checks_enabled]} {$m_mon_accept_passive}</a></td> 
    129                                         </tr> 
    130                                         <tr class='list_two'> 
    131                                                 <td class="ListColLeft">{$img_en[$service_data.notifications_enabled]}&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=10&select[{$h.host_name};{$svc_description}]=1&en={$en_inv[$service_data.notifications_enabled]}'>{$en_inv_text[$service_data.notifications_enabled]} {$m_mon_notification_service}</a></td> 
    132                                         </tr> 
    133                                         <tr class='list_one'> 
    134                                                 <td class="ListColLeft"><img src='./img/icones/16x16/warning.gif' border='1'>&nbsp;<a href='./main.php?p=20305&o=as&host_name={$h.host_name}&service_description={$svc_description}'>{$m_mon_schedule_downtime}</a></td> 
    135                                         </tr> 
    136                                         <tr class='list_two'> 
    137                                                 <td class="ListColLeft"><img src='./img/icones/16x16/messages.gif' border='1'>&nbsp;<a href='./main.php?p=20306&o=as&host_name={$h.host_name}&service_description={$svc_description}'>{$m_mon_schedule_comment}</a></td> 
    138                                         </tr> 
    139                                         <tr class='list_one'> 
    140                                                 <td class="ListColLeft">{$img_en[$service_data.event_handler_enabled]}&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=46&select[{$h.host_name};{$svc_description}]=1&en={$en_inv[$service_data.event_handler_enabled]}'>{$en_inv_text[$service_data.event_handler_enabled]} {$m_mon_event_handler}</a></td> 
    141                                         </tr> 
    142                                         <tr class='list_two'> 
    143                                                 <td class="ListColLeft">{$img_en[$service_data.flap_detection_enabled]}&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=44&select[{$h.host_name};{$svc_description}]=1&en={$en_inv[$service_data.flap_detection_enabled]}'>{$en_inv_text[$service_data.flap_detection_enabled]} {$m_mon_flap_detection}</a></td> 
    144                                         </tr> 
    145                                         {if $service_data.current_state != OK} 
    146                                         <tr class='list_one'> 
    147                                                 <td class="ListColLeft">{$img_en[$service_data.problem_has_been_acknowledged]}&nbsp;<a href='./main.php?p={$p}&o=svcak&cmd=15&host_name={$h.host_name}&service_description={$svc_description}&en={$en_acknowledge[$service_data.problem_has_been_acknowledged]}'>{$en_acknowledge_text[$service_data.problem_has_been_acknowledged]}</a></td> 
    148                                         </tr> 
    149                                         {/if} 
     115                                                {if $service_checks || $acl_allActions == true} 
     116                                                        <tr class='list_one'> 
     117                                                                <td class="ListColLeft">{$img_en[$service_data.active_checks_enabled]}&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=7&select[{$h.host_name};{$svc_description}]=1&en={$en_inv[$service_data.active_checks_enabled]}' class='link'>{$en_inv_text[$service_data.active_checks_enabled]} {$m_mon_check_this_service}</a></td> 
     118                                                        </tr> 
     119                                                {/if} 
     120                                                {if $service_schedule_check || $acl_allActions == true} 
     121                                                        <tr class='list_two'> 
     122                                                                <td class="ListColLeft"><img src='./img/icones/16x16/undo.gif' border='1'>&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=3&select[{$h.host_name};{$svc_description}]=1&host_name={$h.host_name}&service_description={$svc_description}'>{$m_mon_schedule}</a></td> 
     123                                                        </tr> 
     124                                                {/if} 
     125                                                {if $service_schedule_check || $acl_allActions == true} 
     126                                                        <tr class='list_one'> 
     127                                                                <td class="ListColLeft"><img src='./img/icones/16x16/undo.gif' border='1'>&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=4&select[{$h.host_name};{$svc_description}]=1&host_name={$h.host_name}&service_description={$svc_description}'>{$m_mon_schedule_force}</a></td> 
     128                                                        </tr> 
     129                                                {/if} 
     130                                                {if $service_submit_result || $acl_allActions == true} 
     131                                                        <tr class='list_two'> 
     132                                                                <td class="ListColLeft"><img src='./img/icones/16x16/undo.gif' border='1'>&nbsp;<a href='./main.php?p={$p}&o=svcpc&cmd=16&host_name={$h.host_name}&service_description={$svc_description}'>{$m_mon_submit_passive}</a></td> 
     133                                                        </tr> 
     134                                                {/if} 
     135                                                {if $service_passive_checks || $acl_allActions == true}                                  
     136                                                        <tr class='list_one'> 
     137                                                                <td class="ListColLeft">{$img_en[$service_data.passive_checks_enabled]}&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=11&select[{$h.host_name};{$svc_description}]=1&en={$en_inv[$service_data.passive_checks_enabled]}'>{$en_inv_text[$service_data.passive_checks_enabled]} {$m_mon_accept_passive}</a></td> 
     138                                                        </tr> 
     139                                                {/if} 
     140                                                {if $service_notifications || $acl_allActions == true} 
     141                                                        <tr class='list_two'> 
     142                                                                <td class="ListColLeft">{$img_en[$service_data.notifications_enabled]}&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=10&select[{$h.host_name};{$svc_description}]=1&en={$en_inv[$service_data.notifications_enabled]}'>{$en_inv_text[$service_data.notifications_enabled]} {$m_mon_notification_service}</a></td> 
     143                                                        </tr> 
     144                                                {/if} 
     145                                                {if $service_schedule_downtime || $acl_allActions == true} 
     146                                                        <tr class='list_one'> 
     147                                                                <td class="ListColLeft"><img src='./img/icones/16x16/warning.gif' border='1'>&nbsp;<a href='./main.php?p=20305&o=as&host_name={$h.host_name}&service_description={$svc_description}'>{$m_mon_schedule_downtime}</a></td> 
     148                                                        </tr> 
     149                                                {/if} 
     150                                                {if $service_comment || $acl_allActions == true} 
     151                                                        <tr class='list_two'> 
     152                                                                <td class="ListColLeft"><img src='./img/icones/16x16/messages.gif' border='1'>&nbsp;<a href='./main.php?p=20306&o=as&host_name={$h.host_name}&service_description={$svc_description}'>{$m_mon_schedule_comment}</a></td> 
     153                                                        </tr> 
     154                                                {/if} 
     155                                                {if $service_event_handler || $acl_allActions == true} 
     156                                                        <tr class='list_one'> 
     157                                                                <td class="ListColLeft">{$img_en[$service_data.event_handler_enabled]}&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=46&select[{$h.host_name};{$svc_description}]=1&en={$en_inv[$service_data.event_handler_enabled]}'>{$en_inv_text[$service_data.event_handler_enabled]} {$m_mon_event_handler}</a></td> 
     158                                                        </tr> 
     159                                                {/if} 
     160                                                {if $service_flap_detection || $acl_allActions == true} 
     161                                                        <tr class='list_two'> 
     162                                                                <td class="ListColLeft">{$img_en[$service_data.flap_detection_enabled]}&nbsp;<a href='./main.php?p={$p}&o={$o}&cmd=44&select[{$h.host_name};{$svc_description}]=1&en={$en_inv[$service_data.flap_detection_enabled]}'>{$en_inv_text[$service_data.flap_detection_enabled]} {$m_mon_flap_detection}</a></td> 
     163                                                        </tr> 
     164                                                {/if} 
     165                                                {if $service_data.current_state != OK} 
     166                                                                {if $service_acknowledgement || $acl_allActions == true}         
     167                                                                        <tr class='list_one'> 
     168                                                                                <td class="ListColLeft">{$img_en[$service_data.problem_has_been_acknowledged]}&nbsp;<a href='./main.php?p={$p}&o=svcak&cmd=15&host_name={$h.host_name}&service_description={$svc_description}&en={$en_acknowledge[$service_data.problem_has_been_acknowledged]}'>{$en_acknowledge_text[$service_data.problem_has_been_acknowledged]}</a></td> 
     169                                                                        </tr> 
     170                                                                {/if} 
     171                                                {/if} 
    150172                                </table> 
    151173                                <br />