Changeset 6748 for trunk

Show
Ignore:
Timestamp:
10/06/08 21:43:48 (2 months ago)
Author:
jmathis
Message:

optimize html header

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/htmlHeader.php

    r6646 r6748  
    2424                exit(); 
    2525                 
    26         print "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n"; 
    2726 
    28 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
     27?><?xml version=\"1.0\" encoding=\"iso-8859-1\"?> 
     28<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
    2929<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $mlang; ?>"> 
    3030<head> 
     
    8080        $tS = $oreon->optGen["AjaxTimeReloadStatistic"] * 1000; 
    8181        $tM = $oreon->optGen["AjaxTimeReloadMonitoring"] * 1000; 
    82         $oreon->optGen["AjaxFirstTimeReloadStatistic"] == 0 ? $tFS = 10 : $tFS = $oreon->optGen["AjaxFirstTimeReloadStatistic"] * 1000;  
    8382         
    8483        ?> 
    8584        <script type='text/javascript'> 
    8685            window.onload = function () { 
    87          
    8886        <?php 
    89          
    9087        if ($min != 1) 
    91                 print "setTimeout('reloadStatusCounter($tS, \"$sid\")', $tFS);\n"; 
     88                print "setTimeout('reloadStatusCounter($tS, \"$sid\")', 0);\n"; 
    9289 
    9390        $res = null; 
    94         $DBRESULT =& $pearDB->query("SELECT PathName_js, init FROM topology_JS WHERE id_page = '".$p."' AND (o = '" . $o . "' OR o IS NULL)"); 
    95         if (PEAR::isError($DBRESULT)) print $DBRESULT->getDebugInfo()."<br />"; 
     91        $DBRESULT =& $pearDB->query("SELECT `PathName_js`, `init` FROM `topology_JS` WHERE `id_page` = '".$p."' AND (`o` = '" . $o . "' OR `o` IS NULL)"); 
     92        if (PEAR::isError($DBRESULT))  
     93                print $DBRESULT->getDebugInfo()."<br />"; 
    9694        while ($topology_js =& $DBRESULT->fetchRow()){ 
    9795                if ($topology_js['init'] == "initM")    { 
    98                         ?>setTimeout('initM(<?php echo $tM; ?>,"<?php echo $sid; ?>","<?php echo $o;?>")', 0);<?php 
     96                        ?>setTimeout('initM(<?php echo $tM; ?>,"<?php echo $sid ; ?>", "<?php echo $o;?>")', 0);<?php 
    9997                } else if ($topology_js['init']){ 
    10098                        echo $topology_js['init'] ."();";