2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
2008-08-22 20:07:32 +02:00
|
|
|
|
2009-06-08 20:26:14 +02:00
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
|
|
|
|
// Please see http://pandorafms.org for full contribution list
|
2007-03-02 18:56:07 +01:00
|
|
|
// This program is free software; you can redistribute it and/or
|
2011-03-23 Raul Mateos <raulofpandora@gmail.com>
* extensions/ssh_console.php, extensions/vnc_view.php,
extensions/update_manager.php, extensions/users_connected.php,
extensions/extension_uploader.php, extensions/insert_data.php,
extensions/module_groups.php, extensions/plugin_registration.php,
extensions/agent_modules.php, extensions/resource_registration.php,
extensions/resource_exportation.php, extensions/dbmanager.php,
extensions/pandora_logs.php, general/*.php, ajax.php,
operation/search_*.php, operation/menu.php, operation/extensions.php,
godmode/menu.php, godmode/extensions.php, godmode/admin_access_logs.php:
CReverted unwanted license changes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4126 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-23 17:13:28 +01:00
|
|
|
// modify it under the terms of the GNU General Public License
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// as published by the Free Software Foundation; version 2
|
2007-03-02 18:56:07 +01:00
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2007-03-02 18:56:07 +01:00
|
|
|
// GNU General Public License for more details.
|
2019-01-30 16:18:44 +01:00
|
|
|
if (! isset($config['id_user'])) {
|
|
|
|
include 'general/login_page.php';
|
|
|
|
exit();
|
2006-03-27 05:37:27 +02:00
|
|
|
}
|
2008-12-19 22:45:20 +01:00
|
|
|
|
2014-05-21 12:44:36 +02:00
|
|
|
$autohidden_menu = 0;
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
if (isset($config['autohidden_menu']) && $config['autohidden_menu']) {
|
|
|
|
$autohidden_menu = 1;
|
2014-05-21 12:44:36 +02:00
|
|
|
}
|
|
|
|
|
2014-05-27 10:57:20 +02:00
|
|
|
$menu_container_id = '';
|
2014-05-21 12:44:36 +02:00
|
|
|
|
2013-02-20 14:48:46 +01:00
|
|
|
// Menu container prepared to autohide menu
|
2019-01-30 16:18:44 +01:00
|
|
|
echo '<div id="'.$menu_container_id.'">';
|
|
|
|
|
|
|
|
// echo '<div class="tit bg titop">:: '.__('Operation').' ::</div>';
|
|
|
|
require 'operation/menu.php';
|
|
|
|
|
|
|
|
// Check all enterprise ACL used in godmenu items to print menu headers
|
|
|
|
if (check_acl($config['id_user'], 0, 'AW')
|
|
|
|
|| check_acl($config['id_user'], 0, 'PM')
|
|
|
|
|| check_acl($config['id_user'], 0, 'LM')
|
|
|
|
|| check_acl($config['id_user'], 0, 'UM')
|
|
|
|
|| check_acl($config['id_user'], 0, 'LW')
|
|
|
|
|| check_acl($config['id_user'], 0, 'IW')
|
|
|
|
|| check_acl($config['id_user'], 0, 'EW')
|
|
|
|
|| check_acl($config['id_user'], 0, 'DW')
|
|
|
|
) {
|
|
|
|
// echo '<div class="tit bg3">:: '.__('Administration').' ::</div>';
|
2012-02-03 12:01:12 +01:00
|
|
|
}
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
require 'godmode/menu.php';
|
2009-02-10 21:29:45 +01:00
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
// require ("links_menu.php");
|
|
|
|
echo '</div>';
|
|
|
|
// menu_container
|
|
|
|
ui_require_jquery_file('cookie');
|
2014-09-16 12:40:05 +02:00
|
|
|
|
|
|
|
$config_fixed_menu = false;
|
|
|
|
if (isset($config['fixed_menu'])) {
|
2019-01-30 16:18:44 +01:00
|
|
|
$config_fixed_menu = $config['fixed_menu'];
|
2014-09-16 12:40:05 +02:00
|
|
|
}
|
2019-01-30 16:18:44 +01:00
|
|
|
|
2014-09-16 12:40:05 +02:00
|
|
|
$config_fixed_header = false;
|
|
|
|
if (isset($config['fixed_header'])) {
|
2019-01-30 16:18:44 +01:00
|
|
|
$config_fixed_header = $config['fixed_header'];
|
2014-09-16 12:40:05 +02:00
|
|
|
}
|
2009-01-07 11:42:38 +01:00
|
|
|
?>
|
2015-03-26 13:12:48 +01:00
|
|
|
|
2009-02-09 22:00:13 +01:00
|
|
|
<script type="text/javascript" language="javascript">
|
2009-02-13 21:23:44 +01:00
|
|
|
/* <![CDATA[ */
|
2015-04-07 09:50:46 +02:00
|
|
|
|
2014-05-21 12:44:36 +02:00
|
|
|
var autohidden_menu = <?php echo $autohidden_menu; ?>;
|
2019-01-30 16:18:44 +01:00
|
|
|
var fixed_menu = <?php echo json_encode((bool) $config_fixed_menu); ?>;
|
|
|
|
var fixed_header = <?php echo json_encode((bool) $config_fixed_header); ?>;
|
2014-08-05 15:16:54 +02:00
|
|
|
var id_user = "<?php echo $config['id_user']; ?>";
|
|
|
|
var cookie_name = id_user + '-pandora_menu_state';
|
|
|
|
var cookie_name_encoded = btoa(cookie_name);
|
2019-01-30 16:18:44 +01:00
|
|
|
var click_display = "<?php echo $config['click_display']; ?>";
|
|
|
|
var classic_menu = parseInt("<?php echo $config['classic_menu']; ?>");
|
2017-02-13 13:50:28 +01:00
|
|
|
|
|
|
|
if ((isNaN(classic_menu)) || (classic_menu == 0)) {
|
2019-01-30 16:18:44 +01:00
|
|
|
classic_menu = false;
|
2017-02-13 13:50:28 +01:00
|
|
|
}
|
|
|
|
else {
|
2019-01-30 16:18:44 +01:00
|
|
|
classic_menu = true;
|
2017-02-13 13:50:28 +01:00
|
|
|
}
|
2017-02-07 12:58:29 +01:00
|
|
|
|
|
|
|
if (classic_menu) {
|
2019-01-30 16:18:44 +01:00
|
|
|
autohidden_menu = 1;
|
2017-02-07 12:58:29 +01:00
|
|
|
}
|
2014-05-21 12:44:36 +02:00
|
|
|
|
2014-08-05 15:16:54 +02:00
|
|
|
var menuState = $.cookie(cookie_name_encoded);
|
2014-08-04 14:17:13 +02:00
|
|
|
if (!menuState) {
|
2019-01-30 16:18:44 +01:00
|
|
|
menuState = {};
|
2014-08-04 14:17:13 +02:00
|
|
|
}
|
|
|
|
else {
|
2019-01-30 16:18:44 +01:00
|
|
|
menuState = JSON.parse(menuState);
|
|
|
|
open_submenus();
|
2014-08-04 18:50:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function open_submenus () {
|
2019-01-30 16:18:44 +01:00
|
|
|
$.each(menuState, function (index, value) {
|
|
|
|
if (value)
|
|
|
|
$('div.menu>ul>li#' + index + '>ul').show();
|
|
|
|
});
|
|
|
|
$('div.menu>ul>li.selected>ul').removeClass('invisible');
|
2014-08-04 18:50:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function close_submenus () {
|
2019-01-30 16:18:44 +01:00
|
|
|
$.each(menuState, function (index, value) {
|
|
|
|
if (value)
|
|
|
|
$('div.menu>ul>li#' + index + '>ul').hide();
|
|
|
|
});
|
|
|
|
$('div.menu>ul>li.selected>ul').addClass('invisible');
|
2014-08-04 14:17:13 +02:00
|
|
|
}
|
|
|
|
|
2009-02-09 22:00:13 +01:00
|
|
|
$(document).ready( function() {
|
2019-01-30 16:18:44 +01:00
|
|
|
//Daniel maya 02/06/2016 Fixed menu position--INI
|
|
|
|
if (fixed_menu) {
|
|
|
|
$('div#menu')
|
|
|
|
.css('position', 'fixed')
|
|
|
|
.css('z-index', '9000')
|
|
|
|
.css('top','80px')
|
|
|
|
}else{
|
|
|
|
$('div#menu')
|
|
|
|
.css('z-index', '9000')
|
|
|
|
}
|
|
|
|
if (fixed_header) {
|
|
|
|
$('div#menu')
|
|
|
|
.css('position', 'fixed')
|
|
|
|
.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();
|
|
|
|
|
|
|
|
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);
|
|
|
|
});
|
|
|
|
*/
|
|
|
|
handsInMenu = 0;
|
|
|
|
openTimeMenu = 0;
|
|
|
|
if (classic_menu) {
|
|
|
|
$('div#title_menu').show();
|
|
|
|
handsInMenu = 1;
|
|
|
|
openTimeMenu = new Date().getTime();
|
|
|
|
$('#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() {
|
|
|
|
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');
|
|
|
|
}
|
|
|
|
}, 2500);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
if(!click_display){
|
|
|
|
$('#menu').mouseenter(function() {
|
|
|
|
$('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() {
|
|
|
|
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");
|
|
|
|
$('li.menu_icon').find('li').removeClass( " no_hidden_menu" );
|
|
|
|
$('ul.submenu').css('left', '44px');
|
|
|
|
$('div#title_menu').hide();
|
|
|
|
}
|
|
|
|
}, 2500);
|
|
|
|
});
|
|
|
|
}else{
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#menu').on("click", function() {
|
|
|
|
$('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() {
|
|
|
|
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");
|
|
|
|
$('li.menu_icon').find('li').removeClass( " no_hidden_menu" );
|
|
|
|
$('ul.submenu').css('left', '44px');
|
|
|
|
$('div#title_menu').hide();
|
|
|
|
}
|
|
|
|
}, 5500);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$('div#title_menu').hide();
|
|
|
|
}
|
2009-02-09 22:00:13 +01:00
|
|
|
});
|
2009-02-13 21:23:44 +01:00
|
|
|
/* ]]> */
|
2013-04-10 09:57:54 +02:00
|
|
|
</script>
|
2015-03-26 13:12:48 +01:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
2019-01-30 16:18:44 +01:00
|
|
|
openTime = 0;
|
|
|
|
openTime2 = 0;
|
|
|
|
handsIn = 0;
|
|
|
|
handsIn2 = 0;
|
|
|
|
|
|
|
|
if(!click_display){
|
|
|
|
if (autohidden_menu) {
|
|
|
|
$('.menu_icon').mouseenter(function() {
|
|
|
|
table_hover = $(this);
|
|
|
|
handsIn = 1;
|
|
|
|
openTime = new Date().getTime();
|
|
|
|
$("ul#sub"+table_hover[0].id).show();
|
|
|
|
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() {
|
|
|
|
table_noHover = $(this);
|
|
|
|
handsIn = 0;
|
|
|
|
setTimeout(function() {
|
|
|
|
opened = new Date().getTime() - openTime;
|
|
|
|
if(opened > 3000 && handsIn == 0) {
|
|
|
|
openTime = 4000;
|
|
|
|
$("ul#sub"+table_hover[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();
|
|
|
|
}).mouseleave(function() {
|
|
|
|
table_noHover = $(this);
|
|
|
|
handsIn = 0;
|
|
|
|
setTimeout(function() {
|
|
|
|
opened = new Date().getTime() - openTime;
|
|
|
|
if(opened > 5000 && handsIn == 0) {
|
|
|
|
openTime = 6000;
|
|
|
|
$("ul#sub"+table_hover[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();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
- $('.has_submenu').mouseenter(function() {
|
|
|
|
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 )
|
|
|
|
$("ul#sub"+table_noHover2[0].id).hide();
|
|
|
|
}).mouseleave(function() {
|
|
|
|
table_noHover2 = table_hover2;
|
|
|
|
handsIn2 = 0;
|
|
|
|
setTimeout(function() {
|
|
|
|
opened = new Date().getTime() - openTime2;
|
|
|
|
if(opened >= 3000 && handsIn2 == 0) {
|
|
|
|
openTime2 = 4000;
|
|
|
|
$("ul#sub"+table_hover2[0].id).hide();
|
|
|
|
}
|
|
|
|
}, 3500);
|
|
|
|
});
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
if (!classic_menu) {
|
|
|
|
//Daniel maya 02/06/2016 Display menu with click --INI
|
|
|
|
if(!click_display){
|
|
|
|
$('#container').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();
|
|
|
|
$('#menu').css('width', '45px');
|
|
|
|
$('li.menu_icon').removeClass( " no_hidden_menu");
|
|
|
|
$('ul.submenu').css('left', '44px');
|
|
|
|
$('div#title_menu').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();
|
|
|
|
$('#menu').css('width', '45px');
|
|
|
|
$('li.menu_icon').removeClass( " no_hidden_menu");
|
|
|
|
$('ul.submenu').css('left', '44px');
|
|
|
|
$('div#title_menu').hide();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
//Daniel maya 02/06/2016 Display menu with click --END
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
if(!click_display){
|
|
|
|
$('#container').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();
|
|
|
|
$('#menu').css('width', '145px');
|
|
|
|
$('ul.submenu').css('left', '144px');
|
|
|
|
});
|
|
|
|
}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();
|
|
|
|
$('#menu').css('width', '145px');
|
|
|
|
$('ul.submenu').css('left', '144px');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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');
|
|
|
|
});
|
|
|
|
|
|
|
|
$('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();
|
|
|
|
$('ul.submenu').css('left', '144px');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$('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();
|
|
|
|
$('#menu').css('width', '45px');
|
|
|
|
$('li.menu_icon').removeClass( " no_hidden_menu");
|
|
|
|
$('ul.submenu').css('left', '44px');
|
|
|
|
$('div#title_menu').hide();
|
|
|
|
});
|
|
|
|
|
|
|
|
$('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();
|
|
|
|
$('#menu').css('width', '45px');
|
|
|
|
$('li.menu_icon').removeClass( " no_hidden_menu");
|
|
|
|
$('ul.submenu').css('left', '44px');
|
|
|
|
$('div#title_menu').hide();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2015-03-31 09:18:46 +02:00
|
|
|
|
2015-03-26 13:12:48 +01:00
|
|
|
</script>
|