foreach ($incidents as $incident) { $table->data[$row][0] = '#' . $incident['id_incidencia']; $table->data[$row][1] = '<a href="index.php?sec=incidents&sec2=operation/incidents_simple/incident&id=' . $incident['id_incidencia'] . '">' . $incident['titulo'] . '</a>'; $resolution = isset($resolutions[$incident['resolution']]) ? $resolutions[$incident['resolution']] : __('None'); $table->data[$row][2] = '<strong>' . $statuses[$incident['estado']] . '</strong><br /><em>' . $resolution . '</em>'; $table->data[$row][3] = print_priority_flag_image($incident['prioridad'], true); $table->data[$row][4] = human_time_comparation($incident["actualizacion"]); $table->data[$row][4] .= '<br /><em>'; $table->data[$row][4] .= human_time_comparation($incident["inicio"]); $table->data[$row][4] .= '</em>'; if ($config["show_owner_incident"] == 1) { $table->data[$row][5] = $incident['id_usuario']; } if ($incident["estado"] < 3) { $table->rowclass[$row] = 'red'; } elseif ($incident["estado"] < 6) { $table->rowclass[$row] = 'yellow'; } else { $table->rowclass[$row] = 'green'; } $table->rowstyle[$row] = 'border-bottom: 1px solid rgb(204, 204, 204);'; $row++; } print_table($table); print_table_pager(); unset($table); ?> <script type="text/javascript"> </script>
if (isset($companies[$contact['id_company']])) { echo '<td>' . $companies[$contact['id_company']] . '</td>'; } else { echo '<td></td>'; } } return; } $table->width = '90%'; $table->class = 'search-table'; $table->style = array(); $table->style[0] = 'font-weight: bold;'; $table->data = array(); $table->data[0][0] = print_input_text("search_text", $search_text, "", 15, 100, true, __('Search')); $table->data[0][1] = print_select(get_companies(), 'id_company', $id_company, '', 'All', 0, true, false, false, __('Company')); $table->data[0][2] = print_submit_button(__('Search'), "search_btn", false, 'class="sub search"', true); echo '<div id="contact_search_result" style="display:none"></div>'; echo '<form id="contact_search_form" method="post">'; print_table($table); print_input_hidden('search_contact', 1); echo '</form>'; unset($table); $table->width = '90%'; $table->class = 'result_table listing'; $table->id = 'contact_search_result_table'; $table->head = array(); $table->head[0] = __('Name'); $table->head[1] = __('Company'); print_table($table); print_table_pager('contact-pager', true);