Change views and styles in Console

This commit is contained in:
m-lopez-f 2015-04-01 12:09:23 +02:00
parent 0e29cc520e
commit acfd2146dc
10 changed files with 68 additions and 32 deletions

View File

@ -102,7 +102,7 @@ noscript {
.termframe { .termframe {
float: left; float: left;
padding: 0.2ex; padding: 0.2ex;
background-color: none repeat scroll 0% 0% #82B92E; background-color: none repeat scroll 0% 0% #80BA27;
border-top-right-radius: 5px; border-top-right-radius: 5px;
border-top-left-radius: 5px; border-top-left-radius: 5px;
} }

View File

@ -101,11 +101,11 @@ function main_net_tools () {
function mostrarColumns(ValueSelect){ function mostrarColumns(ValueSelect){
value = ValueSelect.value; value = ValueSelect.value;
if ( value==3 ) { if ( value==3 ) {
document.getElementById('netToolTable').width=800; document.getElementById('netToolTable').width='100%';
document.getElementById('snmpcolumn').style.display='block'; document.getElementById('snmpcolumn').style.display='block';
} }
else{ else{
document.getElementById('netToolTable').width=650; document.getElementById('netToolTable').width='100%';
document.getElementById('snmpcolumn').style.display='none'; document.getElementById('snmpcolumn').style.display='none';
} }
} }
@ -113,7 +113,7 @@ function main_net_tools () {
echo "<div>"; echo "<div>";
echo "<form name='actionbox' method='post'>"; echo "<form name='actionbox' method='post'>";
echo "<table class=databox width=650 id=netToolTable>"; echo "<table class='databox filters' width=100% id=netToolTable>";
echo "<tr><td>"; echo "<tr><td>";
echo __("Operation"); echo __("Operation");
ui_print_help_tip(__('You can set the command path in the menu Administration -&gt; Extensions -&gt; Config Network Tools')); ui_print_help_tip(__('You can set the command path in the menu Administration -&gt; Extensions -&gt; Config Network Tools'));

View File

@ -53,13 +53,15 @@ function ssh_gateway () {
} }
echo "<form method=post>"; echo "<form method=post>";
echo "<table class=databox cellspacing=4 cellpadding=4>"; echo "<table class='databox filters' cellspacing=4 cellpadding=4 width=100%>";
echo "<td>".__("Host address")."<td><input type=text size=25 value='$HOST' name=host>"; echo "<td>".__("Host address")."<td><input type=text size=25 value='$HOST' name=host>";
echo "<tr>"; //echo "<tr>";
echo "<td>".__("User")."<td><input type=text size=25 value='$USER' name=user>" . ui_print_help_tip(__('For security reasons the following characters are not allowed: %s', '< > | ` $ ; &'), true); echo "<td>".__("User")."<td><input type=text size=25 value='$USER' name=user>" . ui_print_help_tip(__('For security reasons the following characters are not allowed: %s', '< > | ` $ ; &'), true);
echo "<td rowspan=2 vertical_aling='middle'>&nbsp;&nbsp;&nbsp;<input type=submit name=connect class='sub upd' value=".__("Connect").">";
echo "<input type=hidden name=commit value=1></td>";
echo "<tr>"; echo "<tr>";
echo "<td>".__("Port (use 0 for default)")."<td><input type=text size=5 value='$PORT' name=port>"; echo "<td>".__("Port (use 0 for default)")."<td><input type=text size=5 value='$PORT' name=port>";
echo "<tr><td>"; echo "<td>";
echo __("Connect mode")."<td><select name=mode>"; echo __("Connect mode")."<td><select name=mode>";
if ($MODE == "telnet") { if ($MODE == "telnet") {
echo "<option>telnet"; echo "<option>telnet";
@ -71,8 +73,7 @@ function ssh_gateway () {
} }
echo "</select>"; echo "</select>";
echo "&nbsp;&nbsp;&nbsp;<input type=submit name=connect class='sub upd' value=".__("Connect").">";
echo "<td><input type=hidden name=commit value=1>";
echo "</form></table>"; echo "</form></table>";
} }

View File

@ -20,7 +20,7 @@ function vnc_view() {
$display = get_parameter("display", 0); $display = get_parameter("display", 0);
echo "<form method=post>"; echo "<form method=post>";
echo "<table class=databox width=500>"; echo "<table class='databox filters' width=100%>";
echo "<tr><td>"; echo "<tr><td>";
echo __("VNC Display (:0 by default)") . "&nbsp;"; echo __("VNC Display (:0 by default)") . "&nbsp;";
echo "<input type=text name=display value=$display>"; echo "<input type=text name=display value=$display>";

View File

@ -243,10 +243,10 @@ $(document).ready( function() {
table_hover = $(this); table_hover = $(this);
handsIn = 1; handsIn = 1;
openTime = new Date().getTime(); openTime = new Date().getTime();
$("ul#sub"+table_hover[0].id).show().animate({opacity: "1"}, 1000); $("ul#sub"+table_hover[0].id).show(1000);
if( typeof(table_noHover) != 'undefined') if( typeof(table_noHover) != 'undefined')
if ( "ul#sub"+table_hover[0].id != "ul#sub"+table_noHover[0].id ) if ( "ul#sub"+table_hover[0].id != "ul#sub"+table_noHover[0].id )
$("ul#sub"+table_noHover[0].id).animate({opacity: "0.5"}, 1000,function(){$("ul#sub"+table_noHover[0].id).hide();}); $("ul#sub"+table_noHover[0].id).hide(500);
}).mouseleave(function(){ }).mouseleave(function(){
table_noHover = $(this); table_noHover = $(this);
handsIn = 0; handsIn = 0;
@ -254,28 +254,28 @@ $(document).ready( function() {
opened = new Date().getTime() - openTime; opened = new Date().getTime() - openTime;
if(opened > 3000 && handsIn == 0) { if(opened > 3000 && handsIn == 0) {
openTime = 4000; openTime = 4000;
$("ul#sub"+table_hover[0].id).animate({opacity: "0.5"}, 1000,function(){$("ul#sub"+table_hover[0].id).hide();}); $("ul#sub"+table_hover[0].id).hide(500);
} }
}, 3500); }, 3500);
}); });
- $('.has_submenu.submenu_not_selected').hover(function(){ - $('.has_submenu').hover(function(){
table_hover2 = $(this); table_hover2 = $(this);
handsIn2 = 1; handsIn2 = 1;
openTime2 = new Date().getTime(); openTime2 = new Date().getTime();
$("#sub"+table_hover2[0].id).show();
if( typeof(table_noHover2) != 'undefined') if( typeof(table_noHover2) != 'undefined')
if ( "ul#sub"+table_hover2[0].id != "ul#sub"+table_noHover2[0].id ) if ( "ul#sub"+table_hover2[0].id != "ul#sub"+table_noHover2[0].id )
$("ul#sub"+table_noHover2[0].id).animate({opacity: "0.5"}, 1000,function(){$("ul#sub"+table_noHover2[0].id).hide();}); $("ul#sub"+table_noHover2[0].id).hide(500);
$("#sub"+table_hover2[0].id).show(); }).mouseout(function(){
}).mouseleave(function(){ table_noHover2 = table_hover2;
table_noHover2 = $(this);
handsIn2 = 0; handsIn2 = 0;
setTimeout(function() { setTimeout(function() {
opened = new Date().getTime() - openTime2; opened = new Date().getTime() - openTime2;
if(opened >= 3000 && handsIn2 == 0) { if(opened >= 3000 && handsIn2 == 0) {
openTime2 = 4000; openTime2 = 4000;
$("#sub"+table_hover2[0].id).animate({opacity: "0.5"}, 1000,function(){$("ul#sub"+table_noHover2[0].id).hide();}); $("ul#sub"+table_hover2[0].id).hide(500);
} }
}, 3500); }, 3500);
}); });
@ -284,9 +284,9 @@ $(document).ready( function() {
$('#page').click(function(){ $('#page').click(function(){
openTime = 4000; openTime = 4000;
if( typeof(table_hover) != 'undefined') if( typeof(table_hover) != 'undefined')
$("ul#sub"+table_hover[0].id).animate({opacity: "0.5"}, 500,function(){$("ul#sub"+table_hover[0].id).hide();}); $("ul#sub"+table_hover[0].id).hide(500);
if( typeof(table_hover2) != 'undefined') if( typeof(table_hover2) != 'undefined')
$("ul#sub"+table_hover2[0].id).animate({opacity: "0.5"}, 500,function(){$("ul#sub"+table_hover2[0].id).hide();}); $("ul#sub"+table_hover2[0].id).hide(500);
}); });
}); });

