From 368c539371f89dffb5ddc982546bdc45791b1f0a Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 4 Feb 2010 09:42:46 +0000 Subject: [PATCH] 2010-02-04 Miguel de Dios * godmode/agentes/configurar_agente.php, godmode/agentes/agent_manager.php: add in the agent config form the fields Icon agent select and Ignore new GIS data. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2328 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 +++ .../godmode/agentes/agent_manager.php | 47 +++++++++++++++++++ .../godmode/agentes/configurar_agente.php | 17 +++++-- 3 files changed, 67 insertions(+), 3 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cfd1e4f4f5..f2a041f37b 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-02-04 Miguel de Dios + + * godmode/agentes/configurar_agente.php, godmode/agentes/agent_manager.php: + add in the agent config form the fields Icon agent select and Ignore new + GIS data. + 2010-02-01 Sancho Lerena Changes ported from 3.0 branch. diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index 439f25a4e0..eb20bf2c17 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -43,6 +43,7 @@ if (is_ajax ()) { enterprise_include ('godmode/agentes/agent_manager.php'); require_once ('include/functions_servers.php'); +require_once ('include/functions_gis.php'); $new_agent = (bool) get_parameter ('new_agent'); @@ -207,6 +208,26 @@ if (!$new_agent) { } else $table->data[11][1] = ''.__('Not available').''; + +$listIcons = getArrayListIcons(); + +$arraySelectIcon = array(); +foreach ($listIcons as $index => $value) $arraySelectIcon[$index] = $index; + +$path = 'images/gis_map/icons/'; //TODO set better method the path + +$table->data[12][0] = __('Icon agent'); +$table->data[12][1] = print_select($arraySelectIcon, "icon_path", $icon_path, "changeIcons();", __('None'), '', true) . + ' ' . __('Default') . ': ' . + ' ' . __('Ok') . ': ' . + ' ' . __('Bad') . ': ' . + ' ' . __('Warning') . ': '; + +if ($config['activate_gis']) { + $table->data[13][0] = __('Ignore new GIS data:'); + $table->data[13][1] = __('Disabled').' '.print_radio_button_extended ("update_gis_data", 0, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true); + $table->data[13][1] .= __('Active').' '.print_radio_button_extended ("update_gis_data", 1, '', $update_gis_data, false, '', 'style="margin-right: 40px;"', true); +} print_table ($table); @@ -228,6 +249,32 @@ require_jquery_file ('autocomplete'); ?>