'; echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo "".__('Search string').""; echo ''; echo "".__('Status').""; echo ''; echo "".__('Group').""; echo '
'; html_print_input_text('search_string', $search_string, ''); echo ''; html_print_select ($status, 'search_status', $search_status, '', '', 0, false); echo ''; html_print_select ($groups, 'search_group', $search_group, '', '', 0, false, false, false); echo ''; html_print_submit_button (__('Search')); echo '
'; echo ''; // Show headers $table->width = "98%"; $table->class = "databox"; $table->cellpadding = 4; $table->cellspacing = 4; $table->head = array (); $table->data = array (); $table->size = array (); $table->align = array (); $table->head[0] = __('ID'); //$table->head[1] = __('SLA'); $table->head[2] = __('Incident'); $table->head[3] = __('Group'); $table->head[4] = __('Status')."
".__('Resolution').""; $table->head[5] = __('Priority'); $table->head[6] = __('Updated')."
".__('Started').""; $table->head[7] = __('Details'); $table->head[8] = __('Creator'); $table->head[9] = __('Owner'); $table->head[10] = __('Action'); $table->align[4] = "center"; $table->align[5] = "center"; if(isset($result['incident'][0]) && is_array($result['incident'][0])){ $incidents = $result['incident']; } else { $incidents = $result; } $rowPair = true; $iterator = 0; foreach ($incidents as $row) { if ($rowPair) $table->rowclass[$iterator] = 'rowPair'; else $table->rowclass[$iterator] = 'rowOdd'; $rowPair = !$rowPair; $iterator++; $data = array(); $data[0] = ''.$row["id_incidencia"].''; //$data[1] = ""; $data[2] = ''.substr(io_safe_output($row["titulo"]),0,45).''; $data[3] = $groups[$row["id_grupo"]]; $data[4] = $status[$row["estado"]]."
".$resolutions[$row["resolution"]].""; $data[5] = incidents_print_priority_img ($row["prioridad"], true); $data[6] = ui_print_timestamp ($row["actualizacion"], true)."
" . ui_print_timestamp ($row["inicio"], true).""; $data[7] = $row["workunits_hours"]." ".__('Hours')."
".$row["workunits_count"]." ".__('Workunits'); $data[8] = $row["id_creator"]; $data[9] = $row["id_usuario"]; $data[10] = "".html_print_image("images/cross.png", true, array('title' => __('Delete incident')))."".html_print_image("images/config.png", true, array('title' => __('View incident details'))).""; array_push ($table->data, $data); } html_print_table ($table); ?>