From a77d9625909a468d01e29c173dd75897bb456626 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 15 Apr 2015 11:28:07 +0200 Subject: [PATCH] Modify styles in tactical view and tables is responsibe with window size --- pandora_console/include/functions_ui.php | 3 +++ pandora_console/include/styles/pandora.css | 15 +++++++++++---- pandora_console/operation/agentes/tactical.php | 6 +++--- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 584836f334..1becc0127b 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -2095,6 +2095,9 @@ function ui_toggle($code, $name, $title = '', $hidden_default = true, $return = $output .= '' . html_print_image ($original, true, array ("title" => $title, "id" => "image_".$uniqid)) . '  '.$name.''; $output .= '
'; + if (!defined("METACONSOLE")) + $output .= '
'; + // Code into a div $output .= "
\n"; $output .= $code; diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index cc908c26d9..976b14b0cb 100755 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -1357,8 +1357,9 @@ table.databox { .tactical_set{ background: #FFF; border: 1px solid #E2E2E2; - margin-left: 10%; - width: 71%; + margin-left: auto; + margin-right: auto; + width: auto; } /* For use in Netflow */ @@ -2825,8 +2826,9 @@ table#policy_modules td * { } .status_tactical{ - width: 78%; - margin-left: 10%; + width: 100%; + margin-left: auto; + margin-right: auto; background-color: #FFF !important; padding: 10px; border: 1px solid #E2E2E2; @@ -2866,9 +2868,14 @@ table#policy_modules td * { .databox td{ padding-left: 10px; + padding-right: 10px; padding-top: 7px; padding-bottom: 7px; } +.databox.pies fieldset.tactical_set{ + width:70% !important; + height: 285px; +} .difference{ border-left-width: 2px; diff --git a/pandora_console/operation/agentes/tactical.php b/pandora_console/operation/agentes/tactical.php index b8c7a80533..34fdf5f853 100644 --- a/pandora_console/operation/agentes/tactical.php +++ b/pandora_console/operation/agentes/tactical.php @@ -242,18 +242,18 @@ if ($is_admin) { require($config['homedir'] . '/godmode/servers/servers.build_table.php'); } -$out .= '
'; +$out .= '
'; $out .= '
' . __('Event graph') . '' . - grafico_eventos_total("", 250, 80, false) . '
'; + grafico_eventos_total("", 250, 150, false) . ''; $out .="
"; $out .= '
' . __('Event graph by agent') . '' . - grafico_eventos_grupo(250, 80, "", false, false, false) . '
'; + grafico_eventos_grupo(250, 150, "", false, false, false) . ''; $out .= '
'; echo $out;