width = '98%'; $table->data = array (); $table->data[1][0] = __('Date format string') . ui_print_help_icon("date_format", true); $table->data[1][1] = ''.__('Example').' '.date ($config["date_format"]); $table->data[1][1] .= html_print_input_text ('date_format', $config["date_format"], '', 30, 100, true); if($config['prominent_time'] == 'comparation') { $timestamp = false; $comparation = true; } else if ($config['prominent_time'] == 'timestamp') { $timestamp = true; $comparation = false; } $table->data[2][0] = __('Timestamp or time comparation') . ui_print_help_icon ("time_stamp-comparation", true); $table->data[2][1] = __('Comparation in rollover').' '; $table->data[2][1] .= html_print_radio_button ('prominent_time', "comparation", '', $comparation, true); $table->data[2][1] .= '
'.__('Timestamp in rollover').' '; $table->data[2][1] .= html_print_radio_button ('prominent_time', "timestamp", '', $timestamp, true); $table->data[3][0] = __('Graph color (min)'); $table->data[3][1] = html_print_input_text ('graph_color1', $config["graph_color1"], '', 8, 8, true); $table->data[4][0] = __('Graph color (avg)'); $table->data[4][1] = html_print_input_text ('graph_color2', $config["graph_color2"], '', 8, 8, true); $table->data[5][0] = __('Graph color (max)'); $table->data[5][1] = html_print_input_text ('graph_color3', $config["graph_color3"], '', 8, 8, true); $table->data[6][0] = __('Graphic resolution (1-low, 5-high)'); $table->data[6][1] = html_print_input_text ('graph_res', $config["graph_res"], '', 5, 5, true); $table->data[7][0] = __('Style template'); $table->data[7][1] = html_print_select (themes_get_css (), 'style', $config["style"].'.css', '', '', '', true); $table->data[8][0] = __('Block size for pagination'); $table->data[8][1] = html_print_input_text ('block_size', $config["global_block_size"], '', 5, 5, true); $table->data[9][0] = __('Use round corners'); $table->data[9][1] = __('Yes').' '.html_print_radio_button ('round_corner', 1, '', $config["round_corner"], true).'  '; $table->data[9][1] .= __('No').' '.html_print_radio_button ('round_corner', 0, '', $config["round_corner"], true); $table->data[10][0] = __('Status icon set'); $iconsets["default"] = __('Colors'); $iconsets["faces"] = __('Faces'); $iconsets["color_text"] = __('Colors and text'); $table->data[10][1] = html_print_select ($iconsets, 'status_images_set', $config["status_images_set"], '', '', '', true); $table->data[11][0] = __('Font path'); $fonts = load_fonts(); $table->data[11][1] = html_print_select($fonts, 'fontpath', $config["fontpath"], '', '', 0, true); $table->data[12][0] = __('Font size'); $table->data[12][1] = html_print_select(range(1, 15), 'font_size', $config["font_size"], '', '', 0, true); $table->data[13][0] = __('Interactive charts') . ui_print_help_tip(__('Whether to use Javascript or static PNG graphs'), true); $table->data[13][1] = __('Yes').' '.html_print_radio_button ('flash_charts', 1, '', $config["global_flash_charts"], true).'  '; $table->data[13][1] .= __('No').' '.html_print_radio_button ('flash_charts', 0, '', $config["global_flash_charts"], true); $table->data[14][0] = __('Custom logo') . ui_print_help_icon("custom_logo", true); $table->data[14][1] = html_print_select (list_files ('images/custom_logo', "png", 1, 0), 'custom_logo', $config["custom_logo"], '', '', '', true); $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->data[15][0] = __('Global default interval for refresh') . ui_print_help_tip(__('This interval will affect all pages'), true); $table->data[15][1] = html_print_select ($values, 'refr', $config["refr"], '', 'N/A', 0, true, false, false); $table->data[16][0] = __('Default interval for refresh on Visual Console') . ui_print_help_tip(__('This interval will affect to Visual Console pages'), true); $table->data[16][1] = html_print_select ($values, 'vc_refr', $config["vc_refr"], '', 'N/A', 0, true, false, false); $table->data[17][0] = __('Agent size text') . ui_print_help_tip(__('When the agent name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.'), true); $table->data[17][1] = __('Small:') . html_print_input_text ('agent_size_text_small', $config["agent_size_text_small"], '', 3, 3, true); $table->data[17][1] .= ' ' . __('Normal:') . html_print_input_text ('agent_size_text_medium', $config["agent_size_text_medium"], '', 3, 3, true); $table->data[18][0] = __('Module size text') . ui_print_help_tip(__('When the module name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.'), true); $table->data[18][1] = __('Small:') . html_print_input_text ('module_size_text_small', $config["module_size_text_small"], '', 3, 3, true); $table->data[18][1] .= ' ' . __('Normal:') . html_print_input_text ('module_size_text_medium', $config["module_size_text_medium"], '', 3, 3, true); $table->data[19][0] = __('Description size text') . ui_print_help_tip(__('When the description name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.'), true); $table->data[19][1] = html_print_input_text ('description_size_text', $config["description_size_text"], '', 3, 3, true); $table->data[20][0] = __('Item title size text') . ui_print_help_tip(__('When the item title name have a lot of characters, in some places in Pandora Console it is necesary truncate to N characters.'), true); $table->data[20][1] = html_print_input_text ('item_title_size_text', $config["item_title_size_text"], '', 3, 3, true); echo '
'; html_print_input_hidden ('update_config', 1); html_print_table ($table); echo '
'; html_print_submit_button (__('Update'), 'update_button', false, 'class="sub upd"'); echo '
'; echo '
'; ui_require_css_file ("color-picker"); ui_require_jquery_file ("colorpicker"); function load_fonts() { global $config; $dir = scandir($config['homedir'] . '/include/fonts/'); $fonts = array(); foreach ($dir as $file) { if (strstr($file, '.ttf') !== false) { $fonts[$config['homedir'] . '/include/fonts/' . $file] = $file; } } return $fonts; } ?>