new header and menu

Former-commit-id: 0748bc89d30e8ae4723026848d493d15d82af9cd
This commit is contained in:
Tatiana Llorente 2019-02-25 11:54:46 +01:00
parent 1f3fe51f69
commit 526311d1c6
66 changed files with 2417 additions and 1672 deletions

View File

@ -26,7 +26,7 @@ if (!$config['MR']) {
$config['MR'] = 0;
}
echo '<a class="white_bold footer" target="_blank" href="'.$config['homeurl'].$license_file.'">';
echo '<a class="footer" target="_blank" href="'.$config['homeurl'].$license_file.'">';
require_once $config['homedir'].'/include/functions_update_manager.php';
@ -40,9 +40,9 @@ if ($current_package == 0) {
echo sprintf(__('%s %s - Build %s - MR %s', get_product_name(), $pandora_version, $build_package_version, $config['MR']));
echo '</a><br />';
echo '<a class="white footer">'.__('Page generated at').' '.date($config['date_format']);
echo '</a><br /><span style="color:#eff">&reg; '.get_copyright_notice().'</span>';
echo '</a> ';
echo '<a class="footer">'.__('Page generated at').' '.date($config['date_format']);
echo '</a><br /><span>&reg; '.get_copyright_notice().'</span>';
if (isset($config['debug'])) {
$cache_info = [];

View File

@ -19,359 +19,306 @@ require_once 'include/functions_servers.php';
config_check();
?>
<table width="100%" cellpadding="0" cellspacing="0" style="margin:0px; padding:0px; margin-top: 0px; height: 100%" border="0">
<tr>
<td style="width:90%;">
<a href="index.php?sec=main">
<?php
$custom_logo = 'images/custom_logo/'.$config['custom_logo'];
if (!defined('PANDORA_ENTERPRISE')) {
$logo_title = get_product_name().' Opensource';
$custom_logo = 'images/custom_logo/pandora_logo_head_3.png';
<div id="header_table">
<div id="header_table_inner">
<?php
// ======= Alerts ===============================================
$check_minor_release_available = false;
$pandora_management = check_acl($config['id_user'], 0, 'PM');
$check_minor_release_available = db_check_minor_relase_available();
if ($check_minor_release_available) {
if (users_is_admin($config['id_user'])) {
if ($config['language'] == 'es') {
set_pandora_error_for_header('Hay una o mas revisiones menores en espera para ser actualizadas. <a style="font-size:8pt;font-style:italic;" target="blank" href="http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_es:Actualizacion#Versi.C3.B3n_7.0NG_.28_Rolling_Release_.29">'.__('Sobre actualización de revisión menor').'</a>', 'Revisión/es menor/es disponible/s');
} else {
if (file_exists(ENTERPRISE_DIR.'/'.$custom_logo)) {
$custom_logo = ENTERPRISE_DIR.'/'.$custom_logo;
}
$logo_title = get_product_name().' Enterprise';
set_pandora_error_for_header('There are one or more minor releases waiting for update. <a style="font-size:8pt;font-style:italic;" target="blank" href="http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Anexo_Upgrade#Version_7.0NG_.28_Rolling_Release_.29">'.__('About minor release update').'</a>', 'minor release/s available');
}
echo html_print_image(
$custom_logo,
true,
[
'alt' => $logo_title,
'border' => '0',
]
);
?>
</a>
</td>
<td style="min-width:200px;">
<?php
$table = new stdClass();
$table->id = 'header_table';
$table->class = 'none';
$table->cellpadding = 0;
$table->cellspacing = 0;
$table->head = [];
$table->data = [];
$table->style[0] = $table->style['clippy'] = $table->style[1] = $table->style[3] = $table->style[4] = $table->style[5] = $table->style[6] = $table->style[8] = $table->style[9] = $table->style['qr'] = 'width: 22px; text-align:center; height: 22px; padding-right: 9px;padding-left: 9px;';
$table->style[7] = 'width: 20px; padding-right: 9px;';
$table->style['searchbar'] = 'width: 180px; min-width: 180px;';
$table->style[11] = 'padding-left: 10px; padding-right: 5px;width: 16px;';
$table->width = '100%';
$table->styleTable = 'margin: auto; margin-top: 0px;';
$table->rowclass[0] = '';
$acl_head_search = true;
if ($config['acl_enterprise'] == 1 && !users_is_admin()) {
$acl_head_search = db_get_sql(
"SELECT sec FROM tusuario
INNER JOIN tusuario_perfil ON tusuario.id_user = tusuario_perfil.id_usuario
INNER JOIN tprofile_view ON tprofile_view.id_profile = tusuario_perfil.id_perfil
WHERE tusuario.id_user = '".$config['id_user']."' AND (sec = '*' OR sec = 'head_search')"
);
}
}
if ($acl_head_search) {
$table->data[0][11] = ui_print_help_tip(__('Blank characters are used as AND conditions'), true);
echo '<div id="alert_messages" style="display: none"></div>';
// Search bar
$search_bar = '<form method="get" style="display: inline;" name="quicksearch" action="">';
if (!isset($config['search_keywords'])) {
$search_bar .= '<script type="text/javascript"> var fieldKeyWordEmpty = true; </script>';
} else {
if (strlen($config['search_keywords']) == 0) {
$search_bar .= '<script type="text/javascript"> var fieldKeyWordEmpty = true; </script>';
} else {
$search_bar .= '<script type="text/javascript"> var fieldKeyWordEmpty = false; </script>';
}
}
if ($config['alert_cnt'] > 0) {
$maintenance_link = 'javascript:';
$maintenance_title = __('System alerts detected - Please fix as soon as possible');
$maintenance_class = $maintenance_id = 'show_systemalert_dialog white';
$search_bar .= '<input type="text" id="keywords" name="keywords"';
if (!isset($config['search_keywords'])) {
$search_bar .= "value='".__('Enter keywords to search')."'";
} else if (strlen($config['search_keywords']) == 0) {
$search_bar .= "value='".__('Enter keywords to search')."'";
} else {
$search_bar .= "value='".$config['search_keywords']."'";
}
$search_bar .= 'onfocus="javascript: if (fieldKeyWordEmpty) $(\'#keywords\').val(\'\');"
onkeyup="javascript: fieldKeyWordEmpty = false;"
style="margin-top:5px;" class="search_input" />';
// $search_bar .= 'onClick="javascript: document.quicksearch.submit()"';
$search_bar .= "<input type='hidden' name='head_search_keywords' value='abc' />";
$search_bar .= '</form>';
$table->data[0]['searchbar'] = $search_bar;
}
// Servers check
$servers = [];
$servers['all'] = (int) db_get_value('COUNT(id_server)', 'tserver');
$servers['up'] = (int) servers_check_status();
$servers['down'] = ($servers['all'] - $servers['up']);
if ($servers['up'] == 0) {
// All Servers down or no servers at all
$servers_check_img = html_print_image('images/header_down.png', true, ['alt' => 'cross', 'class' => 'bot', 'title' => __('All systems').': '.__('Down')]);
} else if ($servers['down'] != 0) {
// Some servers down
$servers_check_img = html_print_image('images/header_warning.png', true, ['alt' => 'error', 'class' => 'bot', 'title' => $servers['down'].' '.__('servers down')]);
$maintenance_link_open_txt = '<a href="'.$maintenance_link.'" title="'.$maintenance_title.'" class="'.$maintenance_class.'" id="show_systemalert_dialog">';
$maintenance_link_open_img = '<a href="'.$maintenance_link.'" title="'.$maintenance_title.'" class="'.$maintenance_class.'">';
$maintenance_link_close = '</a>';
if (!$pandora_management) {
$maintenance_img = '';
} else {
// All servers up
$servers_check_img = html_print_image('images/header_ready.png', true, ['alt' => 'ok', 'class' => 'bot', 'title' => __('All systems').': '.__('Ready')]);
}
unset($servers);
// Since this is the header, we don't like to trickle down variables.
$servers_link_open = '<a class="white" href="index.php?sec=gservers&amp;sec2=godmode/servers/modificar_server&amp;refr=60">';
$servers_link_close = '</a>';
if ($config['show_qr_code_header'] == 0) {
$show_qr_code_header = 'display: none;';
} else {
$show_qr_code_header = 'display: inline;';
}
$table->data[0]['qr'] = '<div style="'.$show_qr_code_header.'" id="qr_code_container" style="">'.'<a href="javascript: show_dialog_qrcode();">'.html_print_image(
'images/qrcode_icon.png',
$maintenance_img = $maintenance_link_open_img.html_print_image(
'images/header_alert_gray.png',
true,
[
'alt' => __('QR Code of the page'),
'title' => __('QR Code of the page'),
'title' => __(
'You have %d warning(s)',
$config['alert_cnt']
),
// 'id' => 'yougotalert',
'class' => 'bot',
]
).'</a>'.'</div>';
).'<p><span>'.$config['alert_cnt'].'</span></p>'.$maintenance_link_close;
}
} else {
if (!$pandora_management) {
$maintenance_img = '';
} else {
$maintenance_img = html_print_image('images/header_ready_gray.png', true, ['title' => __('There are not warnings'), 'id' => 'yougotalert', 'class' => 'bot']);
}
}
echo "<div style='display: none;' id='qrcode_container' title='".__('QR code of the page')."'>";
echo "<div id='qrcode_container_image'></div>";
echo '</div>';
?>
<script type='text/javascript'>
$(document).ready(function() {
$( "#qrcode_container" ).dialog({
autoOpen: false,
modal: true
});
});
</script>
<?php
if ($config['tutorial_mode'] !== 'expert' && !$config['disable_help']) {
$table->data[0]['clippy'] = '<a href="javascript: show_clippy();">'.html_print_image(
'images/clippy_icon.png',
true,
[
'id' => 'clippy',
'class' => 'clippy',
'alt' => __('%s assistant', get_product_name()),
'title' => __(
'%s assistant',
get_product_name()
),
]
).'</a>';
}
$header_alert = '<div id="header_alert">'.$maintenance_img.'</div>';
$table->data[0][0] = $servers_link_open.$servers_check_img.$servers_link_close;
// Messages
$msg_cnt = messages_get_count($config['id_user']);
if ($msg_cnt > 0) {
echo '<div id="dialog_messages" style="display: none"></div>';
$header_message = '<div id="header_message"><a href="ajax.php?page=operation/messages/message_list" title="'.__('Message overview').'" id="show_messages_dialog">';
$header_message .= html_print_image('images/header_email.png', true, ['title' => __('You have %d unread message(s)', $msg_cnt), 'id' => 'yougotmail', 'class' => 'bot', 'style' => 'width:24px;']);
$header_message .= '<p><span>'.$msg_cnt.'</span></p></a></div>';
}
// Chat messages
$header_chat = "<div id='header_chat'><span id='icon_new_messages_chat' style='display: none;'>";
$header_chat .= "<a href='index.php?sec=workspace&sec2=operation/users/webchat'>";
$header_chat .= html_print_image('images/header_chat_gray.png', true, ['title' => __('New chat message')]);
$header_chat .= '</a></span></div>';
// ======= Autorefresh code =============================
$autorefresh_txt = '';
$autorefresh_additional = '';
// Search
$acl_head_search = true;
if ($config['acl_enterprise'] == 1 && !users_is_admin()) {
$acl_head_search = db_get_sql(
"SELECT sec FROM tusuario
INNER JOIN tusuario_perfil ON tusuario.id_user = tusuario_perfil.id_usuario
INNER JOIN tprofile_view ON tprofile_view.id_profile = tusuario_perfil.id_perfil
WHERE tusuario.id_user = '".$config['id_user']."' AND (sec = '*' OR sec = 'head_search')"
);
}
$ignored_params = [
'agent_config' => false,
'code' => false,
];
if (!isset($_GET['sec2'])) {
$_GET['sec2'] = '';
}
if (!isset($_GET['refr'])) {
$_GET['refr'] = null;
}
$select = db_process_sql("SELECT autorefresh_white_list,time_autorefresh FROM tusuario WHERE id_user = '".$config['id_user']."'");
$autorefresh_list = json_decode($select[0]['autorefresh_white_list']);
if ($autorefresh_list !== null && array_search($_GET['sec2'], $autorefresh_list) !== false) {
$do_refresh = true;
if ($_GET['sec2'] == 'operation/agentes/pandora_networkmap') {
if ((!isset($_GET['tab'])) || ($_GET['tab'] != 'view')) {
$do_refresh = false;
}
}
if ($do_refresh) {
$autorefresh_img = html_print_image('images/header_refresh.png', true, ['class' => 'bot', 'alt' => 'lightning', 'title' => __('Configure autorefresh')]);
if ($_GET['refr']) {
$autorefresh_txt .= ' (<span id="refrcounter">'.date('i:s', $config['refr']).'</span>)';
}
$ignored_params['refr'] = '';
$values = get_refresh_time_array();
$autorefresh_additional = '<span id="combo_refr" style="display: none;">';
$autorefresh_additional .= html_print_select($values, 'ref', '', '', __('Select'), '0', true, false, false);
$autorefresh_additional .= '</span>';
unset($values);
$autorefresh_link_open_img = '<a class="white autorefresh" href="'.ui_get_url_refresh($ignored_params).'">';
if ($_GET['refr']) {
$autorefresh_link_open_txt = '<a class="white autorefresh autorefresh_txt" href="'.ui_get_url_refresh($ignored_params).'">';
} else {
$autorefresh_link_open_txt = '<a>';
}
$autorefresh_link_close = '</a>';
} else {
$autorefresh_img = html_print_image('images/header_refresh_disabled.png', true, ['class' => 'bot autorefresh_disabled', 'alt' => 'lightning', 'title' => __('Disabled autorefresh')]);
$ignored_params['refr'] = false;
$autorefresh_link_open_img = '';
$autorefresh_link_open_txt = '';
$autorefresh_link_close = '';
}
if ($acl_head_search) {
// Search bar
$search_bar = '<form method="get" style="display: inline;" name="quicksearch" action="">';
if (!isset($config['search_keywords'])) {
$search_bar .= '<script type="text/javascript"> var fieldKeyWordEmpty = true; </script>';
} else {
if (strlen($config['search_keywords']) == 0) {
$search_bar .= '<script type="text/javascript"> var fieldKeyWordEmpty = true; </script>';
} else {
$autorefresh_img = html_print_image('images/header_refresh_disabled.png', true, ['class' => 'bot autorefresh_disabled', 'alt' => 'lightning', 'title' => __('Disabled autorefresh')]);
$ignored_params['refr'] = false;
$autorefresh_link_open_img = '';
$autorefresh_link_open_txt = '';
$autorefresh_link_close = '';
$search_bar .= '<script type="text/javascript"> var fieldKeyWordEmpty = false; </script>';
}
$table->data[0][1] = $autorefresh_link_open_img.$autorefresh_img.$autorefresh_link_close;
$table->data[0][2] = $autorefresh_link_open_txt.$autorefresh_txt.$autorefresh_link_close.$autorefresh_additional;
// ======================================================
$check_minor_release_available = false;
$pandora_management = check_acl($config['id_user'], 0, 'PM');
$check_minor_release_available = db_check_minor_relase_available();
if ($check_minor_release_available) {
if (users_is_admin($config['id_user'])) {
if ($config['language'] == 'es') {
set_pandora_error_for_header('Hay una o mas revisiones menores en espera para ser actualizadas. <a style="font-size:8pt;font-style:italic;" target="blank" href="http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_es:Actualizacion#Versi.C3.B3n_7.0NG_.28_Rolling_Release_.29">'.__('Sobre actualización de revisión menor').'</a>', 'Revisión/es menor/es disponible/s');
} else {
set_pandora_error_for_header('There are one or more minor releases waiting for update. <a style="font-size:8pt;font-style:italic;" target="blank" href="http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Anexo_Upgrade#Version_7.0NG_.28_Rolling_Release_.29">'.__('About minor release update').'</a>', 'minor release/s available');
}
}
}
echo '<div id="alert_messages" style="display: none"></div>';
if ($config['alert_cnt'] > 0) {
$maintenance_link = 'javascript:';
$maintenance_title = __('System alerts detected - Please fix as soon as possible');
$maintenance_class = $maintenance_id = 'show_systemalert_dialog white';
$maintenance_link_open_txt = '<a href="'.$maintenance_link.'" title="'.$maintenance_title.'" class="'.$maintenance_class.'" id="show_systemalert_dialog">';
$maintenance_link_open_img = '<a href="'.$maintenance_link.'" title="'.$maintenance_title.'" class="'.$maintenance_class.'">';
$maintenance_link_close = '</a>';
if (!$pandora_management) {
$maintenance_img = '';
} else {
$maintenance_img = $maintenance_link_open_img.html_print_image(
'images/header_yellow.png',
true,
[
'title' => __(
'You have %d warning(s)',
$config['alert_cnt']
),
'id' => 'yougotalert',
'class' => 'bot',
]
).$maintenance_link_close;
}
} else {
if (!$pandora_management) {
$maintenance_img = '';
} else {
$maintenance_img = html_print_image('images/header_ready.png', true, ['title' => __('There are not warnings'), 'id' => 'yougotalert', 'class' => 'bot']);
}
}
$table->data[0][3] = $maintenance_img;
// Main help icon
if (!$config['disable_help']) {
$table->data[0][4] = '<a href="#" class="modalpopup" id="helpmodal">'.html_print_image(
'images/header_help.png',
true,
[
'title' => __('Main help'),
'id' => 'helpmodal',
'class' => 'modalpopup',
]
).'</a>';
}
// Logout
$table->data[0][5] = '<a class="white" href="'.ui_get_full_url('index.php?bye=bye').'">';
$table->data[0][5] .= html_print_image('images/header_logout.png', true, ['alt' => __('Logout'), 'class' => 'bot', 'title' => __('Logout')]);
$table->data[0][5] .= '</a>';
// User
if (is_user_admin($config['id_user']) == 1) {
$table->data[0][6] = html_print_image('images/header_user_admin.png', true, ['title' => __('Edit my user'), 'class' => 'bot', 'alt' => 'user']);
} else {
$table->data[0][6] = html_print_image('images/header_user.png', true, ['title' => __('Edit my user'), 'class' => 'bot', 'alt' => 'user']);
}
$table->data[0][6] = '<a href="index.php?sec=workspace&sec2=operation/users/user_edit">'.$table->data[0][6].'</a>';
$table->data[0][7] = '<a href="index.php?sec=workspace&amp;sec2=operation/users/user_edit" class="white_bold"> ('.$config['id_user'].')</a>';
// Chat messages
$table->data[0][8] = "<span id='icon_new_messages_chat' style='display: none;'>";
$table->data[0][8] .= "<a href='index.php?sec=workspace&sec2=operation/users/webchat'>";
$table->data[0][8] .= html_print_image('images/header_chat.png', true, ['title' => __('New chat message')]);
$table->data[0][8] .= '</a>';
$table->data[0][8] .= '</span>';
// Messages
$msg_cnt = messages_get_count($config['id_user']);
if ($msg_cnt > 0) {
echo '<div id="dialog_messages" style="display: none"></div>';
$table->data[0][9] = '<a href="ajax.php?page=operation/messages/message_list" title="'.__('Message overview').'" id="show_messages_dialog">';
$table->data[0][9] .= html_print_image('images/header_email.png', true, ['title' => __('You have %d unread message(s)', $msg_cnt), 'id' => 'yougotmail', 'class' => 'bot', 'style' => 'width:24px;']);
$table->data[0][9] .= '</a>';
}
html_print_table($table);
unset($table);
?>
</td>
<!--
<td style="text-align:center">
<?php
echo "<a href='index.php?sec=main'>";
if (isset($config['custom_logo'])) {
echo html_print_image('images/custom_logo/'.$config['custom_logo'], true, ['height' => '60', 'width' => '139', 'alt' => 'Logo']);
}
echo '</a>';
?>
</td>
-->
</tr>
</table>
$search_bar .= '<input type="text" id="keywords" name="keywords"';
if (!isset($config['search_keywords'])) {
$search_bar .= "value='".__('Enter keywords to search')."'";
} else if (strlen($config['search_keywords']) == 0) {
$search_bar .= "value='".__('Enter keywords to search')."'";
} else {
$search_bar .= "value='".$config['search_keywords']."'";
}
$search_bar .= 'onfocus="javascript: if (fieldKeyWordEmpty) $(\'#keywords\').val(\'\');"
onkeyup="javascript: fieldKeyWordEmpty = false;"
style="margin-top:5px;" class="search_input" />';
// $search_bar .= 'onClick="javascript: document.quicksearch.submit()"';
$search_bar .= "<input type='hidden' name='head_search_keywords' value='abc' />";
$search_bar .= '</form>';
$header_searchbar = '<div id="header_searchbar">'.ui_print_help_tip(__('Blank characters are used as AND conditions'), true);
$header_searchbar .= $search_bar.'</div>';
}
// clippy
if ($config['tutorial_mode'] !== 'expert' && !$config['disable_help']) {
$header_clippy = '<div id="header_clippy"><a href="javascript: show_clippy();">'.html_print_image(
'images/clippy_icon_gray.png',
true,
[
'id' => 'clippy',
'class' => 'clippy',
'alt' => __('%s assistant', get_product_name()),
'title' => __(
'%s assistant',
get_product_name()
),
]
).'</a></div>';
}
// Servers check
$servers = [];
$servers['all'] = (int) db_get_value('COUNT(id_server)', 'tserver');
$servers['up'] = (int) servers_check_status();
$servers['down'] = ($servers['all'] - $servers['up']);
if ($servers['up'] == 0) {
// All Servers down or no servers at all
$servers_check_img = html_print_image('images/header_down_gray.png', true, ['alt' => 'cross', 'class' => 'bot', 'title' => __('All systems').': '.__('Down')]);
} else if ($servers['down'] != 0) {
// Some servers down
$servers_check_img = html_print_image('images/header_warning_gray.png', true, ['alt' => 'error', 'class' => 'bot', 'title' => $servers['down'].' '.__('servers down')]);
} else {
// All servers up
$servers_check_img = html_print_image('images/header_ready_gray.png', true, ['alt' => 'ok', 'class' => 'bot', 'title' => __('All systems').': '.__('Ready')]);
}
unset($servers);
// Since this is the header, we don't like to trickle down variables.
$servers_link_open = '<a class="white" href="index.php?sec=gservers&amp;sec2=godmode/servers/modificar_server&amp;refr=60">';
$servers_link_close = '</a>';
$header_server = '<div id="header_server">'.$servers_link_open.$servers_check_img.$servers_link_close.'</div>';
// Main help icon
if (!$config['disable_help']) {
$header_help = '<div id="header_help"><a href="#" class="modalpopup" id="helpmodal">'.html_print_image(
'images/header_help_gray.png',
true,
[
'title' => __('Main help'),
'id' => 'helpmodal',
'class' => 'modalpopup',
]
).'</a></div>';
}
// ======= Autorefresh code =============================
$autorefresh_txt = '';
$autorefresh_additional = '';
$ignored_params = [
'agent_config' => false,
'code' => false,
];
if (!isset($_GET['sec2'])) {
$_GET['sec2'] = '';
}
if (!isset($_GET['refr'])) {
$_GET['refr'] = null;
}
$select = db_process_sql("SELECT autorefresh_white_list,time_autorefresh FROM tusuario WHERE id_user = '".$config['id_user']."'");
$autorefresh_list = json_decode($select[0]['autorefresh_white_list']);
if ($autorefresh_list !== null && array_search($_GET['sec2'], $autorefresh_list) !== false) {
$do_refresh = true;
if ($_GET['sec2'] == 'operation/agentes/pandora_networkmap') {
if ((!isset($_GET['tab'])) || ($_GET['tab'] != 'view')) {
$do_refresh = false;
}
}
if ($do_refresh) {
$autorefresh_img = html_print_image('images/header_refresh_gray.png', true, ['class' => 'bot', 'alt' => 'lightning', 'title' => __('Configure autorefresh')]);
if ($_GET['refr']) {
$autorefresh_txt .= ' (<span id="refrcounter">'.date('i:s', $config['refr']).'</span>)';
}
$ignored_params['refr'] = '';
$values = get_refresh_time_array();
$autorefresh_additional = '<span id="combo_refr" style="display: none;">';
$autorefresh_additional .= html_print_select($values, 'ref', '', '', __('Select'), '0', true, false, false);
$autorefresh_additional .= '</span>';
unset($values);
$autorefresh_link_open_img = '<a class="white autorefresh" href="'.ui_get_url_refresh($ignored_params).'">';
if ($_GET['refr']) {
$autorefresh_link_open_txt = '<a class="autorefresh autorefresh_txt" href="'.ui_get_url_refresh($ignored_params).'">';
} else {
$autorefresh_link_open_txt = '<a>';
}
$autorefresh_link_close = '</a>';
} else {
$autorefresh_img = html_print_image('images/header_refresh_disabled_gray.png', true, ['class' => 'bot autorefresh_disabled', 'alt' => 'lightning', 'title' => __('Disabled autorefresh')]);
$ignored_params['refr'] = false;
$autorefresh_link_open_img = '';
$autorefresh_link_open_txt = '';
$autorefresh_link_close = '';
}
} else {
$autorefresh_img = html_print_image('images/header_refresh_disabled_gray.png', true, ['class' => 'bot autorefresh_disabled', 'alt' => 'lightning', 'title' => __('Disabled autorefresh')]);
$ignored_params['refr'] = false;
$autorefresh_link_open_img = '';
$autorefresh_link_open_txt = '';
$autorefresh_link_close = '';
}
$header_autorefresh = '<div id="header_autorefresh">'.$autorefresh_link_open_img.$autorefresh_img.$autorefresh_link_close.'</div>';
$header_autorefresh_counter = '<div id="header_autorefresh_counter">'.$autorefresh_link_open_txt.$autorefresh_txt.$autorefresh_link_close.$autorefresh_additional.'</div>';
// qr
if ($config['show_qr_code_header'] == 0) {
$show_qr_code_header = 'display: none;';
} else {
$show_qr_code_header = 'display: inline;';
}
$header_qr = '<div id="header_qr"><div style="'.$show_qr_code_header.'" id="qr_code_container"><a href="javascript: show_dialog_qrcode();">'.html_print_image(
'images/qrcode_icon_gray.png',
true,
[
'alt' => __('QR Code of the page'),
'title' => __('QR Code of the page'),
]
).'</a></div></div>';
echo "<div style='display: none;' id='qrcode_container' title='".__('QR code of the page')."'>";
echo "<div id='qrcode_container_image'></div>";
echo '</div>';
?>
<script type='text/javascript'>
$(document).ready(function() {
$( "#qrcode_container" ).dialog({
autoOpen: false,
modal: true
});
});
</script>
<?php
// User
if (is_user_admin($config['id_user']) == 1) {
$header_user = html_print_image('images/header_user_admin_green.png', true, ['title' => __('Edit my user'), 'class' => 'bot', 'alt' => 'user']);
} else {
$header_user = html_print_image('images/header_user_green.png', true, ['title' => __('Edit my user'), 'class' => 'bot', 'alt' => 'user']);
}
$header_user = '<div id="header_user"><a href="index.php?sec=workspace&sec2=operation/users/user_edit">'.$header_user.'<span> ('.$config['id_user'].')</span></a></div>';
// Logout
$header_logout = '<div id="header_logout"><a class="white" href="'.ui_get_full_url('index.php?bye=bye').'">';
$header_logout .= html_print_image('images/header_logout_gray.png', true, ['alt' => __('Logout'), 'class' => 'bot', 'title' => __('Logout')]);
$header_logout .= '</a></div>';
echo '<div class="header_left">'.$header_alert, $header_message, $header_chat.'</div><div class="header_center">'.$header_searchbar, $header_clippy, $header_help, $header_server, $header_autorefresh, $header_autorefresh_counter, $header_qr.'</div><div class="header_right">'.$header_user, $header_logout.'</div>';
?>
</div> <!--div que cierra #table_header_inner -->
</div> <!--div que cierra #table_header -->
<script type="text/javascript">
/* <![CDATA[ */
@ -440,7 +387,7 @@ config_check();
});
function blinkmail(){
$("#yougotmail").delay(100).fadeTo(300,0.2).delay(100).fadeTo(300,1, blinkmail);
//$("#yougotmail").delay(100).fadeTo(300,0.2).delay(100).fadeTo(300,1, blinkmail);
}
function blinkalert(){
$("#yougotalert").delay(100).fadeTo(300,0.2).delay(100).fadeTo(300,1, blinkalert);

View File

@ -16,16 +16,121 @@ if (! isset($config['id_user'])) {
exit();
}
?>
<script type="text/javascript" language="javascript">
/*
Cambiar $config['classic_menu']
¿¿¿donde??? ¿donde la repeticion?
*/
var type_menu = "<?php echo $config['classic_menu']; ?>";
if(type_menu){
console.log('es clasico, mantenlo');
}
else{
console.log('es colapsado, mantenlo');
}
//Asignar por defecto colapsado !!! IMPORTANTE!!!!!!!!!!!!!!!!!!!!!!!!!
$(document).ready(function(){
var variable_boton = localStorage.getItem("variable");
document.getElementById("menu_type").innerHTML = variable_boton;
if ($('#menu_type').text() == 'colapsado' || $('#menu_type').text() == '') {
if($('#menu_type').text() == ''){
localStorage.setItem("variable", "colapsado");
document.getElementById("menu_type").innerHTML = localStorage.variable;
}
$('#menu_full').removeClass('menu_full_classic').addClass('menu_full_collapsed');
/* $('.logo_full').removeClass("logo_show").addClass("logo_hide");
$('.logo_icon').removeClass('logo_hide').addClass('logo_show'); */
$('.logo_full').css('display','none');
$('.logo_icon').css('display','block');
$('div#title_menu').removeClass('title_menu_classic').addClass('title_menu_collapsed');
$('div#page').removeClass('page_classic').addClass('page_collapsed');
$('#header_table').removeClass('header_table_classic').addClass('header_table_collapsed');
$('#button_collapse').removeClass('button_classic').addClass('button_collapsed');
$('ul.submenu').css('left', '59px');
$('li.menu_icon').removeClass("no_hidden_menu").addClass('menu_icon_collapsed');//PROBLEMA Y TB SBMENU NO HIDDEN
$('#top_btn').css('left', '0px');
}
else if ($('#menu_type').text() == 'clasico') {
$('#menu_full').removeClass('menu_full_collapsed').addClass('menu_full_classic');
/* $('.logo_icon').removeClass('logo_show').addClass('logo_hide');
$('.logo_full').removeClass("logo_hide").addClass("logo_show");*/
$('.logo_icon').css('display','none');
$('.logo_full').css('display','block');
$('div#title_menu').removeClass('title_menu_collapsed').addClass('title_menu_classic');
$('div#page').removeClass('page_collapsed').addClass('page_classic');
$('#header_table').removeClass('header_table_collapsed').addClass('header_table_classic');
$('#button_collapse').removeClass('button_collapsed').addClass('button_classic');
$('ul.submenu').css('left', '214px');
$('li.menu_icon').removeClass('menu_icon_collapsed').addClass("no_hidden_menu");
$('#top_btn').css('left', '77.5px');
}
else{
console.log('else no ha elegido aun, default-else');
localStorage.setItem("variable", "colapsado");
document.getElementById("menu_type").innerHTML = localStorage.variable;
}
});
// Set the height of the menu.
$(window).on('load', function (){
$("#menu_full").height($("#container").height());
});
// When the user scrolls down 400px from the top of the document, show the button.
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 400 || document.documentElement.scrollTop > 400) {
document.getElementById("top_btn").style.display = "block";
} else {
document.getElementById("top_btn").style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document.
function topFunction() {
document.body.scrollTop = 0; // For Safari.
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera.
}
</script>
<?php
$autohidden_menu = 0;
if (isset($config['autohidden_menu']) && $config['autohidden_menu']) {
$autohidden_menu = 1;
}
$menu_container_id = '';
// Menu container prepared to autohide menu
echo '<div id="'.$menu_container_id.'">';
echo '<div id="menu_full">';
echo '<div class="logo_green"><a href="index.php?sec=main">';
if (isset($config['custom_logo'])) {
echo html_print_image('images/custom_logo/'.$config['custom_logo'], true, ['border' => '0', 'width' => '215', 'alt' => 'Logo', 'class' => 'logo_full']);
}
if (isset($config['custom_logo_collapsed'])) {
echo html_print_image('images/custom_logo/'.$config['custom_logo_collapsed'], true, ['border' => '0', 'width' => '60', 'alt' => 'Logo', 'class' => 'logo_icon']);
}
echo '</a></div>';
// echo '<div class="tit bg titop">:: '.__('Operation').' ::</div>';
require 'operation/menu.php';
@ -45,6 +150,15 @@ if (check_acl($config['id_user'], 0, 'AW')
require 'godmode/menu.php';
echo '<div id="button_collapse" class="button_collapse"></div>';
echo '<div id="menu_type" class="invisible"></div>';
echo '<button onclick="topFunction()" id="top_btn" title="Go to top"></button>';
/*
echo '<form method="post"><button type="button" id="button_collapse" class="button_collapse">BOTON</button>';
html_print_input_hidden('button_collapse', 1);
echo '</form>';
*/
// require ("links_menu.php");
echo '</div>';
// menu_container
@ -64,6 +178,66 @@ if (isset($config['fixed_header'])) {
<script type="text/javascript" language="javascript">
/* <![CDATA[ */
//var classic_menu;
//$(document).ready(function(){
$('#button_collapse').on('click', function() {
/*
var elem = document.getElementById('button_collapse');
elem.className = elem.className.replace('button_collapse', 'cambiar');
*/
if($('#menu_full').hasClass('menu_full_classic')){
localStorage.setItem("variable", "colapsado");
//$('#button_collapse').css('color','pink');
document.getElementById("menu_type").innerHTML = localStorage.variable;
$('ul.submenu').css('left', '59px');//hacer que esto se haga aqui
$('#top_btn').css('left', '0px');
}
else if($('#menu_full').hasClass('menu_full_collapsed')){
localStorage.setItem("variable", "clasico");
//$('#button_collapse').css('color','blue');
document.getElementById("menu_type").innerHTML = localStorage.variable;
$('ul.submenu').css('left', '214px');//hacer que esto se haga aqui
$('#top_btn').css('left', '77.5px');
}
else{
console.log('else');
}
/* $('.logo_full').toggleClass("logo_show logo_hide");
$('.logo_icon').toggleClass('logo_hide logo_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");
console.log('entra click');
console.log(localStorage.variable);
/*
if ($('#button_collapse').text() == 'clasico') {
classic_menu = true;
}
else {
classic_menu = false;
}
console.log('aqui comprueba click, y si el menu no ha cambiado, no deberia recargar todo');
console.log(classic_menu);
*/
});
//});
var autohidden_menu = <?php echo $autohidden_menu; ?>;
var fixed_menu = <?php echo json_encode((bool) $config_fixed_menu); ?>;
var fixed_header = <?php echo json_encode((bool) $config_fixed_header); ?>;
@ -71,18 +245,26 @@ 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 classic_menu = parseInt("<?php echo $config['classic_menu']; ?>");
//var classic_menu = parseInt("<?php echo $config['classic_menu']; ?>");
if ((isNaN(classic_menu)) || (classic_menu == 0)) {
classic_menu = false;
}
else {
//if ((isNaN(classic_menu)) || (classic_menu == 0)) {
//f(localStorage.variable == 'clasico'){
/*
if ($('#button_collapse').text() == 'clasico') {
classic_menu = true;
}
else {
classic_menu = false;
}
console.log('aqui comprueba si es classic_menu');
console.log(classic_menu);
*/
/*
if (classic_menu) {
autohidden_menu = 1;
}
*/
var menuState = $.cookie(cookie_name_encoded);
if (!menuState) {
@ -110,8 +292,28 @@ function close_submenus () {
}
$(document).ready( function() {
// repeticion de if
var classic_menu;
if ($('#menu_type').text() == 'clasico') {
classic_menu = true;
<?php $config['classic_menu'] = true; ?>
}
else {
classic_menu = false;
<?php $config['classic_menu'] = false; ?>
}
console.log('aqui comprueba repeticion ');
console.log(classic_menu);
// fin repeticion de if
//Daniel maya 02/06/2016 Fixed menu position--INI
if (fixed_menu) {
/* if (fixed_menu) {
$('div#menu')
.css('position', 'fixed')
.css('z-index', '9000')
@ -126,201 +328,137 @@ $(document).ready( function() {
.css('z-index', '9000')
.css('top','80px')
$('#menu_tab_frame_view').css('margin-top','20px')
}
//Daniel maya 02/06/2016 Fixed menu position--END
/*
$("img.toggle").click (function (e) {
//In case the links gets activated, we don't want to follow link
e.preventDefault();
var menuItem = $(this).parent();
var submenu = menuItem.children("ul");
}*/
if (submenu.is(":visible")) {
submenu.slideUp();
if (typeof menuState[menuItem.attr('id')] != 'undefined')
delete menuState[menuItem.attr('id')];
}
else {
submenu.slideDown();
//console.log(click_display);
menuState[menuItem.attr('id')] = 1;
}
$.cookie(cookie_name_encoded, JSON.stringify(menuState), {expires: 7});
});
//Cerrar aqui los comentarios cuando esté el menu terminado
if (fixed_menu) {
$('div#menu')
.css('position', 'fixed')
.css('z-index', '9000')
.css('left', '0')
.css('top', $('div#head').innerHeight() + 'px')
.css('height', '100%')
.css('overflow', 'hidden')
.hover(function (e) {
if (!autohidden_menu) {
$(this).css('overflow', 'auto').children('div').css('width', 'auto');
}
}, function (e) {
if (!autohidden_menu) {
$(this).css('overflow', 'hidden').children('div').css('width', '100%');
}
})
.children('div')
.css('margin-bottom', $('div#head').innerHeight() + 'px');
if (!fixed_header) {
$(window).scroll(function () {
if ($(this).scrollTop() <= $('div#head').innerHeight()) {
$('div#menu').css('top', $('div#head').innerHeight() - $(this).scrollTop() + 'px' );
} else {
$('div#menu').css('top', '0');
}
});
}
}
function show_menu () {
$('#menu_container').animate({"left": "+=80px"}, 200, function () {
if (fixed_menu) {
$('#menu_container').parent().css('overflow', 'auto');
}
});
//show_menu_pretty();
}
function show_menu_pretty() {
open_submenus();
$('div.menu ul li').css('background-position', '');
$('ul.submenu li a, li.menu_icon a, li.links a, div.menu>ul>li>img.toggle').show();
$('.titop').css('color', 'white');
$('.bg3').css('color', 'white');
$('.bg4').css('color', 'white');
}
function hide_menu () {
if (fixed_menu) {
$('#menu_container').parent().css('overflow', 'hidden');
}
$('#menu_container').animate({"left": "-=80px"}, 100);
//hide_menu_pretty();
}
function hide_menu_pretty() {
close_submenus();
$('div.menu li').css('background-position', '85px 5px');
$('ul.submenu li a, li.menu_icon a, li.links a, div.menu>ul>li>img.toggle').hide();
$('.titop').css('color', $('.titop').css('background-color'));
$('.bg3').css('color', $('.bg3').css('background-color'));
$('.bg4').css('color', $('.bg4').css('background-color'));
}
*/
if (autohidden_menu) {
//handlerIn, handlerOut);
//openTime = 0;
//handsIn = 0;
//$('#main').css('margin-left', '50px');
//hide_menu_pretty();
/*
$('#menu').hover(function() {
handsIn = 1;
if (openTime == 0) {
show_menu();
openTime = new Date().getTime();
}
}).mouseleave(function() {
handsIn = 0;
setTimeout(function() {
openedTime = new Date().getTime() - openTime;
if(openedTime > 3000 && handsIn == 0) {
hide_menu();
openTime = 0;
}
}, 3500);
});
*/
// if (autohidden_menu) {
handsInMenu = 0;
openTimeMenu = 0;
if (classic_menu) {
$('div#title_menu').show();
//$('div#title_menu').show();
handsInMenu = 1;
openTimeMenu = new Date().getTime();
$('#menu').css('width', '145px');
/*$('#menu').css('width', '145px');
$('#menu').css('position', 'block');
$('div#menu').css('top', '80px');
$('li.menu_icon').addClass( " no_hidden_menu" );
$('ul.submenu').css('left', '144px');
$('#menu').mouseleave(function() {
$('li.menu_icon').removeClass('menu_icon_collapsed').addClass("no_hidden_menu");*/
/*$('ul.submenu').css('left', '214px');*/
/* $('#menu_full').css('width','215px');
$('.button_collapse').css('width','215px');
$('div#page').addClass('page_classic');
$('#header_table').addClass('header_table_classic'); */
console.log('a (es clasico)');
/*$('#menu').mouseleave(function() {
handsInMenu = 0;
setTimeout(function() {
openedMenu = new Date().getTime() - openTimeMenu;
if(openedMenu > 1000 && handsInMenu == 0) {
$('#menu').css('width', '145px');
$('#menu').css('position', 'block');
$('li.menu_icon').addClass( " no_hidden_menu" );
$('ul.submenu').css('left', '144px');
}
/* $('#menu').css('width', '145px');
$('#menu').css('position', 'block');*/
/* console.log('a');
console.log(classic_menu);
/* $('li.menu_icon').removeClass('menu_icon_collapsed').addClass("no_hidden_menu");*/
/* $('ul.submenu').css('left', '214px');
/* $('#menu_full').css('width','215px');
$('.button_collapse').css('width','215px');
$('div#page').addClass('page_classic');
$('#header_table').addClass('header_table_classic');*/
/* }
}, 2500);
});
});*/
}
else {
//NO ES CLASSIC MENU
if(!click_display){
$('#menu').mouseenter(function() {
$('div#title_menu').show();
// $('div#title_menu').show();
handsInMenu = 1;
openTimeMenu = new Date().getTime();
$('#menu').css('width', '145px');
$('li.menu_icon').addClass( " no_hidden_menu" );
$('li.menu_icon').find('li').addClass( " no_hidden_menu" );
$('ul.submenu').css('left', '144px');
/*$('#menu').css('width', '145px');*/
console.log('b (collapsed)');
/* $('li.menu_icon').removeClass('menu_icon_collapsed').addClass("no_hidden_menu");*/
$('li.menu_icon').find('li').addClass("no_hidden_menu");
/*$('ul.submenu').css('left', '214px');*/
/*$('#menu_full').css('width','215px');
$('.button_collapse').css('width','215px');
$('div#page').addClass('page_classic');
$('#header_table').addClass('header_table_classic'); */
}).mouseleave(function() {
handsInMenu = 0;
setTimeout(function() {
openedMenu = new Date().getTime() - openTimeMenu;
if(openedMenu > 1000 && handsInMenu == 0) {
$('#menu').css('width', '45px');
$('li.menu_icon').removeClass( " no_hidden_menu");
console.log('c (collapsed)');
/* $('#menu').css('width', '45px');
$('li.menu_icon').removeClass("no_hidden_menu").addClass('menu_icon_collapsed');*/
$('li.menu_icon').find('li').removeClass( " no_hidden_menu" );
$('ul.submenu').css('left', '44px');
$('div#title_menu').hide();
/* $('ul.submenu').css('left', '44px');*/
//$('div#title_menu').hide();
}
}, 2500);
});
}else{
$(document).ready(function() {
$('#menu').on("click", function() {
$('div#title_menu').show();
//$('div#title_menu').show();
handsInMenu = 1;
openTimeMenu = new Date().getTime();
$('#menu').css('width', '145px');
$('li.menu_icon').addClass( " no_hidden_menu" );
$('li.menu_icon').find('li').addClass( " no_hidden_menu" );
$('ul.submenu').css('left', '144px');
}).mouseleave(function() {
/* $('#menu').css('width', '145px');*/
console.log('d (collapsed)');
/* $('li.menu_icon').removeClass('menu_icon_collapsed').addClass("no_hidden_menu");*/
$('li.menu_icon').find('li').addClass("no_hidden_menu");
/* $('ul.submenu').css('left', '44px');*/
/* $('#menu_full').css('width','215px');
$('.button_collapse').css('width','215px');
$('div#page').addClass('page_classic');
$('#header_table').addClass('header_table_classic'); */
})
.mouseleave(function() {
handsInMenu = 0;
setTimeout(function() {
openedMenu = new Date().getTime() - openTimeMenu;
if(openedMenu > 1000 && handsInMenu == 0) {
$('#menu').css('width', '45px');
$('li.menu_icon').removeClass( " no_hidden_menu");
console.log('e (collapsed)');
/* $('#menu').css('width', '45px');
$('li.menu_icon').removeClass("no_hidden_menu").addClass('menu_icon_collapsed');*/
$('li.menu_icon').find('li').removeClass( " no_hidden_menu" );
$('ul.submenu').css('left', '44px');
$('div#title_menu').hide();
/* $('ul.submenu').css('left', '44px');*/
//$('div#title_menu').hide();
}
}, 5500);
});
});
}
}
}
/* }
else {
$('div#title_menu').hide();
if(!click_display){
$('#menu').mouseenter(function() {
handsInMenu = 1;
openTimeMenu = new Date().getTime();
$('ul.submenu').css('left', '44px');
}).mouseleave(function() {
handsInMenu = 0;
setTimeout(function() {
openedMenu = new Date().getTime() - openTimeMenu;
if(openedMenu > 1000 && handsInMenu == 0) {
console.log('f');
$('li.menu_icon').removeClass("no_hidden_menu").addClass('menu_icon_collapsed');
$('li.menu_icon').find('li').removeClass( " no_hidden_menu" );
$('ul.submenu').css('left', '44px');
}
}, 2500);
});
}
}
}
}
}
}
}
}*/
});
/* ]]> */
</script>
@ -348,7 +486,7 @@ $(document).ready( function() {
opened = new Date().getTime() - openTime;
if(opened > 3000 && handsIn == 0) {
openTime = 4000;
$("ul#sub"+table_hover[0].id).hide();
$("ul#sub"+table_noHover[0].id).hide(); //table_hover
}
}, 2500);
});
@ -371,7 +509,7 @@ $(document).ready( function() {
opened = new Date().getTime() - openTime;
if(opened > 5000 && handsIn == 0) {
openTime = 6000;
$("ul#sub"+table_hover[0].id).hide();
$("ul#sub"+table_noHover[0].id).hide(); //table_hover
}
}, 5500);
});
@ -389,7 +527,7 @@ $(document).ready( function() {
});
}
- $('.has_submenu').mouseenter(function() {
$('.has_submenu').mouseenter(function() {
table_hover2 = $(this);
handsIn2 = 1;
openTime2 = new Date().getTime();
@ -410,7 +548,9 @@ $(document).ready( function() {
});
$(document).ready(function() {
if (!classic_menu) {
// if (!classic_menu) {
//Daniel maya 02/06/2016 Display menu with click --INI
if(!click_display){
$('#container').click(function() {
@ -419,10 +559,11 @@ $(document).ready( function() {
$("ul#sub"+table_hover[0].id).hide();
if( typeof(table_hover2) != 'undefined')
$("ul#sub"+table_hover2[0].id).hide();
$('#menu').css('width', '45px');
$('li.menu_icon').removeClass( " no_hidden_menu");
$('ul.submenu').css('left', '44px');
$('div#title_menu').hide();
/* $('#menu').css('width', '45px');
$('li.menu_icon').removeClass("no_hidden_menu").addClass('menu_icon_collapsed');
$('ul.submenu').css('left', '44px');*/
//$('div#title_menu').hide();
console.log('m (collapsed)');
});
}else{
$('#main').click(function() {
@ -431,14 +572,15 @@ $(document).ready( function() {
$("ul#sub"+table_hover[0].id).hide();
if( typeof(table_hover2) != 'undefined')
$("ul#sub"+table_hover2[0].id).hide();
$('#menu').css('width', '45px');
$('li.menu_icon').removeClass( " no_hidden_menu");
$('ul.submenu').css('left', '44px');
$('div#title_menu').hide();
/*$('#menu').css('width', '45px');
$('li.menu_icon').removeClass("no_hidden_menu").addClass('menu_icon_collapsed');
$('ul.submenu').css('left', '44px');*/
// $('div#title_menu').hide();
console.log('n (collapsed)');
});
}
//Daniel maya 02/06/2016 Display menu with click --END
}
/* }
else {
if(!click_display){
$('#container').click(function() {
@ -447,8 +589,13 @@ $(document).ready( function() {
$("ul#sub"+table_hover[0].id).hide();
if( typeof(table_hover2) != 'undefined')
$("ul#sub"+table_hover2[0].id).hide();
$('#menu').css('width', '145px');
$('ul.submenu').css('left', '144px');
/*$('#menu').css('width', '145px');*/
/* $('ul.submenu').css('left', '214px');
$('#menu_full').css('width','215px');
$('.button_collapse').css('width','215px');
$('div#page').addClass('page_classic');
$('#header_table').addClass('header_table_classic'); */
/* console.log('o (es clasico)');
});
}else{
$('#main').click(function() {
@ -457,20 +604,26 @@ $(document).ready( function() {
$("ul#sub"+table_hover[0].id).hide();
if( typeof(table_hover2) != 'undefined')
$("ul#sub"+table_hover2[0].id).hide();
$('#menu').css('width', '145px');
$('ul.submenu').css('left', '144px');
/*$('#menu').css('width', '145px');*/
/* $('ul.submenu').css('left', '214px');
$('#menu_full').css('width','215px');
$('.button_collapse').css('width','215px');
$('div#page').addClass('page_classic');
$('#header_table').addClass('header_table_classic'); */
/* console.log('p (es clasico)');
});
}
}
}*/
if (classic_menu) {
// if (classic_menu) {
$('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();
$('ul.submenu').css('left', '144px');
/* $('ul.submenu').css('left', '214px');*/
console.log('q (es clasico)');
});
$('div.menu>ul>li>ul>li>ul>li>a').click(function() {
@ -479,9 +632,10 @@ $(document).ready( function() {
$("ul#sub"+table_hover[0].id).hide();
if( typeof(table_hover2) != 'undefined')
$("ul#sub"+table_hover2[0].id).hide();
$('ul.submenu').css('left', '144px');
/*$('ul.submenu').css('left', '214px');*/
console.log('r (es clasico)');
});
}
/* }
else {
$('div.menu>ul>li>ul>li>a').click(function() {
openTime = 4000;
@ -489,10 +643,11 @@ $(document).ready( function() {
$("ul#sub"+table_hover[0].id).hide();
if( typeof(table_hover2) != 'undefined')
$("ul#sub"+table_hover2[0].id).hide();
$('#menu').css('width', '45px');
$('li.menu_icon').removeClass( " no_hidden_menu");
$('ul.submenu').css('left', '44px');
$('div#title_menu').hide();
/*$('#menu').css('width', '45px');
$('li.menu_icon').removeClass("no_hidden_menu").addClass('menu_icon_collapsed');
$('ul.submenu').css('left', '44px');*/
//$('div#title_menu').hide();
/* console.log('s (no es clasico)');
});
$('div.menu>ul>li>ul>li>ul>li>a').click(function() {
@ -501,12 +656,13 @@ $(document).ready( function() {
$("ul#sub"+table_hover[0].id).hide();
if( typeof(table_hover2) != 'undefined')
$("ul#sub"+table_hover2[0].id).hide();
$('#menu').css('width', '45px');
$('li.menu_icon').removeClass( " no_hidden_menu");
$('ul.submenu').css('left', '44px');
$('div#title_menu').hide();
/* $('#menu').css('width', '45px');
$('li.menu_icon').removeClass("no_hidden_menu").addClass('menu_icon_collapsed');
$('ul.submenu').css('left', '44px');*/
// $('div#title_menu').hide();
/* console.log('t (no es clasico)');
});
}
}*/
});

View File

@ -54,6 +54,7 @@ if (check_acl($config['id_user'], 0, 'AW')) {
}
}
$menu_godmode['nuevo_texto']['text'] = __('nuevo_texto');
if (!empty($sub)) {
$menu_godmode['gagente']['text'] = __('Resources');
$menu_godmode['gagente']['sec2'] = 'godmode/agentes/modificar_agente';

View File

@ -227,45 +227,65 @@ $table_styles->data[$row][1] = html_print_select(
$table_styles->data[$row][1] .= '&nbsp;'.html_print_button(__('View'), 'login_background_preview', false, '', 'class="sub camera logo_preview"', true);
$row++;
$table_styles->data[$row][0] = __('Custom logo (header)').ui_print_help_icon('custom_logo', true);
if (enterprise_installed()) {
$ent_files = list_files('enterprise/images/custom_logo', 'png', 1, 0);
$open_files = list_files('images/custom_logo', 'png', 1, 0);
$table_styles->data[$row][1] = html_print_select(
array_merge($ent_files, $open_files),
'custom_logo',
$config['custom_logo'],
'',
'',
'',
true,
false,
true,
'',
$open,
'width:240px'
);
} else {
$table_styles->data[$row][1] = html_print_select(
list_files('images/custom_logo', 'png', 1, 0),
'custom_logo',
$config['custom_logo'],
'',
'',
'',
true,
false,
true,
'',
$open,
'width:240px'
);
/**
* Print a select for the custom logos.
*
* @param string $name This is the name for the select
* @param string $logo This is the option in $config (path)
* @return string Print the select
*/
function logo_custom_enterprise($name, $logo)
{
if (enterprise_installed()) {
$ent_files = list_files('enterprise/images/custom_logo', 'png', 1, 0);
$open_files = list_files('images/custom_logo', 'png', 1, 0);
$select = html_print_select(
array_merge($ent_files, $open_files),
$name,
$logo,
'',
'',
'',
true,
false,
true,
'',
$open,
'width:240px'
);
return $select;
} else {
$select = html_print_select(
list_files('images/custom_logo', 'png', 1, 0),
$name,
$logo,
'',
'',
'',
true,
false,
true,
'',
$open,
'width:240px'
);
return $select;
}
}
$table_styles->data[$row][0] = __('Custom logo (header)').ui_print_help_icon('custom_logo', true);
$table_styles->data[$row][1] = logo_custom_enterprise('custom_logo', $config['custom_logo']);
$table_styles->data[$row][1] .= '&nbsp;'.html_print_button(__('View'), 'custom_logo_preview', $open, '', 'class="sub camera logo_preview"', true, false, $open, 'visualmodal');
$row++;
$table_styles->data[$row][0] = __('Custom logo collapsed (header)').ui_print_help_icon('custom_logo_collapsed', true);
$table_styles->data[$row][1] = logo_custom_enterprise('custom_logo_collapsed', $config['custom_logo_collapsed']);
$table_styles->data[$row][1] .= '&nbsp;'.html_print_button(__('View'), 'custom_logo_collapsed_preview', $open, '', 'class="sub camera logo_preview"', true, false, $open, 'visualmodal');
$row++;
$table_styles->data[$row][0] = __('Custom logo (header white background)');
if (enterprise_installed()) {
$ent_files = list_files('enterprise/images/custom_logo', 'png', 1, 0);
@ -1234,7 +1254,7 @@ html_print_submit_button(__('Update'), 'update_button', false, 'class="sub upd"'
echo '</div>';
echo '</form>';
ui_require_css_file('color-picker','include/styles/js/');
ui_require_css_file('color-picker', 'include/styles/js/');
ui_require_jquery_file('colorpicker');
@ -1470,6 +1490,11 @@ $(".logo_preview").click (function(e) {
icon_path = homeUrlEnt + "images/custom_logo/" + icon_name;
options.grayed = true;
break;
case 'button-custom_logo_collapsed_preview':
icon_name = $("select#custom_logo_collapsed option:selected").val();
icon_path = homeUrlEnt + "images/custom_logo/" + icon_name;
options.grayed = true;
break;
case 'button-custom_logo_white_bg_preview':
icon_name = $("select#custom_logo_white_bg option:selected").val();
icon_path = homeUrlEnt + "images/custom_logo/" + icon_name;

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 759 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 485 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 490 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

View File

@ -836,6 +836,10 @@ function config_update_config()
$error_update[] = __('Custom logo');
}
if (!config_update_value('custom_logo_collapsed', (string) get_parameter('custom_logo_collapsed'))) {
$error_update[] = __('Custom logo collapsed');
}
if (!config_update_value('custom_logo_white_bg', (string) get_parameter('custom_logo_white_bg'))) {
$error_update[] = __('Custom logo white background');
}
@ -1750,7 +1754,11 @@ function config_process_config()
}
if (!isset($config['custom_logo'])) {
config_update_value('custom_logo', 'pandora_logo_head_4.png');
config_update_value('custom_logo', 'pandora_logo_head_green.png');
}
if (!isset($config['custom_logo_collapsed'])) {
config_update_value('custom_logo_collapsed', 'pandora_logo_green_collapsed.png');
}
if (!isset($config['custom_logo_white_bg'])) {

View File

@ -377,7 +377,7 @@ function menu_print_menu(&$menu)
$length = strlen(__($main['text']));
$padding_top = ( $length >= 18) ? 6 : 12;
$output .= '<div id="title_menu" style="color:#FFF; padding-top:'.$padding_top.'px; display:none;">'.$main['text'].'</div>';
$output .= '<div id="title_menu" style="padding-top:'.$padding_top.'px; display:none;">'.$main['text'].'</div>';
// Add the notification ball if defined
if (isset($main['notification'])) {
$output .= '<div class="notification_ball">'.$main['notification'].'</div>';

View File

@ -16,6 +16,11 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
.operation .menu_icon ul.submenu > li,
.godmode .menu_icon ul.submenu > li {
background-color: #282828;
}
.menu {
border-width: 0px 0px 0px 0px;
border-style: none;
@ -34,8 +39,8 @@
}
.menu li a {
color: #FFFFFF;
text-decoration:none;
color: #ffffff;
text-decoration: none;
}
li:hover ul {
@ -43,10 +48,12 @@ li:hover ul {
}
.submenu_text {
padding: 10.5px;
margin-left: 0px;
width: 100%;
color: #fff;
padding: 10.5px;
margin-left: 0px;
width: 100%;
color: #91a2a7;
font-family: "Open Sans", sans-serif;
font-size: 10pt;
}
.menu li.subselected a {
@ -61,7 +68,7 @@ li:hover ul {
margin: 0px 0px 0px 0px;
position: absolute;
z-index: 999;
left: 44px;
/*left: 44px;*/
min-height: 35px;
height: 35px;
width: 180px;
@ -78,9 +85,10 @@ li:hover ul {
height: 35px;
width: 180px;
font-weight: normal !important;
background-color: #202020;
}
.sub_subMenu.selected {
font-weight: bold !important;
font-weight: 600 !important;
}
.submenu2 li a {
@ -117,6 +125,18 @@ li:hover ul {
margin-bottom: 0px !important;
box-shadow: inset 4px 0 #80ba27 !important;
}
.selected.submenu_selected {
background-color: #202020 !important;
}
li.submenu_selected.selected {
background-color: #202020 !important;
font-weight: 600;
}
li.sub_subMenu.selected {
background-color: #161616 !important;
}
.menu .menu_icon,
.menu li.links {
@ -132,21 +152,21 @@ li:hover ul {
/* Icons specified here */
#icon_oper-networkconsole {
background: url(../../images/op_network.menu.png) no-repeat 50% 50%;
background: url(../../images/op_network.menu_gray.png) no-repeat;
}
#icon_oper-agents {
border-top-right-radius: 5px;
border-right-style: solid;
border-right-width: 0px;
background: url(../../images/op_monitoring.menu.png) no-repeat 50% 50%;
background: url(../../images/op_monitoring.menu_gray.png) no-repeat;
}
#icon_oper-events {
background: url(../../images/op_events.menu.png) no-repeat 50% 50%;
background: url(../../images/op_events.menu_gray.png) no-repeat;
}
/* users */
#icon_oper-users {
background: url(../../images/op_workspace.menu.png) no-repeat 50% 50%;
background: url(../../images/op_workspace.menu_gray.png) no-repeat;
}
/* trap console */
#icon_oper-snmpc,
@ -154,7 +174,7 @@ li:hover ul {
background: url(../../images/op_snmp.menu.png) no-repeat 50% 50%;
}
#icon_oper-reporting {
background: url(../../images/op_reporting.menu.png) no-repeat 50% 50%;
background: url(../../images/op_reporting.menu_gray.png) no-repeat;
}
#icon_oper-gismaps {
background: url(../../images/op_gis.menu.png) no-repeat 50% 50%;
@ -163,45 +183,43 @@ li:hover ul {
background: url(../../images/op_netflow.menu.png) no-repeat 50% 50%;
}
#icon_oper-extensions {
background: url(../../images/extensions.menu.png) no-repeat 50% 50%;
background: url(../../images/extensions.menu_gray.png) no-repeat;
}
/* Godmode images */
#icon_god-resources {
background: url(../../images/gm_resources.menu.png) no-repeat 50% 50%;
background: url(../../images/gm_resources.menu_gray.png) no-repeat;
}
#icon_god-configuration {
background: url(../../images/gm_configuration.menu.png) no-repeat 50% 50%;
background: url(../../images/gm_configuration.menu_gray.png) no-repeat;
}
#icon_god-alerts {
background: url(../../images/gm_alerts.menu.png) no-repeat 50% 50%;
background: url(../../images/gm_alerts.menu_gray.png) no-repeat;
}
#icon_god-users {
background: url(../../images/gm_users.menu.png) no-repeat 50% 50%;
background: url(../../images/gm_users.menu_gray.png) no-repeat;
}
#icon_god-reporting {
background: url(../../images/reporting_edit.menu.png) no-repeat 50% 50%;
}
#icon_god-servers {
background: url(../../images/gm_servers.menu.png) no-repeat 50% 50%;
background: url(../../images/gm_servers.menu_gray.png) no-repeat;
}
#icon_god-setup {
background: url(../../images/gm_setup.menu.png) no-repeat 50% 50%;
background: url(../../images/gm_setup.menu_gray.png) no-repeat;
}
#icon_god-events {
background: url(../../images/gm_events.menu.png) no-repeat 50% 50%;
background: url(../../images/gm_events.menu_gray.png) no-repeat;
}
#icon_god-extensions {
background: url(../../images/builder.menu.png) no-repeat 50% 50%;
background: url(../../images/builder.menu_gray.png) no-repeat;
}
#icon_god-links {
border-top: 4px solid #777 !important;
border-color: #777;
background: url(../../images/links.menu.png) no-repeat 50% 50%;
background: url(../../images/links.menu_gray.png) no-repeat;
}
#icon_god-um_messages {
border-color: #777;
background: url(../../images/um_messages.menu.png) no-repeat 50% 50%;
background: url(../../images/um_messages.menu_gray.png) no-repeat;
}
#menu_container {
@ -258,95 +276,90 @@ ul li a:hover {
} /* Hover Styles */
/*li ul li a { padding: 2px 5px; } Sub Menu Styles */
/*
* ---------------------------------------------------------------------
* - MAIN LEFT MENU and SUBMENU -
* ---------------------------------------------------------------------
*/
.menu li.selected {
font-weight: bold;
.menu_icon {
transition-property: background-color;
transition-duration: 0.5s;
transition-timing-function: ease-out;
-webkit-transition-property: background-color;
-webkit-transition-duration: 0.5s;
-webkit-transition-timing-function: ease-out;
-moz-transition-property: background-color;
-moz-transition-duration: 0.5s;
-moz-transition-timing-function: ease-out;
-o-transition-property: background-color;
-o-transition-duration: 0.5s;
-o-transition-timing-function: ease-out;
}
.menu_icon{
transition-property: background-color;
transition-duration: 0.5s;
transition-timing-function: ease-out;
-webkit-transition-property: background-color;
-webkit-transition-duration: 0.5s;
-webkit-transition-timing-function: ease-out;
-moz-transition-property: background-color;
-moz-transition-duration: 0.5s;
-moz-transition-timing-function: ease-out;
-o-transition-property: background-color;
-o-transition-duration: 0.5s;
-o-transition-timing-function: ease-out;
.menu_icon:hover {
transition-property: background-color;
transition-duration: 0.5s;
transition-timing-function: ease-out;
-webkit-transition-property: background-color;
-webkit-transition-duration: 0.5s;
-webkit-transition-timing-function: ease-out;
-moz-transition-property: background-color;
-moz-transition-duration: 0.5s;
-moz-transition-timing-function: ease-out;
-o-transition-property: background-color;
-o-transition-duration: 0.5s;
-o-transition-timing-function: ease-out;
background-color: #282828 !important;
}
.menu_icon:hover{
transition-property: background-color;
transition-duration: 0.5s;
transition-timing-function: ease-out;
-webkit-transition-property: background-color;
-webkit-transition-duration: 0.5s;
-webkit-transition-timing-function: ease-out;
-moz-transition-property: background-color;
-moz-transition-duration: 0.5s;
-moz-transition-timing-function: ease-out;
-o-transition-property: background-color;
-o-transition-duration: 0.5s;
-o-transition-timing-function: ease-out;
background-color: #585858 !important;
.submenu_not_selected:hover {
transition-property: background-color;
transition-duration: 0.5s;
transition-timing-function: ease-out;
-webkit-transition-property: background-color;
-webkit-transition-duration: 0.5s;
-webkit-transition-timing-function: ease-out;
-moz-transition-property: background-color;
-moz-transition-duration: 0.5s;
-moz-transition-timing-function: ease-out;
-o-transition-property: background-color;
-o-transition-duration: 0.5s;
-o-transition-timing-function: ease-out;
background-color: #202020 !important;
}
.submenu_not_selected:hover{
transition-property: background-color;
transition-duration: 0.5s;
transition-timing-function: ease-out;
-webkit-transition-property: background-color;
-webkit-transition-duration: 0.5s;
-webkit-transition-timing-function: ease-out;
-moz-transition-property: background-color;
-moz-transition-duration: 0.5s;
-moz-transition-timing-function: ease-out;
-o-transition-property: background-color;
-o-transition-duration: 0.5s;
-o-transition-timing-function: ease-out;
background-color: #585858 !important;
.submenu_selected:hover {
background-color: #202020 !important;
}
.submenu_selected:hover{
background-color: #585858 !important;
.sub_subMenu {
transition-property: background-color;
transition-duration: 0.5s;
transition-timing-function: ease-out;
-webkit-transition-property: background-color;
-webkit-transition-duration: 0.5s;
-webkit-transition-timing-function: ease-out;
-moz-transition-property: background-color;
-moz-transition-duration: 0.5s;
-moz-transition-timing-function: ease-out;
-o-transition-property: background-color;
-o-transition-duration: 0.5s;
}
.sub_subMenu{
transition-property: background-color;
transition-duration: 0.5s;
transition-timing-function: ease-out;
-webkit-transition-property: background-color;
-webkit-transition-duration: 0.5s;
-webkit-transition-timing-function: ease-out;
-moz-transition-property: background-color;
-moz-transition-duration: 0.5s;
-moz-transition-timing-function: ease-out;
-o-transition-property: background-color;
-o-transition-duration: 0.5s;
}
.sub_subMenu:hover{
transition-property: background-color;
transition-duration: 0.5s;
transition-timing-function: ease-out;
-webkit-transition-property: background-color;
-webkit-transition-duration: 0.5s;
-webkit-transition-timing-function: ease-out;
-moz-transition-property: background-color;
-moz-transition-duration: 0.5s;
-moz-transition-timing-function: ease-out;
-o-transition-property: background-color;
-o-transition-duration: 0.5s;
background-color: #585858 !important;
.sub_subMenu:hover {
transition-property: background-color;
transition-duration: 0.5s;
transition-timing-function: ease-out;
-webkit-transition-property: background-color;
-webkit-transition-duration: 0.5s;
-webkit-transition-timing-function: ease-out;
-moz-transition-property: background-color;
-moz-transition-duration: 0.5s;
-moz-transition-timing-function: ease-out;
-o-transition-property: background-color;
-o-transition-duration: 0.5s;
background-color: #161616 !important;
}
.menu li.selected {
box-shadow: inset 4px 0 #80BA27;
box-shadow: inset 4px 0 #80ba27;
}
/* creo que no se usan
.is_submenu2 li {
@ -358,35 +371,192 @@ ul li a:hover {
}
*/
.operation {
background-color: #333 !important;
border-top-right-radius: 5px;
border-right-style: solid;
border-right-width: 0px;
background-color: #343434 !important;
border-top-right-radius: 5px;
border-right-style: solid;
border-right-width: 0px;
padding-top: 20px !important;
}
.operation .selected {
background-color: #585858 !important;
.operation .selected,
.godmode .selected {
background-color: #282828 !important;
}
.menu li, .menu .li.not_selected {
border-radius: 0px 0px 0px 0px;
display: block;
min-height: 35px;
border-bottom: 0px none #424242;
vertical-align: middle;
.operation .selected #title_menu,
.godmode .selected #title_menu {
color: #fff !important;
font-weight: 600;
}
.godmode, .menu_icon ul li{
background-color: #222;
}
.operation .menu_icon ul li{
background-color: #333;
.menu li,
.menu .li.not_selected {
border-radius: 0px 0px 0px 0px;
display: block;
min-height: 35px;
border-bottom: 0px none #424242;
vertical-align: middle;
}
.godmode{
border-top: 4px solid #777 !important;
padding-bottom: 4px !important;
border-bottom-right-radius: 5px;
border-right-style: solid;
border-right-width: 0px;
}
.godmode {
padding-bottom: 4px !important;
background-color: #343434;
}
/* Menu icons active */
.selected#icon_oper-networkconsole {
background: url(../../images/op_network.menu_white.png) no-repeat;
}
.selected#icon_oper-agents {
background: url(../../images/op_monitoring.menu_white.png) no-repeat;
}
.selected#icon_oper-events {
background: url(../../images/op_events.menu_white.png) no-repeat;
}
.selected#icon_oper-users {
background: url(../../images/op_workspace.menu_white.png) no-repeat;
}
.selected#icon_oper-reporting {
background: url(../../images/op_reporting.menu_white.png) no-repeat;
}
.selected#icon_oper-extensions {
background: url(../../images/extensions.menu_white.png) no-repeat;
}
.selected#icon_god-resources {
background: url(../../images/gm_resources.menu_white.png) no-repeat;
}
.selected#icon_god-configuration {
background: url(../../images/gm_configuration.menu_white.png) no-repeat;
}
.selected#icon_god-alerts {
background: url(../../images/gm_alerts.menu_white.png) no-repeat;
}
.selected#icon_god-users {
background: url(../../images/gm_users.menu_white.png) no-repeat;
}
.selected#icon_god-servers {
background: url(../../images/gm_servers.menu_white.png) no-repeat;
}
.selected#icon_god-setup {
background: url(../../images/gm_setup.menu_white.png) no-repeat;
}
.selected#icon_god-events {
background: url(../../images/gm_events.menu_white.png) no-repeat;
}
.selected#icon_god-extensions {
background: url(../../images/builder.menu_white.png) no-repeat;
}
.selected#icon_god-links {
background: url(../../images/links.menu_white.png) no-repeat;
}
.selected#icon_god-um_messages {
background: url(../../images/um_messages.menu_white.png) no-repeat;
}
#menu_full {
/*height: 100%; Lo he quitado para que no ocupe todo el alto y fixed */
width: 60px; /* It is changed for classic menu (215px)*/
position: absolute; /*Fixed: Lo he quitado para que no ocupe todo el alto y fixed */
z-index: 1;
top: 0;
left: 0;
background-color: #343434;
border-bottom: solid 5px #343434;
min-height: 943px;
/* padding-bottom: 40px; Lo he quitado para que no ocupe todo el alto y fixed */
/*overflow-x: hidden;*/
}
.button_collapse {
height: 55px;
background-color: #4d4d4d;
/* bottom: 0; Lo he quitado para que no ocupe todo el alto y fixed
position: fixed;*/
width: 60px; /* It is changed for classic menu (215px)*/
text-align: center;
color: #fff;
cursor: pointer;
background-repeat: no-repeat;
background-position: center;
margin-top: 15px;
}
.logo_green {
height: 60px;
display: flex;
justify-content: center;
align-items: center;
}
.operation > li.menu_icon.no_hidden_menu,
.godmode > li.menu_icon.no_hidden_menu {
display: flex;
justify-content: flex-end;
align-items: center;
}
.operation > li.menu_icon,
.godmode > li.menu_icon {
padding-top: 3px;
padding-bottom: 3px;
}
.operation div,
.operation a,
.godmode div,
.godmode a {
font-family: "Open Sans", sans-serif;
}
.menu_full_classic,
.button_classic {
width: 215px !important;
background-image: url(../../images/button_collapse_menu.png);
background-repeat: no-repeat;
background-position: center;
}
.menu_full_collapsed,
.button_collapsed {
width: 60px !important;
background-image: url(../../images/button_classic_menu.png);
background-repeat: no-repeat;
background-position: center;
}
#top_btn {
display: none;
position: fixed;
bottom: 100px;
left: 0px;
border: none;
outline: none;
background: url("../../images/to_top_menu.png") no-repeat center;
background-color: #82b92e;
width: 60px;
height: 60px;
/* Estos borrarles despues xk sera img */
color: white;
cursor: pointer;
font-size: 17px;
border-radius: 5px;
}
#top_btn:hover {
background-color: #4d4d4d;
/* border: 2px solid #fff;*/
}
@media screen and (max-height: 845px) {
.operation > li.menu_icon,
.godmode > li.menu_icon {
padding-top: 1px;
padding-bottom: 1px;
}
.operation {
padding-top: 10px !important;
}
.button_collapse {
margin-top: 10px;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1029,11 +1029,11 @@ if ($config['pure'] == 0) {
echo '</div><div id="menu">';
include 'general/main_menu.php';
echo '</div>';
echo '<div style="padding-left:100px;" id="page">';
echo '<div id="page">';
} else {
echo '<div id="container"><div id="head">';
include 'general/header.php';
echo '</div><div id="page" style="margin-top:20px;"><div id="menu">';
echo '</div><div id="page"><div id="menu">';
include 'general/main_menu.php';
echo '</div>';
}
@ -1363,4 +1363,3 @@ require 'include/php_to_js_values.php';
if (__PAN_XHPROF__ === 1) {
pandora_xhprof_display_result('node_index');
}