From ab1de61565830355ac57766826aeb2268a8ca5e1 Mon Sep 17 00:00:00 2001 From: alex.braga Date: Fri, 29 Jun 2018 10:11:02 -0300 Subject: [PATCH] t --- sei/scripts/sei_instalar_atualizar_modulo_pesquisa.php | 23 +++++++++++++++++++++++ sei/web/modulos/pesquisa/MdPesqCriptografiaNew.php | 167 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sei/web/modulos/pesquisa/md_pesq_processo_exibir_new.php | 943 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1133 insertions(+), 0 deletions(-) create mode 100644 sei/scripts/sei_instalar_atualizar_modulo_pesquisa.php create mode 100644 sei/web/modulos/pesquisa/MdPesqCriptografiaNew.php create mode 100644 sei/web/modulos/pesquisa/md_pesq_processo_exibir_new.php diff --git a/sei/scripts/sei_instalar_atualizar_modulo_pesquisa.php b/sei/scripts/sei_instalar_atualizar_modulo_pesquisa.php new file mode 100644 index 0000000..4fbfb86 --- /dev/null +++ b/sei/scripts/sei_instalar_atualizar_modulo_pesquisa.php @@ -0,0 +1,23 @@ +AtualizarVersao(); + + exit; + + } catch (Exception $e) { + + echo(InfraException::inspecionar($e)); + try{LogSEI::getInstance()->gravar(InfraException::inspecionar($e)); }catch (Exception $e){} + } + + +?> diff --git a/sei/web/modulos/pesquisa/MdPesqCriptografiaNew.php b/sei/web/modulos/pesquisa/MdPesqCriptografiaNew.php new file mode 100644 index 0000000..c900b88 --- /dev/null +++ b/sei/web/modulos/pesquisa/MdPesqCriptografiaNew.php @@ -0,0 +1,167 @@ + + */ + +/** + * Arquivo para realizar criptografia de parametros. + * + * + * @package institucional_pesquisa_controlador_ajax_externo + * @author Alex Alves Braga + * @license Creative Commons Atribuição 3.0 não adaptada + * + * @ignore Este código é livre para uso sem nenhuma restrição, + * salvo pelas informações a seguir referentes + * a @author e @copyright que devem ser mantidas inalteradas! + * @copyright Conselho Administrativo de Defesa Econômica ©2014-2018 + * + * @author Alex Alves Braga + */ + +/** + * CONSELHO ADMINISTRATIVO DE DEFESA ECONÔMICA +* +* 01/09/2014 - criado por alex braga +* +* Versão do Gerador de Código: +* +* Versão no CVS: +*/ + + + class MdPesqCriptografiaNew{ + + //private static $KEY = 'c@d3s3mp@p3l'; + private static $IV = 'c@d3s3mp@p3l'; + + private static $ENCRYPT_METHOD = "AES-256-CBC"; + + public static function criptografa($texto){ + try { + + $key = hash('sha256', MdPesqCriptografiaNew::getChaveCriptografia()); + $iv = substr(hash('sha256', MdPesqCriptografiaNew::$IV), 0, 16); + $output = openssl_encrypt($texto, MdPesqCriptografiaNew::$ENCRYPT_METHOD, $key, 0, $iv); + $output = base64_encode($output); + + return $output; + + //return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5(MdPesqCriptografiaNew::getChaveCriptografia()), serialize($texto), MCRYPT_MODE_CBC, md5(md5(MdPesqCriptografiaNew::getChaveCriptografia())))), '+/=', '-_,'); + + + } catch (Exception $e) { + + throw new InfraException('Erro validando link externo.',$e); + } + } + + public static function descriptografa($texto){ + try { + + $key = hash('sha256', MdPesqCriptografiaNew::getChaveCriptografia()); + $iv = substr(hash('sha256', MdPesqCriptografiaNew::$IV), 0, 16); + $output = openssl_decrypt(base64_decode($texto), MdPesqCriptografiaNew::$ENCRYPT_METHOD, $key, 0, $iv); + return $output; + + //return unserialize(rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5(MdPesqCriptografiaNew::getChaveCriptografia()), base64_decode(strtr($texto, '-_,', '+/=')), MCRYPT_MODE_CBC, md5(md5(MdPesqCriptografiaNew::getChaveCriptografia()))), "\0")); + } catch (Exception $e) { + + throw new InfraException('Erro validando link externo.',$e); + } + } + + private static function getChaveCriptografia(){ + + $objParametroPesquisaDTO = new MdPesqParametroPesquisaDTO(); + $objParametroPesquisaDTO->setStrNome(MdPesqParametroPesquisaRN::$TA_CHAVE_CRIPTOGRAFIA); + $objParametroPesquisaDTO->retStrValor(); + $objParametroPesquisaDTO->retStrNome(); + + $objParametroPesquisaRN = new MdPesqParametroPesquisaRN(); + + $objParametroPesquisaDTO = $objParametroPesquisaRN->consultar($objParametroPesquisaDTO); + + if($objParametroPesquisaDTO != null && !empty($objParametroPesquisaDTO->getStrValor())){ + + return $objParametroPesquisaDTO->getStrValor(); + } + + return $KEY; + } + + //Esta criptografia é usada no site do cade; + //Alterar metodo de criptografia por uma criptografia php. +// public static function criptografaSiteCade($texto){ + +// $caminho = dirname(__FILE__).'/criptografia/mascaraArgumentos.jar'; +// $instrucao = 'java -jar '.$caminho.' \'criptografa\' \''.$texto.'\' \''.MdPesqCriptografiaNew::$KEY.'\' '; + +// exec( $instrucao, $saida, $retorno); +// if($retorno !=0){ +// throw new InfraException('Erro validando link externo.',$e); +// }else{ +// return $saida; +// } + +// } + //Esta criptografia é usada no site do cade; + //Alterar metodo de criptografia por uma criptografia php. +// public static function descriptografaSiteCade($texto){ + +// $caminho = dirname(__FILE__).'/criptografia/mascaraArgumentos.jar'; +// $instrucao = 'java -jar '.$caminho.' \'descriptografa\' \''.$texto.'\' \''.MdPesqCriptografiaNew::$KEY.'\' '; + +// exec( $instrucao, $saida, $retorno); +// if($retorno !=0){ +// throw new InfraException('Erro validando link externo.',$e); +// }else{ +// return $saida; +// } + +// } + + //Esta criptografia é usada no site do cade; + //Alterar metodo de criptografia por uma criptografia php. +// public static function descriptografaArgumentos($parametro){ + +// $parametrosCriptografados = $_SERVER['QUERY_STRING']; +// $parametrosDescriptografados = MdPesqCriptografiaNew::descriptografa($parametrosCriptografados); +// $arrParametros = explode("&", $parametrosDescriptografados[0]); +// $bolRecuperParametro = false; +// $valorParametro = ''; +// foreach ($arrParametros as $arrParametro){ +// $parametroRetorno = explode("=", $arrParametro); +// if($parametroRetorno[0] == $parametro){ +// $bolRecuperParametro = true; +// $valorParametro = $parametroRetorno[1]; +// break; +// }else{ +// $bolRecuperParametro = false; +// } +// } + +// if($bolRecuperParametro){ +// return $valorParametro; +// }else{ +// throw new InfraException('Erro recuperando parâmetro.'); +// } + + +// } + + } + + + +?> \ No newline at end of file diff --git a/sei/web/modulos/pesquisa/md_pesq_processo_exibir_new.php b/sei/web/modulos/pesquisa/md_pesq_processo_exibir_new.php new file mode 100644 index 0000000..b79832e --- /dev/null +++ b/sei/web/modulos/pesquisa/md_pesq_processo_exibir_new.php @@ -0,0 +1,943 @@ +validarSessao(); + //session_start(); + + ////////////////////////////////////////////////////////////////////////////// +// InfraDebug::getInstance()->setBolLigado(false); +// InfraDebug::getInstance()->setBolDebugInfra(true); +// InfraDebug::getInstance()->limpar(); + ////////////////////////////////////////////////////////////////////////////// + + MdPesqConverteURI::converterURI(); + MdPesqPesquisaUtil::valiadarLink(); + + // SessaoSEIExterna::getInstance()->validarLink(); + + + //carrega configurações pesquisa + + $objParametroPesquisaDTO = new MdPesqParametroPesquisaDTO(); + $objParametroPesquisaDTO->retStrNome(); + $objParametroPesquisaDTO->retStrValor(); + + $objParametroPesquisaRN = new MdPesqParametroPesquisaRN(); + $arrObjParametroPesquisaDTO = $objParametroPesquisaRN->listar($objParametroPesquisaDTO); + + $arrParametroPesquisaDTO = InfraArray::converterArrInfraDTO($arrObjParametroPesquisaDTO,'Valor','Nome'); + + $bolPesquisaProcessoRestrito = $arrParametroPesquisaDTO[MdPesqParametroPesquisaRN::$TA_PROCESSO_RESTRITO] == 'S' ? true : false; + $bolListaDocumentoProcessoPublico = $arrParametroPesquisaDTO[MdPesqParametroPesquisaRN::$TA_LISTA_DOCUMENTO_PROCESSO_PUBLICO] == 'S' ? true : false; + $bolListaAndamentoProcessoPublico = $arrParametroPesquisaDTO[MdPesqParametroPesquisaRN::$TA_LISTA_ANDAMENTO_PROCESSO_PUBLICO] == 'S' ? true : false; + $bolCaptchaGerarPdf = $arrParametroPesquisaDTO[MdPesqParametroPesquisaRN::$TA_CAPTCHA_PDF] == 'S' ? true : false; + $bolLinkMetadadosProcessoRestrito = $arrParametroPesquisaDTO[MdPesqParametroPesquisaRN::$TA_METADADOS_PROCESSO_RESTRITO] == 'S' ? true : false; + $bolListaAndamentoProcessoRestrito = $arrParametroPesquisaDTO[MdPesqParametroPesquisaRN::$TA_LISTA_ANDAMENTO_PROCESSO_RESTRITO] == 'S' ? true : false; + $bolListaDocumentoProcessoRestrito = $arrParametroPesquisaDTO[MdPesqParametroPesquisaRN::$TA_LISTA_DOCUMENTO_PROCESSO_RESTRITO] == 'S' ? true : false; + $txtDescricaoProcessoAcessoRestrito = $arrParametroPesquisaDTO[MdPesqParametroPesquisaRN::$TA_DESCRICAO_PROCEDIMENTO_ACESSO_RESTRITO]; + //$numPaginacaoAndamentos = $arrParametroPesquisaDTO[MdPesqParametroPesquisaRN::$TA_PAGINACAO_ANDAMENTOS]; + //$numPaginacaoDocumentos = $arrParametroPesquisaDTO[MdPesqParametroPesquisaRN::$TA_PAGINACAO_DOCUMENTOS]; + $numPaginacaoAndamentos = 100; + $numPaginacaoDocumentos = 100; + + if($bolCaptchaGerarPdf) { + $strCodigoParaGeracaoCaptcha = InfraCaptcha::obterCodigo(); + $md5Captcha = md5(InfraCaptcha::gerar($strCodigoParaGeracaoCaptcha)); + }else { + $md5Captcha = null; + } + + PaginaSEIExterna::getInstance()->setTipoPagina(PaginaSEIExterna::$TIPO_PAGINA_SEM_MENU); + + $strTitulo = 'Pesquisa Processual'; + + + $dblIdProcedimento = $_GET['id_procedimento']; + + //Carregar dados do cabeçalho + $objProcedimentoDTO = new ProcedimentoDTO(); + $objProcedimentoDTO->retStrNomeTipoProcedimento(); + $objProcedimentoDTO->retStrProtocoloProcedimentoFormatado(); + $objProcedimentoDTO->retDtaGeracaoProtocolo(); + $objProcedimentoDTO->retStrStaNivelAcessoGlobalProtocolo(); + $objProcedimentoDTO->retStrStaNivelAcessoLocalProtocolo(); + $objProcedimentoDTO->retNumIdHipoteseLegalProtocolo(); + + $objProcedimentoDTO->setDblIdProcedimento($dblIdProcedimento); + $objProcedimentoDTO->setStrSinDocTodos('S'); + $objProcedimentoDTO->setStrSinProcAnexados('S'); + //$objProcedimentoDTO->setStrSinDocAnexos('S'); + //$objProcedimentoDTO->setStrSinDocConteudo('S'); + + $objProcedimentoRN = new ProcedimentoRN(); + $arr = $objProcedimentoRN->listarCompleto($objProcedimentoDTO); + + if (count($arr)==0){ + //SessaoSEIExterna::getInstance()->sair(null, 'Processo não encontrado.'); + die('Processo não encontrado.'); + } + + $objProcedimentoDTO = $arr[0]; + + if($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo() == ProtocoloRN::$NA_SIGILOSO ){ + + die('Processo não encontrado.'); + + } + + if(!$bolLinkMetadadosProcessoRestrito || !$bolPesquisaProcessoRestrito){ + if ($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo()!= ProtocoloRN::$NA_PUBLICO){ + die('Processo não encontrado.'); + } + } + + + + + + + //Carregar interessados no processo + $objInteressadosParticipanteDTO = new ParticipanteDTO(); + $objInteressadosParticipanteDTO->retStrNomeContato(); + $objInteressadosParticipanteDTO->setDblIdProtocolo($dblIdProcedimento); + $objInteressadosParticipanteDTO->setStrStaParticipacao(ParticipanteRN::$TP_INTERESSADO); + + + $objInteressadosParticipanteRN = new ParticipanteRN(); + + $objInteressadosParticipanteDTO = $objInteressadosParticipanteRN->listarRN0189($objInteressadosParticipanteDTO); + + if (count($objInteressadosParticipanteDTO)==0){ + $strInteressados = ' '; + }else{ + $strInteressados = ''; + foreach($objInteressadosParticipanteDTO as $objInteressadoParticipanteDTO){ + $strInteressados .= $objInteressadoParticipanteDTO->getStrNomeContato()."
"; + } + } + + + //Mensagem Processo Restrito + $strMensagemProcessoRestrito = ''; + $strHipoteseLegal = ''; + if($objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo() == ProtocoloRN::$NA_RESTRITO && $bolLinkMetadadosProcessoRestrito){ + + $objHipoteseLegalDTO = new HipoteseLegalDTO(); + $objHipoteseLegalDTO->setNumIdHipoteseLegal($objProcedimentoDTO->getNumIdHipoteseLegalProtocolo()); + $objHipoteseLegalDTO->retStrBaseLegal(); + $objHipoteseLegalDTO->retStrNome(); + + $objHipoteseLegalRN = new HipoteseLegalRN(); + $objHipoteseLegalDTO = $objHipoteseLegalRN->consultar($objHipoteseLegalDTO); + + if($objHipoteseLegalDTO != null){ + + $strHipoteseLegal .= ''; + $strHipoteseLegal .= ''; + + } + + $strMensagemProcessoRestrito = '

'.$txtDescricaoProcessoAcessoRestrito.'

'; + + } + + + $strResultadoCabecalho = ''; + $strResultadoCabecalho .= ''."\n"; + $strResultadoCabecalho .= ''."\n"; + $strResultadoCabecalho .= ''."\n"; + $strResultadoCabecalho .= ''."\n"; + $strResultadoCabecalho .= ''."\n"; + $strResultadoCabecalho .= ''."\n"; + $strResultadoCabecalho .= '
Autuação
Processo:'.$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado().$strHipoteseLegal.'
Tipo:'.PaginaSEIExterna::getInstance()->formatarXHTML($objProcedimentoDTO->getStrNomeTipoProcedimento()).'
Data de Registro:'.$objProcedimentoDTO->getDtaGeracaoProtocolo().'
Interessados: '.$strInteressados.'
'."\n"; + + + + + + + //$arrObjDocumentoDTO = InfraArray::indexarArrInfraDTO($objProcedimentoDTO->getArrObjDocumentoDTO(),'IdDocumento'); + $arrObjRelProtocoloProtocoloDTO = array(); + + if($bolListaDocumentoProcessoPublico && $objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo() == ProtocoloRN::$NA_PUBLICO ){ + $arrObjRelProtocoloProtocoloDTO = $objProcedimentoDTO->getArrObjRelProtocoloProtocoloDTO(); + }else if($bolListaDocumentoProcessoRestrito && $objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo() == ProtocoloRN::$NA_RESTRITO){ + $arrObjRelProtocoloProtocoloDTO = $objProcedimentoDTO->getArrObjRelProtocoloProtocoloDTO(); + } + + // Objeto Fake para ordenação. + $objProtocoloPesquisaPublicaPaginacaoDTO = new MdPesqProtocoloPesquisaPublicaDTO(); + $objProtocoloPesquisaPublicaPaginacaoDTO->retTodos(true); + PaginaSEIExterna::getInstance()->prepararOrdenacao($objProtocoloPesquisaPublicaPaginacaoDTO, 'Registro', InfraDTO::$TIPO_ORDENACAO_ASC); + $arrObjProtocoloPesquisaPublicaDTO = array(); + + + + $objDocumentoRN = new DocumentoRN(); + + $numProtocolos = 0; + $numDocumentosPdf = 0; + $strCssMostrarAcoes = '.colunaAcoes {display:none;}'."\n"; + + $strThCheck = PaginaSEIExterna::getInstance()->getThCheck(); + + + foreach($arrObjRelProtocoloProtocoloDTO as $objRelProtocoloProtocoloDTO){ + + if ($objRelProtocoloProtocoloDTO->getStrStaAssociacao()==RelProtocoloProtocoloRN::$TA_DOCUMENTO_ASSOCIADO){ + + $objDocumentoDTO = $objRelProtocoloProtocoloDTO->getObjProtocoloDTO2(); + //valida documentos para retornar + if ($objDocumentoRN->verificarSelecaoAcessoExterno($objDocumentoDTO)){ + + $objProtocoloPesquisaPublicaDTO = new MdPesqProtocoloPesquisaPublicaDTO(); + $objProtocoloPesquisaPublicaDTO->setStrNumeroSEI($objDocumentoDTO->getStrProtocoloDocumentoFormatado()); + $objProtocoloPesquisaPublicaDTO->setStrTipoDocumento(PaginaSEIExterna::getInstance()->formatarXHTML($objDocumentoDTO->getStrNomeSerie().' '.$objDocumentoDTO->getStrNumero())); + + + if($objDocumentoDTO->getStrStaProtocoloProtocolo() == ProtocoloRN::$TP_DOCUMENTO_RECEBIDO){ + + $objAtributoAndamentoDTO = new AtributoAndamentoDTO(); + $objAtributoAndamentoDTO->setDblIdProtocoloAtividade($objProcedimentoDTO->getDblIdProcedimento()); + $objAtributoAndamentoDTO->setNumIdTarefaAtividade(TarefaRN::$TI_RECEBIMENTO_DOCUMENTO); + $objAtributoAndamentoDTO->setStrNome("DOCUMENTO"); + $objAtributoAndamentoDTO->setStrIdOrigem($objDocumentoDTO->getDblIdDocumento()); + + $objAtributoAndamentoDTO->retDthAberturaAtividade(); + + $objAtributoAndamentoRN = new AtributoAndamentoRN(); + + $objAtributoAndamentoDTO = $objAtributoAndamentoRN->consultarRN1366($objAtributoAndamentoDTO); + + if($objAtributoAndamentoDTO != null && $objAtributoAndamentoDTO->isSetDthAberturaAtividade()){ + + $dtaRecebimento = substr($objAtributoAndamentoDTO->getDthAberturaAtividade(),0,10); + + $objProtocoloPesquisaPublicaDTO->setDtaRegistro($dtaRecebimento); + + }else{ + + $objProtocoloPesquisaPublicaDTO->setDtaRegistro($objDocumentoDTO->getDtaGeracaoProtocolo()); + } + + $objProtocoloPesquisaPublicaDTO->setDtaDocumento($objDocumentoDTO->getDtaGeracaoProtocolo()); + + }else if ($objDocumentoDTO->getStrStaProtocoloProtocolo() == ProtocoloRN::$TP_DOCUMENTO_GERADO){ + + $objAssinaturaDTO = new AssinaturaDTO(); + $objAssinaturaDTO->setDblIdDocumento($objDocumentoDTO->getDblIdDocumento()); + $objAssinaturaDTO->setOrdNumIdAssinatura(InfraDTO::$TIPO_ORDENACAO_ASC); + $objAssinaturaDTO->retDthAberturaAtividade(); + + $objAssinaturaRN = new AssinaturaRN(); + $arrObjAssinaturaDTO = $objAssinaturaRN->listarRN1323($objAssinaturaDTO); + + if(is_array($arrObjAssinaturaDTO) && count($arrObjAssinaturaDTO) > 0) { + + $objAssinaturaDTO = $arrObjAssinaturaDTO[0]; + + if($objAssinaturaDTO != null && $objAssinaturaDTO->isSetDthAberturaAtividade()){ + + $dtaAssinatura = substr($objAssinaturaDTO->getDthAberturaAtividade(),0,10); + + $objProtocoloPesquisaPublicaDTO->setDtaRegistro($dtaAssinatura); + $objProtocoloPesquisaPublicaDTO->setDtaDocumento($dtaAssinatura); + + }else{ + $objProtocoloPesquisaPublicaDTO->setDtaRegistro($objDocumentoDTO->getDtaGeracaoProtocolo()); + $objProtocoloPesquisaPublicaDTO->setDtaDocumento($objDocumentoDTO->getDtaGeracaoProtocolo()); + } + }else{ + + $objProtocoloPesquisaPublicaDTO->setDtaRegistro($objDocumentoDTO->getDtaGeracaoProtocolo()); + $objProtocoloPesquisaPublicaDTO->setDtaDocumento($objDocumentoDTO->getDtaGeracaoProtocolo()); + } + + + + + } + + + $objProtocoloPesquisaPublicaDTO->setStrUnidade($objDocumentoDTO->getStrSiglaUnidadeGeradoraProtocolo()); + $objProtocoloPesquisaPublicaDTO->setStrStaAssociacao($objRelProtocoloProtocoloDTO->getStrStaAssociacao()); + $objProtocoloPesquisaPublicaDTO->setObjDocumentoDTO($objDocumentoDTO); + + + $arrObjProtocoloPesquisaPublicaDTO[] = $objProtocoloPesquisaPublicaDTO; + $numProtocolos++; + } + }else if ($objRelProtocoloProtocoloDTO->getStrStaAssociacao()==RelProtocoloProtocoloRN::$TA_PROCEDIMENTO_ANEXADO){ + + $objProcedimentoDTOAnexado = $objRelProtocoloProtocoloDTO->getObjProtocoloDTO2(); + + $objProtocoloPesquisaPublicaDTO = new MdPesqProtocoloPesquisaPublicaDTO(); + $objProtocoloPesquisaPublicaDTO->setStrNumeroSEI($objProcedimentoDTOAnexado->getStrProtocoloProcedimentoFormatado()); + $objProtocoloPesquisaPublicaDTO->setStrTipoDocumento(PaginaSEIExterna::getInstance()->formatarXHTML($objProcedimentoDTOAnexado->getStrNomeTipoProcedimento())); + $objProtocoloPesquisaPublicaDTO->setDtaDocumento($objProcedimentoDTOAnexado->getDtaGeracaoProtocolo()); + $objProtocoloPesquisaPublicaDTO->setDtaRegistro($objProcedimentoDTOAnexado->getDtaGeracaoProtocolo()); + $objProtocoloPesquisaPublicaDTO->setStrUnidade($objProcedimentoDTOAnexado->getStrSiglaUnidadeGeradoraProtocolo()); + $objProtocoloPesquisaPublicaDTO->setStrStaAssociacao($objRelProtocoloProtocoloDTO->getStrStaAssociacao()); + $objProtocoloPesquisaPublicaDTO->setObjProcedimentoDTO($objProcedimentoDTOAnexado); + + $arrObjProtocoloPesquisaPublicaDTO[] = $objProtocoloPesquisaPublicaDTO; + + + $numProtocolos++; + } + } + + + + if ($numProtocolos > 0){ + + + + $strResultado = ' + + + + + + + + + + '; + + $objProtocoloPesquisaPublicaPaginacaoDTO = new MdPesqProtocoloPesquisaPublicaDTO(); + + PaginaSEIExterna::getInstance()->prepararPaginacao($objProtocoloPesquisaPublicaPaginacaoDTO,$numPaginacaoDocumentos,false,null,'infraDocumento'); + $objProtocoloPesquisaPublicaPaginacaoDTO->setNumTotalRegistros($numProtocolos); + $inicioRegistro = $objProtocoloPesquisaPublicaPaginacaoDTO->getNumMaxRegistrosRetorno() * $objProtocoloPesquisaPublicaPaginacaoDTO->getNumPaginaAtual(); + + if($objProtocoloPesquisaPublicaPaginacaoDTO->getNumMaxRegistrosRetorno() + $inicioRegistro < $numProtocolos){ + $fimRegistro = $objProtocoloPesquisaPublicaPaginacaoDTO->getNumMaxRegistrosRetorno() + $inicioRegistro; + }else{ + $fimRegistro = $numProtocolos; + } + + + PaginaSEIExterna::getInstance()->processarPaginacao($objProtocoloPesquisaPublicaPaginacaoDTO,'infraDocumento'); + + // monta tabela documentos + for ($i=$inicioRegistro; $i < $fimRegistro; $i++){ + + $objProtocoloPesquisaPublicaDTO = $arrObjProtocoloPesquisaPublicaDTO[$i]; + if($objProtocoloPesquisaPublicaDTO->getStrStaAssociacao() == RelProtocoloProtocoloRN::$TA_DOCUMENTO_ASSOCIADO){ + + $objDocumentoDTO = $objProtocoloPesquisaPublicaDTO->getObjDocumentoDTO(); + $urlCripografadaDocumeto = MdPesqCriptografiaNew::criptografa('acao_externa=documento_exibir&id_documento='.$objDocumentoDTO->getDblIdDocumento().'&id_orgao_acesso_externo=0'); + $strLinkDocumento = PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink('md_pesq_documento_consulta_externa.php?'.$urlCripografadaDocumeto)); + + $strResultado .= ''; + + //Cria checkbox para gerar PDF, verifica se o Processo é público e o Acesso Local do Protocolo é Público + if($objDocumentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO && $objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO){ + if($objDocumentoRN->verificarSelecaoGeracaoPdf($objDocumentoDTO)){ + $strResultado .= ''; + }else{ + $strResultado .= ''; + } + }else{ + $strResultado .= ''; + } + + + //Exibe link de documentos com nivel de acesso local Público de processo público + if($objDocumentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO && $objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO ){ + $strResultado .= ''; + }else{ + if($objDocumentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_RESTRITO){ + + //necessario para retornar id hipotese legal do documento + $strHipoteseLegalDocumento = ''; + $objProtocoloDocumentoDTO = new ProtocoloDTO(); + $objProtocoloDocumentoDTO->setDblIdProtocolo($objDocumentoDTO->getDblIdDocumento()); + $objProtocoloDocumentoDTO->retNumIdHipoteseLegal(); + + $objProtocoloRN = new ProtocoloRN(); + $objProtocoloDocumentoDTO = $objProtocoloRN->consultarRN0186($objProtocoloDocumentoDTO); + + if($objProtocoloDocumentoDTO != null){ + + $objHipoteseLegaDocumentoDTO = new HipoteseLegalDTO(); + $objHipoteseLegaDocumentoDTO->setNumIdHipoteseLegal($objProtocoloDocumentoDTO->getNumIdHipoteseLegal()); + $objHipoteseLegaDocumentoDTO->retStrNome(); + $objHipoteseLegaDocumentoDTO->retStrBaseLegal(); + + $objHipoteseLegalRN = new HipoteseLegalRN(); + $objHipoteseLegaDocumentoDTO = $objHipoteseLegalRN->consultar($objHipoteseLegaDocumentoDTO); + + + if($objHipoteseLegaDocumentoDTO != null){ + + $strHipoteseLegalDocumento .= $objHipoteseLegaDocumentoDTO->getStrNome().' ('.$objHipoteseLegaDocumentoDTO->getStrBaseLegal().')'; + } + } + + + + $strResultado .= ''; + + }else{ + $strResultado .= ' + + + + '; + + }else if($objProtocoloPesquisaPublicaDTO->getStrStaAssociacao() == RelProtocoloProtocoloRN::$TA_PROCEDIMENTO_ANEXADO){ + + + $strResultado .= ''; + $strResultado .= ''; + $strHipoteseLegalAnexo = ''; + $strProtocoloRestrito = ''; + + $objProcedimentoDTOAnexado = $objProtocoloPesquisaPublicaDTO->getObjProcedimentoDTO(); + + // cria indicação de acesso restrito com hipotese legal. + if($objProcedimentoDTOAnexado->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_RESTRITO){ + + $strHipoteseLegalAnexo = ''; + $objProtocoloAnexoDTO = new ProtocoloDTO(); + $objProtocoloAnexoDTO->setDblIdProtocolo($objProcedimentoDTOAnexado->getDblIdProcedimento()); + $objProtocoloAnexoDTO->retNumIdHipoteseLegal(); + + $objProtocoloRN = new ProtocoloRN(); + $objProtocoloAnexoDTO = $objProtocoloRN->consultarRN0186($objProtocoloAnexoDTO); + + if($objProtocoloAnexoDTO != null){ + + $objHipoteseLegaAnexoDTO = new HipoteseLegalDTO(); + $objHipoteseLegaAnexoDTO->setNumIdHipoteseLegal($objProtocoloAnexoDTO->getNumIdHipoteseLegal()); + $objHipoteseLegaAnexoDTO->retStrNome(); + $objHipoteseLegaAnexoDTO->retStrBaseLegal(); + + $objHipoteseLegalRN = new HipoteseLegalRN(); + $objHipoteseLegaDocumentoDTO = $objHipoteseLegalRN->consultar($objHipoteseLegaAnexoDTO); + + + if($objHipoteseLegaDocumentoDTO != null){ + + $strHipoteseLegalAnexo .= $objHipoteseLegaDocumentoDTO->getStrNome().' ('.$objHipoteseLegaDocumentoDTO->getStrBaseLegal().')'; + } + } + $strProtocoloRestrito .= ''; + } + + if($objProcedimentoDTOAnexado->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO && $objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_PUBLICO ){ + $parametrosCriptografadosProcesso = MdPesqCriptografiaNew::criptografa('id_orgao_acesso_externo=0&id_procedimento='.$objProcedimentoDTOAnexado->getDblIdProcedimento()); + $urlPesquisaProcesso = 'md_pesq_processo_exibir.php?'.$parametrosCriptografadosProcesso; + + // $strLinkProcessoAnexado = PaginaSEIExterna::getInstance()->formatarXHTML(SessaoSEIExterna::getInstance()->assinarLink('processo_acesso_externo_consulta.php?id_acesso_externo='.$_GET['id_acesso_externo'].'&id_acesso_externo_assinatura='.$_GET['id_acesso_externo_assinatura'].'&id_procedimento_anexado='.$objProcedimentoDTOAnexado->getDblIdProcedimento())); + + $strLinkProcessoAnexado = PaginaSEI::getInstance()->formatarXHTML(SessaoSEI::getInstance()->assinarLink(MdPesqSolrUtilExterno::prepararUrl($urlPesquisaProcesso))); + + + $strResultado .= ''; + + }else{ + + $strResultado .= ''; + + } + + $strResultado.= ' + + + + '; + $strResultado .=''; + + } + } + + $strResultado.='
'.PaginaSEIExterna::getInstance()->gerarCaptionTabela("Protocolos",$numProtocolos).'
'.$strThCheck.''.PaginaSEIExterna::getInstance()->getThOrdenacao($objProtocoloPesquisaPublicaPaginacaoDTO,'Documento / Processo','NumeroSEI',$arrObjProtocoloPesquisaPublicaDTO,true).''.PaginaSEIExterna::getInstance()->getThOrdenacao($objProtocoloPesquisaPublicaPaginacaoDTO,'Tipo de Documento','TipoDocumento',$arrObjProtocoloPesquisaPublicaDTO,true).''.PaginaSEIExterna::getInstance()->getThOrdenacao($objProtocoloPesquisaPublicaPaginacaoDTO,'Data do Documento','Documento',$arrObjProtocoloPesquisaPublicaDTO,true).''.PaginaSEIExterna::getInstance()->getThOrdenacao($objProtocoloPesquisaPublicaPaginacaoDTO,'Data de Registro','Registro',$arrObjProtocoloPesquisaPublicaDTO,true).''.PaginaSEIExterna::getInstance()->getThOrdenacao($objProtocoloPesquisaPublicaPaginacaoDTO,'Unidade','Unidade',$arrObjProtocoloPesquisaPublicaDTO,true).'
'.PaginaSEIExterna::getInstance()->getTrCheck($numDocumentosPdf++, $objDocumentoDTO->getDblIdDocumento(), $objDocumentoDTO->getStrNomeSerie()).'  '.$objDocumentoDTO->getStrProtocoloDocumentoFormatado().''.$objDocumentoDTO->getStrProtocoloDocumentoFormatado().''; + $strResultado .= ''; + $strResultado .= ''; + $strResultado .= ''.$objDocumentoDTO->getStrProtocoloDocumentoFormatado().''; + } + + + } + + $strResultado .= ''.PaginaSEIExterna::getInstance()->formatarXHTML($objDocumentoDTO->getStrNomeSerie().' '.$objDocumentoDTO->getStrNumero()).''.$objProtocoloPesquisaPublicaDTO->getDtaDocumento().''.$objProtocoloPesquisaPublicaDTO->getDtaRegistro().''.$objDocumentoDTO->getStrSiglaUnidadeGeradoraProtocolo().''; + + $strResultado .='
 '.$objProcedimentoDTOAnexado->getStrProtocoloProcedimentoFormatado().''.$strProtocoloRestrito.''.PaginaSEIExterna::getInstance()->formatarXHTML($objProcedimentoDTOAnexado->getStrProtocoloProcedimentoFormatado()).' '.$strProtocoloRestrito.''.PaginaSEIExterna::getInstance()->formatarXHTML($objProcedimentoDTOAnexado->getStrNomeTipoProcedimento()).''.$objProtocoloPesquisaPublicaDTO->getDtaDocumento().''.$objProtocoloPesquisaPublicaDTO->getDtaRegistro().''.$objProcedimentoDTOAnexado->getStrSiglaUnidadeGeradoraProtocolo().' 
'; + + } + + + + $arrComandos = array(); + if ($numDocumentosPdf > 0){ + if($bolCaptchaGerarPdf){ + $strComando = ''; + }else{ + $strComando = ''; + } + + $arrComandos[] = $strComando; + + } + + //Carregar histórico + + $numRegistrosAtividades = 0; + + + if(($bolListaAndamentoProcessoPublico && $objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo() == ProtocoloRN::$NA_PUBLICO) || + ($bolListaAndamentoProcessoRestrito && $objProcedimentoDTO->getStrStaNivelAcessoGlobalProtocolo() == ProtocoloRN::$NA_RESTRITO) ){ + + $objProcedimentoHistoricoDTO = new ProcedimentoHistoricoDTO(); + $objProcedimentoHistoricoDTO->setDblIdProcedimento($dblIdProcedimento); + $objProcedimentoHistoricoDTO->setStrStaHistorico(ProcedimentoRN::$TH_EXTERNO); + $objProcedimentoHistoricoDTO->setStrSinGerarLinksHistorico('N'); + + $objProcedimentoRN = new ProcedimentoRN(); + $objProcedimentoDTORet = $objProcedimentoRN->consultarHistoricoRN1025($objProcedimentoHistoricoDTO); + $arrObjAtividadeDTO = $objProcedimentoDTORet->getArrObjAtividadeDTO(); + + $numRegistrosAtividades = count($arrObjAtividadeDTO); + + + } + + + + if ($numRegistrosAtividades > 0){ + + $bolCheck = false; + + $strResultadoAndamentos = ''; + + $strResultadoAndamentos .= ''."\n"; + $strResultadoAndamentos .= ''; + $strResultadoAndamentos .= ''; + $strResultadoAndamentos .= ''; + $strResultadoAndamentos .= ''; + $strResultadoAndamentos .= ''; + $strResultadoAndamentos .= ''."\n"; + + $strQuebraLinha = '
'; + + + $objAtividadeDTO = new AtividadeDTO(); + PaginaSEIExterna::getInstance()->prepararPaginacao($objAtividadeDTO,$numPaginacaoAndamentos,false,null,'infraAndamento'); + $objAtividadeDTO->setNumTotalRegistros($numRegistrosAtividades); + $inicioRegistroAtividade = $objAtividadeDTO->getNumMaxRegistrosRetorno() * $objAtividadeDTO->getNumPaginaAtual(); + + if($objAtividadeDTO->getNumMaxRegistrosRetorno() + $inicioRegistroAtividade < $numRegistrosAtividades){ + $fimRegistroAtividade = $objProtocoloPesquisaPublicaPaginacaoDTO->getNumMaxRegistrosRetorno() + $inicioRegistroAtividade; + }else{ + $fimRegistroAtividade = $numRegistrosAtividades; + } + + PaginaSEIExterna::getInstance()->processarPaginacao($objAtividadeDTO,'infraAndamento'); + echo $objAtividadeDTO->getNumPaginaAtual(); + //foreach($arrObjAtividadeDTO as $objAtividadeDTO){ + for ($i=$inicioRegistroAtividade; $i < $fimRegistroAtividade; $i++){ + //InfraDebug::getInstance()->gravar($objAtividadeDTO->getNumIdAtividade()); + + $strResultadoAndamentos .= "\n\n".''."\n"; + + if ($arrObjAtividadeDTO[$i]->getStrSinUltimaUnidadeHistorico() == 'S'){ + $strAbertas = 'class="andamentoAberto"'; + }else{ + $strAbertas = 'class="andamentoConcluido"'; + } + + $strResultadoAndamentos .= ''; + $strResultadoAndamentos .= "\n".''; + + $strResultadoAndamentos .= "\n".''; + + $strResultadoAndamentos .= "\n"; + $strResultadoAndamentos .= "\n".''; + + $strResultadoAndamentos .= ''; + } + $strResultadoAndamentos .= '
'.PaginaSEIExterna::getInstance()->gerarCaptionTabela('Andamentos',$numRegistrosAtividades).'
Data/HoraUnidadeDescrição
'; + $strResultadoAndamentos .= substr($arrObjAtividadeDTO[$i]->getDthAbertura(),0,16); + $strResultadoAndamentos .= ''; + $strResultadoAndamentos .= ''.$arrObjAtividadeDTO[$i]->getStrSiglaUnidade().''; + $strResultadoAndamentos .= ''; + + if (!InfraString::isBolVazia($arrObjAtividadeDTO[$i]->getStrNomeTarefa())){ + $strResultadoAndamentos .= nl2br($arrObjAtividadeDTO[$i]->getStrNomeTarefa()).$strQuebraLinha; + } + + $strResultadoAndamentos .= '

'; + } + + + + AuditoriaSEI::getInstance()->auditar('processo_consulta_externa', __FILE__, strip_tags($strResultadoCabecalho)."\n".strip_tags($strResultado)); + + if ($_POST['hdnFlagGerar']=='1'){ + + if(md5($_POST['txtCaptcha']) != $_POST['hdnCaptchaMd5'] && $_GET['hash'] != $_POST['hdnCaptchaMd5'] && $bolCaptchaGerarPdf == true){ + PaginaSEIExterna::getInstance()->setStrMensagem('Código de confirmação inválido.'); + + }else { + + + $objDocumentoRN = new DocumentoRN(); + + $parArrObjDocumentoDTO = InfraArray::converterArrInfraDTO(InfraArray::gerarArrInfraDTO('DocumentoDTO','IdDocumento',PaginaSEIExterna::getInstance()->getArrStrItensSelecionados()),'IdDocumento'); + $objDocumentoDTO = new DocumentoDTO(); + $objDocumentoDTO->retDblIdDocumento(); + $objDocumentoDTO->setDblIdDocumento($parArrObjDocumentoDTO, InfraDTO::$OPER_IN); + $objDocumentoDTO->retDblIdProcedimento(); + $objDocumentoDTO->retStrStaNivelAcessoGlobalProtocolo(); + $objDocumentoDTO->retStrStaNivelAcessoLocalProtocolo(); + $arrObjDocumentoDTO = $objDocumentoRN->listarRN0008($objDocumentoDTO); + + foreach ($arrObjDocumentoDTO as $objDocumentoDTO){ + + //Alterardo para atender o pedido da anatel para gerar pdf de documentos de nivel de acesso local = Público e de Procedimentos Públicos mesmo se o nivel global for restrito + if($bolListaDocumentoProcessoRestrito){ + if($objDocumentoDTO->getDblIdProcedimento() != $dblIdProcedimento || $objDocumentoDTO->getStrStaNivelAcessoLocalProtocolo() != ProtocoloRN::$NA_PUBLICO || $objProcedimentoDTO->getStrStaNivelAcessoLocalProtocolo() != ProtocoloRN::$NA_PUBLICO){ + die ("Erro ao Gerar Pdf"); + } + }else if($bolListaDocumentoProcessoPublico){ + if($objDocumentoDTO->getDblIdProcedimento() != $dblIdProcedimento || $objDocumentoDTO->getStrStaNivelAcessoGlobalProtocolo() != ProtocoloRN::$NA_PUBLICO){ + die ("Erro ao Gerar Pdf"); + } + }else{ + die ("Erro ao Gerar Pdf"); + } + + + } + + + $objDocumentoRN = new DocumentoRN(); + $objAnexoDTO = $objDocumentoRN->gerarPdf(InfraArray::gerarArrInfraDTO('DocumentoDTO','IdDocumento',PaginaSEIExterna::getInstance()->getArrStrItensSelecionados())); + + $bolGeracaoOK = true; + + } + + } + +}catch(Exception $e){ + PaginaSEIExterna::getInstance()->processarExcecao($e); +} + + +PaginaSEIExterna::getInstance()->montarDocType(); +PaginaSEIExterna::getInstance()->abrirHtml(); +PaginaSEIExterna::getInstance()->abrirHead(); +PaginaSEIExterna::getInstance()->montarMeta(); +PaginaSEIExterna::getInstance()->montarTitle(':: '.PaginaSEIExterna::getInstance()->getStrNomeSistema().' - '.$strTitulo.' ::'); +PaginaSEIExterna::getInstance()->montarStyle(); +PaginaSEIExterna::getInstance()->abrirStyle(); +echo $strCssMostrarAcoes; +?> + +div.infraBarraSistemaE {width:90%} +div.infraBarraSistemaD {width:5%} +div.infraBarraComandos {width:99%} + +table caption { + text-align:left !important; + font-size: 1.2em; + font-weight:bold; +} + +.andamentoAberto { + background-color:white; +} + +.andamentoConcluido { + background-color:white; +} + + +#tblCabecalho{margin-top:1;} +#tblDocumentos {margin-top:1.5em;} +#tblHistorico {margin-top:1.5em;} +#divinfraDocumentoAreaPaginacaoSuperior {display: none;} +#divinfraAndamentoAreaPaginacaoSuperior {display: none;} + + +#lblCaptcha {position: absolute; top:30%; left: 20%; width: 80%} +#txtCaptcha{position: absolute; top:56%; left: 20%; height:15%; width:56%;font-size: 3em;} +#btnEnviarCaptcha {position: absolute; top:80%; left: 20%; width:56%} + +#divInfraModal{ + + display: none; + position: fixed; + z-index: 1; + padding-top: 100px; + left: 0; + top: 0; + width: 50%; + height: 50%; + overflow: auto; + +} + + + +.close { + color: white; + float: right; + font-size: 28px; + font-weight: bold; +} + +.close:hover, +.close:focus { + color: #000; + text-decoration: none; + cursor: pointer; +} + +.modal-header { + padding: 2px 16px; + background-image: url("imagens/bg_barra_sistema.jpg"); + color: white; +} + +.modal-body {padding: 2px 16px;} + +.modal-footer { + padding: 2px 16px; + background-color: #5cb85c; + color: white; +} + + +span.retiraAncoraPadraoAzul{font-size: 1.2em;} + +fecharStyle(); +PaginaSEIExterna::getInstance()->montarJavaScript(); +PaginaSEIExterna::getInstance()->abrirJavaScript(); +?> + +function inicializar(){ + + + + + + + window.open('assinarLink('md_pesq_processo_exibe_arquivo.php?acao_externa=usuario_externo_exibir_arquivo&acao_origem_externa=protocolo_pesquisar&id_orgao_acesso_externo=0&nome_arquivo='.$objAnexoDTO->getStrNome().'&nome_download=SEI-'.$objProcedimentoDTO->getStrProtocoloProcedimentoFormatado().'.pdf');?>'); + + + + + infraEfeitoTabelas(); +} + + + + +$(document).unbind("keyup").keyup(function(e){ + e.preventDefault(); + var code = e.which; + if(code==13){ + var modal = document.getElementById('divInfraModal'); + if(modal.style.display == "block"){ + fecharPdfModal(); + gerarPdf(); + + } + } +}); + + + +function gerarPdfModal(){ + + if (document.getElementById('hdnInfraItensSelecionados').value==''){ + alert('Nenhum documento selecionado.'); + return; + } + var modal = document.getElementById('divInfraModal'); + modal.style.display = "block"; + +} + +function fecharPdfModal(){ + + var modal = document.getElementById('divInfraModal'); + modal.style.display = "none"; +} + +window.onclick = function(event) { + var modal = document.getElementById('divInfraModal'); + if (event.target == modal) { + modal.style.display = "none"; + } +} + + + +function gerarPdf() { + + if (document.getElementById('hdnInfraItensSelecionados').value==''){ + alert('Nenhum documento selecionado.'); + return; + } + + + fecharPdfModal(); + + + infraExibirAviso(false); + + document.getElementById('hdnFlagGerar').value = '1'; + document.getElementById('frmProcessoAcessoExternoConsulta').submit(); +} + +fecharJavaScript(); +PaginaSEIExterna::getInstance()->fecharHead(); +PaginaSEIExterna::getInstance()->abrirBody($strTitulo,'onload="inicializar();"'); +?> + +
+ +
+ + + +
+ + '; + +} +PaginaSEIExterna::getInstance()->montarBarraComandosSuperior($arrComandos); +echo $strResultadoCabecalho; +echo $strMensagemProcessoRestrito; +PaginaSEIExterna::getInstance()->montarAreaTabela($strResultado,$numProtocolos,false,'',null,'infraDocumento'); +PaginaSEIExterna::getInstance()->montarAreaTabela($strResultadoAndamentos,$numRegistrosAtividades,false,'',null,'infraAndamento'); +//echo $strResultadoAndamentos; +?> + + + + +
+montarAreaDebug(); + +if($bolGeracaoOK){ + ?> + +fecharBody(); +PaginaSEIExterna::getInstance()->fecharHtml(); +?> \ No newline at end of file -- libgit2 0.21.2