width = '98%'; $table->data = array (); $table->data[1][0] = __('Max. days before delete events'); $table->data[1][1] = html_print_input_text ('event_purge', $config["event_purge"], '', 5, 5, true); $table->data[2][0] = __('Max. days before delete traps'); $table->data[2][1] = html_print_input_text ('trap_purge', $config["trap_purge"], '', 5, 5, true); $table->data[3][0] = __('Max. days before delete audit events'); $table->data[3][1] = html_print_input_text ('audit_purge', $config["audit_purge"], '', 5, 5, true); $table->data[4][0] = __('Max. days before delete string data'); $table->data[4][1] = html_print_input_text ('string_purge', $config["string_purge"], '', 5, 5, true); $table->data[5][0] = __('Max. days before delete GIS data'); $table->data[5][1] = html_print_input_text ('gis_purge', $config["gis_purge"], '', 5, 5, true); $table->data[6][0] = __('Max. days before purge'); $table->data[6][1] = html_print_input_text ('days_purge', $config["days_purge"], '', 5, 5, true); $table->data[7][0] = __('Max. days before compact data'); $table->data[7][1] = html_print_input_text ('days_compact', $config["days_compact"], '', 5, 5, true); $table->data[8][0] = __('Compact interpolation in hours (1 Fine-20 bad)'); $table->data[8][1] = html_print_input_text ('step_compact', $config["step_compact"], '', 5, 5, true); $intervals = array (); $intervals[3600] = "1 ".__('hour'); $intervals[43200] = "12 ".__('hours'); $intervals[86400] = __('Last day'); $intervals[172800] = "2 ". __('days'); $intervals[864000] = "10 ". __('days'); $intervals[604800] = __('Last week'); $intervals[1209600] = "2 " . __('weeks'); $intervals[2592000] = __('Last month'); $table->data[9][0] = __('SLA period (seconds)') . ui_print_help_tip(__('You can see this in SLA agent tab.'), true); $table->data[9][1] = html_print_select ($intervals, 'sla_period', $config["sla_period"], '', '', '0', true); $table->data[10][0] = __('Default hours for event view'); $table->data[10][1] = html_print_input_text ('event_view_hr', $config["event_view_hr"], '', 5, 5, true); //$table->data[11][0] = __('Compact CSS and JS into header'); //$table->data[11][1] = __('Yes').' '.html_print_radio_button ('compact_header', 1, '', $config["compact_header"], true).'  '; //$table->data[11][1] .= __('No').' '.html_print_radio_button ('compact_header', 0, '', $config["compact_header"], true); $table->data[12][0] = __('Use realtime statistics'); $table->data[12][1] = __('Yes').' '.html_print_radio_button ('realtimestats', 1, '', $config["realtimestats"], true).'  '; $table->data[12][1] .= __('No').' '.html_print_radio_button ('realtimestats', 0, '', $config["realtimestats"], true); $table->data[13][0] = __('Batch statistics period (secs)') . ui_print_help_tip(__('If realtime statistics are disabled, statistics interval resfresh will be set here.'), true); $table->data[13][1] = html_print_input_text ('stats_interval', $config["stats_interval"], '', 5, 5, true); $table->data[14][0] = __('Use agent access graph') . ui_print_help_icon("agent_access", true); $table->data[14][1] = __('Yes').' '.html_print_radio_button ('agentaccess', 1, '', $config["agentaccess"], true).'  '; $table->data[14][1] .= __('No').' '.html_print_radio_button ('agentaccess', 0, '', $config["agentaccess"], true); $table->data[15][0] = __('Max. days before delete unknown modules'); $table->data[15][1] = html_print_input_text ('days_delete_unknown', $config["days_delete_unknown"], '', 5, 5, 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 '
'; ?>