width = "98%"; $table->class = "databox"; $table->data = array(); $table->colspan[0][0] = 3; $table->colspan[3][0] = 3; $table->colspan[4][0] = 3; $table->data[0][0] = "".__('Title')."
".print_input_text("title", $result['titulo'], '', 50, 255, true); if(isset($result['id_incidencia'])) { $table->data[1][2] = "".__('Assigned user')."
".print_select ($users, 'id_user', $result['id_usuario'], '', '', 0, true, false, false); } else { $table->data[1][2] = ""; } $table->data[1][0] = "".__('Group')."
".print_select ($groups, 'group', $result['id_grupo'], '', '', 0, true, false, false); $table->data[1][1] = "".__('Priority')."
".print_select (get_incidents_priorities (), 'priority', $result['prioridad'], '', '', 0, true, false, false); $table->data[1][2] = "".__('Creator')."
".$result['id_creator']; if(isset($result['id_incidencia'])) { $table->data[2][0] = "".__('Source')."
".print_select ($sources, 'source', $result['origen'], '', '', 0, true, false, false); $table->data[2][1] = "".__('Resolution')."
".print_select ($resolutions, 'resolution', $result['resolution'], '', '', 0, true, false, false); $table->data[2][2] = "".__('Status')."
".print_select ($status, 'status', $result['estado'], '', '', 0, true, false, false); } if(is_array($result['descripcion'])) { $result['descripcion'] = ""; } $table->data[3][0] = "".__('Description')."
".print_textarea("description", 10, 6, $result['descripcion'] , '', true); if(isset($result['id_incidencia'])) { if(is_array($result['epilog'])) { $result['epilog'] = implode(',', $result['epilog']); } $table->data[4][0] = "".__('Resolution epilog')."
".print_textarea("epilog", 10, 6, $result['epilog'] , '', true); } if(isset($result['id_incidencia'])) { echo "
"; print_table($table); print_submit_button(__('Update'), 'submit_button'); print_input_hidden('tab', 'incident'); print_input_hidden('update_incident', '1'); print_input_hidden('id_incident', $result['id_incidencia']); echo "
"; } else { echo "
"; print_table($table); print_submit_button(__('Create'), 'submit_button'); print_input_hidden('tab', 'incident'); print_input_hidden('create_incident', '1'); echo "
"; } ?>