Commit 024b79d3942aa27f86f7d051de04997a5862dd82
1 parent
28e1a223
Exists in
master
and in
7 other branches
--no commit message
Showing
4 changed files
with
14 additions
and
4 deletions
Show diff stats
classesjs/atlas.js
... | ... | @@ -36,7 +36,7 @@ Variavel: listaAtlas |
36 | 36 | |
37 | 37 | Objeto com as informações básicas sobre os Atlas existentes. |
38 | 38 | |
39 | -Essa lista é obtida lendo-se o arquivo xml definido em atlasxml ou no siostema de administração | |
39 | +Essa lista é obtida lendo-se o arquivo xml definido em atlasxml ou no sistema de administração | |
40 | 40 | */ |
41 | 41 | listaAtlas = ""; |
42 | 42 | /* |
... | ... | @@ -55,8 +55,10 @@ Pega o título e monta as pranchas |
55 | 55 | Parametros: |
56 | 56 | |
57 | 57 | combow {numerico} - largura do combo. Para escapar, utilize 0 |
58 | + | |
59 | +atlasId {numerico} id do atlas que será utilizado para carregar as pranchas. Se não for definido, o i3Geo usará a seção PHP | |
58 | 60 | */ |
59 | -function iniciaAtlas(combow) | |
61 | +function iniciaAtlas(combow,atlasId) | |
60 | 62 | { |
61 | 63 | if(!combow) |
62 | 64 | {combow = 0;} |
... | ... | @@ -142,6 +144,8 @@ function iniciaAtlas(combow) |
142 | 144 | i3GEO.mapa.ajustaPosicao(); |
143 | 145 | } |
144 | 146 | var p = i3GEO.configura.locaplic+"/classesphp/atlas_controle.php?funcao=pegaListaDePranchas&g_sid="+i3GEO.configura.sid; |
147 | + if(atlasId) | |
148 | + {p += "&atlasId="+atlasId;} | |
145 | 149 | cpObjAtlas.call(p,"pegaListaDePranchas",monta); |
146 | 150 | } |
147 | 151 | /* | ... | ... |
classesphp/atlas_controle.php
... | ... | @@ -77,6 +77,10 @@ if(isset($g_sid)) |
77 | 77 | session_name("i3GeoPHP"); |
78 | 78 | session_id($g_sid); |
79 | 79 | session_start(); |
80 | + //guarda na section se o id tiver sido enviado epla URL | |
81 | + if(isset($atlasId)) | |
82 | + {$_SESSION["atlasId"] = $atlasId;} | |
83 | + // | |
80 | 84 | foreach(array_keys($_SESSION) as $k) |
81 | 85 | {eval("\$".$k."='".$_SESSION[$k]."';");} |
82 | 86 | $postgis_mapa = $_SESSION["postgis_mapa"]; | ... | ... |
ferramentas/excluirarvore/index.js.php
... | ... | @@ -74,7 +74,9 @@ i3GEOF.excluirarvore = { |
74 | 74 | {onclick:{fn: i3GEOF.excluirarvore.lote}} |
75 | 75 | ); |
76 | 76 | } |
77 | - catch(erro){alert(erro);} | |
77 | + catch(erro){ | |
78 | + i3GEO.eventos.ATUALIZAARVORECAMADAS.remove("i3GEOF.excluirarvore.inicia(i3GEOF.excluirarvore.iddiv)"); | |
79 | + } | |
78 | 80 | while(n > 0){ |
79 | 81 | n -= 1; |
80 | 82 | temp = $i("excluirC_"+camadas[n].name); | ... | ... |
ms_criamapa.php
... | ... | @@ -143,7 +143,7 @@ require_once ($caminho."classesphp/carrega_ext.php"); |
143 | 143 | //quando $funcao existe, é pq o ms_criamapa.php está sendo utilizado como um include em classesphp/mapa_controle.php |
144 | 144 | // |
145 | 145 | if(!isset($funcao)) |
146 | -{ob_clean();} | |
146 | +{ob_end_clean();} | |
147 | 147 | if (!isset($caminho)) |
148 | 148 | {$caminho = "";} |
149 | 149 | if (!file_exists($caminho."classesphp/carrega_ext.php")) | ... | ... |