diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 9c2242f08a..98d5c485a8 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -26,6 +26,8 @@ * ============================================================================ */ +use Mpdf\Tag\Tr; + // Begin. global $config; @@ -7378,3 +7380,96 @@ function ui_get_inventory_module_add_form( } +/** + * Print Fullscreen Bar. + * + * @param array $options Fullsreen options. + * @param boolean $return If true, return the formed element. + * + * @return void|string + */ +function ui_print_fullscreen_bar(array $options, bool $return=false) +{ + // Always requery file. + ui_require_jquery_file('countdown'); + // Vars. + $url = ($options['url'] ?? ''); + $normalScreenTitle = ($options['normal_screen_title'] ?? 'Back to normal mode'); + $mainTitle = ($options['title'] ?? 'Full screen mode'); + $title = ''.__('Refresh').''; + $select = html_print_select( + get_refresh_time_array(), + 'refresh', + (int) get_parameter('refresh'), + '', + '', + 0, + true, + false, + false, + '', + false, + 'margin-top: 3px;' + ); + + $vcRefrDivContent = []; + $vcRefrDivContent[] = html_print_div(['class' => 'vc-countdown inline_line'], true); + $vcRefrDivContent[] = html_print_div( + [ + 'id' => 'vc-refr-form', + 'content' => $title.$select, + ], + true + ); + // Floating menu - Start. + $menuTabContent[] = ''; + + return html_print_div( + [ + 'id' => 'menu_tab', + 'class' => 'full_screen_control_bar', + 'content' => implode('', $menuTabContent), + ], + $return + ); +} + diff --git a/pandora_console/include/styles/events.css b/pandora_console/include/styles/events.css index 365a2d6d6d..5ce82260d8 100644 --- a/pandora_console/include/styles/events.css +++ b/pandora_console/include/styles/events.css @@ -475,3 +475,11 @@ div.multi-response-buttons { .icon_background_unknown { background-color: gray; } + +.events-refr { + width: 350px; + display: flex; + align-items: center; + flex-direction: row-reverse; + justify-content: flex-start; +}