Changeset 5818

Show
Ignore:
Timestamp:
07/22/08 17:30:18 (4 months ago)
Author:
jmathis
Message:

fixe bug #81

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

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/include/monitoring/external_cmd/cmd.php

    r5226 r5818  
    2424                $en = $_GET["en"]; 
    2525         
    26         if (isset($_GET["select"])) 
    27                 foreach ($_GET["select"] as $key => $value){ 
     26        if (isset($_GET["select"])){ 
     27                foreach ($_GET["select"] as $key => $value){     
    2828                        if (isset($_GET["cmd"])) 
    2929                                switch ($_GET["cmd"]) { 
     
    151151                                        case 93:        autoCheckHostStop($key);                                                break; 
    152152                                } 
     153                        } 
    153154                } 
    154155?> 
  • trunk/centreon/www/include/monitoring/status/monitoringHost.php

    r5815 r5818  
    2020 
    2121        require_once './class/other.class.php'; 
     22        include_once("./include/monitoring/common-Func.php"); 
    2223        include_once("./include/monitoring/external_cmd/cmd.php"); 
    2324 
  • trunk/centreon/www/include/monitoring/status/status-ndo/host.php

    r5226 r5818  
    4141 
    4242        $tab_class = array("0" => "list_one", "1" => "list_two"); 
    43         $rows = 0; 
    44  
    4543        $rows = 10; 
    46  
    47  
     44         
    4845        //include("./include/common/checkPagination.php"); 
    4946 
     
    8885        $attrs = array( 'onchange'=>"javascript: setO(this.form.elements['o1'].value); submit();"); 
    8986    $form->addElement('select', 'o1', NULL, array(      NULL    =>      _("More actions..."),  
    90                                                                                                         "3"             =>      _("Verification Check"),  
    91                                                                                                         "4"             =>      _("Verification Check (Forced)"),  
    92                                                                                                         "70"    =>      _("Services : Acknowledge"),  
    93                                                                                                         "71"    =>      _("Services : Disacknowledge"), 
    94                                                                                                         "80"    =>      _("Services : Enable Notification"),  
    95                                                                                                         "81"    =>      _("Services : Disable Notification"), 
    96                                                                                                         "90"    =>      _("Services : Enable Check"),  
    97                                                                                                         "91"    =>      _("Services : Disable Check"), 
    9887                                                                                                        "72"    =>      _("Hosts : Acknowledge"), 
    9988                                                                                                        "73"    =>      _("Hosts : Disacknowledge"),  
     
    10897        $attrs = array('onchange'=>"javascript: setO(this.form.elements['o2'].value); submit();"); 
    10998    $form->addElement('select', 'o2', NULL, array(      NULL    =>      _("More actions..."),  
    110                                                                                                         "3"             =>      _("Verification Check"),  
    111                                                                                                         "4"             =>      _("Verification Check (Forced)"),  
    112                                                                                                         "70"    =>      _("Services : Acknowledge"),  
    113                                                                                                         "71"    =>      _("Services : Disacknowledge"), 
    114                                                                                                         "80"    =>      _("Services : Enable Notification"),  
    115                                                                                                         "81"    =>      _("Services : Disable Notification"), 
    116                                                                                                         "90"    =>      _("Services : Enable Check"),  
    117                                                                                                         "91"    =>      _("Services : Disable Check"), 
    11899                                                                                                        "72"    =>      _("Hosts : Acknowledge"), 
    119100                                                                                                        "73"    =>      _("Hosts : Disacknowledge"),  
  • trunk/centreon/www/include/monitoring/status/status-ndo/templates/host.xsl

    r5226 r5818  
    1717                <xsl:attribute name="id">trStatus</xsl:attribute> 
    1818                <xsl:attribute name="class"><xsl:value-of select="@class" /></xsl:attribute> 
    19                                 <td class="ListColPicker"> 
    20                                 <xsl:element name="input"> 
    21                                                 <xsl:attribute name="type">checkbox</xsl:attribute> 
    22                                                 <xsl:attribute name="value">1</xsl:attribute> 
    23                                                 <xsl:attribute name="name"> 
    24                                                         select[<xsl:value-of select="hn"/>] 
    25                                         </xsl:attribute> 
    26                                 </xsl:element> 
    27                                 </td> 
    28                                 <td class="ListColLeft"> 
    29                                                 <xsl:element name="a"> 
    30                                                         <xsl:attribute name="href">main.php?p=201&amp;o=hd&amp;host_name=<xsl:value-of select="hn"/></xsl:attribute> 
    31                                                         <xsl:attribute name="class">pop</xsl:attribute> 
    32                                                         <xsl:value-of select="hn"/> 
    33                                                 </xsl:element> 
    34                                 </td> 
     19                <td class="ListColPicker"> 
     20                <xsl:element name="input"> 
     21                        <xsl:attribute name="type">checkbox</xsl:attribute> 
     22                        <xsl:attribute name="value">1</xsl:attribute> 
     23                        <xsl:attribute name="name">select[<xsl:value-of select="hn"/>]</xsl:attribute> 
     24                </xsl:element> 
     25                </td> 
     26                <td class="ListColLeft"> 
     27                        <xsl:element name="a"> 
     28                                <xsl:attribute name="href">main.php?p=201&amp;o=hd&amp;host_name=<xsl:value-of select="hn"/></xsl:attribute> 
     29                                <xsl:attribute name="class">pop</xsl:attribute> 
     30                                <xsl:value-of select="hn"/> 
     31                        </xsl:element> 
     32                </td> 
     33                <td class="ListColLeft"> 
     34                        <xsl:if test="ha = 1"> 
     35                                        <xsl:element name="img"> 
     36                                                <xsl:attribute name="src">./img/icones/16x16/worker.gif</xsl:attribute> 
     37                                        </xsl:element> 
     38                        </xsl:if> 
     39                        <xsl:if test="hae = 0 and hpe = 1"> 
     40                                        <xsl:element name="img"> 
     41                                                <xsl:attribute name="src">./img/icones/14x14/gears_pause.gif</xsl:attribute> 
     42                                        </xsl:element> 
     43                        </xsl:if> 
     44                        <xsl:if test="hae = 0 and hpe = 0"> 
     45                                        <xsl:element name="img"> 
     46                                                <xsl:attribute name="src">./img/icones/14x14/gears_stop.gif</xsl:attribute> 
     47                                        </xsl:element> 
     48                        </xsl:if> 
     49                        <xsl:if test="ne = 0"> 
     50                                        <xsl:element name="img"> 
     51                                                <xsl:attribute name="src">./img/icones/14x14/noloudspeaker.gif</xsl:attribute> 
     52                                        </xsl:element> 
     53                        </xsl:if> 
     54                </td> 
     55                <td class="ListColCenter"> 
     56                        <xsl:attribute name="style"> 
     57                                background-color:<xsl:value-of select="hc"/>; 
     58                        </xsl:attribute> 
    3559 
    36                                 <td class="ListColLeft"> 
    37                                                 <xsl:if test="ha = 1"> 
    38                                                                 <xsl:element name="img"> 
    39                                                                         <xsl:attribute name="src">./img/icones/16x16/worker.gif</xsl:attribute> 
    40                                                                 </xsl:element> 
    41                                                 </xsl:if> 
    42                                                 <xsl:if test="hae = 0 and hpe = 1"> 
    43                                                                 <xsl:element name="img"> 
    44                                                                         <xsl:attribute name="src">./img/icones/14x14/gears_pause.gif</xsl:attribute> 
    45                                                                 </xsl:element> 
    46                                                 </xsl:if> 
    47                                                 <xsl:if test="hae = 0 and hpe = 0"> 
    48                                                                 <xsl:element name="img"> 
    49                                                                         <xsl:attribute name="src">./img/icones/14x14/gears_stop.gif</xsl:attribute> 
    50                                                                 </xsl:element> 
    51                                                 </xsl:if> 
    52                                         <xsl:if test="ne = 0"> 
    53                                                         <xsl:element name="img"> 
    54                                                                 <xsl:attribute name="src">./img/icones/14x14/noloudspeaker.gif</xsl:attribute> 
    55                                                         </xsl:element> 
    56                                         </xsl:if> 
    57                                 </td> 
    58  
    59                                 <td class="ListColCenter"> 
    60                                         <xsl:attribute name="style"> 
    61                                                 background-color:<xsl:value-of select="hc"/>; 
    62                                 </xsl:attribute> 
    63  
    64                                         <xsl:value-of select="cs"/> 
    65                                 </td> 
    66                                 <td class="ListColRight"> 
    67                                         <xsl:value-of select="a"/> 
    68                                 </td> 
    69                     <td class="ListColRight"> 
    70                                         <xsl:value-of select="lc"/> 
    71                     </td> 
    72                     <td class="ListColCenter"> 
    73                                         <xsl:value-of select="lsc"/> 
    74                     </td> 
    75                     <td class="ListColNoWrap"> 
    76                                         <xsl:value-of select="ou"/> 
    77                     </td> 
     60                        <xsl:value-of select="cs"/> 
     61                </td> 
     62                <td class="ListColRight"><xsl:value-of select="a"/></td> 
     63            <td class="ListColRight"><xsl:value-of select="lc"/></td> 
     64            <td class="ListColCenter"><xsl:value-of select="lsc"/></td> 
     65                <td class="ListColNoWrap"><xsl:value-of select="ou"/></td> 
    7866        </tr> 
    7967</xsl:for-each>