Changeset 6248
- Timestamp:
- 08/21/08 18:50:00 (5 months ago)
- Files:
-
- 1 modified
-
trunk/centreon/www/htmlHeader.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/centreon/www/htmlHeader.php
r6182 r6248 31 31 <title>Centreon, Revisited Experience Of Nagios</title> 32 32 <link rel="shortcut icon" href="./img/iconOreon.ico"/> 33 <link rel="stylesheet" type="text/css" href="./include/common/javascript/autocompletion.css" />34 33 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> 35 34 <meta name="Generator" content="Centreon - Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved." /> 36 35 <meta name="robots" content="index, nofollow" /> 37 36 <link href="<?php echo $skin; ?>style.css" rel="stylesheet" type="text/css"/> 38 <link href="<?php echo $skin; ?>menu.css" rel="stylesheet" type="text/css"/>39 <link href="<?php echo $skin; ?>configuration_form.css" rel="stylesheet" type="text/css"/>40 37 <link href="<?php echo $skin; ?><?php echo $colorfile; ?>" rel="stylesheet" type="text/css"/> 41 38 <script src="./include/common/javascript/scriptaculous/prototype.js" type="text/javascript"></script> … … 44 41 if ($min != 1){ 45 42 46 $DBRESULT =& $pearDB->query("SELECT ndo_activate FROM general_opt LIMIT 1"); 47 # Set base value 48 $gopt = array_map("myDecode", $DBRESULT->fetchRow()); 49 50 $ndo = $gopt["ndo_activate"]; 51 52 if (isset($ndo) && !$ndo) 53 print "<script type=\"text/javascript\"> var _adrrsearchC = \"./include/monitoring/engine/MakeXML4statusCounter.php\";</script>\n"; 54 else 55 print "<script type=\"text/javascript\"> var _adrrsearchC = \"./include/monitoring/engine/MakeXML_Ndo_StatusCounter.php\";</script>\n"; 56 43 /* 44 * Add Javascript for NDO status Counter 45 */ 46 print "<script type=\"text/javascript\"> var _adrrsearchC = \"./include/monitoring/engine/MakeXML_Ndo_StatusCounter.php\";</script>\n"; 57 47 print "<script type=\"text/javascript\" src=\"./include/common/javascript/topCounterStatus/ajaxStatusCounter.js\"></script>\n"; 58 48 } 59 49 60 # Add Template CSS for sysInfos Pages 50 /* 51 * Add Template CSS for sysInfos Pages 52 */ 61 53 if (isset($p) && !strcmp($p, "505") && file_exists("./include/options/sysInfos/templates/classic/classic.css")) 62 54 echo " <link rel=\"stylesheet\" type=\"text/css\" href=\"./include/options/sysInfos/templates/classic/classic.css\">\n"; … … 70 62 * include javascript 71 63 */ 72 73 $DBRESULT =& $pearDB->query("SELECT ndo_activate FROM general_opt LIMIT 1"); 74 # Set base value 75 $gopt = array_map("myDecode", $DBRESULT->fetchRow()); 76 $ndo = $gopt["ndo_activate"]; 77 64 78 65 $res = null; 79 66 $DBRESULT =& $pearDB->query("SELECT DISTINCT PathName_js, init FROM topology_JS WHERE id_page = '".$p."' AND (o = '" . $o . "' OR o IS NULL)"); … … 81 68 print $DBRESULT->getDebugInfo()."<br />"; 82 69 while ($topology_js =& $DBRESULT->fetchRow()){ 83 if ( !$ndo || ($ndo && $topology_js['PathName_js'] != "./include/common/javascript/ajaxMonitoring.js" && $topology_js['PathName_js'] != "./include/common/javascript/codebase/dhtmlxtree.js"))70 if ($topology_js['PathName_js'] != "./include/common/javascript/ajaxMonitoring.js" && $topology_js['PathName_js'] != "./include/common/javascript/codebase/dhtmlxtree.js") 84 71 echo "<script type='text/javascript' src='".$topology_js['PathName_js']."'></script>\n"; 85 72 } … … 117 104 }; 118 105 </script> 119 <?php 120 if ($ndo) 121 print '<script src="./include/common/javascript/xslt.js" type="text/javascript"></script>';?> 122 106 <script src="./include/common/javascript/xslt.js" type="text/javascript"></script> 123 107 </head> 124 108 <body>
