diff --git a/pandora_console/extensions/realtime_graphs.php b/pandora_console/extensions/realtime_graphs.php index 86fcfc4f0e..37593d5355 100644 --- a/pandora_console/extensions/realtime_graphs.php +++ b/pandora_console/extensions/realtime_graphs.php @@ -42,6 +42,10 @@ function pandora_realtime_graphs() global $config; check_login(); + if ($config['style'] === 'pandora_black') { + ui_require_css_file('pandora_black', 'include/styles/', true); + } + $id_network = get_parameter('id_network', 0); $action = get_parameter('action', 'list'); @@ -66,8 +70,8 @@ function pandora_realtime_graphs() $long_index = []; $no_data_image = ''; - $canvas = '
'; - $canvas .= '
'; + $canvas = '
'; + $canvas .= '
'; $width = 800; $height = 300; @@ -239,7 +243,9 @@ function pandora_realtime_graphs() echo ''; echo ''; - echo ''; + if ($config['style'] !== 'pandora_black') { + echo ''; + } // Store servers timezone offset to be retrieved from js. set_js_value('timezone_offset', date('Z', time())); diff --git a/pandora_console/include/styles/pandora_black.css b/pandora_console/include/styles/pandora_black.css index d654d1219f..f5e971c065 100644 --- a/pandora_console/include/styles/pandora_black.css +++ b/pandora_console/include/styles/pandora_black.css @@ -999,6 +999,23 @@ table.databox { .tactical_set { border-color: #707070; } + li.ui-tabs-tab.ui-corner-top.ui-state-default.ui-tab { border: 1px solid #707070; } +.chartLegend { + width: 100%; + position: relative; + height: 30px; +} + +.chartLegend table { + position: absolute; + right: 0px; +} + +.graph_container { + width: 800px; + margin: 20px auto; + border-radius: 3px; +} diff --git a/pandora_console/operation/agentes/interface_traffic_graph_win.php b/pandora_console/operation/agentes/interface_traffic_graph_win.php index cb06076ac2..dd3b36d546 100644 --- a/pandora_console/operation/agentes/interface_traffic_graph_win.php +++ b/pandora_console/operation/agentes/interface_traffic_graph_win.php @@ -68,6 +68,9 @@ if (file_exists('../../include/languages/'.$user_language.'.mo')) { } echo ''; +if ($config['style'] === 'pandora_black') { + ui_require_css_file('pandora_black', 'include/styles/', true); +} $interface_name = (string) $params['interface_name']; $agent_id = (int) $params['agent_id']; @@ -190,6 +193,7 @@ $data[1] .= html_print_image( [ 'onclick' => "scwShow(scwID('text-start_date'),this);", 'style' => 'vertical-align: bottom;', + 'class' => 'invert_filter', ], false, false, @@ -251,7 +255,8 @@ $options[2] = 'x2'; $options[3] = 'x3'; $options[4] = 'x4'; $options[5] = __('Full'); -$data[1] = html_print_select( +/* + $data[1] = html_print_select( $options, 'zoom', $zoom, @@ -261,9 +266,9 @@ $data[1] = html_print_select( true, false, false -); -$table->data[] = $data; -$table->rowclass[] = ''; + ); + $table->data[] = $data; +$table->rowclass[] = '';*/ $form_table = html_print_table($table, true); $form_table .= '
'; @@ -284,7 +289,7 @@ if (empty($server_id) === false) { $menu_form .= html_print_input_hidden('server', $server_id, true); } -$menu_form .= '
'; +$menu_form .= '
'; $menu_form .= '
'; $menu_form .= html_print_image( 'images/arrow_down_green.png', @@ -312,13 +317,6 @@ $menu_form .= '
'; $menu_form .= ''; echo $menu_form; -echo '
-
- '.html_print_image('images/arrow_down_green.png', true, ['class' => 'module_graph_menu_arrow', 'float' => 'left'], false, false, true).' - '.__('Graph configuration menu').'
- -
'; -echo ''; // Hidden div to forced title. html_print_div( diff --git a/pandora_console/operation/agentes/realtime_win.php b/pandora_console/operation/agentes/realtime_win.php index 53837e7c5b..0068fb7425 100644 --- a/pandora_console/operation/agentes/realtime_win.php +++ b/pandora_console/operation/agentes/realtime_win.php @@ -64,6 +64,10 @@ if (file_exists('../../include/languages/'.$user_language.'.mo')) { $l10n->load_tables(); } +if ($config['style'] === 'pandora_black') { + ui_require_css_file('pandora_black', 'include/styles/', true); +} + echo ''; ?> @@ -92,6 +96,10 @@ echo '