Commit 736a8fa00b086f577899392960bd8c57e81a18d4

Authored by Edmar Moretti
1 parent 291d7134

Modificação na forma como os templates mustache são carregados pelas ferramentas…

…, passando a usar uma função jquery para isso
Showing 129 changed files with 549 additions and 824 deletions   Show diff stats
admin/admin.db
No preview for this file type
ferramentas/agrupaelementos/dependencias.php
@@ -20,16 +20,7 @@ echo "\n"; @@ -20,16 +20,7 @@ echo "\n";
20 /** 20 /**
21 * Inclui o template mustache do HTML usado para criar o conteudo da janela 21 * Inclui o template mustache do HTML usado para criar o conteudo da janela
22 */ 22 */
23 -/*  
24 -echo 'i3GEOF.agrupaElementos.MUSTACHE = "';  
25 -$texto = file_get_contents("template_mst.html");  
26 -$texto = str_replace("\n", "", $texto);  
27 -$texto = str_replace("\r", "", $texto);  
28 -$texto = str_replace("\t", "", $texto);  
29 -$texto = str_replace('"', "'", $texto);  
30 -echo $texto;  
31 -echo '";';  
32 -*/ 23 +
33 if(extension_loaded('zlib')){ 24 if(extension_loaded('zlib')){
34 ob_end_flush(); 25 ob_end_flush();
35 } 26 }
ferramentas/buscainde/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript"); @@ -17,17 +17,7 @@ header("Content-type: text/javascript");
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.buscainde.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/buscainde/index.js
@@ -72,10 +72,13 @@ i3GEOF.buscainde = { @@ -72,10 +72,13 @@ i3GEOF.buscainde = {
72 iddiv {String} - id do div que receberá o conteudo HTML da ferramenta 72 iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
73 */ 73 */
74 inicia: function(iddiv){ 74 inicia: function(iddiv){
75 - try{  
76 - $i(iddiv).innerHTML += i3GEOF.buscainde.html(); 75 + if(i3GEOF.buscainde.MUSTACHE == ""){
  76 + $.get(i3GEO.configura.locaplic + "/ferramentas/buscainde/template_mst.html", function(template) {
  77 + i3GEOF.buscainde.MUSTACHE = template;
  78 + $i(iddiv).innerHTML += i3GEOF.buscainde.html();
  79 + });
  80 + return;
77 } 81 }
78 - catch(erro){alert(erro);}  
79 }, 82 },
80 /* 83 /*
81 Function: html 84 Function: html
@@ -105,7 +108,7 @@ i3GEOF.buscainde = { @@ -105,7 +108,7 @@ i3GEOF.buscainde = {
105 i3GEO.janela.minimiza("i3GEOF.buscainde"); 108 i3GEO.janela.minimiza("i3GEOF.buscainde");
106 }; 109 };
107 //cria a janela flutuante 110 //cria a janela flutuante
108 - titulo = "/div><a class='i3GeoTituloJanelaBs' target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=109&idajuda=8' >CSW</a><"; 111 + titulo = "</div><a class='i3GeoTituloJanelaBs' target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=109&idajuda=8' >CSW</a>";
109 janela = i3GEO.janela.cria( 112 janela = i3GEO.janela.cria(
110 "550px", 113 "550px",
111 "350px", 114 "350px",
ferramentas/carregakml/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.carregakml.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/carregakml/index.js
@@ -69,28 +69,32 @@ i3GEOF.carregakml = { @@ -69,28 +69,32 @@ i3GEOF.carregakml = {
69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
70 */ 70 */
71 inicia: function(iddiv){ 71 inicia: function(iddiv){
72 - try{  
73 - $i(iddiv).innerHTML = i3GEOF.carregakml.html();  
74 - var b, monta = function(retorno){  
75 - var raiz,nraiz,i,combo;  
76 - raiz = retorno.data.canais;  
77 - nraiz = raiz.length;  
78 - combo = "<select onchange='javascript:$i(\"i3GEOcarregakmlurl\").value = this.value;'>";  
79 - combo += "<option value=''>---</option>";  
80 - for (i=0;i<nraiz; i++){  
81 - combo += "<option value='"+raiz[i].link+"'>"+raiz[i].title+"</option>";  
82 - }  
83 - combo += "</select>";  
84 - $i("i3GEOcarregakmlCombo").innerHTML = combo;  
85 - };  
86 - i3GEO.php.listaRSSwsARRAY(monta,"KML");  
87 - b = new YAHOO.widget.Button(  
88 - "i3GEOcarregakmlbotao1",  
89 - {onclick:{fn: i3GEOF.carregakml.adiciona}}  
90 - );  
91 - b.addClass("rodar"); 72 + if(i3GEOF.carregakml.MUSTACHE == ""){
  73 + $.get(i3GEO.configura.locaplic + "/ferramentas/carregakml/template_mst.html", function(template) {
  74 + i3GEOF.carregakml.MUSTACHE = template;
  75 + i3GEOF.carregakml.inicia(iddiv);
  76 + });
  77 + return;
92 } 78 }
93 - catch(erro){i3GEO.janela.tempoMsg(erro);} 79 + $i(iddiv).innerHTML = i3GEOF.carregakml.html();
  80 + var b, monta = function(retorno){
  81 + var raiz,nraiz,i,combo;
  82 + raiz = retorno.data.canais;
  83 + nraiz = raiz.length;
  84 + combo = "<select onchange='javascript:$i(\"i3GEOcarregakmlurl\").value = this.value;'>";
  85 + combo += "<option value=''>---</option>";
  86 + for (i=0;i<nraiz; i++){
  87 + combo += "<option value='"+raiz[i].link+"'>"+raiz[i].title+"</option>";
  88 + }
  89 + combo += "</select>";
  90 + $i("i3GEOcarregakmlCombo").innerHTML = combo;
  91 + };
  92 + i3GEO.php.listaRSSwsARRAY(monta,"KML");
  93 + b = new YAHOO.widget.Button(
  94 + "i3GEOcarregakmlbotao1",
  95 + {onclick:{fn: i3GEOF.carregakml.adiciona}}
  96 + );
  97 + b.addClass("rodar");
94 }, 98 },
95 /* 99 /*
96 Function: html 100 Function: html
ferramentas/carregamapa/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.carregaMapa.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/carregamapa/index.js
@@ -68,16 +68,20 @@ i3GEOF.carregaMapa = { @@ -68,16 +68,20 @@ i3GEOF.carregaMapa = {
68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 */ 69 */
70 inicia: function(iddiv){ 70 inicia: function(iddiv){
71 - try{  
72 - $i(iddiv).innerHTML += i3GEOF.carregaMapa.html();  
73 - document.body.scrollTop = document.documentElement.scrollTop = 0;  
74 - var b = new YAHOO.widget.Button(  
75 - "i3GEOcarregamapabotao1",  
76 - {onclick:{fn: i3GEOF.carregaMapa.submete}}  
77 - );  
78 - b.addClass("rodar"); 71 + if(i3GEOF.carregaMapa.MUSTACHE == ""){
  72 + $.get(i3GEO.configura.locaplic + "/ferramentas/carregamapa/template_mst.html", function(template) {
  73 + i3GEOF.carregaMapa.MUSTACHE = template;
  74 + i3GEOF.carregaMapa.inicia(iddiv);
  75 + });
  76 + return;
79 } 77 }
80 - catch(erro){i3GEO.janela.tempoMsg(erro);} 78 + $i(iddiv).innerHTML += i3GEOF.carregaMapa.html();
  79 + document.body.scrollTop = document.documentElement.scrollTop = 0;
  80 + var b = new YAHOO.widget.Button(
  81 + "i3GEOcarregamapabotao1",
  82 + {onclick:{fn: i3GEOF.carregaMapa.submete}}
  83 + );
  84 + b.addClass("rodar");
81 }, 85 },
82 /* 86 /*
83 Function: html 87 Function: html
ferramentas/centroide/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.centroide.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/centroide/index.js
@@ -68,11 +68,15 @@ i3GEOF.centroide = { @@ -68,11 +68,15 @@ i3GEOF.centroide = {
68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 */ 69 */
70 inicia: function(iddiv){ 70 inicia: function(iddiv){
71 - try{  
72 - $i(iddiv).innerHTML += i3GEOF.centroide.html();  
73 - i3GEOF.centroide.t0(); 71 + if(i3GEOF.centroide.MUSTACHE == ""){
  72 + $.get(i3GEO.configura.locaplic + "/ferramentas/centroide/template_mst.html", function(template) {
  73 + i3GEOF.centroide.MUSTACHE = template;
  74 + i3GEOF.centroide.inicia(iddiv);
  75 + });
  76 + return;
74 } 77 }
75 - catch(erro){i3GEO.janela.tempoMsg(erro);} 78 + $i(iddiv).innerHTML += i3GEOF.centroide.html();
  79 + i3GEOF.centroide.t0();
76 }, 80 },
77 /* 81 /*
78 Function: html 82 Function: html
ferramentas/centromassa/index.js
@@ -68,11 +68,15 @@ i3GEOF.centromassa = { @@ -68,11 +68,15 @@ i3GEOF.centromassa = {
68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 */ 69 */
70 inicia: function(iddiv){ 70 inicia: function(iddiv){
71 - try{  
72 - $i(iddiv).innerHTML += i3GEOF.centromassa.html();  
73 - i3GEOF.centromassa.t0(); 71 + if(i3GEOF.centromassa.MUSTACHE == ""){
  72 + $.get(i3GEO.configura.locaplic + "/ferramentas/centromassa/template_mst.html", function(template) {
  73 + i3GEOF.centromassa.MUSTACHE = template;
  74 + i3GEOF.centromassa.inicia(iddiv);
  75 + });
  76 + return;
74 } 77 }
75 - catch(erro){i3GEO.janela.tempoMsg(erro);} 78 + $i(iddiv).innerHTML += i3GEOF.centromassa.html();
  79 + i3GEOF.centromassa.t0();
76 }, 80 },
77 /* 81 /*
78 Function: html 82 Function: html
ferramentas/conectargeojson/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.conectargeojson.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/conectargeojson/index.js
@@ -70,9 +70,13 @@ i3GEOF.conectargeojson = { @@ -70,9 +70,13 @@ i3GEOF.conectargeojson = {
70 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 70 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
71 */ 71 */
72 inicia: function(iddiv){ 72 inicia: function(iddiv){
73 - if(navm)  
74 - {i3GEO.janela.tempoMsg($trad('msgNavegador',i3GEOF.conectargeojson.dicionario));}  
75 - try{ 73 + if(i3GEOF.conectargeojson.MUSTACHE == ""){
  74 + $.get(i3GEO.configura.locaplic + "/ferramentas/conectargeojson/template_mst.html", function(template) {
  75 + i3GEOF.conectargeojson.MUSTACHE = template;
  76 + i3GEOF.conectargeojson.inicia(iddiv);
  77 + });
  78 + return;
  79 + }
76 $i(iddiv).innerHTML = i3GEOF.conectargeojson.html(); 80 $i(iddiv).innerHTML = i3GEOF.conectargeojson.html();
77 var b,monta = function(retorno){ 81 var b,monta = function(retorno){
78 var raiz,nraiz,i,combo; 82 var raiz,nraiz,i,combo;
@@ -92,8 +96,6 @@ i3GEOF.conectargeojson = { @@ -92,8 +96,6 @@ i3GEOF.conectargeojson = {
92 {onclick:{fn: i3GEOF.conectargeojson.adiciona}} 96 {onclick:{fn: i3GEOF.conectargeojson.adiciona}}
93 ); 97 );
94 b.addClass("rodar"); 98 b.addClass("rodar");
95 - }  
96 - catch(erro){i3GEO.janela.tempoMsg(erro);}  
97 }, 99 },
98 /* 100 /*
99 Function: html 101 Function: html
ferramentas/conectarservicos/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.conectarservicos.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/conectarservicos/index.js
@@ -35,6 +35,13 @@ i3GEOF.conectarservicos = @@ -35,6 +35,13 @@ i3GEOF.conectarservicos =
35 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 35 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
36 */ 36 */
37 inicia : function(iddiv) { 37 inicia : function(iddiv) {
  38 + if(i3GEOF.conectarservicos.MUSTACHE == ""){
  39 + $.get(i3GEO.configura.locaplic + "/ferramentas/conectarservicos/template_mst.html", function(template) {
  40 + i3GEOF.conectarservicos.MUSTACHE = template;
  41 + i3GEOF.conectarservicos.inicia(iddiv);
  42 + });
  43 + return;
  44 + }
38 $i(iddiv).innerHTML = i3GEOF.conectarservicos.html(); 45 $i(iddiv).innerHTML = i3GEOF.conectarservicos.html();
39 new YAHOO.widget.Button("i3GEOFconectarservicosKml", { 46 new YAHOO.widget.Button("i3GEOFconectarservicosKml", {
40 onclick : { 47 onclick : {
ferramentas/confluence/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.confluence.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/confluence/index.js
@@ -69,7 +69,13 @@ i3GEOF.confluence = { @@ -69,7 +69,13 @@ i3GEOF.confluence = {
69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
70 */ 70 */
71 inicia: function(iddiv){ 71 inicia: function(iddiv){
72 - try{ 72 + if(i3GEOF.confluence.MUSTACHE == ""){
  73 + $.get(i3GEO.configura.locaplic + "/ferramentas/confluence/template_mst.html", function(template) {
  74 + i3GEOF.confluence.MUSTACHE = template;
  75 + i3GEOF.confluence.inicia(iddiv);
  76 + });
  77 + return;
  78 + }
73 $i(iddiv).innerHTML += i3GEOF.confluence.html(); 79 $i(iddiv).innerHTML += i3GEOF.confluence.html();
74 i3GEOF.confluence.ativaFoco(); 80 i3GEOF.confluence.ativaFoco();
75 if(i3GEO.Interface.ATUAL !== "googlemaps" && i3GEO.Interface.ATUAL !== "googleearth"){ 81 if(i3GEO.Interface.ATUAL !== "googlemaps" && i3GEO.Interface.ATUAL !== "googleearth"){
@@ -79,12 +85,7 @@ i3GEOF.confluence = { @@ -79,12 +85,7 @@ i3GEOF.confluence = {
79 confluenceDragend = google.maps.event.addListener(i3GeoMap, "dragend", function() {i3GEOF.confluence.lista();}); 85 confluenceDragend = google.maps.event.addListener(i3GeoMap, "dragend", function() {i3GEOF.confluence.lista();});
80 confluenceZoomend = google.maps.event.addListener(i3GeoMap, "zoomend", function() {i3GEOF.confluence.lista();}); 86 confluenceZoomend = google.maps.event.addListener(i3GeoMap, "zoomend", function() {i3GEOF.confluence.lista();});
81 } 87 }
82 - if(i3GEO.Interface.ATUAL === "googleearth"){  
83 - confluenceDragend = google.earth.addEventListener(i3GeoMap.getView(), "viewchangeend", function() {i3GEOF.confluence.lista();});  
84 - }  
85 i3GEOF.confluence.lista(); 88 i3GEOF.confluence.lista();
86 - }  
87 - catch(erro){i3GEO.janela.tempoMsg(erro);}  
88 }, 89 },
89 /* 90 /*
90 Function: html 91 Function: html
ferramentas/cortina/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.cortina.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/cortina/index.js
@@ -85,12 +85,14 @@ i3GEOF.cortina = { @@ -85,12 +85,14 @@ i3GEOF.cortina = {
85 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 85 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
86 */ 86 */
87 inicia: function(iddiv){ 87 inicia: function(iddiv){
88 - //if(navm)  
89 - //{i3GEO.janela.tempoMsg("Esta ferramenta nao funciona adequadamente no Internet Explorer. Experimente usar o Firefox");}  
90 - try{  
91 - $i(iddiv).innerHTML = i3GEOF.cortina.html(); 88 + if(i3GEOF.cortina.MUSTACHE == ""){
  89 + $.get(i3GEO.configura.locaplic + "/ferramentas/cortina/template_mst.html", function(template) {
  90 + i3GEOF.cortina.MUSTACHE = template;
  91 + i3GEOF.cortina.inicia(iddiv);
  92 + });
  93 + return;
92 } 94 }
93 - catch(erro){i3GEO.janela.tempoMsg(erro);} 95 + $i(iddiv).innerHTML = i3GEOF.cortina.html();
94 i3GEOF.cortina.criaslide(); 96 i3GEOF.cortina.criaslide();
95 i3GEOF.cortina.comboTemas(); 97 i3GEOF.cortina.comboTemas();
96 }, 98 },
ferramentas/dissolve/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.dissolve.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/dissolve/index.js
@@ -69,11 +69,15 @@ i3GEOF.dissolve = { @@ -69,11 +69,15 @@ i3GEOF.dissolve = {
69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
70 */ 70 */
71 inicia: function(iddiv){ 71 inicia: function(iddiv){
72 - try{ 72 + if(i3GEOF.dissolve.MUSTACHE == ""){
  73 + $.get(i3GEO.configura.locaplic + "/ferramentas/dissolve/template_mst.html", function(template) {
  74 + i3GEOF.dissolve.MUSTACHE = template;
  75 + i3GEOF.dissolve.inicia(iddiv);
  76 + });
  77 + return;
  78 + }
73 $i(iddiv).innerHTML += i3GEOF.dissolve.html(); 79 $i(iddiv).innerHTML += i3GEOF.dissolve.html();
74 i3GEOF.dissolve.t0(); 80 i3GEOF.dissolve.t0();
75 - }  
76 - catch(erro){i3GEO.janela.tempoMsg(erro);}  
77 }, 81 },
78 /* 82 /*
79 Function: html 83 Function: html
ferramentas/distancia/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.distancia.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/distancia/index.js
@@ -23,6 +23,13 @@ i3GEOF.distancia = @@ -23,6 +23,13 @@ i3GEOF.distancia =
23 23
24 }, 24 },
25 inicia : function(iddiv) { 25 inicia : function(iddiv) {
  26 + if(i3GEOF.distancia.MUSTACHE == ""){
  27 + $.get(i3GEO.configura.locaplic + "/ferramentas/distancia/template_mst.html", function(template) {
  28 + i3GEOF.distancia.MUSTACHE = template;
  29 + i3GEOF.distancia.inicia(iddiv);
  30 + });
  31 + return;
  32 + }
26 i3GEO.eventos.cliquePerm.desativa(); 33 i3GEO.eventos.cliquePerm.desativa();
27 $i(iddiv).innerHTML += i3GEOF.distancia.html(); 34 $i(iddiv).innerHTML += i3GEOF.distancia.html();
28 i3GEOF.distancia[i3GEO.Interface["ATUAL"]].inicia(); 35 i3GEOF.distancia[i3GEO.Interface["ATUAL"]].inicia();
ferramentas/distanciaptpt/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.distanciaptpt.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/distanciaptpt/index.js
@@ -70,11 +70,15 @@ i3GEOF.distanciaptpt = { @@ -70,11 +70,15 @@ i3GEOF.distanciaptpt = {
70 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 70 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
71 */ 71 */
72 inicia: function(iddiv){ 72 inicia: function(iddiv){
73 - try{ 73 + if(i3GEOF.distanciaptpt.MUSTACHE == ""){
  74 + $.get(i3GEO.configura.locaplic + "/ferramentas/distanciaptpt/template_mst.html", function(template) {
  75 + i3GEOF.distanciaptpt.MUSTACHE = template;
  76 + i3GEOF.distanciaptpt.inicia(iddiv);
  77 + });
  78 + return;
  79 + }
74 $i(iddiv).innerHTML += i3GEOF.distanciaptpt.html(); 80 $i(iddiv).innerHTML += i3GEOF.distanciaptpt.html();
75 i3GEOF.distanciaptpt.t0(); 81 i3GEOF.distanciaptpt.t0();
76 - }  
77 - catch(erro){i3GEO.janela.tempoMsg(erro);}  
78 }, 82 },
79 /* 83 /*
80 Function: html 84 Function: html
ferramentas/editorsql/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.editorsql.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/editorsql/index.js
@@ -71,6 +71,13 @@ i3GEOF.editorsql = { @@ -71,6 +71,13 @@ i3GEOF.editorsql = {
71 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 71 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
72 */ 72 */
73 inicia: function(iddiv){ 73 inicia: function(iddiv){
  74 + if(i3GEOF.editorsql.MUSTACHE == ""){
  75 + $.get(i3GEO.configura.locaplic + "/ferramentas/editorsql/template_mst.html", function(template) {
  76 + i3GEOF.editorsql.MUSTACHE = template;
  77 + i3GEOF.editorsql.inicia(iddiv);
  78 + });
  79 + return;
  80 + }
74 try{ 81 try{
75 $i(iddiv).innerHTML = i3GEOF.editorsql.html(); 82 $i(iddiv).innerHTML = i3GEOF.editorsql.html();
76 new YAHOO.widget.Button( 83 new YAHOO.widget.Button(
ferramentas/etiqueta/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.etiqueta.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/etiqueta/index.js
@@ -68,6 +68,13 @@ i3GEOF.etiqueta = { @@ -68,6 +68,13 @@ i3GEOF.etiqueta = {
68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 */ 69 */
70 inicia: function(iddiv){ 70 inicia: function(iddiv){
  71 + if(i3GEOF.etiqueta.MUSTACHE == ""){
  72 + $.get(i3GEO.configura.locaplic + "/ferramentas/etiqueta/template_mst.html", function(template) {
  73 + i3GEOF.etiqueta.MUSTACHE = template;
  74 + i3GEOF.etiqueta.inicia(iddiv);
  75 + });
  76 + return;
  77 + }
71 if (!$i("i3GEOFetiquetaComboCabecaSel")) { 78 if (!$i("i3GEOFetiquetaComboCabecaSel")) {
72 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFetiquetaComboCabeca","i3GEOFetiquetaComboCabecaSel","etiqueta","ligadosComTabela",function(evt){ 79 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFetiquetaComboCabeca","i3GEOFetiquetaComboCabecaSel","etiqueta","ligadosComTabela",function(evt){
73 var botao = evt.target; 80 var botao = evt.target;
ferramentas/filtro/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.filtro.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/filtro/index.js
@@ -84,6 +84,13 @@ i3GEOF.filtro = { @@ -84,6 +84,13 @@ i3GEOF.filtro = {
84 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 84 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
85 */ 85 */
86 inicia: function(iddiv,modoCalculadora,idRetorno){ 86 inicia: function(iddiv,modoCalculadora,idRetorno){
  87 + if(i3GEOF.filtro.MUSTACHE == ""){
  88 + $.get(i3GEO.configura.locaplic + "/ferramentas/filtro/template_mst.html", function(template) {
  89 + i3GEOF.filtro.MUSTACHE = template;
  90 + i3GEOF.filtro.inicia(iddiv,modoCalculadora,idRetorno);
  91 + });
  92 + return;
  93 + }
87 if(modoCalculadora === undefined){ 94 if(modoCalculadora === undefined){
88 modoCalculadora = false; 95 modoCalculadora = false;
89 } 96 }
ferramentas/filtroarvore/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.filtroarvore.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/filtroarvore/index.js
@@ -33,10 +33,14 @@ i3GEOF.filtroarvore = { @@ -33,10 +33,14 @@ i3GEOF.filtroarvore = {
33 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 33 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
34 */ 34 */
35 inicia: function(iddiv){ 35 inicia: function(iddiv){
36 - try{  
37 - $i(iddiv).innerHTML += i3GEOF.filtroarvore.html(); 36 + if(i3GEOF.filtroarvore.MUSTACHE == ""){
  37 + $.get(i3GEO.configura.locaplic + "/ferramentas/filtroarvore/template_mst.html", function(template) {
  38 + i3GEOF.filtroarvore.MUSTACHE = template;
  39 + i3GEOF.filtroarvore.inicia(iddiv);
  40 + });
  41 + return;
38 } 42 }
39 - catch(erro){i3GEO.janela.tempoMsg(erro);} 43 + $i(iddiv).innerHTML += i3GEOF.filtroarvore.html();
40 }, 44 },
41 /* 45 /*
42 Function: html 46 Function: html
ferramentas/geolocal/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.geolocal.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/geolocal/index.js
@@ -76,6 +76,13 @@ i3GEOF.geolocal = @@ -76,6 +76,13 @@ i3GEOF.geolocal =
76 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 76 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
77 */ 77 */
78 inicia : function(iddiv) { 78 inicia : function(iddiv) {
  79 + if(i3GEOF.geolocal.MUSTACHE == ""){
  80 + $.get(i3GEO.configura.locaplic + "/ferramentas/geolocal/template_mst.html", function(template) {
  81 + i3GEOF.geolocal.MUSTACHE = template;
  82 + i3GEOF.geolocal.inicia(iddiv);
  83 + });
  84 + return;
  85 + }
79 var ics, n, i; 86 var ics, n, i;
80 // se nao permitir a localizacao, retorna uma mensagem 87 // se nao permitir a localizacao, retorna uma mensagem
81 if (navigator.geolocation) { 88 if (navigator.geolocation) {
ferramentas/gradecoord/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.gradeCoord.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/gradecoord/index.js
@@ -36,7 +36,13 @@ i3GEOF.gradeCoord = { @@ -36,7 +36,13 @@ i3GEOF.gradeCoord = {
36 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 36 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
37 */ 37 */
38 inicia: function(iddiv){ 38 inicia: function(iddiv){
39 - try{ 39 + if(i3GEOF.gradeCoord.MUSTACHE == ""){
  40 + $.get(i3GEO.configura.locaplic + "/ferramentas/gradecoord/template_mst.html", function(template) {
  41 + i3GEOF.gradeCoord.MUSTACHE = template;
  42 + i3GEOF.gradeCoord.inicia(iddiv);
  43 + });
  44 + return;
  45 + }
40 $i(iddiv).innerHTML += i3GEOF.gradeCoord.html(); 46 $i(iddiv).innerHTML += i3GEOF.gradeCoord.html();
41 i3GEO.util.comboFontes("i3GEOgradeCoordfonte","i3GEOgradeCoordfontef"); 47 i3GEO.util.comboFontes("i3GEOgradeCoordfonte","i3GEOgradeCoordfontef");
42 var b = new YAHOO.widget.Button( 48 var b = new YAHOO.widget.Button(
@@ -45,8 +51,6 @@ i3GEOF.gradeCoord = { @@ -45,8 +51,6 @@ i3GEOF.gradeCoord = {
45 ); 51 );
46 b.addClass("rodar"); 52 b.addClass("rodar");
47 i3GEO.util.aplicaAquarela("i3GEOF.gradeCoord_corpo"); 53 i3GEO.util.aplicaAquarela("i3GEOF.gradeCoord_corpo");
48 - }  
49 - catch(erro){i3GEO.janela.tempoMsg(erro);}  
50 }, 54 },
51 /* 55 /*
52 Function: html 56 Function: html
ferramentas/gradehex/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.gradeDeHex.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/gradehex/index.js
@@ -83,11 +83,16 @@ i3GEOF.gradeDeHex = { @@ -83,11 +83,16 @@ i3GEOF.gradeDeHex = {
83 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 83 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
84 */ 84 */
85 inicia: function(iddiv){ 85 inicia: function(iddiv){
86 - try{ 86 + if(i3GEOF.gradeDeHex.MUSTACHE == ""){
  87 + $.get(i3GEO.configura.locaplic + "/ferramentas/gradehex/template_mst.html", function(template) {
  88 + i3GEOF.gradeDeHex.MUSTACHE = template;
  89 + i3GEOF.gradeDeHex.inicia(iddiv);
  90 + });
  91 + return;
  92 + }
87 $i(iddiv).innerHTML += i3GEOF.gradeDeHex.html(); 93 $i(iddiv).innerHTML += i3GEOF.gradeDeHex.html();
88 i3GEOF.gradeDeHex.t0(); 94 i3GEOF.gradeDeHex.t0();
89 - }  
90 - catch(erro){i3GEO.janela.tempoMsg(erro);} 95 +
91 }, 96 },
92 /* 97 /*
93 Function: html 98 Function: html
ferramentas/gradepol/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.gradeDePoligonos.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/gradepol/index.js
@@ -83,11 +83,15 @@ i3GEOF.gradeDePoligonos = { @@ -83,11 +83,15 @@ i3GEOF.gradeDePoligonos = {
83 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 83 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
84 */ 84 */
85 inicia: function(iddiv){ 85 inicia: function(iddiv){
86 - try{ 86 + if(i3GEOF.gradeDePoligonos.MUSTACHE == ""){
  87 + $.get(i3GEO.configura.locaplic + "/ferramentas/gradepol/template_mst.html", function(template) {
  88 + i3GEOF.gradeDePoligonos.MUSTACHE = template;
  89 + i3GEOF.gradeDePoligonos.inicia(iddiv);
  90 + });
  91 + return;
  92 + }
87 $i(iddiv).innerHTML += i3GEOF.gradeDePoligonos.html(); 93 $i(iddiv).innerHTML += i3GEOF.gradeDePoligonos.html();
88 i3GEOF.gradeDePoligonos.t0(); 94 i3GEOF.gradeDePoligonos.t0();
89 - }  
90 - catch(erro){i3GEO.janela.tempoMsg(erro);}  
91 }, 95 },
92 /* 96 /*
93 Function: html 97 Function: html
ferramentas/gradepontos/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.gradeDePontos.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/gradepontos/index.js
@@ -83,11 +83,17 @@ i3GEOF.gradeDePontos = { @@ -83,11 +83,17 @@ i3GEOF.gradeDePontos = {
83 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 83 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
84 */ 84 */
85 inicia: function(iddiv){ 85 inicia: function(iddiv){
86 - try{ 86 + if(i3GEOF.gradeDePontos.MUSTACHE == ""){
  87 + $.get(i3GEO.configura.locaplic + "/ferramentas/gradepontos/template_mst.html", function(template) {
  88 + i3GEOF.gradeDePontos.MUSTACHE = template;
  89 + i3GEOF.gradeDePontos.inicia(iddiv);
  90 + });
  91 + return;
  92 + }
  93 +
87 $i(iddiv).innerHTML += i3GEOF.gradeDePontos.html(); 94 $i(iddiv).innerHTML += i3GEOF.gradeDePontos.html();
88 i3GEOF.gradeDePontos.t0(); 95 i3GEOF.gradeDePontos.t0();
89 - }  
90 - catch(erro){i3GEO.janela.tempoMsg(erro);} 96 +
91 }, 97 },
92 /* 98 /*
93 Function: html 99 Function: html
ferramentas/graficointerativo1/dependencias.php
@@ -18,20 +18,8 @@ header(&quot;Content-type: text/javascript&quot;); @@ -18,20 +18,8 @@ header(&quot;Content-type: text/javascript&quot;);
18 include("index.js"); 18 include("index.js");
19 include_once ("dicionario.js"); 19 include_once ("dicionario.js");
20 echo "\n"; 20 echo "\n";
21 -/**  
22 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
23 - */  
24 -echo 'i3GEOF.graficointerativo1.MUSTACHE = "';  
25 -$texto = file_get_contents("template_mst.html");  
26 -$texto = str_replace("\n", "", $texto);  
27 -$texto = str_replace("\r", "", $texto);  
28 -$texto = str_replace("\t", "", $texto);  
29 -$texto = str_replace('"', "'", $texto);  
30 -echo $texto;  
31 -echo '";';  
32 -  
33 $s = array("../../pacotes/ccc2/ccc/def.js", 21 $s = array("../../pacotes/ccc2/ccc/def.js",
34 - "../../pacotes/ccc2/ccc/jquery.js", 22 + //"../../pacotes/ccc2/ccc/jquery.js",
35 "../../pacotes/ccc2/ccc/jquery.tipsy.js", 23 "../../pacotes/ccc2/ccc/jquery.tipsy.js",
36 "../../pacotes/ccc2/ccc/protovis.js", 24 "../../pacotes/ccc2/ccc/protovis.js",
37 "../../pacotes/ccc2/ccc/protovis-msie.js", 25 "../../pacotes/ccc2/ccc/protovis-msie.js",
ferramentas/graficointerativo1/index.js
@@ -395,6 +395,13 @@ i3GEOF.graficointerativo1 = @@ -395,6 +395,13 @@ i3GEOF.graficointerativo1 =
395 * ["n;x","'Argentina';33796870","'Paraguay';4773464","'Brazil';151525400","'Chile';13772710"] 395 * ["n;x","'Argentina';33796870","'Paraguay';4773464","'Brazil';151525400","'Chile';13772710"]
396 */ 396 */
397 inicia : function(iddiv, idjanela) { 397 inicia : function(iddiv, idjanela) {
  398 + if(i3GEOF.graficointerativo1.MUSTACHE == ""){
  399 + $.get(i3GEO.configura.locaplic + "/ferramentas/graficointerativo1/template_mst.html", function(template) {
  400 + i3GEOF.graficointerativo1.MUSTACHE = template;
  401 + i3GEOF.graficointerativo1.inicia(iddiv, idjanela);
  402 + });
  403 + return;
  404 + }
398 var b; 405 var b;
399 $i(iddiv).innerHTML += i3GEOF.graficointerativo1.html(idjanela); 406 $i(iddiv).innerHTML += i3GEOF.graficointerativo1.html(idjanela);
400 $i(idjanela + "i3GEOgraficointerativo1Acumula").checked = i3GEOF.graficointerativo1.propJanelas[idjanela].acumula; 407 $i(idjanela + "i3GEOgraficointerativo1Acumula").checked = i3GEOF.graficointerativo1.propJanelas[idjanela].acumula;
ferramentas/graficotema/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.graficoTema.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/graficotema/index.js
@@ -96,6 +96,13 @@ i3GEOF.graficoTema = { @@ -96,6 +96,13 @@ i3GEOF.graficoTema = {
96 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 96 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
97 */ 97 */
98 inicia: function(iddiv){ 98 inicia: function(iddiv){
  99 + if(i3GEOF.graficoTema.MUSTACHE == ""){
  100 + $.get(i3GEO.configura.locaplic + "/ferramentas/graficoTema/template_mst.html", function(template) {
  101 + i3GEOF.graficoTema.MUSTACHE = template;
  102 + i3GEOF.graficoTema.inicia(iddiv);
  103 + });
  104 + return;
  105 + }
99 if (!$i("i3GEOFgraficotemaComboCabecaSel")) { 106 if (!$i("i3GEOFgraficotemaComboCabecaSel")) {
100 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFgraficotemaComboCabeca","i3GEOFgraficotemaComboCabecaSel","graficoTema","ligadosComTabela",function(evt){ 107 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFgraficotemaComboCabeca","i3GEOFgraficotemaComboCabecaSel","graficoTema","ligadosComTabela",function(evt){
101 var botao = evt.target; 108 var botao = evt.target;
ferramentas/heatmap/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.heatmap.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/heatmap/index.js
@@ -88,12 +88,15 @@ i3GEOF.heatmap = @@ -88,12 +88,15 @@ i3GEOF.heatmap =
88 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 88 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
89 */ 89 */
90 inicia : function(iddiv) { 90 inicia : function(iddiv) {
91 - try {  
92 - $i(iddiv).innerHTML += i3GEOF.heatmap.html();  
93 - i3GEOF.heatmap.t0();  
94 - } catch (erro) {  
95 - i3GEO.janela.tempoMsg(erro); 91 + if(i3GEOF.heatmap.MUSTACHE == ""){
  92 + $.get(i3GEO.configura.locaplic + "/ferramentas/heatmap/template_mst.html", function(template) {
  93 + i3GEOF.heatmap.MUSTACHE = template;
  94 + i3GEOF.heatmap.inicia(iddiv);
  95 + });
  96 + return;
96 } 97 }
  98 + $i(iddiv).innerHTML += i3GEOF.heatmap.html();
  99 + i3GEOF.heatmap.t0();
97 }, 100 },
98 /** 101 /**
99 * Function: html 102 * Function: html
ferramentas/identifica/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.identifica.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/identifica/index.js
@@ -186,6 +186,13 @@ i3GEOF.identifica = @@ -186,6 +186,13 @@ i3GEOF.identifica =
186 * idjanela {string} 186 * idjanela {string}
187 */ 187 */
188 inicia : function(tema, x, y, iddiv, mostraLinkGeohack, mostraSistemasAdicionais, idjanela) { 188 inicia : function(tema, x, y, iddiv, mostraLinkGeohack, mostraSistemasAdicionais, idjanela) {
  189 + if(i3GEOF.identifica.MUSTACHE == ""){
  190 + $.get(i3GEO.configura.locaplic + "/ferramentas/identifica/template_mst.html", function(template) {
  191 + i3GEOF.identifica.MUSTACHE = template;
  192 + i3GEOF.identifica.inicia(tema, x, y, iddiv, mostraLinkGeohack, mostraSistemasAdicionais, idjanela);
  193 + });
  194 + return;
  195 + }
189 try { 196 try {
190 $i(iddiv).innerHTML += i3GEOF.identifica.html(idjanela); 197 $i(iddiv).innerHTML += i3GEOF.identifica.html(idjanela);
191 i3GEOF.identifica.propJanelas[idjanela].tema = tema; 198 i3GEOF.identifica.propJanelas[idjanela].tema = tema;
@@ -358,7 +365,7 @@ i3GEOF.identifica = @@ -358,7 +365,7 @@ i3GEOF.identifica =
358 }; 365 };
359 // cria a janela flutuante 366 // cria a janela flutuante
360 titulo = 367 titulo =
361 - "</div><a class='i3GeoTituloJanelaBs' target=_blank href='" 368 + "</div><a class='i3GeoTituloJanelaBs' style='right:90px;' target=_blank href='"
362 + i3GEO.configura.locaplic 369 + i3GEO.configura.locaplic
363 + "/ajuda_usuario.php?idcategoria=8&idajuda=70' >" + $trad("d7t") 370 + "/ajuda_usuario.php?idcategoria=8&idajuda=70' >" + $trad("d7t")
364 + "</a>"; 371 + "</a>";
ferramentas/importarwmc/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.importarwmc.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/importarwmc/index.js
@@ -75,14 +75,20 @@ i3GEOF.importarwmc = { @@ -75,14 +75,20 @@ i3GEOF.importarwmc = {
75 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 75 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
76 */ 76 */
77 inicia: function(iddiv){ 77 inicia: function(iddiv){
78 - try{ 78 + if(i3GEOF.importarwmc.MUSTACHE == ""){
  79 + $.get(i3GEO.configura.locaplic + "/ferramentas/importarwmc/template_mst.html", function(template) {
  80 + i3GEOF.importarwmc.MUSTACHE = template;
  81 + i3GEOF.importarwmc.inicia(iddiv);
  82 + });
  83 + return;
  84 + }
  85 +
79 $i(iddiv).innerHTML += i3GEOF.importarwmc.html(); 86 $i(iddiv).innerHTML += i3GEOF.importarwmc.html();
80 new YAHOO.widget.Button( 87 new YAHOO.widget.Button(
81 "i3GEOimportarwmcbotao1", 88 "i3GEOimportarwmcbotao1",
82 {onclick:{fn: i3GEOF.importarwmc.submete}} 89 {onclick:{fn: i3GEOF.importarwmc.submete}}
83 ); 90 );
84 - }  
85 - catch(erro){i3GEO.janela.tempoMsg(erro);} 91 +
86 }, 92 },
87 /* 93 /*
88 Function: html 94 Function: html
ferramentas/imprimir/dependencias.php
@@ -17,17 +17,6 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,6 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.imprimir.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";';  
31 if(extension_loaded('zlib')){ 20 if(extension_loaded('zlib')){
32 ob_end_flush(); 21 ob_end_flush();
33 } 22 }
ferramentas/imprimir/index.js
@@ -84,6 +84,13 @@ i3GEOF.imprimir = { @@ -84,6 +84,13 @@ i3GEOF.imprimir = {
84 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 84 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
85 */ 85 */
86 inicia: function(iddiv){ 86 inicia: function(iddiv){
  87 + if(i3GEOF.imprimir.MUSTACHE == ""){
  88 + $.get(i3GEO.configura.locaplic + "/ferramentas/imprimir/template_mst.html", function(template) {
  89 + i3GEOF.imprimir.MUSTACHE = template;
  90 + i3GEOF.imprimir.inicia(iddiv);
  91 + });
  92 + return;
  93 + }
87 try{ 94 try{
88 $i(iddiv).innerHTML += i3GEOF.imprimir.html(); 95 $i(iddiv).innerHTML += i3GEOF.imprimir.html();
89 96
ferramentas/inseregrafico/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.insereGrafico.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/inseregrafico/index.js
@@ -66,6 +66,13 @@ i3GEOF.insereGrafico = { @@ -66,6 +66,13 @@ i3GEOF.insereGrafico = {
66 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 66 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
67 */ 67 */
68 inicia: function(iddiv){ 68 inicia: function(iddiv){
  69 + if(i3GEOF.insereGrafico.MUSTACHE == ""){
  70 + $.get(i3GEO.configura.locaplic + "/ferramentas/inseregrafico/template_mst.html", function(template) {
  71 + i3GEOF.insereGrafico.MUSTACHE = template;
  72 + i3GEOF.insereGrafico.inicia(iddiv);
  73 + });
  74 + return;
  75 + }
69 try{ 76 try{
70 $i(iddiv).innerHTML += i3GEOF.insereGrafico.html(); 77 $i(iddiv).innerHTML += i3GEOF.insereGrafico.html();
71 i3GEO.guias.mostraGuiaFerramenta("i3GEOinseregraficoguia1","i3GEOinseregraficoguia"); 78 i3GEO.guias.mostraGuiaFerramenta("i3GEOinseregraficoguia1","i3GEOinseregraficoguia");
ferramentas/inseretxt/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.inseretxt.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/inseretxt/index.js
@@ -87,6 +87,13 @@ i3GEOF.inseretxt = { @@ -87,6 +87,13 @@ i3GEOF.inseretxt = {
87 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 87 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
88 */ 88 */
89 inicia: function(iddiv){ 89 inicia: function(iddiv){
  90 + if(i3GEOF.inseretxt.MUSTACHE == ""){
  91 + $.get(i3GEO.configura.locaplic + "/ferramentas/inseretxt/template_mst.html", function(template) {
  92 + i3GEOF.inseretxt.MUSTACHE = template;
  93 + i3GEOF.inseretxt.inicia(iddiv);
  94 + });
  95 + return;
  96 + }
90 try{ 97 try{
91 $i(iddiv).innerHTML += i3GEOF.inseretxt.html(); 98 $i(iddiv).innerHTML += i3GEOF.inseretxt.html();
92 i3GEO.guias.mostraGuiaFerramenta("i3GEOinseretxtguia1","i3GEOinseretxtguia"); 99 i3GEO.guias.mostraGuiaFerramenta("i3GEOinseretxtguia1","i3GEOinseretxtguia");
ferramentas/inserexy2/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.inserexy.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/inserexy2/index.js
@@ -70,6 +70,13 @@ i3GEOF.inserexy = { @@ -70,6 +70,13 @@ i3GEOF.inserexy = {
70 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 70 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
71 */ 71 */
72 inicia: function(iddiv){ 72 inicia: function(iddiv){
  73 + if(i3GEOF.inserexy.MUSTACHE == ""){
  74 + $.get(i3GEO.configura.locaplic + "/ferramentas/inserexy2/template_mst.html", function(template) {
  75 + i3GEOF.inserexy.MUSTACHE = template;
  76 + i3GEOF.inserexy.inicia(iddiv);
  77 + });
  78 + return;
  79 + }
73 try{ 80 try{
74 var b; 81 var b;
75 $i(iddiv).innerHTML += i3GEOF.inserexy.html(); 82 $i(iddiv).innerHTML += i3GEOF.inserexy.html();
ferramentas/legenda/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.legenda.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/legenda/index.js
@@ -125,6 +125,13 @@ i3GEOF.legenda = @@ -125,6 +125,13 @@ i3GEOF.legenda =
125 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 125 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
126 */ 126 */
127 inicia : function(iddiv) { 127 inicia : function(iddiv) {
  128 + if(i3GEOF.legenda.MUSTACHE == ""){
  129 + $.get(i3GEO.configura.locaplic + "/ferramentas/legenda/template_mst.html", function(template) {
  130 + i3GEOF.legenda.MUSTACHE = template;
  131 + i3GEOF.legenda.inicia(iddiv);
  132 + });
  133 + return;
  134 + }
128 if (!$i("i3GEOFlegendaComboCabecaSel")) { 135 if (!$i("i3GEOFlegendaComboCabecaSel")) {
129 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFlegendaComboCabeca", "i3GEOFlegendaComboCabecaSel", "legenda", "ligados",function(evt){ 136 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFlegendaComboCabeca", "i3GEOFlegendaComboCabecaSel", "legenda", "ligados",function(evt){
130 var botao = evt.target; 137 var botao = evt.target;
ferramentas/linhadotempo/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.linhadotempo.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/linhadotempo/index.js
@@ -33,6 +33,13 @@ i3GEOF.linhadotempo = { @@ -33,6 +33,13 @@ i3GEOF.linhadotempo = {
33 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 33 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
34 */ 34 */
35 inicia: function(iddiv){ 35 inicia: function(iddiv){
  36 + if(i3GEOF.linhadotempo.MUSTACHE == ""){
  37 + $.get(i3GEO.configura.locaplic + "/ferramentas/linhadotempo/template_mst.html", function(template) {
  38 + i3GEOF.linhadotempo.MUSTACHE = template;
  39 + i3GEOF.linhadotempo.inicia(iddiv);
  40 + });
  41 + return;
  42 + }
36 var b,box; 43 var b,box;
37 if(iddiv){ 44 if(iddiv){
38 i3GEOF.linhadotempo.iddiv = iddiv; 45 i3GEOF.linhadotempo.iddiv = iddiv;
ferramentas/markercluster/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.markercluster.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/markercluster/index.js
@@ -72,12 +72,15 @@ i3GEOF.markercluster = { @@ -72,12 +72,15 @@ i3GEOF.markercluster = {
72 * ferramenta 72 * ferramenta
73 */ 73 */
74 inicia : function(iddiv) { 74 inicia : function(iddiv) {
75 - try {  
76 - $i(iddiv).innerHTML += i3GEOF.markercluster.html();  
77 - i3GEOF.markercluster.t0();  
78 - } catch (erro) {  
79 - i3GEO.janela.tempoMsg(erro); 75 + if(i3GEOF.markercluster.MUSTACHE == ""){
  76 + $.get(i3GEO.configura.locaplic + "/ferramentas/markercluster/template_mst.html", function(template) {
  77 + i3GEOF.markercluster.MUSTACHE = template;
  78 + i3GEOF.markercluster.inicia(iddiv);
  79 + });
  80 + return;
80 } 81 }
  82 + $i(iddiv).innerHTML += i3GEOF.markercluster.html();
  83 + i3GEOF.markercluster.t0();
81 }, 84 },
82 /** 85 /**
83 * Function: html 86 * Function: html
ferramentas/mascara/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.mascara.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/mascara/index.js
@@ -68,6 +68,13 @@ i3GEOF.mascara = { @@ -68,6 +68,13 @@ i3GEOF.mascara = {
68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 */ 69 */
70 inicia: function(iddiv){ 70 inicia: function(iddiv){
  71 + if(i3GEOF.mascara.MUSTACHE == ""){
  72 + $.get(i3GEO.configura.locaplic + "/ferramentas/mascara/template_mst.html", function(template) {
  73 + i3GEOF.mascara.MUSTACHE = template;
  74 + i3GEOF.mascara.inicia(iddiv);
  75 + });
  76 + return;
  77 + }
71 i3GEOF.mascara.aguarde.visibility = "visible"; 78 i3GEOF.mascara.aguarde.visibility = "visible";
72 $i(iddiv).innerHTML = i3GEOF.mascara.html(); 79 $i(iddiv).innerHTML = i3GEOF.mascara.html();
73 i3GEOF.mascara.selMascara(); 80 i3GEOF.mascara.selMascara();
ferramentas/melhorcaminho/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.melhorcaminho.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/melhorcaminho/index.js
@@ -84,11 +84,15 @@ i3GEOF.melhorcaminho = { @@ -84,11 +84,15 @@ i3GEOF.melhorcaminho = {
84 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 84 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
85 */ 85 */
86 inicia: function(iddiv){ 86 inicia: function(iddiv){
87 - try{  
88 - $i(iddiv).innerHTML += i3GEOF.melhorcaminho.html();  
89 - i3GEOF.melhorcaminho.t0(); 87 + if(i3GEOF.melhorcaminho.MUSTACHE == ""){
  88 + $.get(i3GEO.configura.locaplic + "/ferramentas/melhorcaminho/template_mst.html", function(template) {
  89 + i3GEOF.melhorcaminho.MUSTACHE = template;
  90 + i3GEOF.melhorcaminho.inicia(iddiv);
  91 + });
  92 + return;
90 } 93 }
91 - catch(erro){i3GEO.janela.tempoMsg(erro);} 94 + $i(iddiv).innerHTML += i3GEOF.melhorcaminho.html();
  95 + i3GEOF.melhorcaminho.t0();
92 }, 96 },
93 /* 97 /*
94 Function: html 98 Function: html
ferramentas/metar/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.metar.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/metar/index.js
@@ -74,7 +74,13 @@ i3GEOF.metar = @@ -74,7 +74,13 @@ i3GEOF.metar =
74 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 74 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
75 */ 75 */
76 inicia : function(iddiv) { 76 inicia : function(iddiv) {
77 - try { 77 + if(i3GEOF.metar.MUSTACHE == ""){
  78 + $.get(i3GEO.configura.locaplic + "/ferramentas/metar/template_mst.html", function(template) {
  79 + i3GEOF.metar.MUSTACHE = template;
  80 + i3GEOF.metar.inicia(iddiv);
  81 + });
  82 + return;
  83 + }
78 $i(iddiv).innerHTML += i3GEOF.metar.html(); 84 $i(iddiv).innerHTML += i3GEOF.metar.html();
79 i3GEOF.metar.ativaFoco(); 85 i3GEOF.metar.ativaFoco();
80 if (i3GEO.Interface.ATUAL !== "googlemaps" && i3GEO.Interface.ATUAL !== "googleearth") { 86 if (i3GEO.Interface.ATUAL !== "googlemaps" && i3GEO.Interface.ATUAL !== "googleearth") {
@@ -94,9 +100,7 @@ i3GEOF.metar = @@ -94,9 +100,7 @@ i3GEOF.metar =
94 }); 100 });
95 } 101 }
96 i3GEOF.metar.lista(); 102 i3GEOF.metar.lista();
97 - } catch (erro) {  
98 - i3GEO.janela.tempoMsg(erro);  
99 - } 103 +
100 }, 104 },
101 /* 105 /*
102 * Function: html 106 * Function: html
ferramentas/mmscale/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.mmscale.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/mmscale/index.js
@@ -41,6 +41,13 @@ i3GEOF.mmscale = { @@ -41,6 +41,13 @@ i3GEOF.mmscale = {
41 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 41 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
42 */ 42 */
43 inicia: function(iddiv){ 43 inicia: function(iddiv){
  44 + if(i3GEOF.mmscale.MUSTACHE == ""){
  45 + $.get(i3GEO.configura.locaplic + "/ferramentas/mmscale/template_mst.html", function(template) {
  46 + i3GEOF.mmscale.MUSTACHE = template;
  47 + i3GEOF.mmscale.inicia(iddiv);
  48 + });
  49 + return;
  50 + }
44 if (!$i("i3GEOFmmscaleComboCabecaSel")) { 51 if (!$i("i3GEOFmmscaleComboCabecaSel")) {
45 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFmmscaleComboCabeca","i3GEOFmmscaleComboCabecaSel","mmscale","ligados",function(evt){ 52 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFmmscaleComboCabeca","i3GEOFmmscaleComboCabecaSel","mmscale","ligados",function(evt){
46 var botao = evt.target; 53 var botao = evt.target;
ferramentas/mostraexten/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.mostraExten.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/mostraexten/index.js
@@ -67,7 +67,14 @@ i3GEOF.mostraExten = { @@ -67,7 +67,14 @@ i3GEOF.mostraExten = {
67 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 67 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
68 */ 68 */
69 inicia: function(iddiv){ 69 inicia: function(iddiv){
70 - try{ 70 + if(i3GEOF.mostraExten.MUSTACHE == ""){
  71 + $.get(i3GEO.configura.locaplic + "/ferramentas/mostraexten/template_mst.html", function(template) {
  72 + i3GEOF.mostraExten.MUSTACHE = template;
  73 + i3GEOF.mostraExten.inicia(iddiv);
  74 + });
  75 + return;
  76 + }
  77 +
71 $i(iddiv).innerHTML += i3GEOF.mostraExten.html(); 78 $i(iddiv).innerHTML += i3GEOF.mostraExten.html();
72 var b =new YAHOO.widget.Button( 79 var b =new YAHOO.widget.Button(
73 "i3GEOmostraExtenbotao1", 80 "i3GEOmostraExtenbotao1",
@@ -75,8 +82,7 @@ i3GEOF.mostraExten = { @@ -75,8 +82,7 @@ i3GEOF.mostraExten = {
75 ); 82 );
76 b.addClass("rodar"); 83 b.addClass("rodar");
77 i3GEOF.mostraExten.ativaFoco(); 84 i3GEOF.mostraExten.ativaFoco();
78 - }  
79 - catch(erro){i3GEO.janela.tempoMsg(erro);} 85 +
80 }, 86 },
81 /* 87 /*
82 Function: html 88 Function: html
ferramentas/nptpol/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.nptpol.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/nptpol/index.js
@@ -68,11 +68,15 @@ i3GEOF.nptpol = { @@ -68,11 +68,15 @@ i3GEOF.nptpol = {
68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 */ 69 */
70 inicia: function(iddiv){ 70 inicia: function(iddiv){
71 - try{ 71 + if(i3GEOF.nptpol.MUSTACHE == ""){
  72 + $.get(i3GEO.configura.locaplic + "/ferramentas/nptpol/template_mst.html", function(template) {
  73 + i3GEOF.nptpol.MUSTACHE = template;
  74 + i3GEOF.nptpol.inicia(iddiv);
  75 + });
  76 + return;
  77 + }
72 $i(iddiv).innerHTML += i3GEOF.nptpol.html(); 78 $i(iddiv).innerHTML += i3GEOF.nptpol.html();
73 i3GEOF.nptpol.t0(); 79 i3GEOF.nptpol.t0();
74 - }  
75 - catch(erro){i3GEO.janela.tempoMsg(erro);}  
76 }, 80 },
77 /* 81 /*
78 Function: html 82 Function: html
ferramentas/nuvemtags/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.nuvemtags.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/nuvemtags/index.js
@@ -94,6 +94,13 @@ i3GEOF.nuvemtags = { @@ -94,6 +94,13 @@ i3GEOF.nuvemtags = {
94 dados {JSON} - dados para o gr&aacute;fico (opcional) 94 dados {JSON} - dados para o gr&aacute;fico (opcional)
95 */ 95 */
96 inicia: function(iddiv){ 96 inicia: function(iddiv){
  97 + if(i3GEOF.nuvemtags.MUSTACHE == ""){
  98 + $.get(i3GEO.configura.locaplic + "/ferramentas/nuvemtags/template_mst.html", function(template) {
  99 + i3GEOF.nuvemtags.MUSTACHE = template;
  100 + i3GEOF.nuvemtags.inicia(iddiv);
  101 + });
  102 + return;
  103 + }
97 try{ 104 try{
98 $i(iddiv).innerHTML += i3GEOF.nuvemtags.html(); 105 $i(iddiv).innerHTML += i3GEOF.nuvemtags.html();
99 i3GEO.guias.mostraGuiaFerramenta("i3GEOnuvemtagsguia1","i3GEOnuvemtagsguia"); 106 i3GEO.guias.mostraGuiaFerramenta("i3GEOnuvemtagsguia1","i3GEOnuvemtagsguia");
ferramentas/opcoes_autoredesenha/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.opcoesTempo.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/opcoes_autoredesenha/index.js
@@ -69,6 +69,13 @@ i3GEOF.opcoesTempo = { @@ -69,6 +69,13 @@ i3GEOF.opcoesTempo = {
69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
70 */ 70 */
71 inicia: function(iddiv){ 71 inicia: function(iddiv){
  72 + if(i3GEOF.opcoesTempo.MUSTACHE == ""){
  73 + $.get(i3GEO.configura.locaplic + "/ferramentas/opcoes_autoredesenha/template_mst.html", function(template) {
  74 + i3GEOF.opcoesTempo.MUSTACHE = template;
  75 + i3GEOF.opcoesTempo.inicia(iddiv);
  76 + });
  77 + return;
  78 + }
72 try{ 79 try{
73 $i(iddiv).innerHTML += i3GEOF.opcoesTempo.html(); 80 $i(iddiv).innerHTML += i3GEOF.opcoesTempo.html();
74 var b = new YAHOO.widget.Button( 81 var b = new YAHOO.widget.Button(
ferramentas/opcoes_escala/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.opcoesEscala.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/opcoes_escala/index.js
@@ -37,6 +37,13 @@ i3GEOF.opcoesEscala = { @@ -37,6 +37,13 @@ i3GEOF.opcoesEscala = {
37 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 37 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
38 */ 38 */
39 inicia: function(iddiv){ 39 inicia: function(iddiv){
  40 + if(i3GEOF.opcoesEscala.MUSTACHE == ""){
  41 + $.get(i3GEO.configura.locaplic + "/ferramentas/opcoes_escala/template_mst.html", function(template) {
  42 + i3GEOF.opcoesEscala.MUSTACHE = template;
  43 + i3GEOF.opcoesEscala.inicia(iddiv);
  44 + });
  45 + return;
  46 + }
40 try{ 47 try{
41 $i(iddiv).innerHTML += i3GEOF.opcoesEscala.html(); 48 $i(iddiv).innerHTML += i3GEOF.opcoesEscala.html();
42 var b = new YAHOO.widget.Button( 49 var b = new YAHOO.widget.Button(
ferramentas/opcoes_fundo/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.opcoesFundo.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/opcoes_fundo/index.js
@@ -35,6 +35,13 @@ i3GEOF.opcoesFundo = @@ -35,6 +35,13 @@ i3GEOF.opcoesFundo =
35 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 35 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
36 */ 36 */
37 inicia : function(iddiv) { 37 inicia : function(iddiv) {
  38 + if(i3GEOF.opcoesFundo.MUSTACHE == ""){
  39 + $.get(i3GEO.configura.locaplic + "/ferramentas/opcoes_fundo/template_mst.html", function(template) {
  40 + i3GEOF.opcoesFundo.MUSTACHE = template;
  41 + i3GEOF.opcoesFundo.inicia(iddiv);
  42 + });
  43 + return;
  44 + }
38 try { 45 try {
39 i3GEOF.opcoesFundo.aguarde.visibility = "visible"; 46 i3GEOF.opcoesFundo.aguarde.visibility = "visible";
40 $i(iddiv).innerHTML += i3GEOF.opcoesFundo.html(); 47 $i(iddiv).innerHTML += i3GEOF.opcoesFundo.html();
ferramentas/opcoes_legenda/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.opcoesLegenda.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/opcoes_legenda/index.js
@@ -37,6 +37,13 @@ i3GEOF.opcoesLegenda = { @@ -37,6 +37,13 @@ i3GEOF.opcoesLegenda = {
37 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 37 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
38 */ 38 */
39 inicia: function(iddiv){ 39 inicia: function(iddiv){
  40 + if(i3GEOF.opcoesLegenda.MUSTACHE == ""){
  41 + $.get(i3GEO.configura.locaplic + "/ferramentas/opcoes_legenda/template_mst.html", function(template) {
  42 + i3GEOF.opcoesLegenda.MUSTACHE = template;
  43 + i3GEOF.opcoesLegenda.inicia(iddiv);
  44 + });
  45 + return;
  46 + }
40 try{ 47 try{
41 $i(iddiv).innerHTML = i3GEOF.opcoesLegenda.html(); 48 $i(iddiv).innerHTML = i3GEOF.opcoesLegenda.html();
42 var b = new YAHOO.widget.Button( 49 var b = new YAHOO.widget.Button(
ferramentas/opcoes_querymap/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.opcoesQuery.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/opcoes_querymap/index.js
@@ -33,6 +33,13 @@ i3GEOF.opcoesQuery = { @@ -33,6 +33,13 @@ i3GEOF.opcoesQuery = {
33 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 33 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
34 */ 34 */
35 inicia: function(iddiv){ 35 inicia: function(iddiv){
  36 + if(i3GEOF.opcoesQuery.MUSTACHE == ""){
  37 + $.get(i3GEO.configura.locaplic + "/ferramentas/opcoes_querymap/template_mst.html", function(template) {
  38 + i3GEOF.opcoesQuery.MUSTACHE = template;
  39 + i3GEOF.opcoesQuery.inicia(iddiv);
  40 + });
  41 + return;
  42 + }
36 try{ 43 try{
37 i3GEOF.opcoesQuery.aguarde.visibility = "visible"; 44 i3GEOF.opcoesQuery.aguarde.visibility = "visible";
38 $i(iddiv).innerHTML += i3GEOF.opcoesQuery.html(); 45 $i(iddiv).innerHTML += i3GEOF.opcoesQuery.html();
ferramentas/opcoes_tamanho/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.opcoesTamanho.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/opcoes_tamanho/index.js
@@ -68,6 +68,13 @@ i3GEOF.opcoesTamanho = { @@ -68,6 +68,13 @@ i3GEOF.opcoesTamanho = {
68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 */ 69 */
70 inicia: function(iddiv){ 70 inicia: function(iddiv){
  71 + if(i3GEOF.opcoesTamanho.MUSTACHE == ""){
  72 + $.get(i3GEO.configura.locaplic + "/ferramentas/opcoes_tamanho/template_mst.html", function(template) {
  73 + i3GEOF.opcoesTamanho.MUSTACHE = template;
  74 + i3GEOF.opcoesTamanho.inicia(iddiv);
  75 + });
  76 + return;
  77 + }
71 var b,box; 78 var b,box;
72 try{ 79 try{
73 $i(iddiv).innerHTML += i3GEOF.opcoesTamanho.html(); 80 $i(iddiv).innerHTML += i3GEOF.opcoesTamanho.html();
ferramentas/outputformat/dependencias.php
@@ -16,18 +16,7 @@ if(extension_loaded(&#39;zlib&#39;)){ @@ -16,18 +16,7 @@ if(extension_loaded(&#39;zlib&#39;)){
16 header("Content-type: text/javascript"); 16 header("Content-type: text/javascript");
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 -echo "\n";  
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.outputformat.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 19 +
31 if(extension_loaded('zlib')){ 20 if(extension_loaded('zlib')){
32 ob_end_flush(); 21 ob_end_flush();
33 } 22 }
ferramentas/outputformat/index.js
@@ -68,11 +68,14 @@ i3GEOF.outputformat = { @@ -68,11 +68,14 @@ i3GEOF.outputformat = {
68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 */ 69 */
70 inicia: function(iddiv){ 70 inicia: function(iddiv){
71 - try{  
72 - $i(iddiv).innerHTML += i3GEOF.outputformat.html(); 71 + if(i3GEOF.outputformat.MUSTACHE == ""){
  72 + $.get(i3GEO.configura.locaplic + "/ferramentas/outputformat/template_mst.html", function(template) {
  73 + i3GEOF.outputformat.MUSTACHE = template;
  74 + i3GEOF.outputformat.inicia(iddiv);
  75 + });
  76 + return;
73 } 77 }
74 - catch(erro){i3GEO.janela.tempoMsg(erro);}  
75 - 78 + $i(iddiv).innerHTML += i3GEOF.outputformat.html();
76 }, 79 },
77 /* 80 /*
78 Function: html 81 Function: html
ferramentas/parametrossql/dependencias.php
@@ -18,17 +18,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -18,17 +18,7 @@ header(&quot;Content-type: text/javascript&quot;);
18 include("index.js"); 18 include("index.js");
19 include("dicionario.js"); 19 include("dicionario.js");
20 echo "\n"; 20 echo "\n";
21 -/**  
22 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
23 - */  
24 -echo 'i3GEOF.parametrossql.MUSTACHE = "';  
25 -$texto = file_get_contents("template_mst.html");  
26 -$texto = str_replace("\n", "", $texto);  
27 -$texto = str_replace("\r", "", $texto);  
28 -$texto = str_replace("\t", "", $texto);  
29 -$texto = str_replace('"', "'", $texto);  
30 -echo $texto;  
31 -echo '";'; 21 +
32 if(extension_loaded('zlib')){ 22 if(extension_loaded('zlib')){
33 ob_end_flush(); 23 ob_end_flush();
34 } 24 }
ferramentas/parametrossql/index.js
@@ -71,6 +71,13 @@ i3GEOF.parametrossql = { @@ -71,6 +71,13 @@ i3GEOF.parametrossql = {
71 camada - objeto contendo os dados do plugin 71 camada - objeto contendo os dados do plugin
72 */ 72 */
73 inicia: function(iddiv,camada){ 73 inicia: function(iddiv,camada){
  74 + if(i3GEOF.parametrossql.MUSTACHE == ""){
  75 + $.get(i3GEO.configura.locaplic + "/ferramentas/parametrossql/template_mst.html", function(template) {
  76 + i3GEOF.parametrossql.MUSTACHE = template;
  77 + i3GEOF.parametrossql.inicia(iddiv);
  78 + });
  79 + return;
  80 + }
74 $i(iddiv).innerHTML = i3GEOF.parametrossql.html(); 81 $i(iddiv).innerHTML = i3GEOF.parametrossql.html();
75 var b, 82 var b,
76 f = i3GEOF.parametrossql.formulario(camada); 83 f = i3GEOF.parametrossql.formulario(camada);
ferramentas/perfil/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.perfil.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/perfil/index.js
@@ -80,7 +80,13 @@ i3GEOF.perfil = { @@ -80,7 +80,13 @@ i3GEOF.perfil = {
80 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 80 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
81 */ 81 */
82 inicia: function(iddiv){ 82 inicia: function(iddiv){
83 - try{ 83 + if(i3GEOF.perfil.MUSTACHE == ""){
  84 + $.get(i3GEO.configura.locaplic + "/ferramentas/perfil/template_mst.html", function(template) {
  85 + i3GEOF.perfil.MUSTACHE = template;
  86 + i3GEOF.perfil.inicia(iddiv);
  87 + });
  88 + return;
  89 + }
84 $i(iddiv).innerHTML += i3GEOF.perfil.html(); 90 $i(iddiv).innerHTML += i3GEOF.perfil.html();
85 i3GEOF.perfil.comboTemas(); 91 i3GEOF.perfil.comboTemas();
86 var b = new YAHOO.widget.Button( 92 var b = new YAHOO.widget.Button(
@@ -88,8 +94,6 @@ i3GEOF.perfil = { @@ -88,8 +94,6 @@ i3GEOF.perfil = {
88 {onclick:{fn: i3GEOF.perfil.criaPerfil}} 94 {onclick:{fn: i3GEOF.perfil.criaPerfil}}
89 ); 95 );
90 b.addClass("rodar"); 96 b.addClass("rodar");
91 - }  
92 - catch(erro){i3GEO.janela.tempoMsg(erro);}  
93 }, 97 },
94 /* 98 /*
95 Function: html 99 Function: html
ferramentas/pontoempoligono/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.pontoEmPoligono.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/pontoempoligono/index.js
@@ -69,11 +69,15 @@ i3GEOF.pontoEmPoligono = { @@ -69,11 +69,15 @@ i3GEOF.pontoEmPoligono = {
69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
70 */ 70 */
71 inicia: function(iddiv){ 71 inicia: function(iddiv){
72 - try{ 72 + if(i3GEOF.pontoEmPoligono.MUSTACHE == ""){
  73 + $.get(i3GEO.configura.locaplic + "/ferramentas/pontoempoligono/template_mst.html", function(template) {
  74 + i3GEOF.pontoEmPoligono.MUSTACHE = template;
  75 + i3GEOF.pontoEmPoligono.inicia(iddiv);
  76 + });
  77 + return;
  78 + }
73 $i(iddiv).innerHTML += i3GEOF.pontoEmPoligono.html(); 79 $i(iddiv).innerHTML += i3GEOF.pontoEmPoligono.html();
74 i3GEOF.pontoEmPoligono.t0(); 80 i3GEOF.pontoEmPoligono.t0();
75 - }  
76 - catch(erro){i3GEO.janela.tempoMsg(erro);}  
77 }, 81 },
78 /* 82 /*
79 Function: html 83 Function: html
ferramentas/pontosdistri/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.pontosDistri.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/pontosdistri/index.js
@@ -35,6 +35,13 @@ i3GEOF.pontosDistri = { @@ -35,6 +35,13 @@ i3GEOF.pontosDistri = {
35 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 35 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
36 */ 36 */
37 inicia: function(iddiv){ 37 inicia: function(iddiv){
  38 + if(i3GEOF.pontosDistri.MUSTACHE == ""){
  39 + $.get(i3GEO.configura.locaplic + "/ferramentas/pontosdistri/template_mst.html", function(template) {
  40 + i3GEOF.pontosDistri.MUSTACHE = template;
  41 + i3GEOF.pontosDistri.inicia(iddiv);
  42 + });
  43 + return;
  44 + }
38 try{ 45 try{
39 var b; 46 var b;
40 $i(iddiv).innerHTML += i3GEOF.pontosDistri.html(); 47 $i(iddiv).innerHTML += i3GEOF.pontosDistri.html();
ferramentas/salvamapa/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.salvaMapa.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/salvamapa/index.js
@@ -63,6 +63,13 @@ i3GEOF.salvaMapa = { @@ -63,6 +63,13 @@ i3GEOF.salvaMapa = {
63 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 63 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
64 */ 64 */
65 inicia: function(iddiv){ 65 inicia: function(iddiv){
  66 + if(i3GEOF.salvaMapa.MUSTACHE == ""){
  67 + $.get(i3GEO.configura.locaplic + "/ferramentas/salvamapa/template_mst.html", function(template) {
  68 + i3GEOF.salvaMapa.MUSTACHE = template;
  69 + i3GEOF.salvaMapa.inicia(iddiv);
  70 + });
  71 + return;
  72 + }
66 $i(iddiv).innerHTML = i3GEOF.salvaMapa.html(); 73 $i(iddiv).innerHTML = i3GEOF.salvaMapa.html();
67 var temp = function(dados){ 74 var temp = function(dados){
68 i3GEOF.salvaMapa.htmlMapaLocal("i3GEOFsalvaMapaLocal"); 75 i3GEOF.salvaMapa.htmlMapaLocal("i3GEOFsalvaMapaLocal");
ferramentas/storymap/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.storymap.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/storymap/index.js
@@ -109,6 +109,13 @@ i3GEOF.storymap = @@ -109,6 +109,13 @@ i3GEOF.storymap =
109 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 109 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
110 */ 110 */
111 inicia : function(iddiv) { 111 inicia : function(iddiv) {
  112 + if(i3GEOF.storymap.MUSTACHE == ""){
  113 + $.get(i3GEO.configura.locaplic + "/ferramentas/storymap/template_mst.html", function(template) {
  114 + i3GEOF.storymap.MUSTACHE = template;
  115 + i3GEOF.storymap.inicia(iddiv);
  116 + });
  117 + return;
  118 + }
112 var camada = ""; 119 var camada = "";
113 if (!$i("i3GEOFstoComboCabecaSel")) { 120 if (!$i("i3GEOFstoComboCabecaSel")) {
114 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFstoComboCabeca", "i3GEOFstoComboCabecaSel", "storymap", "ligadosComTabela",function(evt){ 121 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFstoComboCabeca", "i3GEOFstoComboCabecaSel", "storymap", "ligadosComTabela",function(evt){
ferramentas/tabela/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.tabela.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/tabela/index.js
@@ -121,6 +121,13 @@ i3GEOF.tabela = @@ -121,6 +121,13 @@ i3GEOF.tabela =
121 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 121 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
122 */ 122 */
123 inicia : function(iddiv, idjanela) { 123 inicia : function(iddiv, idjanela) {
  124 + if(i3GEOF.tabela.MUSTACHE == ""){
  125 + $.get(i3GEO.configura.locaplic + "/ferramentas/tabela/template_mst.html", function(template) {
  126 + i3GEOF.tabela.MUSTACHE = template;
  127 + i3GEOF.tabela.inicia(iddiv);
  128 + });
  129 + return;
  130 + }
124 var b, onButtonClick = function(evt) { 131 var b, onButtonClick = function(evt) {
125 var botao = evt.target; 132 var botao = evt.target;
126 if (botao) { 133 if (botao) {
ferramentas/tipoimagem/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.tipoimagem.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/tipoimagem/index.js
@@ -69,6 +69,13 @@ i3GEOF.tipoimagem = { @@ -69,6 +69,13 @@ i3GEOF.tipoimagem = {
69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
70 */ 70 */
71 inicia: function(iddiv){ 71 inicia: function(iddiv){
  72 + if(i3GEOF.tipoimagem.MUSTACHE == ""){
  73 + $.get(i3GEO.configura.locaplic + "/ferramentas/tipoimagem/template_mst.html", function(template) {
  74 + i3GEOF.tipoimagem.MUSTACHE = template;
  75 + i3GEOF.tipoimagem.inicia(iddiv);
  76 + });
  77 + return;
  78 + }
72 try{ 79 try{
73 var temp,f,b; 80 var temp,f,b;
74 81
ferramentas/tme/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.tme.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/tme/index.js
@@ -116,6 +116,13 @@ i3GEOF.tme = @@ -116,6 +116,13 @@ i3GEOF.tme =
116 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 116 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
117 */ 117 */
118 inicia : function(iddiv) { 118 inicia : function(iddiv) {
  119 + if(i3GEOF.tme.MUSTACHE == ""){
  120 + $.get(i3GEO.configura.locaplic + "/ferramentas/tme/template_mst.html", function(template) {
  121 + i3GEOF.tme.MUSTACHE = template;
  122 + i3GEOF.tme.inicia(iddiv);
  123 + });
  124 + return;
  125 + }
119 var camada = ""; 126 var camada = "";
120 if (!$i("i3GEOFtmeComboCabecaSel")) { 127 if (!$i("i3GEOFtmeComboCabecaSel")) {
121 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFtmeComboCabeca", "i3GEOFtmeComboCabecaSel", "tme", "ligadosComTabela",function(evt){ 128 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFtmeComboCabeca", "i3GEOFtmeComboCabecaSel", "tme", "ligadosComTabela",function(evt){
ferramentas/toponimia/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.toponimia.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/toponimia/index.js
@@ -45,6 +45,13 @@ i3GEOF.toponimia = { @@ -45,6 +45,13 @@ i3GEOF.toponimia = {
45 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 45 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
46 */ 46 */
47 inicia: function(iddiv){ 47 inicia: function(iddiv){
  48 + if(i3GEOF.toponimia.MUSTACHE == ""){
  49 + $.get(i3GEO.configura.locaplic + "/ferramentas/toponimia/template_mst.html", function(template) {
  50 + i3GEOF.toponimia.MUSTACHE = template;
  51 + i3GEOF.toponimia.inicia(iddiv);
  52 + });
  53 + return;
  54 + }
48 if (!$i("i3GEOFtoponimiaComboCabecaSel")) { 55 if (!$i("i3GEOFtoponimiaComboCabecaSel")) {
49 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFtoponimiaComboCabeca","i3GEOFtoponimiaComboCabecaSel","toponimia","ligadosComTabela",function(evt){ 56 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFtoponimiaComboCabeca","i3GEOFtoponimiaComboCabecaSel","toponimia","ligadosComTabela",function(evt){
50 var botao = evt.target; 57 var botao = evt.target;
ferramentas/uploadarquivos/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.uploadarquivos.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/uploadarquivos/index.js
@@ -28,6 +28,13 @@ i3GEOF.uploadarquivos = @@ -28,6 +28,13 @@ i3GEOF.uploadarquivos =
28 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 28 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
29 */ 29 */
30 inicia : function(iddiv) { 30 inicia : function(iddiv) {
  31 + if(i3GEOF.uploadarquivos.MUSTACHE == ""){
  32 + $.get(i3GEO.configura.locaplic + "/ferramentas/uploadarquivos/template_mst.html", function(template) {
  33 + i3GEOF.uploadarquivos.MUSTACHE = template;
  34 + i3GEOF.uploadarquivos.inicia(iddiv);
  35 + });
  36 + return;
  37 + }
31 $i(iddiv).innerHTML = i3GEOF.uploadarquivos.html(); 38 $i(iddiv).innerHTML = i3GEOF.uploadarquivos.html();
32 new YAHOO.widget.Button("i3GEOFuploadarquivosShp", { 39 new YAHOO.widget.Button("i3GEOFuploadarquivosShp", {
33 onclick : { 40 onclick : {
ferramentas/uploaddbf/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.uploaddbf.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/uploaddbf/index.js
@@ -61,7 +61,13 @@ i3GEOF.uploaddbf = { @@ -61,7 +61,13 @@ i3GEOF.uploaddbf = {
61 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 61 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
62 */ 62 */
63 inicia: function(iddiv){ 63 inicia: function(iddiv){
64 - try{ 64 + if(i3GEOF.uploaddbf.MUSTACHE == ""){
  65 + $.get(i3GEO.configura.locaplic + "/ferramentas/uploaddbf/template_mst.html", function(template) {
  66 + i3GEOF.uploaddbf.MUSTACHE = template;
  67 + i3GEOF.uploaddbf.inicia(iddiv);
  68 + });
  69 + return;
  70 + }try{
65 $i(iddiv).innerHTML += i3GEOF.uploaddbf.html(); 71 $i(iddiv).innerHTML += i3GEOF.uploaddbf.html();
66 var b = new YAHOO.widget.Button( 72 var b = new YAHOO.widget.Button(
67 "i3GEOuploaddbfbotao1", 73 "i3GEOuploaddbfbotao1",
ferramentas/uploadgpx/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.uploadgpx.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/uploadgpx/index.js
@@ -67,6 +67,13 @@ i3GEOF.uploadgpx = { @@ -67,6 +67,13 @@ i3GEOF.uploadgpx = {
67 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 67 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
68 */ 68 */
69 inicia: function(iddiv){ 69 inicia: function(iddiv){
  70 + if(i3GEOF.uploadgpx.MUSTACHE == ""){
  71 + $.get(i3GEO.configura.locaplic + "/ferramentas/uploadgpx/template_mst.html", function(template) {
  72 + i3GEOF.uploadgpx.MUSTACHE = template;
  73 + i3GEOF.uploadgpx.inicia(iddiv);
  74 + });
  75 + return;
  76 + }
70 try{ 77 try{
71 $i(iddiv).innerHTML += i3GEOF.uploadgpx.html(); 78 $i(iddiv).innerHTML += i3GEOF.uploadgpx.html();
72 var b = new YAHOO.widget.Button( 79 var b = new YAHOO.widget.Button(
ferramentas/uploadkml/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.uploadkml.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/uploadkml/index.js
@@ -64,6 +64,13 @@ i3GEOF.uploadkml = { @@ -64,6 +64,13 @@ i3GEOF.uploadkml = {
64 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 64 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
65 */ 65 */
66 inicia: function(iddiv){ 66 inicia: function(iddiv){
  67 + if(i3GEOF.uploadkml.MUSTACHE == ""){
  68 + $.get(i3GEO.configura.locaplic + "/ferramentas/uploadkml/template_mst.html", function(template) {
  69 + i3GEOF.uploadkml.MUSTACHE = template;
  70 + i3GEOF.uploadkml.inicia(iddiv);
  71 + });
  72 + return;
  73 + }
67 try{ 74 try{
68 $i(iddiv).innerHTML += i3GEOF.uploadkml.html(); 75 $i(iddiv).innerHTML += i3GEOF.uploadkml.html();
69 var b = new YAHOO.widget.Button( 76 var b = new YAHOO.widget.Button(
ferramentas/vinde/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.vinde.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/vinde/index.js
@@ -72,6 +72,13 @@ i3GEOF.vinde = { @@ -72,6 +72,13 @@ i3GEOF.vinde = {
72 arvore {YAHOO.widget.TreeView} (opcional) arvore onde o no da inde sera criado 72 arvore {YAHOO.widget.TreeView} (opcional) arvore onde o no da inde sera criado
73 */ 73 */
74 inicia: function(iddiv,arvore){ 74 inicia: function(iddiv,arvore){
  75 + if(i3GEOF.vinde.MUSTACHE == ""){
  76 + $.get(i3GEO.configura.locaplic + "/ferramentas/vinde/template_mst.html", function(template) {
  77 + i3GEOF.vinde.MUSTACHE = template;
  78 + i3GEOF.vinde.inicia(iddiv);
  79 + });
  80 + return;
  81 + }
75 if($i("i3GEOF.vinde_imagemCabecalho")){ 82 if($i("i3GEOF.vinde_imagemCabecalho")){
76 i3GEOF.vinde.aguarde.visibility = "visible"; 83 i3GEOF.vinde.aguarde.visibility = "visible";
77 } 84 }
ferramentas/wiki/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.wiki.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/wiki/index.js
@@ -72,6 +72,13 @@ i3GEOF.wiki = { @@ -72,6 +72,13 @@ i3GEOF.wiki = {
72 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 72 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
73 */ 73 */
74 inicia: function(iddiv){ 74 inicia: function(iddiv){
  75 + if(i3GEOF.wiki.MUSTACHE == ""){
  76 + $.get(i3GEO.configura.locaplic + "/ferramentas/wiki/template_mst.html", function(template) {
  77 + i3GEOF.wiki.MUSTACHE = template;
  78 + i3GEOF.wiki.inicia(iddiv);
  79 + });
  80 + return;
  81 + }
75 try{ 82 try{
76 $i(iddiv).innerHTML += i3GEOF.wiki.html(); 83 $i(iddiv).innerHTML += i3GEOF.wiki.html();
77 i3GEOF.wiki.ativaFoco(); 84 i3GEOF.wiki.ativaFoco();
ferramentas/wkt2layer/dependencias.php
@@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;); @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 include("index.js"); 17 include("index.js");
18 include("dicionario.js"); 18 include("dicionario.js");
19 echo "\n"; 19 echo "\n";
20 -/**  
21 - * Inclui o template mustache do HTML usado para criar o conteudo da janela  
22 - */  
23 -echo 'i3GEOF.wkt2layer.MUSTACHE = "';  
24 -$texto = file_get_contents("template_mst.html");  
25 -$texto = str_replace("\n", "", $texto);  
26 -$texto = str_replace("\r", "", $texto);  
27 -$texto = str_replace("\t", "", $texto);  
28 -$texto = str_replace('"', "'", $texto);  
29 -echo $texto;  
30 -echo '";'; 20 +
31 if(extension_loaded('zlib')){ 21 if(extension_loaded('zlib')){
32 ob_end_flush(); 22 ob_end_flush();
33 } 23 }
ferramentas/wkt2layer/index.js
@@ -42,6 +42,13 @@ i3GEOF.wkt2layer = @@ -42,6 +42,13 @@ i3GEOF.wkt2layer =
42 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta 42 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
43 */ 43 */
44 inicia : function(iddiv,wkt,texto) { 44 inicia : function(iddiv,wkt,texto) {
  45 + if(i3GEOF.wkt2layer.MUSTACHE == ""){
  46 + $.get(i3GEO.configura.locaplic + "/ferramentas/wkt2layer/template_mst.html", function(template) {
  47 + i3GEOF.wkt2layer.MUSTACHE = template;
  48 + i3GEOF.wkt2layer.inicia(iddiv);
  49 + });
  50 + return;
  51 + }
45 $i(iddiv).innerHTML = i3GEOF.wkt2layer.html(wkt,texto); 52 $i(iddiv).innerHTML = i3GEOF.wkt2layer.html(wkt,texto);
46 new YAHOO.widget.Button("i3GEOFwkt2layerShp", { 53 new YAHOO.widget.Button("i3GEOFwkt2layerShp", {
47 onclick : { 54 onclick : {