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

Too many changes.

To preserve performance only 100 of 129 files displayed.

admin/admin.db
No preview for this file type
ferramentas/agrupaelementos/dependencias.php
... ... @@ -20,16 +20,7 @@ echo "\n";
20 20 /**
21 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 24 if(extension_loaded('zlib')){
34 25 ob_end_flush();
35 26 }
... ...
ferramentas/buscainde/dependencias.php
... ... @@ -17,17 +17,7 @@ header("Content-type: text/javascript");
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/buscainde/index.js
... ... @@ -72,10 +72,13 @@ i3GEOF.buscainde = {
72 72 iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
73 73 */
74 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 84 Function: html
... ... @@ -105,7 +108,7 @@ i3GEOF.buscainde = {
105 108 i3GEO.janela.minimiza("i3GEOF.buscainde");
106 109 };
107 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 112 janela = i3GEO.janela.cria(
110 113 "550px",
111 114 "350px",
... ...
ferramentas/carregakml/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/carregakml/index.js
... ... @@ -69,28 +69,32 @@ i3GEOF.carregakml = {
69 69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
70 70 */
71 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 100 Function: html
... ...
ferramentas/carregamapa/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/carregamapa/index.js
... ... @@ -68,16 +68,20 @@ i3GEOF.carregaMapa = {
68 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 69 */
70 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 87 Function: html
... ...
ferramentas/centroide/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/centroide/index.js
... ... @@ -68,11 +68,15 @@ i3GEOF.centroide = {
68 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 69 */
70 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 82 Function: html
... ...
ferramentas/centromassa/index.js
... ... @@ -68,11 +68,15 @@ i3GEOF.centromassa = {
68 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 69 */
70 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 82 Function: html
... ...
ferramentas/conectargeojson/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/conectargeojson/index.js
... ... @@ -70,9 +70,13 @@ i3GEOF.conectargeojson = {
70 70 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
71 71 */
72 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 80 $i(iddiv).innerHTML = i3GEOF.conectargeojson.html();
77 81 var b,monta = function(retorno){
78 82 var raiz,nraiz,i,combo;
... ... @@ -92,8 +96,6 @@ i3GEOF.conectargeojson = {
92 96 {onclick:{fn: i3GEOF.conectargeojson.adiciona}}
93 97 );
94 98 b.addClass("rodar");
95   - }
96   - catch(erro){i3GEO.janela.tempoMsg(erro);}
97 99 },
98 100 /*
99 101 Function: html
... ...
ferramentas/conectarservicos/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/conectarservicos/index.js
... ... @@ -35,6 +35,13 @@ i3GEOF.conectarservicos =
35 35 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
36 36 */
37 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 45 $i(iddiv).innerHTML = i3GEOF.conectarservicos.html();
39 46 new YAHOO.widget.Button("i3GEOFconectarservicosKml", {
40 47 onclick : {
... ...
ferramentas/confluence/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/confluence/index.js
... ... @@ -69,7 +69,13 @@ i3GEOF.confluence = {
69 69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
70 70 */
71 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 79 $i(iddiv).innerHTML += i3GEOF.confluence.html();
74 80 i3GEOF.confluence.ativaFoco();
75 81 if(i3GEO.Interface.ATUAL !== "googlemaps" && i3GEO.Interface.ATUAL !== "googleearth"){
... ... @@ -79,12 +85,7 @@ i3GEOF.confluence = {
79 85 confluenceDragend = google.maps.event.addListener(i3GeoMap, "dragend", function() {i3GEOF.confluence.lista();});
80 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 88 i3GEOF.confluence.lista();
86   - }
87   - catch(erro){i3GEO.janela.tempoMsg(erro);}
88 89 },
89 90 /*
90 91 Function: html
... ...
ferramentas/cortina/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/cortina/index.js
... ... @@ -85,12 +85,14 @@ i3GEOF.cortina = {
85 85 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
86 86 */
87 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 96 i3GEOF.cortina.criaslide();
95 97 i3GEOF.cortina.comboTemas();
96 98 },
... ...
ferramentas/dissolve/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/dissolve/index.js
... ... @@ -69,11 +69,15 @@ i3GEOF.dissolve = {
69 69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
70 70 */
71 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 79 $i(iddiv).innerHTML += i3GEOF.dissolve.html();
74 80 i3GEOF.dissolve.t0();
75   - }
76   - catch(erro){i3GEO.janela.tempoMsg(erro);}
77 81 },
78 82 /*
79 83 Function: html
... ...
ferramentas/distancia/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/distancia/index.js
... ... @@ -23,6 +23,13 @@ i3GEOF.distancia =
23 23  
24 24 },
25 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 33 i3GEO.eventos.cliquePerm.desativa();
27 34 $i(iddiv).innerHTML += i3GEOF.distancia.html();
28 35 i3GEOF.distancia[i3GEO.Interface["ATUAL"]].inicia();
... ...
ferramentas/distanciaptpt/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/distanciaptpt/index.js
... ... @@ -70,11 +70,15 @@ i3GEOF.distanciaptpt = {
70 70 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
71 71 */
72 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 80 $i(iddiv).innerHTML += i3GEOF.distanciaptpt.html();
75 81 i3GEOF.distanciaptpt.t0();
76   - }
77   - catch(erro){i3GEO.janela.tempoMsg(erro);}
78 82 },
79 83 /*
80 84 Function: html
... ...
ferramentas/editorsql/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/editorsql/index.js
... ... @@ -71,6 +71,13 @@ i3GEOF.editorsql = {
71 71 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
72 72 */
73 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 81 try{
75 82 $i(iddiv).innerHTML = i3GEOF.editorsql.html();
76 83 new YAHOO.widget.Button(
... ...
ferramentas/etiqueta/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/etiqueta/index.js
... ... @@ -68,6 +68,13 @@ i3GEOF.etiqueta = {
68 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 69 */
70 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 78 if (!$i("i3GEOFetiquetaComboCabecaSel")) {
72 79 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFetiquetaComboCabeca","i3GEOFetiquetaComboCabecaSel","etiqueta","ligadosComTabela",function(evt){
73 80 var botao = evt.target;
... ...
ferramentas/filtro/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/filtro/index.js
... ... @@ -84,6 +84,13 @@ i3GEOF.filtro = {
84 84 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
85 85 */
86 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 94 if(modoCalculadora === undefined){
88 95 modoCalculadora = false;
89 96 }
... ...
ferramentas/filtroarvore/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/filtroarvore/index.js
... ... @@ -33,10 +33,14 @@ i3GEOF.filtroarvore = {
33 33 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
34 34 */
35 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 46 Function: html
... ...
ferramentas/geolocal/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/geolocal/index.js
... ... @@ -76,6 +76,13 @@ i3GEOF.geolocal =
76 76 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
77 77 */
78 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 86 var ics, n, i;
80 87 // se nao permitir a localizacao, retorna uma mensagem
81 88 if (navigator.geolocation) {
... ...
ferramentas/gradecoord/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/gradecoord/index.js
... ... @@ -36,7 +36,13 @@ i3GEOF.gradeCoord = {
36 36 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
37 37 */
38 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 46 $i(iddiv).innerHTML += i3GEOF.gradeCoord.html();
41 47 i3GEO.util.comboFontes("i3GEOgradeCoordfonte","i3GEOgradeCoordfontef");
42 48 var b = new YAHOO.widget.Button(
... ... @@ -45,8 +51,6 @@ i3GEOF.gradeCoord = {
45 51 );
46 52 b.addClass("rodar");
47 53 i3GEO.util.aplicaAquarela("i3GEOF.gradeCoord_corpo");
48   - }
49   - catch(erro){i3GEO.janela.tempoMsg(erro);}
50 54 },
51 55 /*
52 56 Function: html
... ...
ferramentas/gradehex/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/gradehex/index.js
... ... @@ -83,11 +83,16 @@ i3GEOF.gradeDeHex = {
83 83 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
84 84 */
85 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 93 $i(iddiv).innerHTML += i3GEOF.gradeDeHex.html();
88 94 i3GEOF.gradeDeHex.t0();
89   - }
90   - catch(erro){i3GEO.janela.tempoMsg(erro);}
  95 +
91 96 },
92 97 /*
93 98 Function: html
... ...
ferramentas/gradepol/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/gradepol/index.js
... ... @@ -83,11 +83,15 @@ i3GEOF.gradeDePoligonos = {
83 83 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
84 84 */
85 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 93 $i(iddiv).innerHTML += i3GEOF.gradeDePoligonos.html();
88 94 i3GEOF.gradeDePoligonos.t0();
89   - }
90   - catch(erro){i3GEO.janela.tempoMsg(erro);}
91 95 },
92 96 /*
93 97 Function: html
... ...
ferramentas/gradepontos/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/gradepontos/index.js
... ... @@ -83,11 +83,17 @@ i3GEOF.gradeDePontos = {
83 83 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
84 84 */
85 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 94 $i(iddiv).innerHTML += i3GEOF.gradeDePontos.html();
88 95 i3GEOF.gradeDePontos.t0();
89   - }
90   - catch(erro){i3GEO.janela.tempoMsg(erro);}
  96 +
91 97 },
92 98 /*
93 99 Function: html
... ...
ferramentas/graficointerativo1/dependencias.php
... ... @@ -18,20 +18,8 @@ header(&quot;Content-type: text/javascript&quot;);
18 18 include("index.js");
19 19 include_once ("dicionario.js");
20 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 21 $s = array("../../pacotes/ccc2/ccc/def.js",
34   - "../../pacotes/ccc2/ccc/jquery.js",
  22 + //"../../pacotes/ccc2/ccc/jquery.js",
35 23 "../../pacotes/ccc2/ccc/jquery.tipsy.js",
36 24 "../../pacotes/ccc2/ccc/protovis.js",
37 25 "../../pacotes/ccc2/ccc/protovis-msie.js",
... ...
ferramentas/graficointerativo1/index.js
... ... @@ -395,6 +395,13 @@ i3GEOF.graficointerativo1 =
395 395 * ["n;x","'Argentina';33796870","'Paraguay';4773464","'Brazil';151525400","'Chile';13772710"]
396 396 */
397 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 405 var b;
399 406 $i(iddiv).innerHTML += i3GEOF.graficointerativo1.html(idjanela);
400 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 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/graficotema/index.js
... ... @@ -96,6 +96,13 @@ i3GEOF.graficoTema = {
96 96 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
97 97 */
98 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 106 if (!$i("i3GEOFgraficotemaComboCabecaSel")) {
100 107 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFgraficotemaComboCabeca","i3GEOFgraficotemaComboCabecaSel","graficoTema","ligadosComTabela",function(evt){
101 108 var botao = evt.target;
... ...
ferramentas/heatmap/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/heatmap/index.js
... ... @@ -88,12 +88,15 @@ i3GEOF.heatmap =
88 88 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
89 89 */
90 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 102 * Function: html
... ...
ferramentas/identifica/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/identifica/index.js
... ... @@ -186,6 +186,13 @@ i3GEOF.identifica =
186 186 * idjanela {string}
187 187 */
188 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 196 try {
190 197 $i(iddiv).innerHTML += i3GEOF.identifica.html(idjanela);
191 198 i3GEOF.identifica.propJanelas[idjanela].tema = tema;
... ... @@ -358,7 +365,7 @@ i3GEOF.identifica =
358 365 };
359 366 // cria a janela flutuante
360 367 titulo =
361   - "</div><a class='i3GeoTituloJanelaBs' target=_blank href='"
  368 + "</div><a class='i3GeoTituloJanelaBs' style='right:90px;' target=_blank href='"
362 369 + i3GEO.configura.locaplic
363 370 + "/ajuda_usuario.php?idcategoria=8&idajuda=70' >" + $trad("d7t")
364 371 + "</a>";
... ...
ferramentas/importarwmc/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/importarwmc/index.js
... ... @@ -75,14 +75,20 @@ i3GEOF.importarwmc = {
75 75 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
76 76 */
77 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 86 $i(iddiv).innerHTML += i3GEOF.importarwmc.html();
80 87 new YAHOO.widget.Button(
81 88 "i3GEOimportarwmcbotao1",
82 89 {onclick:{fn: i3GEOF.importarwmc.submete}}
83 90 );
84   - }
85   - catch(erro){i3GEO.janela.tempoMsg(erro);}
  91 +
86 92 },
87 93 /*
88 94 Function: html
... ...
ferramentas/imprimir/dependencias.php
... ... @@ -17,17 +17,6 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 20 if(extension_loaded('zlib')){
32 21 ob_end_flush();
33 22 }
... ...
ferramentas/imprimir/index.js
... ... @@ -84,6 +84,13 @@ i3GEOF.imprimir = {
84 84 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
85 85 */
86 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 94 try{
88 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 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/inseregrafico/index.js
... ... @@ -66,6 +66,13 @@ i3GEOF.insereGrafico = {
66 66 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
67 67 */
68 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 76 try{
70 77 $i(iddiv).innerHTML += i3GEOF.insereGrafico.html();
71 78 i3GEO.guias.mostraGuiaFerramenta("i3GEOinseregraficoguia1","i3GEOinseregraficoguia");
... ...
ferramentas/inseretxt/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/inseretxt/index.js
... ... @@ -87,6 +87,13 @@ i3GEOF.inseretxt = {
87 87 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
88 88 */
89 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 97 try{
91 98 $i(iddiv).innerHTML += i3GEOF.inseretxt.html();
92 99 i3GEO.guias.mostraGuiaFerramenta("i3GEOinseretxtguia1","i3GEOinseretxtguia");
... ...
ferramentas/inserexy2/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/inserexy2/index.js
... ... @@ -70,6 +70,13 @@ i3GEOF.inserexy = {
70 70 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
71 71 */
72 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 80 try{
74 81 var b;
75 82 $i(iddiv).innerHTML += i3GEOF.inserexy.html();
... ...
ferramentas/legenda/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/legenda/index.js
... ... @@ -125,6 +125,13 @@ i3GEOF.legenda =
125 125 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
126 126 */
127 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 135 if (!$i("i3GEOFlegendaComboCabecaSel")) {
129 136 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFlegendaComboCabeca", "i3GEOFlegendaComboCabecaSel", "legenda", "ligados",function(evt){
130 137 var botao = evt.target;
... ...
ferramentas/linhadotempo/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/linhadotempo/index.js
... ... @@ -33,6 +33,13 @@ i3GEOF.linhadotempo = {
33 33 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
34 34 */
35 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 43 var b,box;
37 44 if(iddiv){
38 45 i3GEOF.linhadotempo.iddiv = iddiv;
... ...
ferramentas/markercluster/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/markercluster/index.js
... ... @@ -72,12 +72,15 @@ i3GEOF.markercluster = {
72 72 * ferramenta
73 73 */
74 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 86 * Function: html
... ...
ferramentas/mascara/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/mascara/index.js
... ... @@ -68,6 +68,13 @@ i3GEOF.mascara = {
68 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 69 */
70 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 78 i3GEOF.mascara.aguarde.visibility = "visible";
72 79 $i(iddiv).innerHTML = i3GEOF.mascara.html();
73 80 i3GEOF.mascara.selMascara();
... ...
ferramentas/melhorcaminho/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/melhorcaminho/index.js
... ... @@ -84,11 +84,15 @@ i3GEOF.melhorcaminho = {
84 84 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
85 85 */
86 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 98 Function: html
... ...
ferramentas/metar/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/metar/index.js
... ... @@ -74,7 +74,13 @@ i3GEOF.metar =
74 74 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
75 75 */
76 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 84 $i(iddiv).innerHTML += i3GEOF.metar.html();
79 85 i3GEOF.metar.ativaFoco();
80 86 if (i3GEO.Interface.ATUAL !== "googlemaps" && i3GEO.Interface.ATUAL !== "googleearth") {
... ... @@ -94,9 +100,7 @@ i3GEOF.metar =
94 100 });
95 101 }
96 102 i3GEOF.metar.lista();
97   - } catch (erro) {
98   - i3GEO.janela.tempoMsg(erro);
99   - }
  103 +
100 104 },
101 105 /*
102 106 * Function: html
... ...
ferramentas/mmscale/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/mmscale/index.js
... ... @@ -41,6 +41,13 @@ i3GEOF.mmscale = {
41 41 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
42 42 */
43 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 51 if (!$i("i3GEOFmmscaleComboCabecaSel")) {
45 52 i3GEO.janela.comboCabecalhoTemasBs("i3GEOFmmscaleComboCabeca","i3GEOFmmscaleComboCabecaSel","mmscale","ligados",function(evt){
46 53 var botao = evt.target;
... ...
ferramentas/mostraexten/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/mostraexten/index.js
... ... @@ -67,7 +67,14 @@ i3GEOF.mostraExten = {
67 67 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
68 68 */
69 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 78 $i(iddiv).innerHTML += i3GEOF.mostraExten.html();
72 79 var b =new YAHOO.widget.Button(
73 80 "i3GEOmostraExtenbotao1",
... ... @@ -75,8 +82,7 @@ i3GEOF.mostraExten = {
75 82 );
76 83 b.addClass("rodar");
77 84 i3GEOF.mostraExten.ativaFoco();
78   - }
79   - catch(erro){i3GEO.janela.tempoMsg(erro);}
  85 +
80 86 },
81 87 /*
82 88 Function: html
... ...
ferramentas/nptpol/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/nptpol/index.js
... ... @@ -68,11 +68,15 @@ i3GEOF.nptpol = {
68 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 69 */
70 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 78 $i(iddiv).innerHTML += i3GEOF.nptpol.html();
73 79 i3GEOF.nptpol.t0();
74   - }
75   - catch(erro){i3GEO.janela.tempoMsg(erro);}
76 80 },
77 81 /*
78 82 Function: html
... ...
ferramentas/nuvemtags/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/nuvemtags/index.js
... ... @@ -94,6 +94,13 @@ i3GEOF.nuvemtags = {
94 94 dados {JSON} - dados para o gr&aacute;fico (opcional)
95 95 */
96 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 104 try{
98 105 $i(iddiv).innerHTML += i3GEOF.nuvemtags.html();
99 106 i3GEO.guias.mostraGuiaFerramenta("i3GEOnuvemtagsguia1","i3GEOnuvemtagsguia");
... ...
ferramentas/opcoes_autoredesenha/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/opcoes_autoredesenha/index.js
... ... @@ -69,6 +69,13 @@ i3GEOF.opcoesTempo = {
69 69 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
70 70 */
71 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 79 try{
73 80 $i(iddiv).innerHTML += i3GEOF.opcoesTempo.html();
74 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 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/opcoes_escala/index.js
... ... @@ -37,6 +37,13 @@ i3GEOF.opcoesEscala = {
37 37 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
38 38 */
39 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 47 try{
41 48 $i(iddiv).innerHTML += i3GEOF.opcoesEscala.html();
42 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 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/opcoes_fundo/index.js
... ... @@ -35,6 +35,13 @@ i3GEOF.opcoesFundo =
35 35 * iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
36 36 */
37 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 45 try {
39 46 i3GEOF.opcoesFundo.aguarde.visibility = "visible";
40 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 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/opcoes_legenda/index.js
... ... @@ -37,6 +37,13 @@ i3GEOF.opcoesLegenda = {
37 37 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
38 38 */
39 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 47 try{
41 48 $i(iddiv).innerHTML = i3GEOF.opcoesLegenda.html();
42 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 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/opcoes_querymap/index.js
... ... @@ -33,6 +33,13 @@ i3GEOF.opcoesQuery = {
33 33 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
34 34 */
35 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 43 try{
37 44 i3GEOF.opcoesQuery.aguarde.visibility = "visible";
38 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 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/opcoes_tamanho/index.js
... ... @@ -68,6 +68,13 @@ i3GEOF.opcoesTamanho = {
68 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 69 */
70 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 78 var b,box;
72 79 try{
73 80 $i(iddiv).innerHTML += i3GEOF.opcoesTamanho.html();
... ...
ferramentas/outputformat/dependencias.php
... ... @@ -16,18 +16,7 @@ if(extension_loaded(&#39;zlib&#39;)){
16 16 header("Content-type: text/javascript");
17 17 include("index.js");
18 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 20 if(extension_loaded('zlib')){
32 21 ob_end_flush();
33 22 }
... ...
ferramentas/outputformat/index.js
... ... @@ -68,11 +68,14 @@ i3GEOF.outputformat = {
68 68 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
69 69 */
70 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 81 Function: html
... ...
ferramentas/parametrossql/dependencias.php
... ... @@ -18,17 +18,7 @@ header(&quot;Content-type: text/javascript&quot;);
18 18 include("index.js");
19 19 include("dicionario.js");
20 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 22 if(extension_loaded('zlib')){
33 23 ob_end_flush();
34 24 }
... ...
ferramentas/parametrossql/index.js
... ... @@ -71,6 +71,13 @@ i3GEOF.parametrossql = {
71 71 camada - objeto contendo os dados do plugin
72 72 */
73 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 81 $i(iddiv).innerHTML = i3GEOF.parametrossql.html();
75 82 var b,
76 83 f = i3GEOF.parametrossql.formulario(camada);
... ...
ferramentas/perfil/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...
ferramentas/perfil/index.js
... ... @@ -80,7 +80,13 @@ i3GEOF.perfil = {
80 80 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
81 81 */
82 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 90 $i(iddiv).innerHTML += i3GEOF.perfil.html();
85 91 i3GEOF.perfil.comboTemas();
86 92 var b = new YAHOO.widget.Button(
... ... @@ -88,8 +94,6 @@ i3GEOF.perfil = {
88 94 {onclick:{fn: i3GEOF.perfil.criaPerfil}}
89 95 );
90 96 b.addClass("rodar");
91   - }
92   - catch(erro){i3GEO.janela.tempoMsg(erro);}
93 97 },
94 98 /*
95 99 Function: html
... ...
ferramentas/pontoempoligono/dependencias.php
... ... @@ -17,17 +17,7 @@ header(&quot;Content-type: text/javascript&quot;);
17 17 include("index.js");
18 18 include("dicionario.js");
19 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 21 if(extension_loaded('zlib')){
32 22 ob_end_flush();
33 23 }
... ...