From 8a868c9fdecc341d21bf0a1bf18ec6fb27d01431 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 26 Jan 2022 17:15:39 +0100 Subject: [PATCH 1/2] Fixed GIs map --- .../godmode/gis_maps/configure_gis_map.php | 959 ++++++++---------- .../operation/gis_maps/render_view.php | 2 +- 2 files changed, 435 insertions(+), 526 deletions(-) diff --git a/pandora_console/godmode/gis_maps/configure_gis_map.php b/pandora_console/godmode/gis_maps/configure_gis_map.php index b8b3e62e49..4362bcf98c 100644 --- a/pandora_console/godmode/gis_maps/configure_gis_map.php +++ b/pandora_console/godmode/gis_maps/configure_gis_map.php @@ -71,6 +71,42 @@ foreach ($layer_ids as $layer_id) { $next_action = 'new_map'; +$url = 'index.php?sec='.$sec.'&sec2='.$sec2.'&map_id='.$idMap.'&action='.$next_action; + +$buttons['gis_maps_list'] = [ + 'active' => false, + 'text' => ''.html_print_image( + 'images/list.png', + true, + [ + 'title' => __('GIS Maps list'), + 'class' => 'invert_filter', + ] + ).'', +]; +if ($idMap) { + $buttons['view_gis'] = [ + 'active' => false, + 'text' => ''.html_print_image( + 'images/op_gis.png', + true, + [ + 'title' => __('View GIS'), + 'class' => 'invert_filter', + ] + ).'', + ]; +} + +ui_print_page_header( + __('GIS Maps builder'), + 'images/gm_gis.png', + false, + 'configure_gis_map_edit', + true, + $buttons +); + switch ($action) { case 'save_new': $map_name = get_parameter('map_name'); @@ -269,42 +305,6 @@ switch ($action) { break; } -$url = 'index.php?sec='.$sec.'&sec2='.$sec2.'&map_id='.$idMap.'&action='.$next_action; - -$buttons['gis_maps_list'] = [ - 'active' => false, - 'text' => ''.html_print_image( - 'images/list.png', - true, - [ - 'title' => __('GIS Maps list'), - 'class' => 'invert_filter', - ] - ).'', -]; -if ($idMap) { - $buttons['view_gis'] = [ - 'active' => false, - 'text' => ''.html_print_image( - 'images/op_gis.png', - true, - [ - 'title' => __('View GIS'), - 'class' => 'invert_filter', - ] - ).'', - ]; -} - -ui_print_page_header( - __('GIS Maps builder'), - 'images/gm_gis.png', - false, - 'configure_gis_map_edit', - true, - $buttons -); - ?> '; // Load the data in edit or reload in update.