View File

@ -209,8 +209,40 @@ if (check_acl ($config['id_user'], 0, "PM")) {
$sub = array (); $sub = array ();
$sub["godmode/setup/setup&section=general"]["text"] = __('Setup');
$sub["godmode/setup/setup&section=general"]["refr"] = 0;
$sub2 = array();
// Options Setup
$sub2["godmode/setup/setup&amp;section=general"]["text"] = __('General');
$sub2["godmode/setup/setup&amp;section=general"]["refr"] = 0;
/*
if (enterprise_installed()) {
$buttons = setup_enterprise_add_Tabs($buttons);
}
*/
$sub2["godmode/setup/setup&amp;section=auth"]["text"] = __('Authentication');
$sub2["godmode/setup/setup&amp;section=auth"]["refr"] = 0;
$sub2["godmode/setup/setup&amp;section=perf"]["text"] = __('Performance');
$sub2["godmode/setup/setup&amp;section=perf"]["refr"] = 0;
$sub2["godmode/setup/setup&amp;section=vis"]["text"] = __('Visual styles');
$sub2["godmode/setup/setup&amp;section=vis"]["refr"] = 0;
$sub["godmode/setup/file_manager"]["text"] = __('File manager'); $sub["godmode/setup/file_manager"]["text"] = __('File manager');
if (check_acl ($config['id_user'], 0, "AW")) {
if ($config['activate_netflow']) {
$sub2["godmode/setup/setup&amp;section=net"]["text"] = __('Netflow');
$sub2["godmode/setup/setup&amp;section=net"]["refr"] = 0;
}
}
$sub["godmode/setup/setup&section=general"]["sub2"] = $sub2;
if ($config['activate_gis']) if ($config['activate_gis'])
$sub["godmode/setup/gis"]["text"] = __('Map conections GIS'); $sub["godmode/setup/gis"]["text"] = __('Map conections GIS');
$sub["godmode/setup/links"]["text"] = __('Links'); $sub["godmode/setup/links"]["text"] = __('Links');

View File

@ -673,10 +673,10 @@ if ($list_modules) {
if (empty ($modules)) { if (empty ($modules)) {
$modules = array (); $modules = array ();
} }
$table->width = "98%"; $table->width = "100%";
$table->cellpadding = 4; $table->cellpadding = 4;
$table->cellspacing = 4; $table->cellspacing = 4;
$table->class = "databox"; $table->class = "databox data";
$table->head = array (); $table->head = array ();
$table->data = array (); $table->data = array ();
@ -708,7 +708,7 @@ if ($list_modules) {
'<a href="' . $url . '&sort_field=last_contact&amp;sort=down&refr=&filter_monitors=1&status_filter_monitor=' .$status_filter_monitor.' &status_text_monitor='. $status_text_monitor.'&status_module_group= '.$status_module_group.'">' . html_print_image("images/sort_down.png", true, array("style" => $selectLastContactDown, "alt" => "down")) . '</a>'; '<a href="' . $url . '&sort_field=last_contact&amp;sort=down&refr=&filter_monitors=1&status_filter_monitor=' .$status_filter_monitor.' &status_text_monitor='. $status_text_monitor.'&status_module_group= '.$status_module_group.'">' . html_print_image("images/sort_down.png", true, array("style" => $selectLastContactDown, "alt" => "down")) . '</a>';
$table->align = array("left", "left", "center", "left", "left", "center"); $table->align = array("center", "left", "center", "left", "left", "center","left","left","center");
$last_modulegroup = 0; $last_modulegroup = 0;
$rowIndex = 0; $rowIndex = 0;

View File

@ -70,11 +70,10 @@ 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: 44px; left: 39px;
min-height: 30px; min-height: 30px;
height: 30px; height: 30px;
width: 160px; width: 160px;
opacity: 0.5;
} }
.submenu2{ .submenu2{

View File

@ -226,7 +226,7 @@ div#container {
#border-right: solid 2px #000; #border-right: solid 2px #000;
#border-top: solid 2px #000; #border-top: solid 2px #000;
#margin-top: 5px; #margin-top: 5px;
height: auto; height: 100%;
background: #FFF; background: #FFF;
} }
div#page { div#page {
@ -309,7 +309,7 @@ div#menu_container {
} }
div#menu { div#menu {
width: 45px; width: 40px;
float: left; float: left;
margin-top: 10px; margin-top: 10px;
} }
@ -341,7 +341,7 @@ div#foot {
padding-bottom: 5px; padding-bottom: 5px;
text-align: center; text-align: center;
background: #333333; background: #333333;
height: 38px; height: 30px;
clear: both; clear: both;
width: auto; width: auto;
} }
@ -844,6 +844,9 @@ div#cont {
overflow-x: hidden; overflow-x: hidden;
} }
.termframe{
background-color: #80BA27 !important;
}
table, img { table, img {
border: 0px; border: 0px;
@ -856,7 +859,6 @@ tr:first-child>th {
th { th {
color: #fff; color: #fff;
background-color: #666; background-color: #666;
text-align:center;
font-size: 7.5pt; font-size: 7.5pt;
letter-spacing: 0.3pt; letter-spacing: 0.3pt;
} }
@ -1378,7 +1380,7 @@ table.databox {
} }
.databox th { .databox th {
padding: 8px 7px; padding: 10px 8px;
color: #fff; color: #fff;
} }

View File

@ -778,6 +778,7 @@ require('include/php_to_js_values.php');
//Dynamically assign footer position and width. //Dynamically assign footer position and width.
function adjustFooter() { function adjustFooter() {
/*
if (document.readyState !== 'complete' || $('#container').position() == undefined) { if (document.readyState !== 'complete' || $('#container').position() == undefined) {
return; return;
} }
@ -789,7 +790,7 @@ require('include/php_to_js_values.php');
var h = $('#foot').height(); var h = $('#foot').height();
// new top value for div#foot // new top value for div#foot
var t = (ulim + $('#foot').outerHeight() > wh) ? ulim : wh - $('#foot').outerHeight(); var t = (ulim + $('#foot').outerHeight() > wh) ? ulim : wh - $('#foot').outerHeight();
/*
if ($('#foot').position().top != t) { if ($('#foot').position().top != t) {
$('#foot').css({ position: "absolute", top: t, left: $('#foot').offset().left}); $('#foot').css({ position: "absolute", top: t, left: $('#foot').offset().left});
$('#foot').height(h); $('#foot').height(h);
@ -797,5 +798,6 @@ require('include/php_to_js_values.php');
if ($('#foot').width() != $(window).width()) { if ($('#foot').width() != $(window).width()) {
$('#foot').width($(window).width()); $('#foot').width($(window).width());
} }
*/
} }
</script> </script>