mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Added icon for gis maps connections in tabs of setup
This commit is contained in:
parent
6f3e42e732
commit
898945d47f
@ -317,7 +317,7 @@ if (check_acl($config['id_user'], 0, 'PM')) {
|
|||||||
$sub2['godmode/setup/setup&section=notifications']['refr'] = 0;
|
$sub2['godmode/setup/setup&section=notifications']['refr'] = 0;
|
||||||
|
|
||||||
if ($config['activate_gis']) {
|
if ($config['activate_gis']) {
|
||||||
$sub2['godmode/setup/gis']['text'] = __('Map conections GIS');
|
$sub2['godmode/setup/setup&section=gis']['text'] = __('Map conections GIS');
|
||||||
}
|
}
|
||||||
|
|
||||||
$sub['general']['sub2'] = $sub2;
|
$sub['general']['sub2'] = $sub2;
|
||||||
|
@ -28,15 +28,6 @@ require_once 'include/functions_gis.php';
|
|||||||
|
|
||||||
ui_require_javascript_file('openlayers.pandora');
|
ui_require_javascript_file('openlayers.pandora');
|
||||||
|
|
||||||
// Header.
|
|
||||||
ui_print_page_header(
|
|
||||||
__('Map conections GIS'),
|
|
||||||
'',
|
|
||||||
false,
|
|
||||||
'',
|
|
||||||
true
|
|
||||||
);
|
|
||||||
|
|
||||||
$action = get_parameter('action');
|
$action = get_parameter('action');
|
||||||
|
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
@ -88,7 +79,7 @@ if ($mapsConnections !== false) {
|
|||||||
$table->data[] = [
|
$table->data[] = [
|
||||||
'<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>',
|
'<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),
|
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"
|
'<a href="index.php?sec=gsetup&sec2=godmode/setup/setup&section=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>',
|
onClick="javascript: if (!confirm(\''.__('Do you wan delete this connection?').'\')) return false;">'.html_print_image('images/cross.png', true).'</a>',
|
||||||
];
|
];
|
||||||
$table->cellclass[][2] = 'action_buttons';
|
$table->cellclass[][2] = 'action_buttons';
|
||||||
|
@ -26,6 +26,10 @@ if (! check_acl($config['id_user'], 0, 'PM') && ! is_user_admin($config['id_user
|
|||||||
|
|
||||||
require_once 'include/functions_gis.php';
|
require_once 'include/functions_gis.php';
|
||||||
|
|
||||||
|
$buttons['gis'] = [
|
||||||
|
'text' => '<a href="'.ui_get_full_url('index.php?sec=general&sec2=godmode/setup/setup§ion=gis').'">'.html_print_image('images/list.png', true, ['title' => __('GIS Maps connections')]).'</a>',
|
||||||
|
];
|
||||||
|
|
||||||
$action = get_parameter('action', 'create_connection_map');
|
$action = get_parameter('action', 'create_connection_map');
|
||||||
|
|
||||||
if (is_ajax()) {
|
if (is_ajax()) {
|
||||||
@ -41,7 +45,8 @@ switch ($action) {
|
|||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
true
|
true,
|
||||||
|
$buttons
|
||||||
);
|
);
|
||||||
|
|
||||||
$mapConnection_name = '';
|
$mapConnection_name = '';
|
||||||
@ -67,7 +72,8 @@ switch ($action) {
|
|||||||
'',
|
'',
|
||||||
false,
|
false,
|
||||||
'',
|
'',
|
||||||
true
|
true,
|
||||||
|
$buttons
|
||||||
);
|
);
|
||||||
|
|
||||||
$idConnectionMap = get_parameter('id_connection_map');
|
$idConnectionMap = get_parameter('id_connection_map');
|
||||||
|
@ -133,6 +133,11 @@ $buttons['notifications'] = [
|
|||||||
'text' => '<a href="'.ui_get_full_url('index.php?sec=gsetup&sec2=godmode/setup/setup§ion=notifications').'">'.html_print_image('images/alerts_template.png', true, ['title' => __('Notifications')]).'</a>',
|
'text' => '<a href="'.ui_get_full_url('index.php?sec=gsetup&sec2=godmode/setup/setup§ion=notifications').'">'.html_print_image('images/alerts_template.png', true, ['title' => __('Notifications')]).'</a>',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$buttons['gis'] = [
|
||||||
|
'active' => false,
|
||||||
|
'text' => '<a href="'.ui_get_full_url('index.php?sec=general&sec2=godmode/setup/setup§ion=gis').'">'.html_print_image('images/gis_tab.png', true, ['title' => __('GIS Map connection')]).'</a>',
|
||||||
|
];
|
||||||
|
|
||||||
$help_header = '';
|
$help_header = '';
|
||||||
if (enterprise_installed()) {
|
if (enterprise_installed()) {
|
||||||
$subpage = setup_enterprise_add_subsection_main($section, $buttons, $help_header);
|
$subpage = setup_enterprise_add_subsection_main($section, $buttons, $help_header);
|
||||||
@ -178,6 +183,11 @@ switch ($section) {
|
|||||||
$help_header = 'setup_integria_tab';
|
$help_header = 'setup_integria_tab';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'gis':
|
||||||
|
$buttons['gis']['active'] = true;
|
||||||
|
$subpage = ' » '.__('Map conections GIS');
|
||||||
|
break;
|
||||||
|
|
||||||
case 'notifications':
|
case 'notifications':
|
||||||
$buttons['notifications']['active'] = true;
|
$buttons['notifications']['active'] = true;
|
||||||
$subpage = ' » '.__('Notifications');
|
$subpage = ' » '.__('Notifications');
|
||||||
@ -243,6 +253,10 @@ switch ($section) {
|
|||||||
include_once $config['homedir'].'/godmode/setup/setup_integria.php';
|
include_once $config['homedir'].'/godmode/setup/setup_integria.php';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'gis':
|
||||||
|
include_once $config['homedir'].'/godmode/setup/gis.php';
|
||||||
|
break;
|
||||||
|
|
||||||
case 'notifications':
|
case 'notifications':
|
||||||
include_once $config['homedir'].'/godmode/setup/setup_notifications.php';
|
include_once $config['homedir'].'/godmode/setup/setup_notifications.php';
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user