exit; } $pmWeathermap = new PluginMonitoringWeathermap(); $pmWeathermap->getFromDB($_GET['id']); echo "<center>"; if ($_GET["id"] == -1) { echo "<table width='100%' class='tab_cadre'>"; } else { echo "<table width='100%'>"; } echo "<tr>"; echo "<th>"; if ($_GET["id"] == -1) { echo __('Weathermap legend', 'monitoring'); } else { echo $pmWeathermap->getName(); if ($_GET['extra_infos'] < 100) { echo " <a href='" . $CFG_GLPI['root_doc'] . "/plugins/monitoring/front/weathermap_full.php?id=" . $_GET["id"] . "' target='_blank'>(" . __('full 100%', 'monitoring') . ")</a>"; } } echo "</th>"; echo "</tr>"; if ($_GET["id"] == -1) { echo "<tr class='tab_bg_1'>"; echo "<td>"; echo "<table width='100%' style='border-collapse:collapse'>"; echo "<tr>"; echo "<td width='60%' style='background-color: green;' align='right'>"; echo "<= 60%"; echo "</td>"; echo "<td width='20%' style='background-color: orange;' align='right'>";