Add new funcionality to menu and fixed other problems
This commit is contained in:
parent
01149f214a
commit
91556f8096
|
@ -216,19 +216,16 @@ $(document).ready( function() {
|
||||||
}, 3500);
|
}, 3500);
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
$('#menu').css('width', '115px');
|
$('#menu').mouseenter(function() {
|
||||||
$('#main').css('margin', '0% 1.5% 0% 0%');
|
$('div#title_menu').show();
|
||||||
|
$('#menu').css('width', '130px');
|
||||||
$('li.menu_icon').addClass( " no_hidden_menu" );
|
$('li.menu_icon').addClass( " no_hidden_menu" );
|
||||||
$('ul.submenu').css('left', '114px');
|
$('ul.submenu').css('left', '129px');
|
||||||
$(window).resize( function() {
|
}).mouseleave(function(){
|
||||||
if($(window).width() <= 1262){
|
$('#menu').css('width', '45px');
|
||||||
$('#main').css('width', '86%');
|
$('li.menu_icon').removeClass( " no_hidden_menu");
|
||||||
}
|
$('ul.submenu').css('left', '44px');
|
||||||
else{
|
$('div#title_menu').hide();
|
||||||
if($(window).width() >= 1300){
|
|
||||||
$('#main').css('width', '90%');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -244,7 +241,7 @@ $(document).ready( function() {
|
||||||
handsIn = 0;
|
handsIn = 0;
|
||||||
handsIn2 = 0;
|
handsIn2 = 0;
|
||||||
|
|
||||||
$('.menu_icon').hover(function(){
|
$('.menu_icon').mouseenter(function(){
|
||||||
table_hover = $(this);
|
table_hover = $(this);
|
||||||
handsIn = 1;
|
handsIn = 1;
|
||||||
openTime = new Date().getTime();
|
openTime = new Date().getTime();
|
||||||
|
@ -268,7 +265,7 @@ $(document).ready( function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
- $('.has_submenu').hover(function(){
|
- $('.has_submenu').mouseenter(function(){
|
||||||
table_hover2 = $(this);
|
table_hover2 = $(this);
|
||||||
handsIn2 = 1;
|
handsIn2 = 1;
|
||||||
openTime2 = new Date().getTime();
|
openTime2 = new Date().getTime();
|
||||||
|
@ -289,7 +286,22 @@ $(document).ready( function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('#page').click(function(){
|
$('#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();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('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();
|
||||||
|
});
|
||||||
|
$('div.menu>ul>li>ul>li>ul>li>a').click(function(){
|
||||||
openTime = 4000;
|
openTime = 4000;
|
||||||
if( typeof(table_hover) != 'undefined')
|
if( typeof(table_hover) != 'undefined')
|
||||||
$("ul#sub"+table_hover[0].id).hide();
|
$("ul#sub"+table_hover[0].id).hide();
|
||||||
|
|
|
@ -100,7 +100,8 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
||||||
enterprise_hook('agents_submenu');
|
enterprise_hook('agents_submenu');
|
||||||
if (check_acl ($config['id_user'], 0, "AW")) {
|
if (check_acl ($config['id_user'], 0, "AW")) {
|
||||||
$sub["gmassive"]["text"] = __('Massive operations');
|
$sub["gmassive"]["text"] = __('Massive operations');
|
||||||
|
$sub["gmassive"]["type"] = "direct";
|
||||||
|
$sub["gmassive"]["subtype"] = "nolink";
|
||||||
$sub2 = array ();
|
$sub2 = array ();
|
||||||
$sub2["godmode/massive/massive_operations&tab=massive_agents"]["text"] = __('Agents operations');
|
$sub2["godmode/massive/massive_operations&tab=massive_agents"]["text"] = __('Agents operations');
|
||||||
$sub2["godmode/massive/massive_operations&tab=massive_modules"]["text"] = __('Modules operations');
|
$sub2["godmode/massive/massive_operations&tab=massive_modules"]["text"] = __('Modules operations');
|
||||||
|
@ -242,7 +243,8 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
||||||
$sub["gextmaneger"]["sub2"] = $sub2;
|
$sub["gextmaneger"]["sub2"] = $sub2;
|
||||||
if (check_acl ($config['id_user'], 0, "DM")) {//meter en extensiones
|
if (check_acl ($config['id_user'], 0, "DM")) {//meter en extensiones
|
||||||
$sub["gdbman"]["text"] = __('DB maintenance');
|
$sub["gdbman"]["text"] = __('DB maintenance');
|
||||||
|
$sub["gdbman"]["type"] = "direct";
|
||||||
|
$sub["gdbman"]["subtype"] = "nolink";
|
||||||
$sub2 = array ();
|
$sub2 = array ();
|
||||||
$sub2["godmode/db/db_info"]["text"] = __('DB information');
|
$sub2["godmode/db/db_info"]["text"] = __('DB information');
|
||||||
$sub2["godmode/db/db_purge"]["text"] = __('Database purge');
|
$sub2["godmode/db/db_purge"]["text"] = __('Database purge');
|
||||||
|
@ -261,6 +263,8 @@ if (check_acl ($config['id_user'], 0, "PM")) {
|
||||||
|
|
||||||
$sub = array ();
|
$sub = array ();
|
||||||
$sub["gextmaneger"]["text"] = __('Extension manager');
|
$sub["gextmaneger"]["text"] = __('Extension manager');
|
||||||
|
$sub["gextmaneger"]["type"] = "direct";
|
||||||
|
$sub["gextmaneger"]["subtype"] = "nolink";
|
||||||
$sub2 = array ();
|
$sub2 = array ();
|
||||||
|
|
||||||
foreach ($config['extensions'] as $extension) {
|
foreach ($config['extensions'] as $extension) {
|
||||||
|
|
|
@ -358,7 +358,13 @@ function menu_print_menu (&$menu) {
|
||||||
//Print out the first level
|
//Print out the first level
|
||||||
$output .= '<li class="'.implode (" ", $classes).' ' . $seleccionado . '" id="icon_'.$id.'">';
|
$output .= '<li class="'.implode (" ", $classes).' ' . $seleccionado . '" id="icon_'.$id.'">';
|
||||||
//onclick="location.href=\'index.php?sec='.$mainsec.'&sec2='.$main["sec2"].($main["refr"] ? '&refr='.$main["refr"] : '').'\'">';
|
//onclick="location.href=\'index.php?sec='.$mainsec.'&sec2='.$main["sec2"].($main["refr"] ? '&refr='.$main["refr"] : '').'\'">';
|
||||||
$output .= '<div id="title_menu" style="color:#FFF">' . ui_print_truncate_text($main["text"] , 60). '</div>';
|
|
||||||
|
$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>';
|
||||||
|
$padding_top = 0;
|
||||||
|
$length = 0;
|
||||||
//$output .= html_print_image("include/styles/images/toggle.png", true, array("class" => "toggle", "alt" => "toogle"));
|
//$output .= html_print_image("include/styles/images/toggle.png", true, array("class" => "toggle", "alt" => "toogle"));
|
||||||
if ($submenu_output != '') {
|
if ($submenu_output != '') {
|
||||||
//WARNING: IN ORDER TO MODIFY THE VISIBILITY OF MENU'S AND SUBMENU'S (eg. with cookies) YOU HAVE TO ADD TO THIS ELSEIF. DON'T MODIFY THE CSS
|
//WARNING: IN ORDER TO MODIFY THE VISIBILITY OF MENU'S AND SUBMENU'S (eg. with cookies) YOU HAVE TO ADD TO THIS ELSEIF. DON'T MODIFY THE CSS
|
||||||
|
|
|
@ -70,7 +70,7 @@ li:hover ul { display: block; }
|
||||||
margin: 0px 0px 0px 0px;
|
margin: 0px 0px 0px 0px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
left: 39px;
|
left: 44px;
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
width: 160px;
|
width: 160px;
|
||||||
|
@ -95,7 +95,7 @@ li:hover ul { display: block; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.submenu2 li a {
|
.submenu2 li a {
|
||||||
background-color: #111;
|
background-color: #222;
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
padding-left: 0px;
|
padding-left: 0px;
|
||||||
display:block;
|
display:block;
|
||||||
|
|
|
@ -233,9 +233,11 @@ div#page {
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
div#main {
|
div#main {
|
||||||
width: 90%;
|
width: auto;
|
||||||
margin: 0px 4% 0px 0%;
|
margin: 0px 2% 0px 0%;
|
||||||
float: right;
|
float: right;
|
||||||
|
position: relative;
|
||||||
|
min-height: 850px;
|
||||||
}
|
}
|
||||||
div#main_help {
|
div#main_help {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -310,10 +312,11 @@ div#menu_container {
|
||||||
}
|
}
|
||||||
|
|
||||||
div#menu {
|
div#menu {
|
||||||
width: 40px;
|
width: 45px;
|
||||||
float: left;
|
float: left;
|
||||||
margin-top: 10px;
|
|
||||||
height: 828px;
|
height: 828px;
|
||||||
|
z-index: 999;
|
||||||
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#head {
|
div#head {
|
||||||
|
@ -1860,8 +1863,6 @@ div.warn {
|
||||||
padding: 2px 1px 6px 25px;
|
padding: 2px 1px 6px 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.submenu_not_selected {
|
.submenu_not_selected {
|
||||||
font-weight: normal !important;
|
font-weight: normal !important;
|
||||||
}
|
}
|
||||||
|
@ -1881,7 +1882,8 @@ div#page {
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
div#main {
|
div#main {
|
||||||
min-width: 720px;
|
max-width: 93%;
|
||||||
|
min-width: 93%;
|
||||||
}
|
}
|
||||||
|
|
||||||
ol.steps {
|
ol.steps {
|
||||||
|
@ -2239,7 +2241,7 @@ ul.godmode ul.submenu li a:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.godmode ul.submenu li .SubNoLink:hover {
|
ul.godmode ul.submenu li .SubNoLink:hover {
|
||||||
background: url('../../images/menu_gm_mark.png') repeat-y right;
|
background: url('../../images/menu_gm_mark.png') repeat-y right !important;
|
||||||
#font-weight: bold;
|
#font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2248,7 +2250,7 @@ ul.godmode ul.submenu li.selected>a {
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.godmode ul.submenu li.selected .SubNoLink {
|
ul.godmode ul.submenu li.selected .SubNoLink {
|
||||||
background: url('../../images/menu_gm_mark.png') repeat-y right;
|
background: url('../../images/menu_gm_mark.png') repeat-y right !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
li.links a:hover {
|
li.links a:hover {
|
||||||
|
@ -2881,16 +2883,13 @@ table#policy_modules td * {
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
float: right;
|
float: right;
|
||||||
width: 70%;
|
width: 70%;
|
||||||
#padding-top: 8.75px;
|
|
||||||
vertical-align:middle;
|
|
||||||
letter-spacing: 0pt;
|
letter-spacing: 0pt;
|
||||||
font-size: 7pt;
|
font-size: 7pt;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
height: 35px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.no_hidden_menu{
|
.no_hidden_menu{
|
||||||
background-position: 5% 50% !important;
|
background-position: 12% 50% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,8 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
||||||
//SNMP Console
|
//SNMP Console
|
||||||
$sub["snmpconsole"]["text"] = __('SNMP');
|
$sub["snmpconsole"]["text"] = __('SNMP');
|
||||||
$sub["snmpconsole"]["refr"] = 0;
|
$sub["snmpconsole"]["refr"] = 0;
|
||||||
|
$sub["snmpconsole"]["type"] = "direct";
|
||||||
|
$sub["snmpconsole"]["subtype"] = "nolink";
|
||||||
$sub2 = array();
|
$sub2 = array();
|
||||||
$sub2["operation/snmpconsole/snmp_view"]["text"] = __("SNMP console");
|
$sub2["operation/snmpconsole/snmp_view"]["text"] = __("SNMP console");
|
||||||
$sub2["operation/snmpconsole/snmp_browser"]["text"] = __("SNMP browser");
|
$sub2["operation/snmpconsole/snmp_browser"]["text"] = __("SNMP browser");
|
||||||
|
@ -135,7 +136,8 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$sub["godmode/reporting/map_builder"]["type"] = "direct";
|
||||||
|
$sub["godmode/reporting/map_builder"]["subtype"] = "nolink";
|
||||||
$layouts = db_get_all_rows_in_table ('tlayout', 'name');
|
$layouts = db_get_all_rows_in_table ('tlayout', 'name');
|
||||||
if ($layouts === false) {
|
if ($layouts === false) {
|
||||||
$layouts = array ();
|
$layouts = array ();
|
||||||
|
@ -181,7 +183,8 @@ if (check_acl ($config['id_user'], 0, "AR")) {
|
||||||
//INI GIS Maps
|
//INI GIS Maps
|
||||||
if ($config['activate_gis']) {
|
if ($config['activate_gis']) {
|
||||||
$sub["gismaps"]["text"] = __('GIS Maps');
|
$sub["gismaps"]["text"] = __('GIS Maps');
|
||||||
|
$sub["gismaps"]["type"] = "direct";
|
||||||
|
$sub["gismaps"]["subtype"] = "nolink";
|
||||||
$sub2 = array ();
|
$sub2 = array ();
|
||||||
|
|
||||||
$gisMaps = db_get_all_rows_in_table ('tgis_map', 'map_name');
|
$gisMaps = db_get_all_rows_in_table ('tgis_map', 'map_name');
|
||||||
|
@ -327,6 +330,8 @@ if (check_acl ($config['id_user'], 0, "IR") == 1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$sub[$sec2]["text"] = __('Incidents');
|
$sub[$sec2]["text"] = __('Incidents');
|
||||||
|
$sub[$sec2]["type"] = "direct";
|
||||||
|
$sub[$sec2]["subtype"] = "nolink";
|
||||||
$sub[$sec2]["refr"] = 0;
|
$sub[$sec2]["refr"] = 0;
|
||||||
$sub[$sec2]["subsecs"] = array(
|
$sub[$sec2]["subsecs"] = array(
|
||||||
"operation/incidents/incident_detail",
|
"operation/incidents/incident_detail",
|
||||||
|
@ -343,7 +348,8 @@ if (check_acl ($config['id_user'], 0, "IR") == 1) {
|
||||||
// Messages
|
// Messages
|
||||||
$sub["operation/messages/message_list"]["text"] = __('Messages');
|
$sub["operation/messages/message_list"]["text"] = __('Messages');
|
||||||
$sub["operation/messages/message_list"]["refr"] = 0;
|
$sub["operation/messages/message_list"]["refr"] = 0;
|
||||||
|
$sub["operation/messages/message_list"]["type"] = "direct";
|
||||||
|
$sub["operation/messages/message_list"]["subtype"] = "nolink";
|
||||||
$sub2 = array ();
|
$sub2 = array ();
|
||||||
$sub2["operation/messages/message_edit&new_msg=1"]["text"] = __('New message');
|
$sub2["operation/messages/message_edit&new_msg=1"]["text"] = __('New message');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue