From 21c0047c843fd97101d0103cc40d47a4ede6e1ba Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 23 Jan 2014 15:51:25 +0000 Subject: [PATCH] 2014-01-23 Miguel de Dios * operation/visual_console/render_view.php: re-added the countdown widget for visualmaps in fullscreen. Incident: #539 from local tacker. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9359 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 ++ .../operation/visual_console/render_view.php | 76 +++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 7d0bbbdfaf..37b0564616 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2014-01-23 Miguel de Dios + + * operation/visual_console/render_view.php: re-added the countdown + widget for visualmaps in fullscreen. + + Incident: #539 from local tacker. + 2014-01-23 Miguel de Dios * godmode/reporting/map_builder.php, diff --git a/pandora_console/operation/visual_console/render_view.php b/pandora_console/operation/visual_console/render_view.php index 20bc8ac62d..5b292429e8 100644 --- a/pandora_console/operation/visual_console/render_view.php +++ b/pandora_console/operation/visual_console/render_view.php @@ -132,6 +132,82 @@ else { visual_map_print_visual_map ($id_layout); +if ($config["pure"]) { + $values = array (); + $values[5] = human_time_description_raw (5); + $values[30] = human_time_description_raw (30); + $values[SECONDS_1MINUTE] = human_time_description_raw(SECONDS_1MINUTE); + $values[SECONDS_2MINUTES] = human_time_description_raw(SECONDS_2MINUTES); + $values[SECONDS_5MINUTES] = human_time_description_raw(SECONDS_5MINUTES); + $values[SECONDS_10MINUTES] = human_time_description_raw(SECONDS_10MINUTES); + $values[SECONDS_30MINUTES] = human_time_description_raw(SECONDS_30MINUTES); + + $table->width = '90%'; + $table->data = array (); + $table->style = array (); + $table->style[2] = 'text-align: center'; + $table->data[0][0] = __('Autorefresh time'); + + $table->data[0][1] = html_print_select ($values, 'refr', $refr, '', 'N/A', 0, true, false, false); + $table->data[0][2] = html_print_submit_button (__('Refresh'), '', false, 'class="sub next"', true); + $table->data[0][2] .= html_print_input_hidden ('vc_refr', $config["vc_refr"], true); + + echo '
 
'; + + if ($refr > 0) { + echo '

'; + } + + echo '
 
'; + + echo '
'; + html_print_input_hidden ('pure', $config["pure"]); + html_print_input_hidden ('id', $id_layout); + html_print_table ($table); + echo '
'; + echo ''; + + + ui_require_jquery_file ('countdown'); + ui_require_css_file ('countdown'); + ?> + +