Commit 024b79d3942aa27f86f7d051de04997a5862dd82

Authored by Edmar Moretti
1 parent 28e1a223

--no commit message

classesjs/atlas.js
@@ -36,7 +36,7 @@ Variavel: listaAtlas @@ -36,7 +36,7 @@ Variavel: listaAtlas
36 36
37 Objeto com as informações básicas sobre os Atlas existentes. 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 listaAtlas = ""; 41 listaAtlas = "";
42 /* 42 /*
@@ -55,8 +55,10 @@ Pega o título e monta as pranchas @@ -55,8 +55,10 @@ Pega o título e monta as pranchas
55 Parametros: 55 Parametros:
56 56
57 combow {numerico} - largura do combo. Para escapar, utilize 0 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 if(!combow) 63 if(!combow)
62 {combow = 0;} 64 {combow = 0;}
@@ -142,6 +144,8 @@ function iniciaAtlas(combow) @@ -142,6 +144,8 @@ function iniciaAtlas(combow)
142 i3GEO.mapa.ajustaPosicao(); 144 i3GEO.mapa.ajustaPosicao();
143 } 145 }
144 var p = i3GEO.configura.locaplic+"/classesphp/atlas_controle.php?funcao=pegaListaDePranchas&g_sid="+i3GEO.configura.sid; 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 cpObjAtlas.call(p,"pegaListaDePranchas",monta); 149 cpObjAtlas.call(p,"pegaListaDePranchas",monta);
146 } 150 }
147 /* 151 /*
classesphp/atlas_controle.php
@@ -77,6 +77,10 @@ if(isset($g_sid)) @@ -77,6 +77,10 @@ if(isset($g_sid))
77 session_name("i3GeoPHP"); 77 session_name("i3GeoPHP");
78 session_id($g_sid); 78 session_id($g_sid);
79 session_start(); 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 foreach(array_keys($_SESSION) as $k) 84 foreach(array_keys($_SESSION) as $k)
81 {eval("\$".$k."='".$_SESSION[$k]."';");} 85 {eval("\$".$k."='".$_SESSION[$k]."';");}
82 $postgis_mapa = $_SESSION["postgis_mapa"]; 86 $postgis_mapa = $_SESSION["postgis_mapa"];
ferramentas/excluirarvore/index.js.php
@@ -74,7 +74,9 @@ i3GEOF.excluirarvore = { @@ -74,7 +74,9 @@ i3GEOF.excluirarvore = {
74 {onclick:{fn: i3GEOF.excluirarvore.lote}} 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 while(n > 0){ 80 while(n > 0){
79 n -= 1; 81 n -= 1;
80 temp = $i("excluirC_"+camadas[n].name); 82 temp = $i("excluirC_"+camadas[n].name);
ms_criamapa.php
@@ -143,7 +143,7 @@ require_once ($caminho."classesphp/carrega_ext.php"); @@ -143,7 +143,7 @@ require_once ($caminho."classesphp/carrega_ext.php");
143 //quando $funcao existe, é pq o ms_criamapa.php está sendo utilizado como um include em classesphp/mapa_controle.php 143 //quando $funcao existe, é pq o ms_criamapa.php está sendo utilizado como um include em classesphp/mapa_controle.php
144 // 144 //
145 if(!isset($funcao)) 145 if(!isset($funcao))
146 -{ob_clean();} 146 +{ob_end_clean();}
147 if (!isset($caminho)) 147 if (!isset($caminho))
148 {$caminho = "";} 148 {$caminho = "";}
149 if (!file_exists($caminho."classesphp/carrega_ext.php")) 149 if (!file_exists($caminho."classesphp/carrega_ext.php"))