Changeset 6240

Show
Ignore:
Timestamp:
08/21/08 17:46:56 (5 months ago)
Author:
jmathis
Message:

improve performance of popup and add margin for table in popup

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

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/include/monitoring/engine/makeXMLForOneHost.php

    r6237 r6240  
    2020        $buffer = ''; 
    2121 
    22         include_once("@CENTREON_ETC@/centreon.conf.php"); 
    23         include_once($centreon_path . "www/class/other.class.php"); 
    24         include_once($centreon_path . "www/DBconnect.php"); 
    25         include_once($centreon_path . "www/DBNDOConnect.php"); 
    26         include_once($centreon_path . "www/include/common/common-Func-ACL.php"); 
    27         include_once($centreon_path . "www/include/common/common-Func.php"); 
     22        include_once "@CENTREON_ETC@/centreon.conf.php"; 
     23        include_once $centreon_path . "www/class/other.class.php"; 
     24        include_once $centreon_path . "www/DBconnect.php"; 
     25        include_once $centreon_path . "www/DBNDOConnect.php"; 
     26        include_once $centreon_path . "www/include/common/common-Func-ACL.php"; 
     27        include_once $centreon_path . "www/include/common/common-Func.php"; 
    2828 
    2929        $ndo_base_prefix = getNDOPrefix(); 
     
    3737        } else 
    3838                get_error('need session identifiant !'); 
    39  
    40         /* 
    41          * Get Acl Group list 
    42          */ 
    43          
    44         $grouplist = getGroupListofUser($pearDB);  
    45         $groupnumber = count($grouplist); 
    4639 
    4740        (isset($_GET["host_id"]) && !check_injection($_GET["host_id"])) ? $host_id = htmlentities($_GET["host_id"]) : $host_id = "0"; 
  • trunk/centreon/www/include/monitoring/engine/makeXMLForOneService.php

    r6237 r6240  
    2020        $buffer = ''; 
    2121 
    22         include_once("@CENTREON_ETC@/centreon.conf.php"); 
    23         include_once($centreon_path . "www/class/other.class.php"); 
    24         include_once($centreon_path . "www/DBconnect.php"); 
    25         include_once($centreon_path . "www/DBNDOConnect.php"); 
    26         include_once($centreon_path . "www/include/common/common-Func-ACL.php"); 
    27         include_once($centreon_path . "www/include/common/common-Func.php"); 
     22        include_once "/etc/cen/centreon.conf.php"; 
     23        include_once $centreon_path . "www/class/other.class.php"; 
     24        include_once $centreon_path . "www/DBconnect.php"; 
     25        include_once $centreon_path . "www/DBNDOConnect.php"; 
     26        include_once $centreon_path . "www/include/common/common-Func-ACL.php"; 
     27        include_once $centreon_path . "www/include/common/common-Func.php"; 
    2828 
    2929        $ndo_base_prefix = getNDOPrefix(); 
     
    3939                get_error('need session identifiant !'); 
    4040                 
    41         /* 
    42          * Get Acl Group list 
    43          */ 
    44          
    45         $grouplist = getGroupListofUser($pearDB);  
    46         $groupnumber = count($grouplist);        
    47          
    4841        (isset($_GET["svc_id"]) && !check_injection($_GET["svc_id"])) ? $svc_id = htmlentities($_GET["svc_id"]) : $svc_id = "0"; 
    4942        (isset($_GET["enable"]) && !check_injection($_GET["enable"])) ? $enable = htmlentities($_GET["enable"]) : $enable = "enable"; 
  • trunk/centreon/www/include/monitoring/status/status-ndo/templates/popupForHost.xsl

    r6238 r6240  
    22<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
    33<xsl:template match="//reponse"> 
    4         <table> 
     4        <table style="padding:5px;margin:5px;"> 
    55                <tr class="ListHeaderPopup"> 
    66                        <td class="ColPopup"><xsl:value-of select="hostname"/></td> 
  • trunk/centreon/www/include/monitoring/status/status-ndo/templates/popupForService.xsl

    r6238 r6240  
    22<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
    33<xsl:template match="//reponse"> 
    4         <table> 
     4        <table style="padding:5px;margin:5px;"> 
    55                <tr class="ListHeaderPopup"> 
    66                        <td class="ColPopup"><xsl:value-of select="hostname"/></td>