diff --git a/pandora_console/operation/gis_maps/gis_map.php b/pandora_console/operation/gis_maps/gis_map.php new file mode 100644 index 0000000000..47527f42d7 --- /dev/null +++ b/pandora_console/operation/gis_maps/gis_map.php @@ -0,0 +1,73 @@ +width = "100%"; +$table->class = "databox data"; +$table->data = array (); +$table->head = array (); +$table->head[0] = __('Name'); +$table->head[1] = __('Group'); +$table->align = array (); +$table->align[1] = 'left'; + +$rowPair = true; +$iterator = 0; + +if ($maps !== false) { + foreach ($maps as $map) { + if (!check_acl ($config["id_user"], $map["group_id"], "IR", 0, true)) { + continue; + } + + if ($rowPair) + $table->rowclass[$iterator] = 'rowPair'; + else + $table->rowclass[$iterator] = 'rowOdd'; + $rowPair = !$rowPair; + $iterator++; + + $data = array (); + + $data[0] = '' . $map['map_name'].' '; + $data[1] = ui_print_group_icon ($map["group_id"], true); + + array_push ($table->data, $data); + } +} + +if (!empty ($table->data)) { + html_print_table ($table); +} +else { + echo '