} 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'>";
    echo "<= 80%";
    echo "</td>";
    echo "<td width='20%' style='background-color: red;' align='right'>";
    echo "<= 100%";
    echo "</td>";
    echo "</tr>";
    echo "</table>";
    echo "</td>";
    echo "</tr>";
}
echo "</table>";
if ($_GET["id"] > 0) {
    $pmWeathermap->drawMap($_GET["id"], $_GET['extra_infos']);
}
  You should have received a copy of the GNU Affero General Public License
  along with Monitoring. If not, see <http://www.gnu.org/licenses/>.

  ------------------------------------------------------------------------

  @package   Plugin Monitoring for GLPI
  @author    David Durieux
  @co-author
  @comment
  @copyright Copyright (c) 2011-2014 Plugin Monitoring for GLPI team
  @license   AGPL License 3.0 or (at your option) any later version
             http://www.gnu.org/licenses/agpl-3.0-standalone.html
  @link      https://forge.indepnet.net/projects/monitoring/
  @since     2011

  ------------------------------------------------------------------------
*/
include "../../../inc/includes.php";
Html::popHeader("weathermap");
Session::checkRight("plugin_monitoring_weathermap", READ);
if (!isset($_GET['id'])) {
    exit;
}
$id = $_GET['id'];
$pmWeathermap = new PluginMonitoringWeathermap();
echo "<div id='page'>";
PluginMonitoringToolbox::loadLib();
$pmWeathermap->drawMap($id);
echo "</div>";
echo '<meta http-equiv ="refresh" content="150">';