Final merge with new menu

This commit is contained in:
Jose Gonzalez 2023-02-13 10:37:37 +01:00
commit d45a631ea5
15 changed files with 985 additions and 518 deletions

View File

@ -14,7 +14,7 @@
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
*
* ============================================================================
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
* Copyright (c) 2005-2023 Artica Soluciones Tecnologicas
* Please see http://pandorafms.org for full contribution list
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -26,38 +26,21 @@
* ============================================================================
*/
use function PHPSTORM_META\map;
// Begin.
if (isset($config['id_user']) === false) {
include 'general/login_page.php';
exit();
}
?>
<script type="text/javascript" language="javascript">
require_once 'include/functions_menu.php';
$(document).ready(function(){
var menuType_value = "<?php echo ($_SESSION['menu_type'] ?? ''); ?>";
// Global variable. Do not delete.
$tab_active = '';
if (menuType_value === '' || menuType_value === 'classic') {
$('ul.submenu').css('left', '214px');
}
else{
$('ul.submenu').css('left', '59px');
}
});
</script>
<?php
$autohidden_menu = 0;
if (isset($config['autohidden_menu']) === true && (bool) $config['autohidden_menu'] === true) {
$autohidden_menu = 1;
}
// Start of full lateral menu.
echo sprintf('<div id="menu_full" class="menu_full_%s">', $menuTypeClass);
$url_logo = ui_get_full_url('index.php');
if (is_reporting_console_node() === true) {
$url_logo = 'index.php?logged=1&sec=discovery&sec2=godmode/servers/discovery&wiz=tasklist';
@ -76,52 +59,85 @@ html_print_div(
),
],
true
),
).'<div id="button_collapse" class="button_'.$menuTypeClass.'" style="cursor: pointer"></div>',
]
);
require 'operation/menu.php';
require 'godmode/menu.php';
$display_classic = '';
$display_collapsed = 'display: none;';
if ($menuTypeClass === 'collapsed') {
$display_classic = 'display: none;';
$display_collapsed = '';
}
html_print_div(
[
'id' => 'button_collapse',
'class' => sprintf('button_collapse button_%s', $menuTypeClass),
]
);
// Tabs.
echo '<div id="menu_tabs">';
// Tabs classic.
echo '<ul class="tabs_ul" style="'.$display_classic.'">';
echo '<li id="tab_display" class="tabs_li"><span>'.__('Display').'</span></a></li>';
echo '<li id="tab_management" class="tabs_li"><span>'.__('Management').'</span></a></li>';
echo '</ul>';
echo '<div class="div_border_line" style="'.$display_classic.'"><div id="tab_line_1" class="border_line"></div><div id="tab_line_2" class="border_line"></div></div>';
// Tabs collapse.
echo '<div class="tabs_collapsed" style="'.$display_collapsed.'">';
echo '<div class="tabs_collapsed_container">';
echo '<div id="tab_collapsed_display" class="tabs_collapsed_div"><div class="tabs_collapsed_display"></div></div>';
echo '<div id="tab_collapsed_management" class="tabs_collapsed_div"><div class="tabs_collapsed_management"></div></div>';
echo '</div></div>';
echo '</div>';
// Menu_container.
ui_require_jquery_file('cookie');
$config_fixed_header = false;
if (isset($config['fixed_header']) === true) {
$config_fixed_header = $config['fixed_header'];
}
echo '<div id="div_display">';
require 'operation/menu.php';
echo '</div>';
echo '<div id="div_management">';
require 'godmode/menu.php';
echo '</div>';
echo '</div>';
?>
<script type="text/javascript">
$(document).ready(function() {
const tab = '<?php echo $tab_active; ?>';
<script type="text/javascript" language="javascript">
/* <![CDATA[ */
$('#button_collapse').on('click', function() {
if($('#menu_full').hasClass('menu_full_classic')){
localStorage.setItem("menuType", "collapsed");
$('ul.submenu').css('left', '59px');
var menuType_val = localStorage.getItem("menuType");
$.ajax({
type: "POST",
url: "ajax.php",
data: {
menuType: menuType_val,
page: "include/functions_menu"
},
dataType: "json"
});
if (tab === 'management') {
$('#tab_line_2').addClass('tabs_selected');
$('#div_display').css('display', 'none');
$('#div_management').css('display', 'block');
$('#tab_collapsed_display').children().first().removeClass('tabs_collapsed_display');
$('#tab_collapsed_display').children().first().addClass('tabs_collapsed_oval');
} else {
$('#tab_line_1').addClass('tabs_selected');
$('#tab_collapsed_management').children().first().removeClass('tabs_collapsed_management');
$('#tab_collapsed_management').children().first().addClass('tabs_collapsed_oval');
}
else if($('#menu_full').hasClass('menu_full_collapsed')){
localStorage.setItem("menuType", "classic");
$('ul.submenu').css('left', '214px');
$('#tab_display,#tab_collapsed_display').click(function() {
$('#tab_line_1').addClass('tabs_selected');
$('#tab_line_2').removeClass('tabs_selected');
$('#div_management').css('display', 'none');
$('#div_display').css('display', 'block');
$('#tab_collapsed_management').children().first().removeClass('tabs_collapsed_management');
$('#tab_collapsed_management').children().first().addClass('tabs_collapsed_oval');
$('#tab_collapsed_display').children().first().removeClass('tabs_collapsed_oval');
$('#tab_collapsed_display').children().first().addClass('tabs_collapsed_display');
});
$('#tab_management,#tab_collapsed_management').click(function() {
$('#tab_line_2').addClass('tabs_selected');
$('#tab_line_1').removeClass('tabs_selected');
$('#div_display').css('display', 'none');
$('#div_management').css('display', 'block');
$('#tab_collapsed_display').children().first().removeClass('tabs_collapsed_display');
$('#tab_collapsed_display').children().first().addClass('tabs_collapsed_oval');
$('#tab_collapsed_management').children().first().removeClass('tabs_collapsed_oval');
$('#tab_collapsed_management').children().first().addClass('tabs_collapsed_management');
});
$('#button_collapse').click(function() {
if ($('#menu_full').hasClass('menu_full_classic')) {
localStorage.setItem("menuType", "collapsed");
$('ul.submenu').css('left', '80px');
var menuType_val = localStorage.getItem("menuType");
$.ajax({
type: "POST",
@ -132,209 +148,155 @@ $('#button_collapse').on('click', function() {
},
dataType: "json"
});
$('.tabs_ul').hide();
$('.div_border_line').hide();
$('.tabs_collapsed').show();
$(".title_menu_classic").children('div[class*=icon_]').each(function() {
$(this).removeClass('w15p').addClass('w100p');
});
$(".title_menu_classic").children('div[class*=arrow_]').each(function() {
$(this).hide();
});
$(".title_menu_classic").children('span').each(function() {
$(this).hide();
});
$('ul.submenu').css('position', 'fixed');
$('ul.submenu').css('left', '60px');
$('li.selected').each(function() {
$(`#sub${this.id}`).hide();
})
} else if ($('#menu_full').hasClass('menu_full_collapsed')) {
localStorage.setItem("menuType", "classic");
$('ul.submenu').css('left', '280px');
var menuType_val = localStorage.getItem("menuType");
$.ajax({
type: "POST",
url: "ajax.php",
data: {
menuType: menuType_val,
page: "include/functions_menu"
},
dataType: "json"
});
$('.tabs_ul').show();
$('.div_border_line').show();
$('.tabs_collapsed').hide();
$(".title_menu_classic").children('div[class*=icon_]').each(function() {
$(this).removeClass('w100p').addClass('w15p');
});
$(".title_menu_classic").children('div[class*=arrow_]').each(function() {
$(this).show();
});
$(".title_menu_classic").children('span').each(function() {
$(this).show();
});
$('ul.submenu').css('position', '');
$('ul.submenu').css('left', '80px');
$('li.selected').each(function() {
$(`#sub${this.id}`).show();
})
}
$('.logo_full').toggle();
$('.logo_icon').toggle();
$('#menu_full').toggleClass('menu_full_classic menu_full_collapsed');
$('#button_collapse').toggleClass('button_classic button_collapsed');
$('div#title_menu').toggleClass('title_menu_classic title_menu_collapsed');
$('div#page').toggleClass('page_classic page_collapsed');
$('#header_table').toggleClass('header_table_classic header_table_collapsed');
$('li.menu_icon').toggleClass("no_hidden_menu menu_icon_collapsed");
// Special feature for action buttons.
$('.action_buttons_right_content').attr('style', 'left: '+($('#menu_full').width() + 36)+'px;');
});
var autohidden_menu = <?php echo $autohidden_menu; ?>;
var fixed_header = <?php echo json_encode((bool) $config_fixed_header); ?>;
var id_user = "<?php echo $config['id_user']; ?>";
var cookie_name = id_user + '-pandora_menu_state';
var cookie_name_encoded = btoa(cookie_name);
var click_display = "<?php echo $config['click_display']; ?>";
var menuState = $.cookie(cookie_name_encoded);
if (!menuState) {
menuState = {};
}
else {
menuState = JSON.parse(menuState);
open_submenus();
}
function open_submenus () {
$.each(menuState, function (index, value) {
if (value)
$('div.menu>ul>li#' + index + '>ul').show();
});
//$('div.menu>ul>li.selected>ul').removeClass('invisible');
}
function close_submenus () {
$.each(menuState, function (index, value) {
if (value)
$('div.menu>ul>li#' + index + '>ul').hide();
});
//$('div.menu>ul>li.selected>ul').addClass('invisible');
}
const id_selected = '<?php echo $menu1_selected; ?>';
if (id_selected != '') {
var menuType_val = localStorage.getItem("menuType");
if (menuType_val === 'classic') {
$(`ul#subicon_${id_selected}`).show();
}
// Arrow.
$(`#icon_${id_selected}`).children().first().children().last().removeClass('arrow_menu_down');
$(`#icon_${id_selected}`).children().first().children().last().addClass('arrow_menu_up');
// Span.
$(`#icon_${id_selected}`).children().first().children().eq(1).addClass('span_selected');
/* ]]> */
</script>
<script type="text/javascript">
openTime = 0;
openTime2 = 0;
handsIn = 0;
handsIn2 = 0;
/**
* Positionate the submenu elements. Add a negative top.
*
* @param int index It is the position of li.menu_icon in the ul.
* @param string id_submenu It is the id of first level submenu.
* @param string id_submenu2 It is the id of second level submenu.
* @param int item_height It is the height of a menu item (28 o 35).
*
* @return (int) The position (in px).
*/
function menu_calculate_top(index, id_submenu, id_submenu2, item_height){
var level1 = index;
var level2 = $('#'+id_submenu+' ul.submenu > li').length;
var level3 = $('#'+id_submenu2+' > li.sub_subMenu').length;
var item_height = item_height;
level2--;
if (id_submenu2 !== false) {
// If level3 is set, the position is calculated like box is in the center.
// wiouth considering level2 box can be moved.
level3--;
total = (level1 + level3);
comp = level3;
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 {
total = (level1 + level2);
comp = level2;
$(`#${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>`);
}
}
}
// Positionate in the middle
if (total > 12 && ((total < 18) || ((level1 - comp) <= 4))) {
return - ( Math.floor(comp / 2) * item_height);
}
// Positionate in the bottom
if (total >= 18) {
return (- comp * item_height);
}
var click_display = "<?php echo $config['click_display']; ?>";
// return 0 by default
return 0;
}
/**
* Get the menu items to be positioned.
*
* @param string item It is the selector of the current element.
*
* @return Add the top position in a inline style.
*/
function get_menu_items(item){
var item_height = parseInt(item.css('min-height'));
var id_submenu = item.attr('id');
var id_submenu2 = false;
var index = item.index();
if(item.parent().hasClass('godmode')){
index = index+6; // This is because the menu has divided in two parts.
}
var top_submenu = menu_calculate_top(index, id_submenu, id_submenu2, item_height);
top_submenu = top_submenu+'px';
$('#'+id_submenu+' ul.submenu').css('top', top_submenu);
$('.has_submenu').mouseenter(function() {
id_submenu2 = item.attr('id');
id_submenu2 = $('#'+id_submenu2+' ul.submenu2').attr('id');
var top_submenu2 = menu_calculate_top(index, id_submenu, id_submenu2, item_height);
top_submenu2 = top_submenu2+'px';
$('#'+id_submenu2).css('top', top_submenu2);
});
}
/*
* Show and hide submenus
*/
if(!click_display){
$('.menu_icon').mouseenter(function() {
var menuType_val = localStorage.getItem("menuType");
if (!click_display && menuType_val === 'collapsed') {
table_hover = $(this);
handsIn = 1;
openTime = new Date().getTime();
$("ul#sub"+table_hover[0].id).show();
get_menu_items(table_hover);
if( typeof(table_noHover) != 'undefined')
if ( "ul#sub"+table_hover[0].id != "ul#sub"+table_noHover[0].id )
if (typeof(table_noHover) != 'undefined') {
if ("ul#sub"+table_hover[0].id != "ul#sub"+table_noHover[0].id ) {
$("ul#sub"+table_noHover[0].id).hide();
}
}
}
}).mouseleave(function() {
var menuType_val = localStorage.getItem("menuType");
if (!click_display && menuType_val === 'collapsed') {
table_noHover = $(this);
handsIn = 0;
setTimeout(function() {
opened = new Date().getTime() - openTime;
if(opened > 3000 && handsIn == 0) {
if(opened > 2500 && handsIn == 0) {
openTime = 4000;
$("ul#sub"+table_noHover[0].id).hide();
}
}, 2500);
});
}else{
$(document).ready(function() {
if (autohidden_menu) {
$('.menu_icon').on("click", function() {
if( typeof(table_hover) != 'undefined'){
$("ul#sub"+table_hover[0].id).hide();
}
table_hover = $(this);
handsIn = 1;
openTime = new Date().getTime();
$("ul#sub"+table_hover[0].id).show();
get_menu_items(table_hover);
}).mouseleave(function() {
table_noHover = $(this);
handsIn = 0;
setTimeout(function() {
opened = new Date().getTime() - openTime;
if(opened > 5000 && handsIn == 0) {
openTime = 6000;
$("ul#sub"+table_noHover[0].id).hide();
}
}, 5500);
});
} else {
$('.menu_icon').on("click", function() {
if( typeof(table_hover) != 'undefined'){
$("ul#sub"+table_hover[0].id).hide();
}
table_hover = $(this);
handsIn = 1;
openTime = new Date().getTime();
$("ul#sub"+table_hover[0].id).show();
get_menu_items(table_hover);
});
}
});
}
$('.has_submenu').mouseenter(function() {
$('.has_submenu').mouseenter(function() {
var menuType_val = localStorage.getItem("menuType");
if (!click_display && menuType_val === 'collapsed') {
table_hover2 = $(this);
handsIn2 = 1;
openTime2 = new Date().getTime();
$("#sub"+table_hover2[0].id).show();
if( typeof(table_noHover2) != 'undefined')
if ( "ul#sub"+table_hover2[0].id != "ul#sub"+table_noHover2[0].id )
if( typeof(table_noHover2) != 'undefined') {
if ( "ul#sub"+table_hover2[0].id != "ul#sub"+table_noHover2[0].id ) {
$("ul#sub"+table_noHover2[0].id).hide();
}).mouseleave(function() {
}
}
}
}).mouseleave(function() {
var menuType_val = localStorage.getItem("menuType");
if (!click_display && menuType_val === 'collapsed') {
table_noHover2 = table_hover2;
handsIn2 = 0;
setTimeout(function() {
@ -344,45 +306,136 @@ $('.has_submenu').mouseenter(function() {
$("ul#sub"+table_hover2[0].id).hide();
}
}, 3500);
});
}
});
$(document).ready(function() {
if(!click_display){
$('#container').click(function() {
var menuType_val = localStorage.getItem("menuType");
if (!click_display && menuType_val === 'collapsed') {
openTime = 4000;
if( typeof(table_hover) != 'undefined')
if( typeof(table_hover) != 'undefined') {
$("ul#sub"+table_hover[0].id).hide();
if( typeof(table_hover2) != 'undefined')
}
if( typeof(table_hover2) != 'undefined') {
$("ul#sub"+table_hover2[0].id).hide();
}
}
});
}else{
$('#main').click(function() {
openTime = 4000;
if( typeof(table_hover) != 'undefined')
$("ul#sub"+table_hover[0].id).hide();
if( typeof(table_hover2) != 'undefined')
$("ul#sub"+table_hover2[0].id).hide();
$('.title_menu_classic').click(function() {
var menuType_val = localStorage.getItem("menuType");
if (click_display || (!click_display && menuType_val === 'classic')) {
const table_hover = $(this).parent();
const id = table_hover[0].id;
const classes = $(`#${id}`).attr('class');
if (id === 'icon_about') {
return;
}
var menuType_val = localStorage.getItem("menuType");
if (classes.includes('selected') === true) {
if (menuType_val === 'collapsed' && $(`ul#sub${id}`).is(':hidden')) {
$(`ul#sub${id}`).show();
get_menu_items(table_hover);
} else {
$(`#${id}`).removeClass('selected');
$(`ul#sub${id}`).hide();
// Arrow.
table_hover.children().first().children().last().removeClass('arrow_menu_up');
table_hover.children().first().children().last().addClass('arrow_menu_down');
// Span.
table_hover.children().first().children().eq(1).removeClass('span_selected');
}
} else {
if (menuType_val === 'collapsed') {
// hide all submenus.
$('ul[id^=sub]').hide();
$(`ul#sub${id}`).show();
// Unselect all.
$(`li[id^=icon_]`).removeClass('selected');
$(`#${id}`).addClass('selected');
get_menu_items(table_hover);
} else {
$(`ul#sub${id}`).show();
$(`#${id}`).addClass('selected');
// Arrow.
$(this).children().last().removeClass('arrow_menu_down');
$(this).children().last().addClass('arrow_menu_up');
// Span.
$(this).children().eq(1).addClass('span_selected');
}
}
}
});
$('.has_submenu').click(function() {
var menuType_val = localStorage.getItem("menuType");
if (click_display || (!click_display && menuType_val === 'classic')) {
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');
} 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');
}
}
});
$('.sub_subMenu').click(function (event) {
event.stopPropagation();
});
/**
* Get the menu items to be positioned.
*
* @param string item It is the selector of the current element.
*
* @return Add the top position in a inline style.
*/
function get_menu_items(item) {
var item_height = parseInt(item.css('min-height'));
var id_submenu = item.attr('id');
var index = item.index();
var top_submenu = menu_calculate_top(index, item_height);
top_submenu = top_submenu+'px';
$('#'+id_submenu+' ul.submenu').css('position', 'fixed');
$('#'+id_submenu+' ul.submenu').css('top', top_submenu);
$('#'+id_submenu+' ul.submenu').css('left', '60px');
}
$('div.menu>ul>li>ul>li>a').click(function() {
openTime = 4000;
if( typeof(table_hover) != 'undefined')
$("ul#sub"+table_hover[0].id).hide();
if( typeof(table_hover2) != 'undefined')
$("ul#sub"+table_hover2[0].id).hide();
/**
* Positionate the submenu elements. Add a negative top.
*
* @param int index It is the position of li.menu_icon in the ul.
* @param int item_height It is the height of a menu item (35).
*
* @return (int) The position (in px).
*/
function menu_calculate_top(index, item_height) {
const result = index * item_height;
return 135 + result;
}
});
$('div.menu>ul>li>ul>li>ul>li>a').click(function() {
openTime = 4000;
if( typeof(table_hover) != 'undefined')
$("ul#sub"+table_hover[0].id).hide();
if( typeof(table_hover2) != 'undefined')
$("ul#sub"+table_hover2[0].id).hide();
});
});
</script>

View File

@ -50,7 +50,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';
@ -93,36 +93,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';
}
}
@ -136,13 +136,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');
@ -150,12 +150,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) {
@ -173,13 +173,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;
$sub['godmode/modules/manage_inventory_modules']['text'] = __('Inventory modules');
@ -200,7 +200,7 @@ 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 = [];
@ -222,7 +222,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.
@ -230,14 +230,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&section=filter']['text'] = __('Event filters');
$sub2['godmode/events/events&section=filter']['id'] = 'Event filters';
$sub2['godmode/events/events&section=filter']['id'] = 'event_filters';
}
if ((bool) check_acl($config['id_user'], 0, 'PM') === true) {
$sub2['godmode/events/events&section=fields']['text'] = __('Custom columns');
$sub2['godmode/events/events&section=fields']['id'] = 'Custom events';
$sub2['godmode/events/events&section=fields']['id'] = 'Custom_events';
$sub2['godmode/events/events&section=responses']['text'] = __('Event responses');
$sub2['godmode/events/events&section=responses']['id'] = 'Event responses';
$sub2['godmode/events/events&section=responses']['id'] = 'Event_responses';
}
if (empty($sub2) === false) {
@ -266,12 +266,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');
@ -281,12 +281,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');
}
@ -303,7 +303,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.
@ -340,7 +340,7 @@ if ($access_console_node === true) {
$sub2 = [];
$sub2['godmode/setup/setup&section=general']['text'] = __('General Setup');
$sub2['godmode/setup/setup&section=general']['id'] = 'General Setup';
$sub2['godmode/setup/setup&section=general']['id'] = 'general_Setup';
$sub2['godmode/setup/setup&section=general']['refr'] = 0;
enterprise_hook('password_submenu');
@ -387,7 +387,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');
@ -407,28 +407,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'] = 'gextensions';
$sub['extensions/dbmanager']['text'] = __('DB Interface');
$sub['extensions/dbmanager']['id'] = 'DB Interface';
$sub['extensions/dbmanager']['id'] = 'DB_Interface';
$sub['extensions/dbmanager']['sec'] = 'gextensions';
enterprise_hook('dbBackupManager');
enterprise_hook('elasticsearch_interface_menu');
@ -466,7 +466,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) {
@ -474,7 +474,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';
@ -483,7 +483,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'];
@ -493,7 +493,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';
@ -508,13 +508,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';

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="33px" height="33px" viewBox="0 0 33 33" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
<title>Pandora FMS isotipo@svg</title>
<desc>Created with Sketch.</desc>
<g id="Menu-pestañas---v1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Menu-Pestañas---Contraido-ejemplo-1b" transform="translate(-10.000000, -19.000000)">
<g id="Default">
<g id="Logo" transform="translate(10.000000, 19.000000)">
<g id="Pandora-FMS-isotipo">
<g id="Group">
<path d="M1,15.8501466 C0.982965775,24.0709809 7.63272557,30.7487306 15.8512844,30.7658295 C24.0712085,30.7826371 30.7469101,24.1324222 30.7640091,15.9115878 C30.7808166,7.69393923 24.1326497,1.01687222 15.9127256,1 C7.69416679,0.982965777 1.01709978,7.63249801 1,15.8501466" id="Fill-1" fill="#FFFFFF"></path>
<path d="M24.7496939,22.9508317 C23.7862046,23.7711857 22.5168747,24.4738911 21.150149,24.8375321 C19.6204903,25.2448646 17.902412,25.3547761 16.2658001,25.1340428 C13.1834992,24.7219316 10.416369,22.7710592 8.55515533,20.9423867 C8.76860666,20.4397065 8.83232347,20.2560656 9.05123624,19.7615776 C9.41692524,20.1429682 10.0663816,20.6522476 10.3553829,20.8525005 C12.3547255,22.2492641 14.9677976,23.453967 18.4328544,23.2607685 C20.18757,23.1683791 21.8164448,22.5630694 22.9726775,21.6387204 C24.0940934,20.7453197 25.0330062,19.4607432 25.0157116,17.6700732 C24.9977343,15.7754082 24.0713374,14.2277723 23.0591503,13.1905536 C22.7123488,12.8337394 22.3373298,12.4521212 21.9584423,12.170857 C21.3590491,11.7259771 20.6922982,11.3807685 20.0219063,11.0544474 C19.3399088,10.7172034 18.6392514,10.3797318 17.8259518,10.202235 C19.1699214,9.35207063 22.7747002,8.31416924 23.2011477,8.55834117 C23.4676206,8.71057884 23.7550289,8.95384054 23.9764448,9.1352059 C24.7116914,9.72572423 25.3386193,10.5570011 25.8758886,11.3275194 C26.644814,12.439833 27.2926775,13.7262299 27.5275194,15.1728292 C28.0986952,18.7448393 26.6300226,21.3560909 24.7496939,22.9508317 M3.25073055,16.9694158 C3.25073055,16.9678228 3.25073055,16.9664575 3.25073055,16.9650921 C4.9012236,14.3775068 6.80567366,12.0368241 9.06466228,10.0502249 C10.6220833,8.6766724 12.4564448,7.45330956 14.486508,6.56605293 C14.8271654,6.41495305 15.1575826,6.22448529 15.5255472,6.10683675 C15.8894158,5.98759528 16.2692135,5.86926405 16.6574309,5.7413753 C18.1415776,5.2555346 20.1825637,5.0134107 21.8187204,5.19705166 C23.0420833,5.34086962 24.2597571,5.69518061 25.0710087,6.3287078 C25.347039,6.54079376 25.6772287,6.77290501 25.8533601,7.02663447 C25.9555346,7.17363826 26.0988974,7.51202006 26.0169758,7.71250046 C25.9152565,7.95598972 25.5431958,7.97897328 25.2348519,7.9726016 C24.1823867,7.9487078 23.2200352,7.83629313 22.2021591,7.95689996 C20.7592008,8.13075584 19.5640555,8.53285444 18.5329809,8.96271538 C16.3552312,9.86408074 14.4833222,11.3532337 13.0064575,12.8571781 C11.5175321,14.3693146 10.1410213,16.2753576 9.04440944,18.2332843 C7.82354977,20.413082 6.90124888,22.7123488 6.13892271,25.1269885 C4.40468757,22.8529809 3.33310729,20.0444347 3.25073055,16.9694158 M16.1888848,0 C7.2651174,-0.0183971355 0.0184675938,7.19866987 -3.90798505e-13,16.1222097 C-0.0183971344,25.0466598 7.19844231,32.29513 16.1222097,32.3133701 C25.0464322,32.3317672 32.2935371,25.1133348 32.3117772,16.1888848 C32.3301743,7.26534496 25.1131073,0.0184675927 16.1888848,0" id="Fill-3" fill="#82B92E"></path>
</g>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="10px" height="6px" viewBox="0 0 10 6" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
<title>Elements / arrow down black@svg</title>
<desc>Created with Sketch.</desc>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
<g id="Global/Menu/Primer-nivel" transform="translate(-248.000000, -17.000000)" stroke="#95A3BF" stroke-width="2">
<g id="Menu-/-Menu-cerrado">
<g id="Icons/Dark/20/dropdown-down" transform="translate(241.000000, 8.000000)">
<polyline id="Path-8" points="8 10 12 14 16 10"></polyline>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 874 B

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="10px" height="6px" viewBox="0 0 10 6" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
<title>arrow up grey@svg</title>
<desc>Created with Sketch.</desc>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
<g id="Icons/Dark/20/dropdown-up" transform="translate(-7.000000, -9.000000)" stroke="#95A3BF" stroke-width="2">
<polyline id="Path-8" transform="translate(12.000000, 12.000000) scale(1, -1) translate(-12.000000, -12.000000) " points="8 10 12 14 16 10"></polyline>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 766 B

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="18px" height="10px" viewBox="0 0 18 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
<title>Element / 18 / mapas topologicos@svg</title>
<desc>Created with Sketch.</desc>
<g id="Menu-pestañas---v1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
<g id="Menu-Pestañas---Primero-display" transform="translate(-249.000000, -31.000000)" stroke="#95A3BF" stroke-width="2">
<g id="==-Left-==">
<g id="Logo">
<g id="Icons/Elements/contract-menu" transform="translate(246.000000, 24.000000)">
<line x1="12" y1="8.00633693" x2="20.0063114" y2="8.00633693" id="Path-2"></line>
<line x1="4" y1="12" x2="20.0062008" y2="12" id="Path-2-Copy"></line>
<line x1="12" y1="16" x2="20.0062008" y2="16" id="Path-2-Copy-2"></line>
<polyline id="Path-3" points="6.99831176 9.00455189 4 12 6.99831176 15.0052576"></polyline>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="18px" height="12px" viewBox="0 0 18 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
<title>Menu Display@svg</title>
<desc>Created with Sketch.</desc>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Icons/Elements/Menu-Switch-Display" transform="translate(-18.000000, -10.000000)" fill="#FFFFFF">
<g id="Swtich">
<g id="Menu-Display" transform="translate(18.000000, 7.000000)">
<path d="M6.7476933,9.00004127 C6.7476933,10.241506 7.75640635,11.2500568 8.9981629,11.2500568 C10.2398782,11.2500568 11.2486325,10.241506 11.2486325,9.00004127 L11.2486325,8.98134377 C11.0084057,9.22507172 10.6787183,9.37506449 10.3108852,9.37506449 C9.58681966,9.37506449 8.9981629,8.78632014 8.9981629,8.06256578 C8.9981629,7.54142962 9.30543355,7.08753018 9.74456266,6.87748251 C9.51209712,6.79505665 9.26080644,6.75006707 8.9981629,6.75006707 C7.75640635,6.75006707 6.7476933,7.75870039 6.7476933,9.00004127 Z M17.4974599,7.72118156 C16.1019236,5.94760159 12.7039469,3 9.00179582,3 C5.29613567,3 1.89440223,5.94764286 0.498824576,7.72118156 C0.183833968,8.12625286 0.0113115893,8.56500444 0,9.00004127 C0.0113528725,9.43511939 0.183833968,9.87387096 0.498824576,10.2788597 C1.89444351,12.0528112 5.29242018,15 8.9981629,15 C12.7039056,15 16.1019236,12.0528112 17.4974599,10.2788597 C17.8160835,9.87382969 17.9886471,9.43511939 18,9.00004127 C17.9886471,8.56500444 17.8160835,8.12625286 17.4974599,7.72118156 Z M8.9981629,12.7499845 C6.92793563,12.7499845 5.24738024,11.0699746 5.24738024,9.00004127 C5.24738024,6.93006666 6.92793563,5.25001548 8.9981629,5.25001548 C11.0683489,5.25001548 12.7489043,6.93006666 12.7489043,9.00004127 C12.7489043,11.0699333 11.0683076,12.7499845 8.9981629,12.7499845 Z" id="Shape"></path>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="18px" height="10px" viewBox="0 0 18 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
<title>Element / 18 / mapas topologicos@svg</title>
<desc>Created with Sketch.</desc>
<g id="Menu-pestañas---v1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
<g id="Menu-Pestañas---Contraido-ejemplo-1b" transform="translate(-49.000000, -31.000000)" stroke="#95A3BF" stroke-width="2">
<g id="Default">
<g id="Logo" transform="translate(10.000000, 19.000000)">
<g id="Icons/Elements/contract-menu" transform="translate(48.000000, 17.000000) scale(-1, 1) translate(-48.000000, -17.000000) translate(36.000000, 5.000000)">
<line x1="12" y1="8.00633693" x2="20.0063114" y2="8.00633693" id="Path-2"></line>
<line x1="4" y1="12" x2="20.0062008" y2="12" id="Path-2-Copy"></line>
<line x1="12" y1="16" x2="20.0062008" y2="16" id="Path-2-Copy-2"></line>
<polyline id="Path-3" points="6.99831176 9.00455189 4 12 6.99831176 15.0052576"></polyline>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
<title>Menu Management@svg</title>
<desc>Created with Sketch.</desc>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Icons/Elements/Menu-Switch-Management" transform="translate(-45.000000, -8.000000)" fill="#FFFFFF">
<g id="Swtich">
<g id="Menu-Management" transform="translate(44.000000, 7.000000)">
<path d="M16.0362619,7.35251237 L15.402278,7.35251237 C14.8850806,7.35251237 14.4513022,6.90679511 14.4513022,6.37776621 C14.4513022,6.11116897 14.5639178,5.86956522 14.7641232,5.6904452 L15.1728759,5.29054934 C15.5774577,4.89065348 15.5774577,4.23665712 15.1728759,3.83676126 L14.2427549,2.91616766 C14.0592333,2.73288206 13.7881217,2.62457693 13.5128393,2.62457693 C13.2375568,2.62457693 12.9706162,2.73288206 12.7829236,2.91616766 L12.3908547,3.30773236 C12.2031621,3.51601146 11.9529053,3.62848217 11.6817938,3.62848217 C11.1479126,3.62848217 10.7016214,3.19526165 10.7016214,2.68289508 L10.7016214,2.04556105 C10.7016214,1.4832075 10.2469882,1 9.67973951,1 L8.41177179,1 C7.84452308,1 7.39406087,1.47904192 7.39406087,2.04556105 L7.39406087,2.6787295 C7.39406087,3.19109607 6.9477696,3.62431658 6.41388846,3.62431658 C6.14694789,3.62431658 5.90086205,3.51184587 5.72151135,3.31606353 L5.31692955,2.91616766 C5.13340791,2.72871648 4.86229639,2.62457693 4.58701392,2.62457693 C4.31173146,2.62457693 4.04479089,2.73288206 3.8570983,2.91616766 L2.91863535,3.83259568 C2.5182245,4.23249154 2.5182245,4.88648789 2.91863535,5.28221817 L3.31070432,5.67378287 C3.51925164,5.86123405 3.63603814,6.11116897 3.63603814,6.37776621 C3.63603814,6.91096069 3.20225971,7.35251237 2.68506236,7.35251237 L2.0510785,7.35251237 C1.47965884,7.35251237 1,7.79822963 1,8.36474876 L1,8.99791721 L1,9.63108565 C1,10.1934392 1.47965884,10.6433221 2.0510785,10.6433221 L2.68506236,10.6433221 C3.20225971,10.6433221 3.63603814,11.0890393 3.63603814,11.6180682 C3.63603814,11.8846655 3.51925164,12.1346004 3.31070432,12.3220515 L2.91863535,12.7094507 C2.5182245,13.1093465 2.5182245,13.7633429 2.91863535,14.1590732 L3.84875641,15.0838323 C4.03227805,15.2712835 4.30338957,15.3754231 4.57867203,15.3754231 C4.8539545,15.3754231 5.12089507,15.2671179 5.30858766,15.0838323 L5.71316946,14.6839365 C5.88834921,14.4881541 6.13860599,14.3756834 6.40554656,14.3756834 C6.93942771,14.3756834 7.38571897,14.8089039 7.38571897,15.3212705 L7.38571897,15.9544389 C7.38571897,16.5167925 7.83618119,17 8.40760085,17 L9.67556856,17 C10.2428173,17 10.6932795,16.5209581 10.6932795,15.9544389 L10.6932795,15.3212705 C10.6932795,14.8089039 11.1395708,14.3756834 11.6734519,14.3756834 C11.9403925,14.3756834 12.1906493,14.4923197 12.3825128,14.6964332 L12.7745818,15.0879979 C12.9622743,15.2712835 13.2292149,15.3795886 13.5044974,15.3795886 C13.7797798,15.3795886 14.0467204,15.2712835 14.234413,15.0879979 L15.1645341,14.1632387 C15.5649449,13.7633429 15.5649449,13.1093465 15.1645341,12.7094507 L14.7557813,12.3095548 C14.5555759,12.1304348 14.4429603,11.8846655 14.4429603,11.6222338 C14.4429603,11.0890393 14.8767388,10.6474876 15.3939361,10.6474876 L16.02792,10.6474876 C16.5951687,10.6474876 16.9998771,10.2017704 16.9998771,9.63525124 L16.9998771,8.99791721 L16.9998771,8.36474876 C17.0080924,7.79822963 16.6035106,7.35251237 16.0362619,7.35251237 Z M12.3783418,8.99791721 L12.3783418,8.99791721 C12.3783418,10.8349388 10.889314,12.3303827 9.0415847,12.3303827 C7.19385544,12.3303827 5.70482757,10.8349388 5.70482757,8.99791721 L5.70482757,8.99791721 L5.70482757,8.99791721 C5.70482757,7.1608956 7.19385544,5.66545171 9.0415847,5.66545171 C10.889314,5.66545171 12.3783418,7.1608956 12.3783418,8.99791721 L12.3783418,8.99791721 Z" id="Path-2"></path>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -4583,7 +4583,7 @@ function html_print_header_logo_image(bool $menuCollapsed, bool $return=false)
true,
[
'border' => '0',
'width' => '60',
'width' => '35',
'alt' => $logo_title,
'class' => 'logo_icon',
'style' => ($menuCollapsed === true) ? 'display:block' : 'display:none',

View File

@ -47,6 +47,9 @@ function menu_print_menu(&$menu)
{
global $config;
global $menuTypeClass;
global $tab_active;
global $menu1_selected;
global $menu2_selected;
static $idcounter = 0;
echo '<div class="menu">';
@ -63,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&section='.$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&section='.$section;
} else {
$sec2 = (string) get_parameter('sec2');
}
@ -206,17 +218,19 @@ function menu_print_menu(&$menu)
// Set class.
if (($sec2 == $subsec2 || $allsec2 == $subsec2
|| $selected_submenu2) && isset($sub[$subsec2]['options'])
&& ( get_parameter_get($sub[$subsec2]['options']['name']) == $sub[$subsec2]['options']['value'])
&& (get_parameter_get($sub[$subsec2]['options']['name']) == $sub[$subsec2]['options']['value'])
) {
// 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;
@ -233,18 +247,14 @@ function menu_print_menu(&$menu)
}
// Define submenu class to draw tree image.
if ($count_sub >= count($main['sub'])) {
$sub_tree_class = 'submenu_text submenu_text_last';
} else {
$sub_tree_class = 'submenu_text submenu_text_middle';
}
$sub_tree_class = 'submenu_text';
if (isset($sub['type']) && $sub['type'] == 'direct') {
// This is an external link.
$submenu_output .= '<li title="'.$sub['id'].'" id="'.str_replace(' ', '_', $sub['id']).'" class="'.$class.'">';
if (isset($sub['subtype']) && $sub['subtype'] == 'nolink') {
$submenu_output .= '<div class=" SubNoLink '.$sub_tree_class.'">'.$sub['text'].'</div>';
$submenu_output .= '<div class=" SubNoLink '.$sub_tree_class.'"><span class="w70p span_has_menu_text">'.$sub['text'].'</span><div class="w29p arrow_menu_down"></div></div>';
} else if (isset($sub['subtype']) && $sub['subtype'] == 'new_blank') {
$submenu_output .= '<a href="'.$subsec2.'" target="_blank"><div class="'.$sub_tree_class.'">'.$sub['text'].'</div></a>';
} else {
@ -390,14 +400,29 @@ function menu_print_menu(&$menu)
if ($menu_selected) {
$seleccionado = 'selected';
$menu1_selected = $id;
if ($menu['class'] === 'operation') {
$tab_active = 'display';
} else {
$tab_active = 'management';
}
} else {
$seleccionado = '';
}
// Print out the first level.
$output .= '<li title="'.$main['text'].'" class="'.implode(' ', $classes).' '.$seleccionado.'" id="icon_'.$id.'">';
$output .= '<li title="'.$main['text'].'" class="'.implode(' ', $classes).' '.$seleccionado.' flex_li" id="icon_'.$id.'">';
if ($menuTypeClass === 'collapsed') {
$div = '<div class="icon_'.$id.' w100p"></div><span class="w55p" style="display: none">'.$main['text'].'</span><div class="arrow_menu_down w30p" style="display: none"></div>';
} else {
if ($id === 'about') {
$div = '<div class="icon_'.$id.' w15p"></div><span class="w55p">'.$main['text'].'</span><div class="w30p"></div>';
} else {
$div = '<div class="icon_'.$id.' w15p"></div><span class="w55p">'.$main['text'].'</span><div class="arrow_menu_down w30p"></div>';
}
}
$output .= sprintf('<div id="title_menu" class="title_menu_%s">%s</div>', $menuTypeClass, $main['text']);
$output .= sprintf('<div id="title_menu" class="title_menu_classic">%s</div>', $div);
// Add the notification ball if defined.
if (isset($main['notification']) === true) {

View File

@ -15,6 +15,66 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#div_display {
height: 100%;
overflow-y: auto;
overflow-x: hidden;
}
#div_display::-webkit-scrollbar {
-webkit-appearance: none;
}
#div_display::-webkit-scrollbar:vertical {
width: 5px;
}
#div_display::-webkit-scrollbar-button:increment,
#div_display::-webkit-scrollbar-button {
display: none;
}
#div_display::-webkit-scrollbar-thumb {
background-color: #6c7587;
border-radius: 2.5px;
opacity: 0.5;
height: 50px;
}
#div_display::-webkit-scrollbar-track {
border-radius: 10px;
}
#div_management {
display: none;
height: 100%;
overflow-y: auto;
overflow-x: hidden;
}
#div_management::-webkit-scrollbar {
-webkit-appearance: none;
}
#div_management::-webkit-scrollbar:vertical {
width: 5px;
}
#div_management::-webkit-scrollbar-button:increment,
#div_management::-webkit-scrollbar-button {
display: none;
}
#div_management::-webkit-scrollbar-thumb {
background-color: #6c7587;
border-radius: 2.5px;
opacity: 0.5;
height: 50px;
}
#div_management::-webkit-scrollbar-track {
border-radius: 10px;
}
.operation li,
.godmode li {
@ -30,8 +90,12 @@
.operation .menu_icon ul.submenu > li,
.godmode .menu_icon ul.submenu > li {
background-color: #282828;
padding-left: 1.5em;
background-color: #ffffff;
padding-left: 24px !important;
}
.menu {
height: 100%;
}
.menu ul {
@ -39,54 +103,61 @@
padding: 0;
margin: 0;
}
.menu li.selected,
.menu li.not_selected {
margin: 0;
}
.menu li a {
color: #ffffff;
text-decoration: none;
width: 100%;
}
.menu_full li:hover ul {
display: block;
background-color: red;
}
.submenu_text {
margin-left: 0px;
width: 100%;
color: #b9b9b9;
font-size: 9.4pt;
user-select: none;
}
.menu a:hover {
text-decoration: none;
border: 0px;
}
.submenu {
margin: 0px 0px 0px 0px;
position: absolute;
z-index: 999;
width: 240px;
/* position: absolute; */
width: 260px;
margin-left: 20px !important;
}
.submenu2 {
position: absolute;
/* position: absolute; */
z-index: 999;
left: 240px;
width: 240px;
width: 238px;
}
.sub_subMenu {
font-weight: normal;
background-color: #202020;
background-color: #f0f3f3;
padding-left: 1.5em;
color: #161628 !important;
}
.sub_subMenu.selected {
font-weight: 600;
background-color: #002f33 !important;
}
.sub_subMenu.selected a {
color: #fff !important;
}
.submenu2 li a {
@ -102,8 +173,19 @@
}
.menu li.has_submenu {
background: url(../../images/arrow.png) no-repeat 95% 50%;
z-index: 1; /* Positions it on top of the rest */
display: flex;
flex-direction: column;
z-index: 1;
}
.has_submenu {
color: #161628 !important;
}
.span_has_menu_text {
font-weight: normal;
font-size: 9.4pt;
color: #3f3f3f;
}
.menu li.submenu_not_selected a,
@ -113,19 +195,26 @@
.submenu_selected {
margin-bottom: 0px;
box-shadow: inset 4px 0 #82b92e;
}
.selected.submenu_selected {
background-color: #202020;
background-color: #eff2f2 !important;
}
li.submenu_selected.selected {
background-color: #202020;
font-weight: 600;
.submenu_selected_no_submenu {
background-color: #eff2f2 !important;
background-color: #002f33 !important;
color: #ffffff !important;
}
li.sub_subMenu.selected {
background-color: #161616;
.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,
@ -139,81 +228,107 @@ li.sub_subMenu.selected {
background-position: 4px 8px;
}
.flex_li {
display: flex;
flex-direction: column;
}
/* Icons specified here */
#icon_oper-networkconsole {
background-image: url(../../images/menu/op_network.menu_gray.png);
.icon_oper-networkconsole {
background: url(../../images/menu/op_network.menu_gray.png) no-repeat 50% 50%;
}
#icon_oper-agents {
background-image: url(../../images/menu/op_monitoring.menu_gray.png);
.icon_oper-agents {
background: url(../../images/menu/op_monitoring.menu_gray.png) no-repeat 50%
50%;
}
#icon_oper-events {
background-image: url(../../images/menu/op_events.menu_gray.png);
.icon_oper-events {
background: url(../../images/menu/op_events.menu_gray.png) no-repeat 50% 50%;
}
/* users */
#icon_oper-users {
background-image: url(../../images/menu/op_workspace.menu_gray.png);
.icon_oper-users {
background: url(../../images/menu/op_workspace.menu_gray.png) no-repeat 50%
50%;
}
/* trap console */
#icon_oper-snmpc,
#icon_god-snmpc {
background-image: url(../../images/menu/op_snmp.menu.png);
.icon_oper-snmpc,
.icon_god-snmpc {
background: url(../../images/menu/op_snmp.menu.png) no-repeat 50% 50%;
}
#icon_oper-reporting {
background-image: url(../../images/menu/op_reporting.menu_gray.png);
.icon_oper-reporting {
background: url(../../images/menu/op_reporting.menu_gray.png) no-repeat 50%
50%;
}
#icon_oper-gismaps {
background-image: url(../../images/menu/op_gis.menu.png);
.icon_oper-gismaps {
background: url(../../images/menu/op_gis.menu.png) no-repeat 50% 50%;
}
#icon_oper-netflow {
background-image: url(../../images/menu/op_netflow.menu.png);
.icon_oper-netflow {
background: url(../../images/menu/op_netflow.menu.png) no-repeat 50% 50%;
}
#icon_oper-extensions {
background-image: url(../../images/menu/extensions.menu_gray.png);
.icon_oper-extensions {
background: url(../../images/menu/extensions.menu_gray.png) no-repeat 50% 50%;
}
/* Godmode images */
#icon_god-discovery {
background-image: url(../../images/menu/gm_discovery.menu.png);
.icon_god-discovery {
background: url(../../images/menu/gm_discovery.menu.png) no-repeat 50% 50%;
}
#icon_god-resources {
background-image: url(../../images/menu/gm_resources.menu_gray.png);
.icon_god-resources {
background: url(../../images/menu/gm_resources.menu_gray.png) no-repeat 50%
50%;
}
#icon_god-configuration {
background-image: url(../../images/menu/gm_configuration.menu_gray.png);
.icon_god-configuration {
background: url(../../images/menu/gm_configuration.menu_gray.png) no-repeat
50% 50%;
}
#icon_god-alerts {
background-image: url(../../images/menu/gm_alerts.menu_gray.png);
.icon_god-alerts {
background: url(../../images/menu/gm_alerts.menu_gray.png) no-repeat 50% 50%;
}
#icon_god-users {
background-image: url(../../images/menu/gm_users.menu_gray.png);
.icon_god-users {
background: url(../../images/menu/gm_users.menu_gray.png) no-repeat 50% 50%;
}
#icon_god-reporting {
background-image: url(../../images/menu/reporting_edit.menu.png);
.icon_god-reporting {
background: url(../../images/menu/reporting_edit.menu.png) no-repeat 50% 50%;
}
#icon_god-servers {
background-image: url(../../images/menu/gm_servers.menu_gray.png);
.icon_god-servers {
background: url(../../images/menu/gm_servers.menu_gray.png) no-repeat 50% 50%;
}
#icon_god-setup {
background-image: url(../../images/menu/gm_setup.menu_gray.png);
.icon_god-setup {
background: url(../../images/menu/gm_setup.menu_gray.png) no-repeat 50% 50%;
}
#icon_god-events {
background-image: url(../../images/menu/gm_events.menu_gray.png);
.icon_god-events {
background: url(../../images/menu/gm_events.menu_gray.png) no-repeat 50% 50%;
}
#icon_god-extensions {
background-image: url(../../images/menu/builder.menu_gray.png);
.icon_god-extensions {
background: url(../../images/menu/builder.menu_gray.png) no-repeat 50% 50%;
}
#icon_god-links {
background-image: url(../../images/menu/links.menu_gray.png);
.icon_god-links {
background: url(../../images/menu/links.menu_gray.png) no-repeat 50% 50%;
}
#icon_god-um_messages {
background-image: url(../../images/menu/um_messages.menu_gray.png);
.icon_god-um_messages {
background: url(../../images/menu/um_messages.menu_gray.png) no-repeat 50% 50%;
}
#icon_god-module_library {
background-image: url(../../images/menu/gm_library.menu_gray.png);
}
#icon_about {
background-image: url(../../images/menu/about.menu_gray.png);
.icon_god-module_library {
background: url(../../images/menu/gm_library.menu_gray.png) no-repeat 50% 50%;
}
#menu_container {
@ -248,8 +363,8 @@ ul li {
}
.menu li ul {
position: absolute;
top: 0;
/* position: absolute; */
/* top: 0; */
display: none;
}
@ -258,9 +373,11 @@ ul li {
float: left;
height: 1%;
}
* html ul li a {
height: 1%;
}
/* End */
/*
@ -270,36 +387,28 @@ ul li {
*/
.menu_icon:hover {
background-color: #282828;
background-color: #f6f7fb;
}
.submenu_not_selected:hover {
background-color: #202020;
}
.submenu_selected:hover {
background-color: #202020;
background-color: #eff2f2 !important;
}
.sub_subMenu:hover {
background-color: #161616;
background-color: #d9e0e1;
}
.menu li.selected {
box-shadow: inset 4px 0 #82b92e;
/* box-shadow: inset 4px 0 #82b92e; */
}
.operation {
background-color: #3d3d3d;
padding-top: 20px;
}
.operation .selected,
.godmode .selected {
background-color: #282828;
}
.operation .selected #title_menu,
.godmode .selected #title_menu {
color: #fff;
font-weight: 600;
background-color: #f6f7fb;
}
.menu > .operation {
@ -315,71 +424,92 @@ ul li {
}
.menu li div {
background-clip: text; /* Very important to fix a bug in Firefox */
background-clip: text;
/* Very important to fix a bug in Firefox */
}
.godmode {
padding-bottom: 4px;
background-color: #343434;
padding-top: 2em !important;
}
/* Menu icons active */
.selected#icon_oper-networkconsole {
background-image: url(../../images/menu/op_network.menu_white.png);
.selected.icon_oper-networkconsole {
background: url(../../images/menu/op_network.menu_white.png) no-repeat 50% 50%;
}
.selected#icon_oper-agents {
background-image: url(../../images/menu/op_monitoring.menu_white.png);
.selected.icon_oper-agents {
background: url(../../images/menu/op_monitoring.menu_white.png) no-repeat 50%
50%;
}
.selected#icon_oper-events {
background-image: url(../../images/menu/op_events.menu_white.png);
.selected.icon_oper-events {
background: url(../../images/menu/op_events.menu_white.png) no-repeat 50% 50%;
}
.selected#icon_oper-users {
background-image: url(../../images/menu/op_workspace.menu_white.png);
.selected.icon_oper-users {
background: url(../../images/menu/op_workspace.menu_white.png) no-repeat 50%
50%;
}
.selected#icon_oper-reporting {
background-image: url(../../images/menu/op_reporting.menu_white.png);
.selected.icon_oper-reporting {
background: url(../../images/menu/op_reporting.menu_white.png) no-repeat 50%
50%;
}
.selected#icon_oper-extensions {
background-image: url(../../images/menu/extensions.menu_white.png);
.selected.icon_oper-extensions {
background: url(../../images/menu/extensions.menu_white.png) no-repeat 50% 50%;
}
.selected#icon_god-discovery {
background-image: url(../../images/menu/gm_discovery.menu_white.png);
.selected.icon_god-discovery {
background: url(../../images/menu/gm_discovery.menu_white.png) no-repeat 50%
50%;
}
.selected#icon_god-resources {
background-image: url(../../images/menu/gm_resources.menu_white.png);
.selected.icon_god-resources {
background: url(../../images/menu/gm_resources.menu_white.png) no-repeat 50%
50%;
}
.selected#icon_god-configuration {
background-image: url(../../images/menu/gm_configuration.menu_white.png);
.selected.icon_god-configuration {
background: url(../../images/menu/gm_configuration.menu_white.png) no-repeat
50% 50%;
}
.selected#icon_god-alerts {
background-image: url(../../images/menu/gm_alerts.menu_white.png);
.selected.icon_god-alerts {
background: url(../../images/menu/gm_alerts.menu_white.png) no-repeat 50% 50%;
}
.selected#icon_god-users {
background-image: url(../../images/menu/gm_users.menu_white.png);
.selected.icon_god-users {
background: url(../../images/menu/gm_users.menu_white.png) no-repeat 50% 50%;
}
.selected#icon_god-servers {
background-image: url(../../images/menu/gm_servers.menu_white.png);
.selected.icon_god-servers {
background: url(../../images/menu/gm_servers.menu_white.png) no-repeat 50% 50%;
}
.selected#icon_god-setup {
background-image: url(../../images/menu/gm_setup.menu_white.png);
.selected.icon_god-setup {
background: url(../../images/menu/gm_setup.menu_white.png) no-repeat 50% 50%;
}
.selected#icon_god-events {
background-image: url(../../images/menu/gm_events.menu_white.png);
.selected.icon_god-events {
background: url(../../images/menu/gm_events.menu_white.png) no-repeat 50% 50%;
}
.selected#icon_god-extensions {
background-image: url(../../images/menu/builder.menu_white.png);
.selected.icon_god-extensions {
background: url(../../images/menu/builder.menu_white.png) no-repeat 50% 50%;
}
.selected#icon_god-links {
background-image: url(../../images/menu/links.menu_white.png);
.selected.icon_god-links {
background: url(../../images/menu/links.menu_white.png) no-repeat 50% 50%;
}
.selected#icon_god-um_messages {
background-image: url(../../images/menu/um_messages.menu_white.png);
.selected.icon_god-um_messages {
background: url(../../images/menu/um_messages.menu_white.png) no-repeat 50%
50%;
}
.selected#icon_god-module_library {
background-image: url(../../images/menu/gm_library.menu_white.png);
}
.selected#icon_about {
background-image: url(../../images/menu/about.menu_white.png);
.selected.icon_god-module_library {
background: url(../../images/menu/gm_library.menu_white.png) no-repeat 50% 50%;
}
#menu_full {
@ -390,7 +520,7 @@ ul li {
z-index: 1;
top: 0;
left: 0;
background-color: #343434;
background-color: #ffffff;
}
.button_collapse {
@ -408,41 +538,46 @@ ul li {
background-color: #fff;
min-height: 60px;
display: flex;
justify-content: center;
justify-content: space-around;
align-items: center;
}
.menu_full_classic,
.button_classic {
width: 215px;
width: 280px;
}
.menu_full_collapsed,
.button_collapsed {
width: 60px;
width: 80px;
}
.menu_full_classic .title_menu_classic {
display: flex !important;
}
.menu_icon_collapsed {
background-position: 50% 50%;
}
.menu_full_collapsed .title_menu_collapsed {
display: none !important;
display: flex !important;
}
.button_classic {
background-image: url(../../images/button_collapse_menu.png);
background-image: url(../../images/menu/contraer.svg);
background-repeat: no-repeat;
background-position: center;
height: 35px;
width: 35px;
}
.button_collapsed {
background-image: url(../../images/button_classic_menu.png);
background-image: url(../../images/menu/expandir.svg);
background-repeat: no-repeat;
background-position: center;
height: 35px;
width: 35px;
}
/* Menu height: 601px, 720px, 735px */
@ -458,6 +593,7 @@ ul li {
.operation {
padding-top: 10px;
}
.button_collapse {
margin-top: 10px;
}
@ -469,17 +605,139 @@ ul li {
* ---------------------------------------------------------------------
*/
.page_classic {
padding-left: 215px;
padding-left: 280px;
}
.page_collapsed {
padding-left: 60px;
padding-left: 80px;
}
.header_table_classic {
padding-left: 235px; /* 215 + 35 */
padding-left: 315px;
/* 280 + 35 */
}
.header_table_collapsed {
padding-left: 80px; /* 60 + 35 */
padding-left: 115px;
/* 80 + 35 */
}
/*
* ---------------------------------------------------------------------
* - TABS styles -
* ---------------------------------------------------------------------
*/
#menu_tabs {
height: 53px;
border-bottom: 1px solid #c1ccdc;
padding-bottom: 2px;
}
.div_border_line {
height: 3px;
width: 100%;
display: flex;
justify-content: space-around;
}
.border_line {
width: 100px;
height: 100%;
}
.tabs_ul {
height: 100%;
display: flex;
align-items: center;
justify-content: space-evenly;
min-height: 53px;
}
.tabs_li {
width: 100%;
height: 100%;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
}
.tabs_li span {
color: #161628;
font-size: 14px;
font-weight: 400;
user-select: none;
}
.tabs_selected {
background-color: #82b92e;
}
.arrow_menu_down {
background: url(../../images/menu/arrow_down_grey.svg) no-repeat 75% 50%;
z-index: 1;
}
.arrow_menu_up {
background: url(../../images/menu/arrow_up_grey.svg) no-repeat 75% 50%;
z-index: 1;
}
.span_selected {
color: #1d7874 !important;
font-weight: bold;
}
.tabs_collapsed {
height: 48px;
display: flex;
justify-content: center;
align-items: center;
}
.tabs_collapsed_container {
background-color: #002f33;
border-radius: 16px;
width: 60px;
height: 32px;
display: flex;
justify-content: space-evenly;
align-items: center;
}
.tabs_collapsed_div {
height: 21px;
width: 21px;
cursor: pointer;
}
.tabs_collapsed_display {
background-image: url(../../images/menu/display.svg);
background-repeat: no-repeat;
background-position: center;
width: 21px;
height: 21px;
}
.tabs_collapsed_management {
background-image: url(../../images/menu/management.svg);
background-repeat: no-repeat;
background-position: center;
width: 21px;
height: 21px;
}
.tabs_collapsed_oval {
background-color: #ffffff;
border-radius: 100%;
opacity: 0.33;
width: 8px;
height: 8px;
cursor: pointer;
margin: 6px;
}
.logo_icon {
margin-left: 16px;
}

View File

@ -639,6 +639,10 @@ select:-internal-list-box {
width: 25%;
}
.w29p {
width: 29%;
}
.w30p {
width: 30%;
}
@ -663,6 +667,10 @@ select:-internal-list-box {
width: 54%;
}
.w55p {
width: 55%;
}
.w60p {
width: 60%;
}
@ -671,6 +679,10 @@ select:-internal-list-box {
width: 70%;
}
.w71p {
width: 71%;
}
.w75p {
width: 75%;
}
@ -869,6 +881,7 @@ select:-internal-list-box {
.flex-baseline {
align-self: baseline;
}
.flex {
display: flex;
}
@ -3765,13 +3778,13 @@ div.div_groups_status {
}
#title_menu {
color: #b9b9b9;
float: right;
width: 72%;
letter-spacing: 0pt;
font-size: 10pt;
white-space: pre-wrap;
padding-top: 0;
font-size: 14px;
letter-spacing: -0.28px;
line-height: 24px;
width: 200px;
text-align: left;
width: 100%;
user-select: none;
}
.no_hidden_menu {
@ -10256,6 +10269,7 @@ button.submitButton.link:active > div {
button.disabled_action_button {
visibility: hidden;
}
button div.camera {
mask: url(../../images/svg/picture.svg) no-repeat center / contain;
-webkit-mask: url(../../images/svg/picture.svg) no-repeat center / contain;
@ -10289,6 +10303,7 @@ button div.sound {
-webkit-mask: url(../../images/sound_console@svg.svg) no-repeat center /
contain;
}
button div.add {
mask: url(../../images/svg/plus.svg) no-repeat center / contain;
-webkit-mask: url(../../images/svg/plus.svg) no-repeat center / contain;

View File

@ -299,7 +299,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;
}
@ -310,11 +310,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) {
@ -456,7 +456,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',
@ -465,7 +465,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',
@ -517,7 +517,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.
@ -596,12 +596,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) {
@ -652,13 +652,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) {
@ -688,7 +688,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)) {
@ -697,7 +697,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';
@ -706,7 +706,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';
@ -716,7 +716,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';