예제 #1
0
파일: view.php 프로젝트: hexti/troncal
</td>
		        
		        <tr>
		        <td colspan="7" align="right" height="50"><?php 
echo 'Bel&eacute;m, ' . $dia . ' de ' . $mes . ' de ' . $ano;
?>
.&nbsp;</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&eacute;m - PA</td>
		    </tr>
		    
		    <tr height="60px;">
		        <td colspan="7" align="left">Att.: <?php 
echo $documento->getDestinatario();
?>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php 
echo $documento->getCargo();
?>
예제 #2
0
파일: edit.php 프로젝트: hexti/troncal
                 $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 {