diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 6d2fd5a053..29e2222853 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,6 @@ +2012-02-06 Vanessa Gil + * godmode/events/custom_events.php: Added file. + 2012-02-06 Vanessa Gil * pandoradb_data.sql, diff --git a/pandora_console/godmode/events/custom_events.php b/pandora_console/godmode/events/custom_events.php new file mode 100644 index 0000000000..24f2120ec1 --- /dev/null +++ b/pandora_console/godmode/events/custom_events.php @@ -0,0 +1,121 @@ +width = '90%'; + +$table->size = array(); +$table->size[0] = '20%'; +$table->size[2] = '20%'; + +$table->data = array(); +$table->data[0][0] = '

'.__('Show event fields').'

'; + +$table->data[1][0] = ''.__('Event ID').''; +$table->data[1][1] = __('Yes').' '.html_print_radio_button('show_id_evento', 1, '', $config['show_id_evento'], true).' '; +$table->data[1][1] .= __('No').' '.html_print_radio_button('show_id_evento', 0, '', $config['show_id_evento'], true); + +$table->data[2][0] = ''.__('Event name').''; +$table->data[2][1] = __('Yes').' '.html_print_radio_button('show_evento', 1, '', $config['show_evento'], true); +$table->data[2][1] .= __('No').' '.html_print_radio_button('show_evento', 0, '', $config['show_evento'], true); + +$table->data[3][0] = ''.__('Agent ID').''; +$table->data[3][1] = __('Yes').' '.html_print_radio_button('show_id_agente', 1, '', $config['show_id_agente'], true); +$table->data[3][1] .=__('No').' '. html_print_radio_button('show_id_agente', 0, '', $config['show_id_agente'], true); + +$table->data[4][0] = ''.__('User ID').''; +$table->data[4][1] = __('Yes').' '.html_print_radio_button('show_id_usuario', 1, '', $config['show_id_usuario'], true); +$table->data[4][1] .= __('No').' '.html_print_radio_button('show_id_usuario', 0, '', $config['show_id_usuario'], true); + +$table->data[5][0] = ''.__('Group ID').''; +$table->data[5][1] = __('Yes').' '.html_print_radio_button('show_id_grupo', 1, '', $config['show_id_grupo'], true); +$table->data[5][1] .= __('No').' '.html_print_radio_button('show_id_grupo', 0, '', $config['show_id_grupo'], true); + +$table->data[6][0] =''. __('Status').''; +$table->data[6][1] = __('Yes').' '.html_print_radio_button('show_estado', 1, '', $config['show_estado'], true); +$table->data[6][1] .= __('No').' '.html_print_radio_button('show_estado', 0, '', $config['show_estado'], true); + +$table->data[7][0] = ''.__('Timestamp').''; +$table->data[7][1] = __('Yes').' '.html_print_radio_button('show_timestamp', 1, '', $config['show_timestamp'], true); +$table->data[7][1] .= __('No').' '.html_print_radio_button('show_timestamp', 0, '', $config['show_timestamp'], true); + +$table->data[8][0] = ''.__('Event type'); +$table->data[8][1] = __('Yes').' '.html_print_radio_button('show_event_type', 1, '', $config['show_event_type'], true); +$table->data[8][1] .= __('No').' '.html_print_radio_button('show_event_type', 0, '', $config['show_event_type'], true); + +$table->data[9][0] = ''.__('Agent Module').''; +$table->data[9][1] = __('Yes').' '.html_print_radio_button('show_id_agentmodule', 1, '', $config['show_id_agentmodule'], true); +$table->data[9][1] .= __('No').' '.html_print_radio_button('show_id_agentmodule', 0, '', $config['show_id_agentmodule'], true); + +$table->data[10][0] = ''.__('Alert ID').''; +$table->data[10][1] = __('Yes').' '.html_print_radio_button('show_id_alert_am', 1, '', $config['show_id_alert_am'], true); +$table->data[10][1] .= __('No').' '.html_print_radio_button('show_id_alert_am', 0, '', $config['show_id_alert_am'], true); + +$table->data[11][0] = ''.__('Criticity').''; +$table->data[11][1] = __('Yes').' '.html_print_radio_button('show_criticity', 1, '', $config['show_criticity'], true); +$table->data[11][1] .= __('No').' '.html_print_radio_button('show_criticity', 0, '', $config['show_criticity'], true); + +$table->data[12][0] = ''.__('Comment').''; +$table->data[12][1] = __('Yes').' '.html_print_radio_button('show_user_comment', 1, '', $config['show_user_comment'], true); +$table->data[12][1] .= __('No').' '.html_print_radio_button('show_user_comment', 0, '', $config['show_user_comment'], true); + +$table->data[13][0] = ''.__('Tags').''; +$table->data[13][1] = __('Yes').' '.html_print_radio_button('show_tags', 1, '', $config['show_tags'], true); +$table->data[13][1] .= __('No').' '.html_print_radio_button('show_tags', 0, '', $config['show_tags'], true); + +$table->data[14][0] = ''.__('Source').''; +$table->data[14][1] = __('Yes').' '.html_print_radio_button('show_source', 1, '', $config['show_source'], true); +$table->data[14][1] .= __('No').' '.html_print_radio_button('show_source', 0, '', $config['show_source'], true); + +$table->data[15][0] = ''.__('Extra ID').''; +$table->data[15][1] = __('Yes').' '.html_print_radio_button('show_id_extra', 1, '', $config['show_id_extra'], true); +$table->data[15][1] .= __('No').' '.html_print_radio_button('show_id_extra', 0, '', $config['show_id_extra'], true); + +echo '
'; + +html_print_table($table); + +echo '
'; + html_print_input_hidden ('update_config', 1); + html_print_submit_button (__('Update'), 'upd_button', false, 'class="sub upd"'); + echo ''; +echo '
'; +?> + +