' . html_print_image ("images/visual_console.png", true, array ("title" => __('Visual consoles list'))) .''; if (check_acl ($config["id_user"], $id_group, "RW")) { $url_base = 'index.php?sec=reporting&sec2=godmode/reporting/visual_console_builder&action='; $hash = md5($config["dbpass"] . $id_layout. $config["id_user"]); $options['public_link']['text'] = ''. html_print_image ("images/camera_mc.png", true, array ("title" => __('Show link to public Visual Console'))).''; $options['public_link']['active'] = false; $options['data']['text'] = '' . html_print_image ("images/op_reporting.png", true, array ("title" => __('Main data'))) .''; $options['list_elements']['text'] = '' . html_print_image ("images/list.png", true, array ("title" => __('List elements'))) .''; $options['wizard']['text'] = '' . html_print_image ("images/wand.png", true, array ("title" => __('Wizard'))) .''; $options['editor']['text'] = '' . html_print_image ("images/builder.png", true, array ("title" => __('Builder'))) .''; } $options['view']['text'] = '' . html_print_image ("images/operation.png", true, array ("title" => __('View'))) .''; $options['view']['active'] = true; if (!defined('METACONSOLE')) { if ($config["pure"] == 0) { $options['pure']['text'] = '' . html_print_image ("images/full_screen.png", true, array ("title" => __('Full screen mode'))) . ""; } else { $options['pure']['text'] = '' . html_print_image ("images/normal_screen.png", true, array ("title" => __('Back to normal mode'))) . ""; // In full screen, the manage options are not available $options = array('view' => $options['view'], 'pure' => $options['pure']); } $options['pure']['active'] = false; } //Set the hidden value for the javascript if (defined('METACONSOLE')) { html_print_input_hidden('metaconsole', 1); } else { html_print_input_hidden('metaconsole', 0); ui_print_page_header (__("Visual console") . " » " . $layout_name, "images/op_reporting.png", false, '', false, $options); } visual_map_print_visual_map ($id_layout); $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'); if (empty($config["vc_refr"])) { $vc_refr = true; $config["vc_refr"] = $refr; } $table->data[0][1] = html_print_select ($values, 'refr', $config["vc_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); if ($vc_refr) { $config["vc_refr"] = 0; } echo '
 
'; if ($config['pure'] && ((int)get_parameter('refr', 0)) != 0) { echo '

'; } echo '
 
'; if (!defined('METACONSOLE')) echo '
'; else echo ''; html_print_input_hidden ('pure', $config["pure"]); if (!defined('METACONSOLE')) html_print_input_hidden ('id', $id_layout); else html_print_input_hidden ('id_visualmap', $id_layout); html_print_table ($table); echo '
'; if ($config["pure"] && ((int)get_parameter('refr', 0)) != 0) { ui_require_jquery_file ('countdown'); ui_require_css_file ('countdown'); } ui_require_javascript_file ('wz_jsgraphics'); ui_require_javascript_file ('pandora_visual_console'); ?>