width = '100%';
$table->id = 'add_alert_table';
$table->class = 'databox filters integria_incidents_options';
$table->head = [];
$table->data = [];
$table->size = [];
$table->size = [];
$table->style[0] = 'width: 33%; padding-right: 50px; padding-left: 100px;';
$table->style[1] = 'width: 33%; padding-right: 50px; padding-left: 50px;';
$table->style[2] = 'width: 33%; padding-right: 100px; padding-left: 50px;';
$table->colspan[0][0] = 2;
$table->colspan[3][0] = 3;
$help_macros = isset($_GET['from_event']) ? ui_print_help_icon('response_macros', true) : '';
$table->data[0][0] = '
'.__('Title').': '.$help_macros.'
';
$table->data[0][0] .= '
'.html_print_input_text(
'incident_title',
$update ? $incident_details[3] : $config['incident_title'],
__('Name'),
50,
100,
true,
false,
true,
'',
'w100p'
).'
';
$table->data[0][2] = html_print_image('images/integria_logo_gray.png', true, ['style' => 'width: 70%; float: right;'], false);
$table->data[1][0] = '
'.__('Type').':
';
$table->data[1][0] .= '
'.html_print_select(
$integria_types_values,
'type',
$update ? $incident_details[17] : $config['incident_type'],
'',
__('Select'),
0,
true,
false,
true,
'',
false,
'width: 100%;'
).'
';
$table->data[2][0] = '
'.__('Status').':
';
$table->data[2][0] .= '
'.html_print_select(
$integria_status_values,
'status',
$update ? $incident_details[6] : $config['incident_status'],
'',
__('Select'),
1,
true,
false,
true,
'',
false,
'width: 100%;'
).'
';
$table->data[1][1] = '
'.__('Group').':
';
$table->data[1][1] .= '
'.html_print_select(
$integria_group_values,
'group',
$update ? $incident_details[8] : $config['default_group'],
'',
'',
0,
true,
false,
true,
'',
false,
'width: 100%;'
).'
';
$table->data[2][1] = '
'.__('Creator').':
';
$table->data[2][1] .= '
'.html_print_input_text(
'creator',
$config['integria_user'],
'',
'30',
100,
false,
true,
false,
'',
'w100p'
).ui_print_help_tip(__('This field corresponds to the Integria IMS user specified in Integria IMS setup'), true).'
';
$table->data[1][2] = '
'.__('Priority').':
';
$table->data[1][2] .= '
'.html_print_select(
$integria_criticity_values,
'criticity',
$update ? $incident_details[7] : $config['default_criticity'],
'',
__('Select'),
0,
true,
false,
true,
'',
false,
'width: 100%;'
).'
';
$table->data[2][2] = '
'.__('Owner').':
';
$table->data[2][2] .= '
'.html_print_autocomplete_users_from_integria(
'owner',
$update ? $incident_details[5] : $config['default_owner'],
true
).'
';
$table->data[3][0] = '
'.__('Description').': '.$help_macros.'
';
$table->data[3][0] .= '
'.html_print_textarea(
'incident_content',
3,
20,
$update ? $incident_details[4] : $config['incident_content'],
'',
true
).'
';
// Print forms and stuff.
echo '
';
echo '
';
if ($update) {
html_print_submit_button(__('Update'), 'accion', false, 'form="create_integria_incident_form" class="sub wand"');
} else {
html_print_submit_button(__('Create'), 'accion', false, 'form="create_integria_incident_form" class="sub wand"');
}
echo '
';