<td height="28" align="right"><strong>Resultado: </strong></td> <td colspan="2"><input style="width:550px" type="text" maxlength="80" id="certidao_resultado" name="certidao_resultado" value="<?php echo $a->certidao_resultado; ?> " class="form_estilo" /></td> </tr> <tr> <td height="28" align="right"> </td> <td colspan="2"><input type="submit" class="button_busca" name="submit_anexo" value="Anexar" /></td> </tr> </table></td> </tr> <?php $p_valor = ""; $anexo_nome = $anexoDAO->listaAnexoPedido($id_pedido_item); foreach ($anexo_nome as $ane) { #correção temporaria $dt = explode(' ', $ane->data); $dt1 = explode('-', $dt[0]); $file_path = '../anexos/' . $ane->anexo; if ((int) $dt1[0] > 2010 && (int) $dt1[1] > 6 && (int) $dt1[2] > 6) { if (!file_exists($ane->anexo)) { $file_path = $ane->anexo; } } $p_valor .= ' <tr><td colspan="4"> <input style="width:140px; margin-left:25px;" type="submit" class="button_busca" name="submit_anexo_deleta" value="Deletar Anexo ' . $ane->id_pedido_anexo . '" /> <a href="' . $file_path . '" target="_blank">' . invert($ane->data, '/', 'PHP') . ' - ' . $ane->anexo_nome . '</a> </td></tr>';