mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-28 20:39:18 +02:00
* extensions/module_groups/brick.png images/skin/skin_default/images/agents_group.png images/skin/skin_default/images/note.png images/skin/skin_default/images/os_icons/android_small.png: Added new icons. * include/styles/pandora.css include/functions_ui.php extensions/insert_data.php extensions/system_info.php extensions/pandora_logs.php extensions/agents_modules.php extensions/resource_registration.php extensions/resource_exportation.php extensions/module_groups.php extensions/update_manager/main.php extensions/plugin_registration.php operation/extensions.php operation/visual_console/render_view.php operation/visual_console/index.php operation/agentes/status_monitor.php operation/agentes/alerts_status.php operation/agentes/estado_ultimopaquete.php operation/agentes/custom_fields.php operation/agentes/estado_generalagente.php operation/agentes/estado_agente.php operation/agentes/status_events.php operation/agentes/sla_view.php operation/agentes/exportdata.php operation/agentes/estado_monitores.php operation/agentes/ver_agente.php operation/agentes/group_view.php operation/agentes/networkmap.php operation/users/user_edit.php operation/gis_maps/index.php operation/events/events_list.php operation/messages/message.php operation/reporting/custom_reporting.php images/skin/skin_default/include/styles/pandora.css extras/pandora_diag.php general/logon_ok.php godmode/groups/modu_group_list.php godmode/groups/configure_group.php godmode/groups/configure_modu_group.php godmode/groups/group_list.php godmode/admin_access_logs.php godmode/extensions.php godmode/db/db_main.php godmode/db/db_audit.php godmode/db/db_sanity.php godmode/db/db_refine.php godmode/db/db_info.php godmode/db/db_event.php godmode/db/db_purge.php godmode/agentes/agent_template.php godmode/agentes/module_manager_editor_common.php godmode/agentes/fields_manager.php godmode/agentes/agent_conf_gis.php godmode/agentes/module_manager.php godmode/agentes/modificar_agente.php godmode/agentes/configurar_agente.php godmode/agentes/configure_field.php godmode/agentes/planned_downtime.php godmode/agentes/manage_config_remote.php godmode/agentes/agent_manager.php godmode/servers/recon_script.php godmode/servers/plugin.php godmode/servers/modificar_server.php godmode/servers/manage_recontask_form.php godmode/alerts/alert_list.list.php godmode/alerts/configure_alert_compound.php godmode/alerts/alert_compounds.php godmode/alerts/configure_alert_template.php godmode/alerts/alert_templates.php godmode/alerts/configure_alert_action.php godmode/alerts/configure_alert_command.php godmode/alerts/alert_actions.php godmode/alerts/alert_list.builder.php godmode/alerts/alert_commands.php godmode/snmpconsole/snmp_alert.php godmode/snmpconsole/snmp_filters.php godmode/setup/os.list.php godmode/setup/news.php godmode/setup/links.php godmode/setup/setup.php godmode/setup/performance.php godmode/setup/setup_auth.php godmode/setup/gis.php godmode/setup/os.builder.php godmode/setup/setup_visuals.php godmode/users/user_list.php godmode/users/configure_user.php godmode/gis_maps/configure_gis_map.php godmode/gis_maps/index.php godmode/massive/massive_add_alerts.php godmode/massive/massive_copy_modules.php godmode/massive/massive_delete_agents.php godmode/massive/massive_enable_disable_alerts.php godmode/massive/massive_delete_profiles.php godmode/massive/massive_edit_agents.php godmode/massive/massive_delete_action_alerts.php godmode/massive/massive_delete_modules.php godmode/massive/massive_add_profiles.php godmode/massive/massive_delete_alerts.php godmode/massive/massive_edit_modules.php godmode/massive/massive_standby_alerts.php godmode/massive/massive_add_action_alerts.php godmode/modules/manage_nc_groups_form.php godmode/modules/manage_network_templates.php godmode/modules/module_list.php godmode/modules/manage_network_components_form_common.php godmode/modules/manage_network_components_form_network.php godmode/modules/manage_network_templates_form.php godmode/modules/manage_network_components_form_wmi.php godmode/modules/manage_network_components.php godmode/modules/manage_nc_groups.php godmode/reporting/visual_console_builder.wizard.php godmode/reporting/graph_builder.main.php godmode/reporting/reporting_builder.list_items.php godmode/reporting/reporting_builder.main.php godmode/reporting/visual_console_builder.data.php godmode/reporting/graph_builder.graph_editor.php godmode/reporting/reporting_builder.php godmode/reporting/reporting_builder.item_editor.php godmode/reporting/map_builder.php godmode/reporting/graphs.php godmode/tag/tag.php godmode/tag/edit_tag.php: Css style improvements. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4494 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
95 lines
3.1 KiB
PHP
Executable File
95 lines
3.1 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Pandora FMS- http://pandorafms.com
|
|
* ==================================================
|
|
* Copyright (c) 2005-2010 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
|
|
global $config;
|
|
|
|
check_login ();
|
|
|
|
if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
|
db_pandora_audit("ACL Violation", "Trying to access Visual Setup Management");
|
|
require ("general/noaccess.php");
|
|
return;
|
|
}
|
|
|
|
require_once ('include/functions_gis.php');
|
|
|
|
ui_require_javascript_file('openlayers.pandora');
|
|
|
|
// Header
|
|
ui_print_page_header (__('Map conections GIS'), "", false, "setup_gis_index", true);
|
|
|
|
$action = get_parameter('action');
|
|
|
|
switch ($action) {
|
|
case 'save_edit_map_connection':
|
|
if(!$errorfill)
|
|
echo '<h3 class="suc">'.__('Successfully updated').'</h3>';
|
|
else
|
|
echo '<h3 class="error">'.__('Could not be updated').'</h3>';
|
|
break;
|
|
case 'save_map_connection':
|
|
if(!$errorfill)
|
|
echo '<h3 class="suc">'.__('Successfully created').'</h3>';
|
|
else
|
|
echo '<h3 class="error">'.__('Could not be created').'</h3>';
|
|
break;
|
|
case 'delete_connection':
|
|
$idConnectionMap = get_parameter('id_connection_map');
|
|
|
|
$result = gis_delete_map_connection($idConnectionMap);
|
|
|
|
if($result === false)
|
|
echo '<h3 class="error">'.__('Could not be deleted').'</h3>';
|
|
else
|
|
echo '<h3 class="suc">'.__('Successfully deleted').'</h3>';
|
|
break;
|
|
}
|
|
|
|
$table->width = '98%';
|
|
$table->head[0] = __('Map connection name');
|
|
$table->head[1] = __('Group');
|
|
$table->head[3] = __('Delete');
|
|
|
|
$table->align[1] = 'center';
|
|
$table->align[2] = 'center';
|
|
$table->align[3] = 'center';
|
|
|
|
$mapsConnections = db_get_all_rows_in_table ('tgis_map_connection','conection_name');
|
|
|
|
$table->data = array();
|
|
|
|
if ($mapsConnections !== false) {
|
|
foreach ($mapsConnections as $mapsConnection) {
|
|
$table->data[] = array('<a href="index.php?sec=gsetup&sec2=godmode/setup/gis_step_2&action=edit_connection_map&id_connection_map=' .
|
|
$mapsConnection['id_tmap_connection'] .'">'
|
|
. $mapsConnection['conection_name'] . '</a>',
|
|
ui_print_group_icon ($mapsConnection['group_id'], true),
|
|
'<a href="index.php?sec=gsetup&sec2=godmode/setup/gis&id_connection_map=' .
|
|
$mapsConnection['id_tmap_connection'].'&action=delete_connection"
|
|
onClick="javascript: if (!confirm(\'' . __('Do you wan delete this connection?') . '\')) return false;">' . html_print_image ("images/cross.png", true).'</a>');
|
|
}
|
|
}
|
|
|
|
html_print_table($table);
|
|
|
|
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
|
echo '<form action="index.php?sec=gsetup&sec2=godmode/setup/gis_step_2" method="post">';
|
|
html_print_input_hidden ('action','create_connection_map');
|
|
html_print_submit_button (__('Create'), '', false, 'class="sub next"');
|
|
echo '</form>';
|
|
echo '</div>';
|
|
?>
|