From 50356c95f04192da94f279496cd77ee212941570 Mon Sep 17 00:00:00 2001 From: raulmateos Date: Tue, 11 May 2010 15:17:09 +0000 Subject: [PATCH] 2010-05-11 Raul Mateos * godmode/reporting/map_builder.php: Fixed a typo. * godmode/gis_maps/index.php: Updated year. Show text if no map defined. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2694 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/godmode/gis_maps/index.php | 9 +++++---- pandora_console/godmode/reporting/map_builder.php | 8 ++++---- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f0d55b0d05..247d3f3d96 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-05-11 Raúl Mateos + + * godmode/reporting/map_builder.php: Fixed a typo. + + * godmode/gis_maps/index.php: Updated year. Show text if no map defined. + 2010-05-11 Sergio Martin * godmode/gis_maps/index.php: Fixed the change diff --git a/pandora_console/godmode/gis_maps/index.php b/pandora_console/godmode/gis_maps/index.php index 6fec7b0276..32a8b174af 100644 --- a/pandora_console/godmode/gis_maps/index.php +++ b/pandora_console/godmode/gis_maps/index.php @@ -1,7 +1,7 @@ data = array(); $defaultMapId = null; -if ($maps !== false) { +if (!$maps) { + echo '
'.('No maps defined').'
'; +} else { foreach ($maps as $map) { $checked = false; @@ -92,10 +94,9 @@ if ($maps !== false) { print_radio_button_extended('default_map', $map['id_tgis_map'], '', $checked, false, "setDefault(" . $map['id_tgis_map'] . ");", '', true), '' . print_image ("images/cross.png", true).''); } + print_table($table); } -print_table($table); - echo '
'; echo '
'; print_input_hidden ('action','new_map'); diff --git a/pandora_console/godmode/reporting/map_builder.php b/pandora_console/godmode/reporting/map_builder.php index 70e0ebfa00..ea2d671d00 100644 --- a/pandora_console/godmode/reporting/map_builder.php +++ b/pandora_console/godmode/reporting/map_builder.php @@ -81,20 +81,20 @@ if ($copy_layout) { // If the number of inserts is correct, the copy is completed if ($ninsert == $inserts) { - echo '

'.__('Successfully copyed').'

'; + echo '

'.__('Successfully copied').'

'; clean_cache(); } else { - echo '

'.__('Not copyed. Error copying data').'

'; + echo '

'.__('Not copied. Error copying data').'

'; } } else{ // If the array is empty the copy is completed - echo '

'.__('Successfully copyed').'

'; + echo '

'.__('Successfully copied').'

'; clean_cache(); } } else { - echo '

'.__('Not copyed. Error copying data').'

'; + echo '

'.__('Not copied. Error copying data').'

'; } }