#9663 menu redesing 4
This commit is contained in:
parent
1437c5a0e7
commit
758f906616
|
@ -116,6 +116,25 @@ echo '</div>';
|
|||
$(`#icon_${id_selected}`).children().first().children().last().addClass('arrow_menu_up');
|
||||
// Span.
|
||||
$(`#icon_${id_selected}`).children().first().children().eq(1).addClass('span_selected');
|
||||
|
||||
const id_selected2 = '<?php echo $menu2_selected; ?>';
|
||||
if (id_selected2 != '') {
|
||||
if ($(`#sub${id_selected2}`).length > 0) {
|
||||
$(`#sub${id_selected2}`).show();
|
||||
// Arrow.
|
||||
$(`#${id_selected2}`).children().first().children().last().removeClass('arrow_menu_down');
|
||||
$(`#${id_selected2}`).children().first().children().last().addClass('arrow_menu_up');
|
||||
// Span.
|
||||
$(`#${id_selected2}`).children().first().children().first().addClass('span_selected');
|
||||
// Vertical line.
|
||||
$(`.sub_subMenu.selected`).prepend(`<div class="element_submenu_selected left_3"></div>`);
|
||||
} else {
|
||||
$(`#${id_selected2}`).addClass('submenu_selected_no_submenu');
|
||||
$(`#${id_selected2}`).children().first().children().first().css('color', '#fff');
|
||||
// Vertical line.
|
||||
$(`#${id_selected2}`).prepend(`<div class="element_submenu_selected"></div>`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var click_display = "<?php echo $config['click_display']; ?>";
|
||||
|
@ -145,30 +164,33 @@ echo '</div>';
|
|||
});
|
||||
|
||||
$('.has_submenu').click(function() {
|
||||
if (typeof(table_hover2) != 'undefined') {
|
||||
$(`#${table_hover2[0].id}`).css("background-color", "");
|
||||
$("#sub" + table_hover2[0].id).hide();
|
||||
const table_hover2 = $(this);
|
||||
const id = table_hover2[0].id;
|
||||
const classes = $(`#${id}`).attr('class');
|
||||
|
||||
if (classes.includes('submenu_selected') === true) {
|
||||
$(`#${id}`).removeClass('submenu_selected');
|
||||
$(`#${id}`).addClass('submenu_not_selected');
|
||||
$(`#sub${id}`).hide();
|
||||
// Arrow.
|
||||
table_hover2.children().first().children().last().removeClass('arrow_menu_up');
|
||||
table_hover2.children().first().children().last().addClass('arrow_menu_down');
|
||||
// Span.
|
||||
table_hover2.children().first().children().first().removeClass('span_selected');
|
||||
if (table_hover2[0].id == $(this)[0].id) {
|
||||
table_hover2 = undefined;
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
$(`#${id}`).removeClass('submenu_not_selected');
|
||||
$(`#${id}`).addClass('submenu_selected');
|
||||
$(`#sub${id}`).show();
|
||||
// Arrow.
|
||||
table_hover2.children().first().children().last().removeClass('arrow_menu_down');
|
||||
table_hover2.children().first().children().last().addClass('arrow_menu_up');
|
||||
// Span.
|
||||
table_hover2.children().first().children().first().addClass('span_selected');
|
||||
}
|
||||
});
|
||||
|
||||
table_hover2 = $(this);
|
||||
handsIn2 = 1;
|
||||
|
||||
$(`#${table_hover2[0].id}`).css("background-color", "#eff2f2");
|
||||
$("#sub" + table_hover2[0].id).show();
|
||||
// Arrow.
|
||||
table_hover2.children().first().children().last().removeClass('arrow_menu_down');
|
||||
table_hover2.children().first().children().last().addClass('arrow_menu_up');
|
||||
// Span.
|
||||
table_hover2.children().first().children().first().addClass('span_selected');
|
||||
$('.sub_subMenu').click(function (event) {
|
||||
event.stopPropagation();
|
||||
});
|
||||
});
|
||||
</script>
|
|
@ -48,7 +48,7 @@ if ((bool) check_acl($config['id_user'], 0, 'AR') === true
|
|||
) {
|
||||
$sub = [];
|
||||
$sub['godmode/servers/discovery&wiz=main']['text'] = __('Start');
|
||||
$sub['godmode/servers/discovery&wiz=main']['id'] = 'Discovery';
|
||||
$sub['godmode/servers/discovery&wiz=main']['id'] = 'discovery';
|
||||
|
||||
$sub['godmode/servers/discovery&wiz=tasklist']['text'] = __('Task list');
|
||||
$sub['godmode/servers/discovery&wiz=tasklist']['id'] = 'tasklist';
|
||||
|
@ -91,36 +91,36 @@ if ($access_console_node === true) {
|
|||
$sub = [];
|
||||
if ((bool) check_acl($config['id_user'], 0, 'AW') === true || (bool) check_acl($config['id_user'], 0, 'AD') === true) {
|
||||
$sub['godmode/agentes/modificar_agente']['text'] = __('Manage agents');
|
||||
$sub['godmode/agentes/modificar_agente']['id'] = 'Manage agents';
|
||||
$sub['godmode/agentes/modificar_agente']['id'] = 'Manage_agents';
|
||||
$sub['godmode/agentes/modificar_agente']['subsecs'] = ['godmode/agentes/configurar_agente'];
|
||||
}
|
||||
|
||||
if ((bool) check_acl($config['id_user'], 0, 'PM') === true) {
|
||||
$sub['godmode/agentes/fields_manager']['text'] = __('Custom fields');
|
||||
$sub['godmode/agentes/fields_manager']['id'] = 'Custom fields';
|
||||
$sub['godmode/agentes/fields_manager']['id'] = 'custom_fields';
|
||||
|
||||
$sub['godmode/modules/manage_nc_groups']['text'] = __('Component groups');
|
||||
$sub['godmode/modules/manage_nc_groups']['id'] = 'Component groups';
|
||||
$sub['godmode/modules/manage_nc_groups']['id'] = 'component_groups';
|
||||
// Category.
|
||||
$sub['godmode/category/category']['text'] = __('Module categories');
|
||||
$sub['godmode/category/category']['id'] = 'Module categories';
|
||||
$sub['godmode/category/category']['id'] = 'module_categories';
|
||||
$sub['godmode/category/category']['subsecs'] = 'godmode/category/edit_category';
|
||||
|
||||
$sub['godmode/modules/module_list']['text'] = __('Module types');
|
||||
$sub['godmode/modules/module_list']['id'] = 'Module types';
|
||||
$sub['godmode/modules/module_list']['id'] = 'module_types';
|
||||
|
||||
$sub['godmode/groups/modu_group_list']['text'] = __('Module groups');
|
||||
$sub['godmode/groups/modu_group_list']['id'] = 'Module groups';
|
||||
$sub['godmode/groups/modu_group_list']['id'] = 'module_groups';
|
||||
|
||||
$sub['godmode/setup/os']['text'] = __('Operating systems');
|
||||
$sub['godmode/setup/os']['id'] = 'Edit OS';
|
||||
$sub['godmode/setup/os']['id'] = 'edit_OS';
|
||||
}
|
||||
|
||||
if ((bool) check_acl($config['id_user'], 0, 'AW') === true) {
|
||||
// Netflow.
|
||||
if ((bool) $config['activate_netflow'] === true) {
|
||||
$sub['godmode/netflow/nf_edit']['text'] = __('Netflow filters');
|
||||
$sub['godmode/netflow/nf_edit']['id'] = 'Netflow filters';
|
||||
$sub['godmode/netflow/nf_edit']['id'] = 'netflow_filters';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -134,13 +134,13 @@ if ($access_console_node === true) {
|
|||
$sub = [];
|
||||
if ((bool) check_acl($config['id_user'], 0, 'PM') === true) {
|
||||
$sub['godmode/groups/group_list']['text'] = __('Manage agents groups');
|
||||
$sub['godmode/groups/group_list']['id'] = 'Manage agents groups';
|
||||
$sub['godmode/groups/group_list']['id'] = 'manage_agents_groups';
|
||||
}
|
||||
|
||||
if ((bool) check_acl($config['id_user'], 0, 'PM') === true) {
|
||||
// Tag.
|
||||
$sub['godmode/tag/tag']['text'] = __('Module tags');
|
||||
$sub['godmode/tag/tag']['id'] = 'Module tags';
|
||||
$sub['godmode/tag/tag']['id'] = 'module_tags';
|
||||
$sub['godmode/tag/tag']['subsecs'] = 'godmode/tag/edit_tag';
|
||||
|
||||
enterprise_hook('enterprise_acl_submenu');
|
||||
|
@ -148,12 +148,12 @@ if ($access_console_node === true) {
|
|||
|
||||
if ((bool) check_acl($config['id_user'], 0, 'UM') === true) {
|
||||
$sub['godmode/users/user_list']['text'] = __('Users management');
|
||||
$sub['godmode/users/user_list']['id'] = 'Users management';
|
||||
$sub['godmode/users/user_list']['id'] = 'Users_management';
|
||||
}
|
||||
|
||||
if ((bool) check_acl($config['id_user'], 0, 'PM') === true) {
|
||||
$sub['godmode/users/profile_list']['text'] = __('Profile management');
|
||||
$sub['godmode/users/profile_list']['id'] = 'Profile management';
|
||||
$sub['godmode/users/profile_list']['id'] = 'Profile_management';
|
||||
}
|
||||
|
||||
if (empty($sub) === false) {
|
||||
|
@ -171,13 +171,13 @@ if ($access_console_node === true) {
|
|||
$sub['templates']['subtype'] = 'nolink';
|
||||
$sub2 = [];
|
||||
$sub2['godmode/modules/manage_module_templates']['text'] = __('Module templates');
|
||||
$sub2['godmode/modules/manage_module_templates']['id'] = 'Module templates';
|
||||
$sub2['godmode/modules/manage_module_templates']['id'] = 'module_templates';
|
||||
$sub2['godmode/modules/private_enterprise_numbers']['text'] = __('Private Enterprise Numbers');
|
||||
$sub2['godmode/modules/private_enterprise_numbers']['id'] = 'Private Enterprise Numbers';
|
||||
$sub2['godmode/modules/private_enterprise_numbers']['id'] = 'private_Enterprise_Numbers';
|
||||
$sub2['enterprise/godmode/modules/local_components']['text'] = __('Local components');
|
||||
$sub2['enterprise/godmode/modules/local_components']['id'] = 'Local components';
|
||||
$sub2['enterprise/godmode/modules/local_components']['id'] = 'local_components';
|
||||
$sub2['godmode/modules/manage_network_components']['text'] = __('Remote components');
|
||||
$sub2['godmode/modules/manage_network_components']['id'] = 'Network components';
|
||||
$sub2['godmode/modules/manage_network_components']['id'] = 'network_components';
|
||||
$sub['templates']['sub2'] = $sub2;
|
||||
|
||||
enterprise_hook('inventory_submenu');
|
||||
|
@ -196,18 +196,18 @@ if ($access_console_node === true) {
|
|||
|
||||
if ((bool) check_acl($config['id_user'], 0, 'AW') === true) {
|
||||
$sub['gmassive']['text'] = __('Bulk operations');
|
||||
$sub['gmassive']['id'] = 'Bulk operations';
|
||||
$sub['gmassive']['id'] = 'Bulk_operations';
|
||||
$sub['gmassive']['type'] = 'direct';
|
||||
$sub['gmassive']['subtype'] = 'nolink';
|
||||
$sub2 = [];
|
||||
$sub2['godmode/massive/massive_operations&tab=massive_agents']['text'] = __('Agents operations');
|
||||
$sub2['godmode/massive/massive_operations&tab=massive_modules']['text'] = __('Modules operations');
|
||||
$sub2['godmode/massive/massive_operations&tab=massive_plugins']['text'] = __('Plugins operations');
|
||||
$sub2['godmode/massive/massive_operations&tab=massive_agents']['text'] = __('Agents operations');
|
||||
$sub2['godmode/massive/massive_operations&tab=massive_modules']['text'] = __('Modules operations');
|
||||
$sub2['godmode/massive/massive_operations&tab=massive_plugins']['text'] = __('Plugins operations');
|
||||
if ((bool) check_acl($config['id_user'], 0, 'UM') === true) {
|
||||
$sub2['godmode/massive/massive_operations&tab=massive_users']['text'] = __('Users operations');
|
||||
$sub2['godmode/massive/massive_operations&tab=massive_users']['text'] = __('Users operations');
|
||||
}
|
||||
|
||||
$sub2['godmode/massive/massive_operations&tab=massive_alerts']['text'] = __('Alerts operations');
|
||||
$sub2['godmode/massive/massive_operations&tab=massive_alerts']['text'] = __('Alerts operations');
|
||||
enterprise_hook('massivepolicies_submenu');
|
||||
enterprise_hook('massivesnmp_submenu');
|
||||
enterprise_hook('massivesatellite_submenu');
|
||||
|
@ -218,7 +218,7 @@ if ($access_console_node === true) {
|
|||
|
||||
if ((bool) check_acl($config['id_user'], 0, 'PM') === true || (bool) check_acl($config['id_user'], 0, 'UM') === true) {
|
||||
$sub['godmode/groups/group_list&tab=credbox']['text'] = __('Credential store');
|
||||
$sub['godmode/groups/group_list&tab=credbox']['id'] = 'credential store';
|
||||
$sub['godmode/groups/group_list&tab=credbox']['id'] = 'credential_store';
|
||||
}
|
||||
|
||||
// Manage events.
|
||||
|
@ -226,14 +226,14 @@ if ($access_console_node === true) {
|
|||
if ((bool) check_acl($config['id_user'], 0, 'EW') === true || (bool) check_acl($config['id_user'], 0, 'EM') === true) {
|
||||
// Custom event fields.
|
||||
$sub2['godmode/events/events§ion=filter']['text'] = __('Event filters');
|
||||
$sub2['godmode/events/events§ion=filter']['id'] = 'Event filters';
|
||||
$sub2['godmode/events/events§ion=filter']['id'] = 'event_filters';
|
||||
}
|
||||
|
||||
if ((bool) check_acl($config['id_user'], 0, 'PM') === true) {
|
||||
$sub2['godmode/events/events§ion=fields']['text'] = __('Custom columns');
|
||||
$sub2['godmode/events/events§ion=fields']['id'] = 'Custom events';
|
||||
$sub2['godmode/events/events§ion=fields']['id'] = 'Custom_events';
|
||||
$sub2['godmode/events/events§ion=responses']['text'] = __('Event responses');
|
||||
$sub2['godmode/events/events§ion=responses']['id'] = 'Event responses';
|
||||
$sub2['godmode/events/events§ion=responses']['id'] = 'Event_responses';
|
||||
}
|
||||
|
||||
if (empty($sub2) === false) {
|
||||
|
@ -262,12 +262,12 @@ if ($access_console_node === true) {
|
|||
|
||||
$sub = [];
|
||||
$sub['godmode/alerts/alert_list']['text'] = __('List of Alerts');
|
||||
$sub['godmode/alerts/alert_list']['id'] = 'List of Alerts';
|
||||
$sub['godmode/alerts/alert_list']['id'] = 'List_of_Alerts';
|
||||
$sub['godmode/alerts/alert_list']['pages'] = ['godmode/alerts/alert_view'];
|
||||
|
||||
if ((bool) check_acl($config['id_user'], 0, 'LM') === true) {
|
||||
$sub['godmode/alerts/alert_templates']['text'] = __('Templates');
|
||||
$sub['godmode/alerts/alert_templates']['id'] = 'Templates';
|
||||
$sub['godmode/alerts/alert_templates']['id'] = 'templates';
|
||||
$sub['godmode/alerts/alert_templates']['pages'] = ['godmode/alerts/configure_alert_template'];
|
||||
|
||||
$sub['godmode/alerts/alert_actions']['text'] = __('Actions');
|
||||
|
@ -277,12 +277,12 @@ if ($access_console_node === true) {
|
|||
$sub['godmode/alerts/alert_commands']['id'] = 'Commands';
|
||||
$sub['godmode/alerts/alert_commands']['pages'] = ['godmode/alerts/configure_alert_command'];
|
||||
$sub['godmode/alerts/alert_special_days']['text'] = __('Special days list');
|
||||
$sub['godmode/alerts/alert_special_days']['id'] = __('Special days list');
|
||||
$sub['godmode/alerts/alert_special_days']['id'] = 'Special_days_list';
|
||||
$sub['godmode/alerts/alert_special_days']['pages'] = ['godmode/alerts/configure_alert_special_days'];
|
||||
|
||||
enterprise_hook('eventalerts_submenu');
|
||||
$sub['godmode/snmpconsole/snmp_alert']['text'] = __('SNMP alerts');
|
||||
$sub['godmode/snmpconsole/snmp_alert']['id'] = 'SNMP alerts';
|
||||
$sub['godmode/snmpconsole/snmp_alert']['id'] = 'SNMP_alerts';
|
||||
enterprise_hook('alert_inventory_submenu');
|
||||
}
|
||||
|
||||
|
@ -299,7 +299,7 @@ if ($access_console_node === true) {
|
|||
|
||||
if ((bool) check_acl($config['id_user'], 0, 'AW') === true) {
|
||||
$sub['godmode/servers/modificar_server']['text'] = __('Manage servers');
|
||||
$sub['godmode/servers/modificar_server']['id'] = 'Manage servers';
|
||||
$sub['godmode/servers/modificar_server']['id'] = 'Manage_servers';
|
||||
}
|
||||
|
||||
// This subtabs are only for Pandora Admin.
|
||||
|
@ -336,7 +336,7 @@ if ($access_console_node === true) {
|
|||
$sub2 = [];
|
||||
|
||||
$sub2['godmode/setup/setup§ion=general']['text'] = __('General Setup');
|
||||
$sub2['godmode/setup/setup§ion=general']['id'] = 'General Setup';
|
||||
$sub2['godmode/setup/setup§ion=general']['id'] = 'general_Setup';
|
||||
$sub2['godmode/setup/setup§ion=general']['refr'] = 0;
|
||||
|
||||
enterprise_hook('password_submenu');
|
||||
|
@ -383,7 +383,7 @@ if ($access_console_node === true) {
|
|||
|
||||
$sub['general']['sub2'] = $sub2;
|
||||
$sub['godmode/setup/license']['text'] = __('License');
|
||||
$sub['godmode/setup/license']['id'] = 'License';
|
||||
$sub['godmode/setup/license']['id'] = 'license';
|
||||
|
||||
enterprise_hook('skins_submenu');
|
||||
|
||||
|
@ -403,28 +403,28 @@ if ((bool) check_acl($config['id_user'], 0, 'PM') === true || (bool) check_acl($
|
|||
if ($access_console_node === true) {
|
||||
// Audit //meter en extensiones.
|
||||
$sub['godmode/audit_log']['text'] = __('System audit log');
|
||||
$sub['godmode/audit_log']['id'] = 'System audit log';
|
||||
$sub['godmode/audit_log']['id'] = 'system_audit_log';
|
||||
$sub['godmode/setup/links']['text'] = __('Links');
|
||||
$sub['godmode/setup/links']['id'] = 'Links';
|
||||
$sub['godmode/setup/links']['id'] = 'links';
|
||||
$sub['tools/diagnostics']['text'] = __('Diagnostic info');
|
||||
$sub['tools/diagnostics']['id'] = 'Diagnostic info';
|
||||
$sub['tools/diagnostics']['id'] = 'diagnostic_info';
|
||||
enterprise_hook('omnishell');
|
||||
enterprise_hook('ipam_submenu');
|
||||
|
||||
$sub['godmode/setup/news']['text'] = __('Site news');
|
||||
$sub['godmode/setup/news']['id'] = 'Site news';
|
||||
$sub['godmode/setup/news']['id'] = 'site_news';
|
||||
}
|
||||
|
||||
$sub['godmode/setup/file_manager']['text'] = __('File manager');
|
||||
$sub['godmode/setup/file_manager']['id'] = 'File manager';
|
||||
$sub['godmode/setup/file_manager']['id'] = 'file_manager';
|
||||
|
||||
if ($access_console_node === true) {
|
||||
if (is_user_admin($config['id_user']) === true) {
|
||||
$sub['extensions/db_status']['text'] = __('DB Schema Check');
|
||||
$sub['extensions/db_status']['id'] = 'DB Schema Check';
|
||||
$sub['extensions/db_status']['id'] = 'DB_Schema_Check';
|
||||
$sub['extensions/db_status']['sec'] = 'gbman';
|
||||
$sub['extensions/dbmanager']['text'] = __('DB Interface');
|
||||
$sub['extensions/dbmanager']['id'] = 'DB Interface';
|
||||
$sub['extensions/dbmanager']['id'] = 'DB_Interface';
|
||||
$sub['extensions/dbmanager']['sec'] = 'gbman';
|
||||
enterprise_hook('dbBackupManager');
|
||||
enterprise_hook('elasticsearch_interface_menu');
|
||||
|
@ -462,7 +462,7 @@ if ($access_console_node === true) {
|
|||
// Check if was displayed inside other menu.
|
||||
if (empty($extension['godmode_menu']['fatherId']) === true) {
|
||||
$sub2[$extmenu['sec2']]['text'] = __($extmenu['name']);
|
||||
$sub2[$extmenu['sec2']]['id'] = $extmenu['name'];
|
||||
$sub2[$extmenu['sec2']]['id'] = str_replace(' ', '_', $extmenu['name']);
|
||||
$sub2[$extmenu['sec2']]['refr'] = 0;
|
||||
} else {
|
||||
if (is_array($extmenu) === true && array_key_exists('fatherId', $extmenu) === true) {
|
||||
|
@ -470,7 +470,7 @@ if ($access_console_node === true) {
|
|||
if (array_key_exists('subfatherId', $extmenu) === true) {
|
||||
if (strlen($extmenu['subfatherId']) > 0) {
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]['text'] = __($extmenu['name']);
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]['id'] = $extmenu['name'];
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]['id'] = str_replace(' ', '_', $extmenu['name']);
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]['refr'] = 0;
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]['icon'] = $extmenu['icon'];
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['subfatherId']]['sub2'][$extmenu['sec2']]['sec'] = 'extensions';
|
||||
|
@ -479,7 +479,7 @@ if ($access_console_node === true) {
|
|||
$menu_godmode[$extmenu['fatherId']]['hasExtensions'] = true;
|
||||
} else {
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['text'] = __($extmenu['name']);
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['id'] = $extmenu['name'];
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['id'] = str_replace(' ', '_', $extmenu['name']);
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['refr'] = 0;
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['icon'] = $extmenu['icon'];
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['sec'] = $extmenu['fatherId'];
|
||||
|
@ -489,7 +489,7 @@ if ($access_console_node === true) {
|
|||
}
|
||||
} else {
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['text'] = __($extmenu['name']);
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['id'] = $extmenu['name'];
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['id'] = str_replace(' ', '_', $extmenu['name']);
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['refr'] = 0;
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['icon'] = $extmenu['icon'];
|
||||
$menu_godmode[$extmenu['fatherId']]['sub'][$extmenu['sec2']]['sec'] = 'gextensions';
|
||||
|
@ -504,13 +504,13 @@ if ($access_console_node === true) {
|
|||
|
||||
// Complete the submenu.
|
||||
$extension_view = [];
|
||||
$extension_view['godmode/extensions']['id'] = 'Extension manager view';
|
||||
$extension_view['godmode/extensions']['id'] = 'extension_manager_view';
|
||||
$extension_view['godmode/extensions']['text'] = __('Extension manager view');
|
||||
$extension_submenu = array_merge($extension_view, $sub2);
|
||||
|
||||
$sub['godmode/extensions']['sub2'] = $extension_submenu;
|
||||
$sub['godmode/extensions']['text'] = __('Extension manager');
|
||||
$sub['godmode/extensions']['id'] = 'Extension manager';
|
||||
$sub['godmode/extensions']['id'] = 'extension_manager';
|
||||
$sub['godmode/extensions']['type'] = 'direct';
|
||||
$sub['godmode/extensions']['subtype'] = 'nolink';
|
||||
|
||||
|
|
|
@ -66,6 +66,15 @@ function menu_print_menu(&$menu)
|
|||
if ($tab === 'credbox') {
|
||||
$sec2 = 'godmode/groups/group_list&tab='.$tab;
|
||||
}
|
||||
} else if ($sec2 === 'godmode/setup/setup') {
|
||||
$section = (string) get_parameter('section');
|
||||
$sec2 = 'godmode/setup/setup§ion='.$section;
|
||||
} else if ($sec2 === 'godmode/massive/massive_operations') {
|
||||
$tab = (string) get_parameter('tab');
|
||||
$sec2 = 'godmode/massive/massive_operations&tab='.$tab;
|
||||
} else if ($sec2 === 'godmode/events/events') {
|
||||
$section = (string) get_parameter('section');
|
||||
$sec2 = 'godmode/events/events§ion='.$section;
|
||||
} else {
|
||||
$sec2 = (string) get_parameter('sec2');
|
||||
}
|
||||
|
@ -233,12 +242,14 @@ function menu_print_menu(&$menu)
|
|||
// If the subclass is selected and there are options and that options value is true.
|
||||
$class .= 'submenu_selected selected';
|
||||
$menu_selected = true;
|
||||
$menu2_selected = $sub['id'];
|
||||
$selected = true;
|
||||
$visible = true;
|
||||
} else if (($sec2 === $subsec2 || $allsec2 === $subsec2 || $selected_submenu2 === true) && isset($sub[$subsec2]['options']) === false) {
|
||||
$class .= 'submenu_selected selected';
|
||||
$selected = true;
|
||||
$menu_selected = true;
|
||||
$menu2_selected = $sub['id'];
|
||||
$hasExtensions = (array_key_exists('hasExtensions', $main) === true) ? $main['hasExtensions'] : false;
|
||||
if ((empty($extensionInMenuParameter) === false) && ((bool) $hasExtensions === true)) {
|
||||
$visible = true;
|
||||
|
|
|
@ -99,6 +99,7 @@
|
|||
margin-left: 0px;
|
||||
width: 100%;
|
||||
font-size: 9.4pt;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.menu a:hover {
|
||||
|
@ -129,6 +130,9 @@
|
|||
.sub_subMenu.selected {
|
||||
font-weight: 600;
|
||||
background-color: #002f33 !important;
|
||||
}
|
||||
|
||||
.sub_subMenu.selected a {
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
|
@ -161,9 +165,26 @@
|
|||
|
||||
.submenu_selected {
|
||||
margin-bottom: 0px;
|
||||
background-color: #eff2f2 !important;
|
||||
}
|
||||
|
||||
.submenu_selected_no_submenu {
|
||||
background-color: #eff2f2 !important;
|
||||
background-color: #002f33 !important;
|
||||
color: #ffffff !important;
|
||||
box-shadow: inset 4px 0 #82b92e;
|
||||
}
|
||||
|
||||
.element_submenu_selected {
|
||||
min-height: 0px !important;
|
||||
height: 20px;
|
||||
border-left: 4px solid #82b92e;
|
||||
position: absolute;
|
||||
left: 4%;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.left_3 {
|
||||
left: 3%;
|
||||
}
|
||||
|
||||
.menu .menu_icon,
|
||||
|
@ -172,10 +193,6 @@
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
.menu_icon.selected li {
|
||||
color: #1d7874 !important;
|
||||
}
|
||||
|
||||
.menu li.links {
|
||||
background-image: url(../../images/link.png);
|
||||
background-position: 4px 8px;
|
||||
|
|
|
@ -3519,6 +3519,7 @@ div.div_groups_status {
|
|||
width: 200px;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.no_hidden_menu {
|
||||
|
|
|
@ -164,7 +164,7 @@ if ($access_console_node === true) {
|
|||
if (check_acl($config['id_user'], 0, 'MR') || check_acl($config['id_user'], 0, 'MW') || check_acl($config['id_user'], 0, 'MM')) {
|
||||
// Network enterprise.
|
||||
$sub['operation/agentes/pandora_networkmap']['text'] = __('Network map');
|
||||
$sub['operation/agentes/pandora_networkmap']['id'] = 'Network map';
|
||||
$sub['operation/agentes/pandora_networkmap']['id'] = 'Network_map';
|
||||
$sub['operation/agentes/pandora_networkmap']['refr'] = 0;
|
||||
|
||||
enterprise_hook('transmap_console');
|
||||
|
@ -177,11 +177,11 @@ if ($access_console_node === true) {
|
|||
if (!isset($config['vc_favourite_view']) || $config['vc_favourite_view'] == 0) {
|
||||
// Visual console.
|
||||
$sub['godmode/reporting/map_builder']['text'] = __('Visual console');
|
||||
$sub['godmode/reporting/map_builder']['id'] = 'Visual console';
|
||||
$sub['godmode/reporting/map_builder']['id'] = 'Visual_console';
|
||||
} else {
|
||||
// Visual console favorite.
|
||||
$sub['godmode/reporting/visual_console_favorite']['text'] = __('Visual console');
|
||||
$sub['godmode/reporting/visual_console_favorite']['id'] = 'Visual console';
|
||||
$sub['godmode/reporting/visual_console_favorite']['id'] = 'Visual_console';
|
||||
}
|
||||
|
||||
if ($config['vc_menu_items'] != 0) {
|
||||
|
@ -323,7 +323,7 @@ if ($access_console_node === true) {
|
|||
$sub = [];
|
||||
|
||||
$sub['godmode/reporting/reporting_builder']['text'] = __('Custom reporting');
|
||||
$sub['godmode/reporting/reporting_builder']['id'] = 'Custom reporting';
|
||||
$sub['godmode/reporting/reporting_builder']['id'] = 'Custom_reporting';
|
||||
// Set godomode path.
|
||||
$sub['godmode/reporting/reporting_builder']['subsecs'] = [
|
||||
'godmode/reporting/reporting_builder',
|
||||
|
@ -332,7 +332,7 @@ if ($access_console_node === true) {
|
|||
|
||||
|
||||
$sub['godmode/reporting/graphs']['text'] = __('Custom graphs');
|
||||
$sub['godmode/reporting/graphs']['id'] = 'Custom graphs';
|
||||
$sub['godmode/reporting/graphs']['id'] = 'Custom_graphs';
|
||||
// Set godomode path.
|
||||
$sub['godmode/reporting/graphs']['subsecs'] = [
|
||||
'operation/reporting/graph_viewer',
|
||||
|
@ -384,7 +384,7 @@ if ($access_console_node === true) {
|
|||
|
||||
$sub = [];
|
||||
$sub['operation/events/events']['text'] = __('View events');
|
||||
$sub['operation/events/events']['id'] = 'View events';
|
||||
$sub['operation/events/events']['id'] = 'View_events';
|
||||
$sub['operation/events/events']['pages'] = ['godmode/events/events'];
|
||||
|
||||
// If ip doesn't is in list of allowed IP, isn't show this options.
|
||||
|
@ -486,12 +486,12 @@ $menu_operation['workspace']['id'] = 'oper-users';
|
|||
// Users.
|
||||
$sub = [];
|
||||
$sub['operation/users/user_edit']['text'] = __('Edit my user');
|
||||
$sub['operation/users/user_edit']['id'] = 'Edit my user';
|
||||
$sub['operation/users/user_edit']['id'] = 'Edit_my_user';
|
||||
$sub['operation/users/user_edit']['refr'] = 0;
|
||||
|
||||
// Users.
|
||||
$sub['operation/users/user_edit_notifications']['text'] = __('Configure user notifications');
|
||||
$sub['operation/users/user_edit_notifications']['id'] = 'Configure user notifications';
|
||||
$sub['operation/users/user_edit_notifications']['id'] = 'Configure_user_notifications';
|
||||
$sub['operation/users/user_edit_notifications']['refr'] = 0;
|
||||
|
||||
if ($access_console_node === true) {
|
||||
|
@ -542,13 +542,13 @@ if ($access_console_node === true) {
|
|||
|
||||
if (check_acl($config['id_user'], 0, 'RR') || check_acl($config['id_user'], 0, 'RW') || check_acl($config['id_user'], 0, 'RM')) {
|
||||
$sub['operation/agentes/exportdata']['text'] = __('Export data');
|
||||
$sub['operation/agentes/exportdata']['id'] = 'Export data';
|
||||
$sub['operation/agentes/exportdata']['id'] = 'Export_data';
|
||||
$sub['operation/agentes/exportdata']['subsecs'] = ['operation/agentes/exportdata'];
|
||||
}
|
||||
|
||||
if (check_acl($config['id_user'], 0, 'AR') || check_acl($config['id_user'], 0, 'AD') || check_acl($config['id_user'], 0, 'AW')) {
|
||||
$sub['godmode/agentes/planned_downtime.list']['text'] = __('Scheduled downtime');
|
||||
$sub['godmode/agentes/planned_downtime.list']['id'] = 'Scheduled downtime';
|
||||
$sub['godmode/agentes/planned_downtime.list']['id'] = 'Scheduled_downtime';
|
||||
}
|
||||
|
||||
foreach ($config['extensions'] as $extension) {
|
||||
|
@ -578,7 +578,7 @@ if ($access_console_node === true) {
|
|||
}
|
||||
|
||||
$sub[$extension_menu['sec2']]['text'] = $extension_menu['name'];
|
||||
$sub[$extension_menu['sec2']]['id'] = $extension_menu['name'];
|
||||
$sub[$extension_menu['sec2']]['id'] = str_replace(' ', '_', $extension_menu['name']);
|
||||
$sub[$extension_menu['sec2']]['refr'] = 0;
|
||||
} else {
|
||||
if (array_key_exists('fatherId', $extension_menu)) {
|
||||
|
@ -587,7 +587,7 @@ if ($access_console_node === true) {
|
|||
if (array_key_exists('subfatherId', $extension_menu) && empty($extension_menu['subfatherId']) === false) {
|
||||
if ((strlen($extension_menu['subfatherId']) > 0)) {
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]['text'] = __($extension_menu['name']);
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]['id'] = $extension_menu['name'];
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]['id'] = str_replace(' ', '_', $extension_menu['name']);
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]['refr'] = 0;
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]['icon'] = $extension_menu['icon'];
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['subfatherId']]['sub2'][$extension_menu['sec2']]['sec'] = 'extensions';
|
||||
|
@ -596,7 +596,7 @@ if ($access_console_node === true) {
|
|||
$menu_operation[$extension_menu['fatherId']]['hasExtensions'] = true;
|
||||
} else {
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]['text'] = __($extension_menu['name']);
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]['id'] = $extension_menu['name'];
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]['id'] = str_replace(' ', '_', $extension_menu['name']);
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]['refr'] = 0;
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]['icon'] = $extension_menu['icon'];
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]['sec'] = 'extensions';
|
||||
|
@ -606,7 +606,7 @@ if ($access_console_node === true) {
|
|||
}
|
||||
} else {
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]['text'] = __($extension_menu['name']);
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]['id'] = $extension_menu['name'];
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]['id'] = str_replace(' ', '_', $extension_menu['name']);
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]['refr'] = 0;
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]['icon'] = $extension_menu['icon'];
|
||||
$menu_operation[$extension_menu['fatherId']]['sub'][$extension_menu['sec2']]['sec'] = 'extensions';
|
||||
|
|
Loading…
Reference in New Issue