$contColl++; } else { if ($key == 'descricao') { echo '<td title="' . $value . '"><b>' . transformaLabel($key) . ":</b> "; echo substr($value, 0, 40); strlen($value) > 40 ? print '...' : ''; echo "</td>"; $contColl++; } else { if ($key == 'status') { $status = Obra::getStatus($value); echo '<td><b>' . transformaLabel($key) . ":</b> {$status}</td>"; $contColl++; } else { if ($key == 'id_empresa') { $nome = Empresa::get_nome_by_id($value); echo '<td><b>' . transformaLabel($key) . ":</b> {$nome}</td>"; $contColl++; } else { if ($key == 'id_endereco') { $endereco = Endereco::get_endereco_formatado($value); echo '<td><b>' . transformaLabel($key) . ":</b> {$endereco}</td>"; $contColl++; } else { echo '<td><b>' . transformaLabel($key) . ":</b> {$value} </td>"; $contColl++; } } } } }