</td> <tr> <td colspan="7" align="right" height="50"><?php echo 'Belém, ' . $dia . ' de ' . $mes . ' de ' . $ano; ?> . </td> </tr> <!-- BR316 < ?php echo str_pad($documento->getId(), 3, '0', STR_PAD_LEFT).'/'.substr($documento->getDataEnvio(), -2)?>--> </thead> <tbody> <tr> <td colspan="7" align="left" height="50"><b>Para<br><?php echo $documento->getPara(); ?> </b> <br><?php echo $documento->getEndereco(); ?> <br>Belém - PA</td> </tr> <tr height="60px;"> <td colspan="7" align="left">Att.: <?php echo $documento->getDestinatario(); ?> <br> <?php echo $documento->getCargo(); ?>
$documento->setFile($name); } else { echo '<script language= "JavaScript">alert("Erro ao fazer Upload");</script>'; echo '<script language= "JavaScript">location.href="' . EXTERNAL_ROOT_PORTAL . '/ged/carta/new.php";</script>'; } } else { echo '<script language= "JavaScript">alert("Inserir arquivo com extensao PDF");</script>'; echo '<script language= "JavaScript">location.href="' . EXTERNAL_ROOT_PORTAL . '/ged/carta/new.php";</script>'; } } else { $documento->setFile($file_atual); } /*Fim - Condicao pra saber se mudou ou não o arquivo de anexo - Upload*/ } // Verifica se o nome foi preenchido if ($documento->getAssunto() != "" && $documento->getPara() != "" && $documento->getEndereco() != "" && $documento->getDataEnvio() != "") { $retorno = $DAO->Atualizar($documento); if ($retorno == 1) { $result = $DAO->AtualizarAnexos($documento->getId()); } foreach ($documento->getIdAnexo() as $item) { $resultado = $DAO->GravarAnexo($item, $documento); } if ($retorno == 1) { echo '<script language= "JavaScript">alert("Registro alterado com sucesso");</script>'; echo '<script language= "JavaScript">location.href="index.php";</script>'; } else { echo '<script language= "JavaScript">alert("Erro ao alterar o registro.");</script>'; print_r($retorno); } } else {