2010-01-18 15:24:25 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Pandora FMS- http://pandorafms.com
|
|
|
|
* ==================================================
|
|
|
|
* Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation for version 2.
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Load global vars
|
2010-03-04 17:22:25 +01:00
|
|
|
global $config;
|
2010-01-18 15:24:25 +01:00
|
|
|
|
|
|
|
// Login check
|
|
|
|
check_login ();
|
|
|
|
|
|
|
|
require_once ('include/functions_gis.php');
|
|
|
|
|
2011-04-13 18:11:02 +02:00
|
|
|
ui_require_javascript_file('openlayers.pandora');
|
2010-02-09 18:06:25 +01:00
|
|
|
|
2011-04-13 18:11:02 +02:00
|
|
|
ui_print_page_header(__('GIS Maps')." » ".__('Summary'), "images/server_web.png", false, "");
|
2010-01-18 15:24:25 +01:00
|
|
|
|
2011-04-27 15:43:31 +02:00
|
|
|
$maps = gis_get_maps();
|
2010-01-18 15:24:25 +01:00
|
|
|
|
2011-06-28 15:31:52 +02:00
|
|
|
$table->width = "98%";
|
2010-01-18 15:24:25 +01:00
|
|
|
$table->data = array ();
|
|
|
|
$table->head = array ();
|
|
|
|
$table->head[0] = __('Name');
|
|
|
|
$table->head[1] = __('Group');
|
|
|
|
$table->align = array ();
|
|
|
|
$table->align[1] = 'center';
|
|
|
|
|
|
|
|
$rowPair = true;
|
|
|
|
$iterator = 0;
|
|
|
|
|
|
|
|
if ($maps !== false) {
|
|
|
|
foreach ($maps as $map) {
|
2013-02-11 11:11:00 +01:00
|
|
|
if (!check_acl ($config["id_user"], $map["group_id"], "IR", 0, true)) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
2010-01-18 15:24:25 +01:00
|
|
|
if ($rowPair)
|
|
|
|
$table->rowclass[$iterator] = 'rowPair';
|
|
|
|
else
|
|
|
|
$table->rowclass[$iterator] = 'rowOdd';
|
|
|
|
$rowPair = !$rowPair;
|
|
|
|
$iterator++;
|
|
|
|
|
|
|
|
$data = array ();
|
|
|
|
|
2010-01-27 20:52:53 +01:00
|
|
|
$data[0] = '<a href="index.php?sec=gismaps&sec2=operation/gis_maps/render_view&map_id='.
|
2010-01-18 15:24:25 +01:00
|
|
|
$map['id_tgis_map'] . '">' . $map['map_name'].'</a> ';
|
2011-04-13 18:11:02 +02:00
|
|
|
$data[1] = ui_print_group_icon ($map["group_id"], true);
|
2010-01-18 15:24:25 +01:00
|
|
|
|
|
|
|
array_push ($table->data, $data);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!empty ($table->data)) {
|
2011-04-27 15:43:31 +02:00
|
|
|
html_print_table ($table);
|
2012-07-24 Miguel de Dios <miguel.dedios@artica.es>
* godmode/setup/file_manager.php, godmode/setup/news.php,
godmode/users/configure_user.php, godmode/users/user_list.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_alerts.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_nc_groups.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/netflow/nf_edit.php, godmode/netflow/nf_edit_form.php,
godmode/netflow/nf_item_list.php,
godmode/netflow/nf_report_item.php, godmode/netflow/nf.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/agentes/estado_agente.php, operation/agentes/sla_view.php,
operation/agentes/tactical.php,
operation/agentes/estado_generalagente.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/integria_incidents/incident_detail.php,
operation/gis_maps/index.php, operation/events/events_list.php,
operation/events/events.php, operation/messages/message_edit.php,
operation/messages/message_list.php,
operation/reporting/graph_viewer.php, operation/search_reports.php,
operation/netflow/nf_view.php: cleaned source code.
* godmode/massive/massive_operations.php,
godmode/massive/massive_edit_modules.php: fixed the massive edition
of "any" module in agents.
Fixes: #3543484
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6806 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-24 18:38:48 +02:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
echo '<div class="nf">' . __('No maps found') . '</div>';
|
2010-01-18 15:24:25 +01:00
|
|
|
}
|
|
|
|
unset ($table);
|
2010-03-04 17:22:25 +01:00
|
|
|
?>
|