Commit 9b06073d0ce851d689c7b02076775417b0ce6757
1 parent
5b74e9e8
Exists in
master
and in
1 other branch
Correção do erro ao Gerar PDF no navegador Internet Explore 11
Correção Link Externo Inválido quando Usuário Externo está logado na página de Acesso Externo (Contribuição Anatel)
Showing
8 changed files
with
89 additions
and
8 deletions
Show diff stats
sei/institucional/pesquisa/Leia-me.txt
| 1 | -Roteiro de instalação. | |
| 1 | +REQUISITOS PARA INSTALAÇÂO: | |
| 2 | + - SEI 2.6.0.A11 instalada (verificar valor da constante de versão do SEI no arquivo sei/SEI.php ou quando para o mouse sobre a logo do SEI depois de efetuado login no sistema). | |
| 3 | + | |
| 4 | +PROCEDIMENTOS PARA INSTALAÇÂO: | |
| 2 | 5 | |
| 3 | 6 | 1 - Caso ainda não exista, criar a pasta "institucional" na raiz do SEI (é mandatório a manutenção deste nome de pasta conforme o padrão do SEI para módulos): |
| 4 | 7 | ... | ... |
sei/institucional/pesquisa/PesquisaIntegracao.php
sei/institucional/pesquisa/ajuda_exibir_externo.php
sei/institucional/pesquisa/controlador_ajax_externo.php
sei/institucional/pesquisa/documento_consulta_externa.php
sei/institucional/pesquisa/processo_exibe_arquivo.php
sei/institucional/pesquisa/processo_exibir.php
| ... | ... | @@ -12,7 +12,7 @@ |
| 12 | 12 | try { |
| 13 | 13 | require_once dirname(__FILE__).'/../../SEI.php'; |
| 14 | 14 | |
| 15 | - session_start(); | |
| 15 | + //session_start(); | |
| 16 | 16 | |
| 17 | 17 | ////////////////////////////////////////////////////////////////////////////// |
| 18 | 18 | InfraDebug::getInstance()->setBolLigado(false); |
| ... | ... | @@ -864,6 +864,84 @@ echo $strResultadoAndamentos; |
| 864 | 864 | </form> |
| 865 | 865 | <? |
| 866 | 866 | PaginaSEIExterna::getInstance()->montarAreaDebug(); |
| 867 | + | |
| 868 | +if($bolGeracaoOK){ | |
| 869 | + ?> | |
| 870 | + <script> | |
| 871 | + if (navigator.userAgent.match(/msie/i) || navigator.userAgent.match(/trident/i) ){ | |
| 872 | + | |
| 873 | + window.open('<?=SessaoSEIExterna::getInstance()->assinarLink('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');?>'); | |
| 874 | + <? | |
| 875 | + if($bolCaptchaGerarPdf){ | |
| 876 | + ?> | |
| 877 | + | |
| 878 | + $(document).unbind("keyup").keyup(function(e){ | |
| 879 | + e.preventDefault(); | |
| 880 | + var code = e.which; | |
| 881 | + if(code==13){ | |
| 882 | + var modal = document.getElementById('divInfraModal'); | |
| 883 | + if(modal.style.display == "block"){ | |
| 884 | + fecharPdfModal(); | |
| 885 | + gerarPdf(); | |
| 886 | + | |
| 887 | + } | |
| 888 | + } | |
| 889 | + }); | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + function gerarPdfModal(){ | |
| 894 | + | |
| 895 | + if (document.getElementById('hdnInfraItensSelecionados').value==''){ | |
| 896 | + alert('Nenhum documento selecionado.'); | |
| 897 | + return; | |
| 898 | + } | |
| 899 | + var modal = document.getElementById('divInfraModal'); | |
| 900 | + modal.style.display = "block"; | |
| 901 | + | |
| 902 | + } | |
| 903 | + | |
| 904 | + function fecharPdfModal(){ | |
| 905 | + | |
| 906 | + var modal = document.getElementById('divInfraModal'); | |
| 907 | + modal.style.display = "none"; | |
| 908 | + } | |
| 909 | + | |
| 910 | + window.onclick = function(event) { | |
| 911 | + var modal = document.getElementById('divInfraModal'); | |
| 912 | + if (event.target == modal) { | |
| 913 | + modal.style.display = "none"; | |
| 914 | + } | |
| 915 | + } | |
| 916 | + | |
| 917 | + <? | |
| 918 | + } | |
| 919 | + ?> | |
| 920 | + | |
| 921 | + function gerarPdf() { | |
| 922 | + | |
| 923 | + if (document.getElementById('hdnInfraItensSelecionados').value==''){ | |
| 924 | + alert('Nenhum documento selecionado.'); | |
| 925 | + return; | |
| 926 | + } | |
| 927 | + | |
| 928 | + <? | |
| 929 | + if($bolCaptchaGerarPdf){ | |
| 930 | + ?> | |
| 931 | + fecharPdfModal(); | |
| 932 | + <? | |
| 933 | + } | |
| 934 | + ?> | |
| 935 | + | |
| 936 | + infraExibirAviso(false); | |
| 937 | + | |
| 938 | + document.getElementById('hdnFlagGerar').value = '1'; | |
| 939 | + document.getElementById('frmProcessoAcessoExternoConsulta').submit(); | |
| 940 | + } | |
| 941 | + } | |
| 942 | + </script> | |
| 943 | +<? | |
| 944 | +} | |
| 867 | 945 | PaginaSEIExterna::getInstance()->fecharBody(); |
| 868 | 946 | PaginaSEIExterna::getInstance()->fecharHtml(); |
| 869 | 947 | ?> |
| 870 | 948 | \ No newline at end of file | ... | ... |
sei/institucional/pesquisa/processo_pesquisar.php
| ... | ... | @@ -33,7 +33,7 @@ try { |
| 33 | 33 | require_once dirname(__FILE__).'/../../SEI.php'; |
| 34 | 34 | require_once ("ConverteURI.php"); |
| 35 | 35 | |
| 36 | - session_start(); | |
| 36 | + //session_start(); | |
| 37 | 37 | |
| 38 | 38 | InfraDebug::getInstance()->setBolLigado(false); |
| 39 | 39 | InfraDebug::getInstance()->setBolDebugInfra(false); | ... | ... |