diff --git a/admin/admin.db b/admin/admin.db
index f5dbc84..e7906e5 100755
Binary files a/admin/admin.db and b/admin/admin.db differ
diff --git a/ferramentas/agrupaelementos/dependencias.php b/ferramentas/agrupaelementos/dependencias.php
index 5270c74..49d2230 100755
--- a/ferramentas/agrupaelementos/dependencias.php
+++ b/ferramentas/agrupaelementos/dependencias.php
@@ -20,16 +20,7 @@ echo "\n";
/**
* Inclui o template mustache do HTML usado para criar o conteudo da janela
*/
-/*
-echo 'i3GEOF.agrupaElementos.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
-*/
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/buscainde/dependencias.php b/ferramentas/buscainde/dependencias.php
index 42258a4..ebdc9a6 100755
--- a/ferramentas/buscainde/dependencias.php
+++ b/ferramentas/buscainde/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.buscainde.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/buscainde/index.js b/ferramentas/buscainde/index.js
index dcdc587..bfa486c 100755
--- a/ferramentas/buscainde/index.js
+++ b/ferramentas/buscainde/index.js
@@ -72,10 +72,13 @@ i3GEOF.buscainde = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
- $i(iddiv).innerHTML += i3GEOF.buscainde.html();
+ if(i3GEOF.buscainde.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/buscainde/template_mst.html", function(template) {
+ i3GEOF.buscainde.MUSTACHE = template;
+ $i(iddiv).innerHTML += i3GEOF.buscainde.html();
+ });
+ return;
}
- catch(erro){alert(erro);}
},
/*
Function: html
@@ -105,7 +108,7 @@ i3GEOF.buscainde = {
i3GEO.janela.minimiza("i3GEOF.buscainde");
};
//cria a janela flutuante
- titulo = "/div>CSW<";
+ titulo = "CSW";
janela = i3GEO.janela.cria(
"550px",
"350px",
diff --git a/ferramentas/carregakml/dependencias.php b/ferramentas/carregakml/dependencias.php
index 2e95ace..bf71bc2 100755
--- a/ferramentas/carregakml/dependencias.php
+++ b/ferramentas/carregakml/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.carregakml.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/carregakml/index.js b/ferramentas/carregakml/index.js
index a0ee120..ba4e0fd 100755
--- a/ferramentas/carregakml/index.js
+++ b/ferramentas/carregakml/index.js
@@ -69,28 +69,32 @@ i3GEOF.carregakml = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
- $i(iddiv).innerHTML = i3GEOF.carregakml.html();
- var b, monta = function(retorno){
- var raiz,nraiz,i,combo;
- raiz = retorno.data.canais;
- nraiz = raiz.length;
- combo = "";
- $i("i3GEOcarregakmlCombo").innerHTML = combo;
- };
- i3GEO.php.listaRSSwsARRAY(monta,"KML");
- b = new YAHOO.widget.Button(
- "i3GEOcarregakmlbotao1",
- {onclick:{fn: i3GEOF.carregakml.adiciona}}
- );
- b.addClass("rodar");
+ if(i3GEOF.carregakml.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/carregakml/template_mst.html", function(template) {
+ i3GEOF.carregakml.MUSTACHE = template;
+ i3GEOF.carregakml.inicia(iddiv);
+ });
+ return;
}
- catch(erro){i3GEO.janela.tempoMsg(erro);}
+ $i(iddiv).innerHTML = i3GEOF.carregakml.html();
+ var b, monta = function(retorno){
+ var raiz,nraiz,i,combo;
+ raiz = retorno.data.canais;
+ nraiz = raiz.length;
+ combo = "";
+ $i("i3GEOcarregakmlCombo").innerHTML = combo;
+ };
+ i3GEO.php.listaRSSwsARRAY(monta,"KML");
+ b = new YAHOO.widget.Button(
+ "i3GEOcarregakmlbotao1",
+ {onclick:{fn: i3GEOF.carregakml.adiciona}}
+ );
+ b.addClass("rodar");
},
/*
Function: html
diff --git a/ferramentas/carregamapa/dependencias.php b/ferramentas/carregamapa/dependencias.php
index bff3db4..fb6e424 100755
--- a/ferramentas/carregamapa/dependencias.php
+++ b/ferramentas/carregamapa/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.carregaMapa.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/carregamapa/index.js b/ferramentas/carregamapa/index.js
index 5ff48ab..c6cda98 100755
--- a/ferramentas/carregamapa/index.js
+++ b/ferramentas/carregamapa/index.js
@@ -68,16 +68,20 @@ i3GEOF.carregaMapa = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
- $i(iddiv).innerHTML += i3GEOF.carregaMapa.html();
- document.body.scrollTop = document.documentElement.scrollTop = 0;
- var b = new YAHOO.widget.Button(
- "i3GEOcarregamapabotao1",
- {onclick:{fn: i3GEOF.carregaMapa.submete}}
- );
- b.addClass("rodar");
+ if(i3GEOF.carregaMapa.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/carregamapa/template_mst.html", function(template) {
+ i3GEOF.carregaMapa.MUSTACHE = template;
+ i3GEOF.carregaMapa.inicia(iddiv);
+ });
+ return;
}
- catch(erro){i3GEO.janela.tempoMsg(erro);}
+ $i(iddiv).innerHTML += i3GEOF.carregaMapa.html();
+ document.body.scrollTop = document.documentElement.scrollTop = 0;
+ var b = new YAHOO.widget.Button(
+ "i3GEOcarregamapabotao1",
+ {onclick:{fn: i3GEOF.carregaMapa.submete}}
+ );
+ b.addClass("rodar");
},
/*
Function: html
diff --git a/ferramentas/centroide/dependencias.php b/ferramentas/centroide/dependencias.php
index 313dc2e..aafce37 100755
--- a/ferramentas/centroide/dependencias.php
+++ b/ferramentas/centroide/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.centroide.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/centroide/index.js b/ferramentas/centroide/index.js
index 5ea7a32..307c115 100755
--- a/ferramentas/centroide/index.js
+++ b/ferramentas/centroide/index.js
@@ -68,11 +68,15 @@ i3GEOF.centroide = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
- $i(iddiv).innerHTML += i3GEOF.centroide.html();
- i3GEOF.centroide.t0();
+ if(i3GEOF.centroide.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/centroide/template_mst.html", function(template) {
+ i3GEOF.centroide.MUSTACHE = template;
+ i3GEOF.centroide.inicia(iddiv);
+ });
+ return;
}
- catch(erro){i3GEO.janela.tempoMsg(erro);}
+ $i(iddiv).innerHTML += i3GEOF.centroide.html();
+ i3GEOF.centroide.t0();
},
/*
Function: html
diff --git a/ferramentas/centromassa/index.js b/ferramentas/centromassa/index.js
index 8d19358..fd0734b 100755
--- a/ferramentas/centromassa/index.js
+++ b/ferramentas/centromassa/index.js
@@ -68,11 +68,15 @@ i3GEOF.centromassa = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
- $i(iddiv).innerHTML += i3GEOF.centromassa.html();
- i3GEOF.centromassa.t0();
+ if(i3GEOF.centromassa.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/centromassa/template_mst.html", function(template) {
+ i3GEOF.centromassa.MUSTACHE = template;
+ i3GEOF.centromassa.inicia(iddiv);
+ });
+ return;
}
- catch(erro){i3GEO.janela.tempoMsg(erro);}
+ $i(iddiv).innerHTML += i3GEOF.centromassa.html();
+ i3GEOF.centromassa.t0();
},
/*
Function: html
diff --git a/ferramentas/conectargeojson/dependencias.php b/ferramentas/conectargeojson/dependencias.php
index 3a091f6..2120a7b 100755
--- a/ferramentas/conectargeojson/dependencias.php
+++ b/ferramentas/conectargeojson/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.conectargeojson.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/conectargeojson/index.js b/ferramentas/conectargeojson/index.js
index 8a42477..4ec8192 100755
--- a/ferramentas/conectargeojson/index.js
+++ b/ferramentas/conectargeojson/index.js
@@ -70,9 +70,13 @@ i3GEOF.conectargeojson = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- if(navm)
- {i3GEO.janela.tempoMsg($trad('msgNavegador',i3GEOF.conectargeojson.dicionario));}
- try{
+ if(i3GEOF.conectargeojson.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/conectargeojson/template_mst.html", function(template) {
+ i3GEOF.conectargeojson.MUSTACHE = template;
+ i3GEOF.conectargeojson.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML = i3GEOF.conectargeojson.html();
var b,monta = function(retorno){
var raiz,nraiz,i,combo;
@@ -92,8 +96,6 @@ i3GEOF.conectargeojson = {
{onclick:{fn: i3GEOF.conectargeojson.adiciona}}
);
b.addClass("rodar");
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
},
/*
Function: html
diff --git a/ferramentas/conectarservicos/dependencias.php b/ferramentas/conectarservicos/dependencias.php
index 850aee9..2926112 100755
--- a/ferramentas/conectarservicos/dependencias.php
+++ b/ferramentas/conectarservicos/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.conectarservicos.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/conectarservicos/index.js b/ferramentas/conectarservicos/index.js
index 7ce1dc2..b94bfa4 100755
--- a/ferramentas/conectarservicos/index.js
+++ b/ferramentas/conectarservicos/index.js
@@ -35,6 +35,13 @@ i3GEOF.conectarservicos =
* iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia : function(iddiv) {
+ if(i3GEOF.conectarservicos.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/conectarservicos/template_mst.html", function(template) {
+ i3GEOF.conectarservicos.MUSTACHE = template;
+ i3GEOF.conectarservicos.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML = i3GEOF.conectarservicos.html();
new YAHOO.widget.Button("i3GEOFconectarservicosKml", {
onclick : {
diff --git a/ferramentas/confluence/dependencias.php b/ferramentas/confluence/dependencias.php
index 5d64081..e87ea90 100755
--- a/ferramentas/confluence/dependencias.php
+++ b/ferramentas/confluence/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.confluence.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/confluence/index.js b/ferramentas/confluence/index.js
index b0eb2e0..8fee5ce 100755
--- a/ferramentas/confluence/index.js
+++ b/ferramentas/confluence/index.js
@@ -69,7 +69,13 @@ i3GEOF.confluence = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.confluence.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/confluence/template_mst.html", function(template) {
+ i3GEOF.confluence.MUSTACHE = template;
+ i3GEOF.confluence.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML += i3GEOF.confluence.html();
i3GEOF.confluence.ativaFoco();
if(i3GEO.Interface.ATUAL !== "googlemaps" && i3GEO.Interface.ATUAL !== "googleearth"){
@@ -79,12 +85,7 @@ i3GEOF.confluence = {
confluenceDragend = google.maps.event.addListener(i3GeoMap, "dragend", function() {i3GEOF.confluence.lista();});
confluenceZoomend = google.maps.event.addListener(i3GeoMap, "zoomend", function() {i3GEOF.confluence.lista();});
}
- if(i3GEO.Interface.ATUAL === "googleearth"){
- confluenceDragend = google.earth.addEventListener(i3GeoMap.getView(), "viewchangeend", function() {i3GEOF.confluence.lista();});
- }
i3GEOF.confluence.lista();
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
},
/*
Function: html
diff --git a/ferramentas/cortina/dependencias.php b/ferramentas/cortina/dependencias.php
index 2384933..0f476e6 100755
--- a/ferramentas/cortina/dependencias.php
+++ b/ferramentas/cortina/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.cortina.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/cortina/index.js b/ferramentas/cortina/index.js
index 3e2656a..7b40a4c 100755
--- a/ferramentas/cortina/index.js
+++ b/ferramentas/cortina/index.js
@@ -85,12 +85,14 @@ i3GEOF.cortina = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- //if(navm)
- //{i3GEO.janela.tempoMsg("Esta ferramenta nao funciona adequadamente no Internet Explorer. Experimente usar o Firefox");}
- try{
- $i(iddiv).innerHTML = i3GEOF.cortina.html();
+ if(i3GEOF.cortina.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/cortina/template_mst.html", function(template) {
+ i3GEOF.cortina.MUSTACHE = template;
+ i3GEOF.cortina.inicia(iddiv);
+ });
+ return;
}
- catch(erro){i3GEO.janela.tempoMsg(erro);}
+ $i(iddiv).innerHTML = i3GEOF.cortina.html();
i3GEOF.cortina.criaslide();
i3GEOF.cortina.comboTemas();
},
diff --git a/ferramentas/dissolve/dependencias.php b/ferramentas/dissolve/dependencias.php
index 967a4bd..467bb08 100755
--- a/ferramentas/dissolve/dependencias.php
+++ b/ferramentas/dissolve/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.dissolve.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/dissolve/index.js b/ferramentas/dissolve/index.js
index f4f4826..5681942 100755
--- a/ferramentas/dissolve/index.js
+++ b/ferramentas/dissolve/index.js
@@ -69,11 +69,15 @@ i3GEOF.dissolve = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.dissolve.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/dissolve/template_mst.html", function(template) {
+ i3GEOF.dissolve.MUSTACHE = template;
+ i3GEOF.dissolve.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML += i3GEOF.dissolve.html();
i3GEOF.dissolve.t0();
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
},
/*
Function: html
diff --git a/ferramentas/distancia/dependencias.php b/ferramentas/distancia/dependencias.php
index 1406676..2f002b8 100755
--- a/ferramentas/distancia/dependencias.php
+++ b/ferramentas/distancia/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.distancia.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/distancia/index.js b/ferramentas/distancia/index.js
index 27b86a3..d9c9c2f 100755
--- a/ferramentas/distancia/index.js
+++ b/ferramentas/distancia/index.js
@@ -23,6 +23,13 @@ i3GEOF.distancia =
},
inicia : function(iddiv) {
+ if(i3GEOF.distancia.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/distancia/template_mst.html", function(template) {
+ i3GEOF.distancia.MUSTACHE = template;
+ i3GEOF.distancia.inicia(iddiv);
+ });
+ return;
+ }
i3GEO.eventos.cliquePerm.desativa();
$i(iddiv).innerHTML += i3GEOF.distancia.html();
i3GEOF.distancia[i3GEO.Interface["ATUAL"]].inicia();
diff --git a/ferramentas/distanciaptpt/dependencias.php b/ferramentas/distanciaptpt/dependencias.php
index 2185114..ff1e14c 100755
--- a/ferramentas/distanciaptpt/dependencias.php
+++ b/ferramentas/distanciaptpt/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.distanciaptpt.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/distanciaptpt/index.js b/ferramentas/distanciaptpt/index.js
index bf22354..39ff4fa 100755
--- a/ferramentas/distanciaptpt/index.js
+++ b/ferramentas/distanciaptpt/index.js
@@ -70,11 +70,15 @@ i3GEOF.distanciaptpt = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.distanciaptpt.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/distanciaptpt/template_mst.html", function(template) {
+ i3GEOF.distanciaptpt.MUSTACHE = template;
+ i3GEOF.distanciaptpt.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML += i3GEOF.distanciaptpt.html();
i3GEOF.distanciaptpt.t0();
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
},
/*
Function: html
diff --git a/ferramentas/editorsql/dependencias.php b/ferramentas/editorsql/dependencias.php
index 355b705..aa1b3ea 100755
--- a/ferramentas/editorsql/dependencias.php
+++ b/ferramentas/editorsql/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.editorsql.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/editorsql/index.js b/ferramentas/editorsql/index.js
index 9e8261d..59bda44 100755
--- a/ferramentas/editorsql/index.js
+++ b/ferramentas/editorsql/index.js
@@ -71,6 +71,13 @@ i3GEOF.editorsql = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.editorsql.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/editorsql/template_mst.html", function(template) {
+ i3GEOF.editorsql.MUSTACHE = template;
+ i3GEOF.editorsql.inicia(iddiv);
+ });
+ return;
+ }
try{
$i(iddiv).innerHTML = i3GEOF.editorsql.html();
new YAHOO.widget.Button(
diff --git a/ferramentas/etiqueta/dependencias.php b/ferramentas/etiqueta/dependencias.php
index 2dadf03..e7b23ef 100755
--- a/ferramentas/etiqueta/dependencias.php
+++ b/ferramentas/etiqueta/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.etiqueta.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/etiqueta/index.js b/ferramentas/etiqueta/index.js
index 4dc2f08..9d04c0e 100755
--- a/ferramentas/etiqueta/index.js
+++ b/ferramentas/etiqueta/index.js
@@ -68,6 +68,13 @@ i3GEOF.etiqueta = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.etiqueta.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/etiqueta/template_mst.html", function(template) {
+ i3GEOF.etiqueta.MUSTACHE = template;
+ i3GEOF.etiqueta.inicia(iddiv);
+ });
+ return;
+ }
if (!$i("i3GEOFetiquetaComboCabecaSel")) {
i3GEO.janela.comboCabecalhoTemasBs("i3GEOFetiquetaComboCabeca","i3GEOFetiquetaComboCabecaSel","etiqueta","ligadosComTabela",function(evt){
var botao = evt.target;
diff --git a/ferramentas/filtro/dependencias.php b/ferramentas/filtro/dependencias.php
index 8bf8257..f96f13a 100755
--- a/ferramentas/filtro/dependencias.php
+++ b/ferramentas/filtro/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.filtro.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/filtro/index.js b/ferramentas/filtro/index.js
index 5d39fe1..4af7f9e 100755
--- a/ferramentas/filtro/index.js
+++ b/ferramentas/filtro/index.js
@@ -84,6 +84,13 @@ i3GEOF.filtro = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv,modoCalculadora,idRetorno){
+ if(i3GEOF.filtro.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/filtro/template_mst.html", function(template) {
+ i3GEOF.filtro.MUSTACHE = template;
+ i3GEOF.filtro.inicia(iddiv,modoCalculadora,idRetorno);
+ });
+ return;
+ }
if(modoCalculadora === undefined){
modoCalculadora = false;
}
diff --git a/ferramentas/filtroarvore/dependencias.php b/ferramentas/filtroarvore/dependencias.php
index 8441ac9..6c165a5 100755
--- a/ferramentas/filtroarvore/dependencias.php
+++ b/ferramentas/filtroarvore/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.filtroarvore.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/filtroarvore/index.js b/ferramentas/filtroarvore/index.js
index a60651d..b037768 100755
--- a/ferramentas/filtroarvore/index.js
+++ b/ferramentas/filtroarvore/index.js
@@ -33,10 +33,14 @@ i3GEOF.filtroarvore = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
- $i(iddiv).innerHTML += i3GEOF.filtroarvore.html();
+ if(i3GEOF.filtroarvore.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/filtroarvore/template_mst.html", function(template) {
+ i3GEOF.filtroarvore.MUSTACHE = template;
+ i3GEOF.filtroarvore.inicia(iddiv);
+ });
+ return;
}
- catch(erro){i3GEO.janela.tempoMsg(erro);}
+ $i(iddiv).innerHTML += i3GEOF.filtroarvore.html();
},
/*
Function: html
diff --git a/ferramentas/geolocal/dependencias.php b/ferramentas/geolocal/dependencias.php
index aa3fdb5..5ddf2b6 100755
--- a/ferramentas/geolocal/dependencias.php
+++ b/ferramentas/geolocal/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.geolocal.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/geolocal/index.js b/ferramentas/geolocal/index.js
index bc65b0a..6d85a41 100755
--- a/ferramentas/geolocal/index.js
+++ b/ferramentas/geolocal/index.js
@@ -76,6 +76,13 @@ i3GEOF.geolocal =
* iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia : function(iddiv) {
+ if(i3GEOF.geolocal.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/geolocal/template_mst.html", function(template) {
+ i3GEOF.geolocal.MUSTACHE = template;
+ i3GEOF.geolocal.inicia(iddiv);
+ });
+ return;
+ }
var ics, n, i;
// se nao permitir a localizacao, retorna uma mensagem
if (navigator.geolocation) {
diff --git a/ferramentas/gradecoord/dependencias.php b/ferramentas/gradecoord/dependencias.php
index 419b431..aad3c0f 100755
--- a/ferramentas/gradecoord/dependencias.php
+++ b/ferramentas/gradecoord/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.gradeCoord.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/gradecoord/index.js b/ferramentas/gradecoord/index.js
index 3b79d63..a5df158 100755
--- a/ferramentas/gradecoord/index.js
+++ b/ferramentas/gradecoord/index.js
@@ -36,7 +36,13 @@ i3GEOF.gradeCoord = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.gradeCoord.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/gradecoord/template_mst.html", function(template) {
+ i3GEOF.gradeCoord.MUSTACHE = template;
+ i3GEOF.gradeCoord.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML += i3GEOF.gradeCoord.html();
i3GEO.util.comboFontes("i3GEOgradeCoordfonte","i3GEOgradeCoordfontef");
var b = new YAHOO.widget.Button(
@@ -45,8 +51,6 @@ i3GEOF.gradeCoord = {
);
b.addClass("rodar");
i3GEO.util.aplicaAquarela("i3GEOF.gradeCoord_corpo");
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
},
/*
Function: html
diff --git a/ferramentas/gradehex/dependencias.php b/ferramentas/gradehex/dependencias.php
index 3f6e938..aaa649e 100755
--- a/ferramentas/gradehex/dependencias.php
+++ b/ferramentas/gradehex/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.gradeDeHex.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/gradehex/index.js b/ferramentas/gradehex/index.js
index 1c720d6..b491c71 100755
--- a/ferramentas/gradehex/index.js
+++ b/ferramentas/gradehex/index.js
@@ -83,11 +83,16 @@ i3GEOF.gradeDeHex = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.gradeDeHex.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/gradehex/template_mst.html", function(template) {
+ i3GEOF.gradeDeHex.MUSTACHE = template;
+ i3GEOF.gradeDeHex.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML += i3GEOF.gradeDeHex.html();
i3GEOF.gradeDeHex.t0();
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
+
},
/*
Function: html
diff --git a/ferramentas/gradepol/dependencias.php b/ferramentas/gradepol/dependencias.php
index 2aac680..34a3d98 100755
--- a/ferramentas/gradepol/dependencias.php
+++ b/ferramentas/gradepol/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.gradeDePoligonos.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/gradepol/index.js b/ferramentas/gradepol/index.js
index 3c2c4b7..708e863 100755
--- a/ferramentas/gradepol/index.js
+++ b/ferramentas/gradepol/index.js
@@ -83,11 +83,15 @@ i3GEOF.gradeDePoligonos = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.gradeDePoligonos.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/gradepol/template_mst.html", function(template) {
+ i3GEOF.gradeDePoligonos.MUSTACHE = template;
+ i3GEOF.gradeDePoligonos.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML += i3GEOF.gradeDePoligonos.html();
i3GEOF.gradeDePoligonos.t0();
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
},
/*
Function: html
diff --git a/ferramentas/gradepontos/dependencias.php b/ferramentas/gradepontos/dependencias.php
index 6839a82..e1a8505 100755
--- a/ferramentas/gradepontos/dependencias.php
+++ b/ferramentas/gradepontos/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.gradeDePontos.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/gradepontos/index.js b/ferramentas/gradepontos/index.js
index 25e74db..9bdb074 100755
--- a/ferramentas/gradepontos/index.js
+++ b/ferramentas/gradepontos/index.js
@@ -83,11 +83,17 @@ i3GEOF.gradeDePontos = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.gradeDePontos.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/gradepontos/template_mst.html", function(template) {
+ i3GEOF.gradeDePontos.MUSTACHE = template;
+ i3GEOF.gradeDePontos.inicia(iddiv);
+ });
+ return;
+ }
+
$i(iddiv).innerHTML += i3GEOF.gradeDePontos.html();
i3GEOF.gradeDePontos.t0();
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
+
},
/*
Function: html
diff --git a/ferramentas/graficointerativo1/dependencias.php b/ferramentas/graficointerativo1/dependencias.php
index 83081a1..184f1d6 100755
--- a/ferramentas/graficointerativo1/dependencias.php
+++ b/ferramentas/graficointerativo1/dependencias.php
@@ -18,20 +18,8 @@ header("Content-type: text/javascript");
include("index.js");
include_once ("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.graficointerativo1.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
-
$s = array("../../pacotes/ccc2/ccc/def.js",
- "../../pacotes/ccc2/ccc/jquery.js",
+ //"../../pacotes/ccc2/ccc/jquery.js",
"../../pacotes/ccc2/ccc/jquery.tipsy.js",
"../../pacotes/ccc2/ccc/protovis.js",
"../../pacotes/ccc2/ccc/protovis-msie.js",
diff --git a/ferramentas/graficointerativo1/index.js b/ferramentas/graficointerativo1/index.js
index 78fb0ad..7e31cc9 100755
--- a/ferramentas/graficointerativo1/index.js
+++ b/ferramentas/graficointerativo1/index.js
@@ -395,6 +395,13 @@ i3GEOF.graficointerativo1 =
* ["n;x","'Argentina';33796870","'Paraguay';4773464","'Brazil';151525400","'Chile';13772710"]
*/
inicia : function(iddiv, idjanela) {
+ if(i3GEOF.graficointerativo1.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/graficointerativo1/template_mst.html", function(template) {
+ i3GEOF.graficointerativo1.MUSTACHE = template;
+ i3GEOF.graficointerativo1.inicia(iddiv, idjanela);
+ });
+ return;
+ }
var b;
$i(iddiv).innerHTML += i3GEOF.graficointerativo1.html(idjanela);
$i(idjanela + "i3GEOgraficointerativo1Acumula").checked = i3GEOF.graficointerativo1.propJanelas[idjanela].acumula;
diff --git a/ferramentas/graficotema/dependencias.php b/ferramentas/graficotema/dependencias.php
index eea18a2..0411e8d 100755
--- a/ferramentas/graficotema/dependencias.php
+++ b/ferramentas/graficotema/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.graficoTema.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/graficotema/index.js b/ferramentas/graficotema/index.js
index 44c6c0a..a7fa49a 100755
--- a/ferramentas/graficotema/index.js
+++ b/ferramentas/graficotema/index.js
@@ -96,6 +96,13 @@ i3GEOF.graficoTema = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.graficoTema.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/graficoTema/template_mst.html", function(template) {
+ i3GEOF.graficoTema.MUSTACHE = template;
+ i3GEOF.graficoTema.inicia(iddiv);
+ });
+ return;
+ }
if (!$i("i3GEOFgraficotemaComboCabecaSel")) {
i3GEO.janela.comboCabecalhoTemasBs("i3GEOFgraficotemaComboCabeca","i3GEOFgraficotemaComboCabecaSel","graficoTema","ligadosComTabela",function(evt){
var botao = evt.target;
diff --git a/ferramentas/heatmap/dependencias.php b/ferramentas/heatmap/dependencias.php
index b7fc572..a16d4b9 100755
--- a/ferramentas/heatmap/dependencias.php
+++ b/ferramentas/heatmap/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.heatmap.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/heatmap/index.js b/ferramentas/heatmap/index.js
index 6679dcf..24d6dbe 100755
--- a/ferramentas/heatmap/index.js
+++ b/ferramentas/heatmap/index.js
@@ -88,12 +88,15 @@ i3GEOF.heatmap =
* iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia : function(iddiv) {
- try {
- $i(iddiv).innerHTML += i3GEOF.heatmap.html();
- i3GEOF.heatmap.t0();
- } catch (erro) {
- i3GEO.janela.tempoMsg(erro);
+ if(i3GEOF.heatmap.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/heatmap/template_mst.html", function(template) {
+ i3GEOF.heatmap.MUSTACHE = template;
+ i3GEOF.heatmap.inicia(iddiv);
+ });
+ return;
}
+ $i(iddiv).innerHTML += i3GEOF.heatmap.html();
+ i3GEOF.heatmap.t0();
},
/**
* Function: html
diff --git a/ferramentas/identifica/dependencias.php b/ferramentas/identifica/dependencias.php
index e7fcc95..04f728c 100755
--- a/ferramentas/identifica/dependencias.php
+++ b/ferramentas/identifica/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.identifica.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/identifica/index.js b/ferramentas/identifica/index.js
index 884c2d1..2ca0f06 100755
--- a/ferramentas/identifica/index.js
+++ b/ferramentas/identifica/index.js
@@ -186,6 +186,13 @@ i3GEOF.identifica =
* idjanela {string}
*/
inicia : function(tema, x, y, iddiv, mostraLinkGeohack, mostraSistemasAdicionais, idjanela) {
+ if(i3GEOF.identifica.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/identifica/template_mst.html", function(template) {
+ i3GEOF.identifica.MUSTACHE = template;
+ i3GEOF.identifica.inicia(tema, x, y, iddiv, mostraLinkGeohack, mostraSistemasAdicionais, idjanela);
+ });
+ return;
+ }
try {
$i(iddiv).innerHTML += i3GEOF.identifica.html(idjanela);
i3GEOF.identifica.propJanelas[idjanela].tema = tema;
@@ -358,7 +365,7 @@ i3GEOF.identifica =
};
// cria a janela flutuante
titulo =
- "" + $trad("d7t")
+ "";
diff --git a/ferramentas/importarwmc/dependencias.php b/ferramentas/importarwmc/dependencias.php
index bb51862..44fddc1 100755
--- a/ferramentas/importarwmc/dependencias.php
+++ b/ferramentas/importarwmc/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.importarwmc.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/importarwmc/index.js b/ferramentas/importarwmc/index.js
index 42c66f4..13ec1c4 100755
--- a/ferramentas/importarwmc/index.js
+++ b/ferramentas/importarwmc/index.js
@@ -75,14 +75,20 @@ i3GEOF.importarwmc = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.importarwmc.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/importarwmc/template_mst.html", function(template) {
+ i3GEOF.importarwmc.MUSTACHE = template;
+ i3GEOF.importarwmc.inicia(iddiv);
+ });
+ return;
+ }
+
$i(iddiv).innerHTML += i3GEOF.importarwmc.html();
new YAHOO.widget.Button(
"i3GEOimportarwmcbotao1",
{onclick:{fn: i3GEOF.importarwmc.submete}}
);
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
+
},
/*
Function: html
diff --git a/ferramentas/imprimir/dependencias.php b/ferramentas/imprimir/dependencias.php
index cd31a4e..554fc30 100755
--- a/ferramentas/imprimir/dependencias.php
+++ b/ferramentas/imprimir/dependencias.php
@@ -17,17 +17,6 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.imprimir.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/imprimir/index.js b/ferramentas/imprimir/index.js
index f1f30e6..97e7095 100755
--- a/ferramentas/imprimir/index.js
+++ b/ferramentas/imprimir/index.js
@@ -84,6 +84,13 @@ i3GEOF.imprimir = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.imprimir.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/imprimir/template_mst.html", function(template) {
+ i3GEOF.imprimir.MUSTACHE = template;
+ i3GEOF.imprimir.inicia(iddiv);
+ });
+ return;
+ }
try{
$i(iddiv).innerHTML += i3GEOF.imprimir.html();
diff --git a/ferramentas/inseregrafico/dependencias.php b/ferramentas/inseregrafico/dependencias.php
index 37fd0fe..394b7cb 100755
--- a/ferramentas/inseregrafico/dependencias.php
+++ b/ferramentas/inseregrafico/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.insereGrafico.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/inseregrafico/index.js b/ferramentas/inseregrafico/index.js
index c680134..66e124d 100755
--- a/ferramentas/inseregrafico/index.js
+++ b/ferramentas/inseregrafico/index.js
@@ -66,6 +66,13 @@ i3GEOF.insereGrafico = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.insereGrafico.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/inseregrafico/template_mst.html", function(template) {
+ i3GEOF.insereGrafico.MUSTACHE = template;
+ i3GEOF.insereGrafico.inicia(iddiv);
+ });
+ return;
+ }
try{
$i(iddiv).innerHTML += i3GEOF.insereGrafico.html();
i3GEO.guias.mostraGuiaFerramenta("i3GEOinseregraficoguia1","i3GEOinseregraficoguia");
diff --git a/ferramentas/inseretxt/dependencias.php b/ferramentas/inseretxt/dependencias.php
index 772af28..0efcc75 100755
--- a/ferramentas/inseretxt/dependencias.php
+++ b/ferramentas/inseretxt/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.inseretxt.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/inseretxt/index.js b/ferramentas/inseretxt/index.js
index b5c9298..8a1b7f7 100755
--- a/ferramentas/inseretxt/index.js
+++ b/ferramentas/inseretxt/index.js
@@ -87,6 +87,13 @@ i3GEOF.inseretxt = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.inseretxt.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/inseretxt/template_mst.html", function(template) {
+ i3GEOF.inseretxt.MUSTACHE = template;
+ i3GEOF.inseretxt.inicia(iddiv);
+ });
+ return;
+ }
try{
$i(iddiv).innerHTML += i3GEOF.inseretxt.html();
i3GEO.guias.mostraGuiaFerramenta("i3GEOinseretxtguia1","i3GEOinseretxtguia");
diff --git a/ferramentas/inserexy2/dependencias.php b/ferramentas/inserexy2/dependencias.php
index 76610ae..ca52ed4 100755
--- a/ferramentas/inserexy2/dependencias.php
+++ b/ferramentas/inserexy2/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.inserexy.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/inserexy2/index.js b/ferramentas/inserexy2/index.js
index 813d7b5..19b86d0 100755
--- a/ferramentas/inserexy2/index.js
+++ b/ferramentas/inserexy2/index.js
@@ -70,6 +70,13 @@ i3GEOF.inserexy = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.inserexy.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/inserexy2/template_mst.html", function(template) {
+ i3GEOF.inserexy.MUSTACHE = template;
+ i3GEOF.inserexy.inicia(iddiv);
+ });
+ return;
+ }
try{
var b;
$i(iddiv).innerHTML += i3GEOF.inserexy.html();
diff --git a/ferramentas/legenda/dependencias.php b/ferramentas/legenda/dependencias.php
index 7b15515..e4dfd02 100755
--- a/ferramentas/legenda/dependencias.php
+++ b/ferramentas/legenda/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.legenda.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/legenda/index.js b/ferramentas/legenda/index.js
index c768a25..3dc74ba 100755
--- a/ferramentas/legenda/index.js
+++ b/ferramentas/legenda/index.js
@@ -125,6 +125,13 @@ i3GEOF.legenda =
* iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia : function(iddiv) {
+ if(i3GEOF.legenda.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/legenda/template_mst.html", function(template) {
+ i3GEOF.legenda.MUSTACHE = template;
+ i3GEOF.legenda.inicia(iddiv);
+ });
+ return;
+ }
if (!$i("i3GEOFlegendaComboCabecaSel")) {
i3GEO.janela.comboCabecalhoTemasBs("i3GEOFlegendaComboCabeca", "i3GEOFlegendaComboCabecaSel", "legenda", "ligados",function(evt){
var botao = evt.target;
diff --git a/ferramentas/linhadotempo/dependencias.php b/ferramentas/linhadotempo/dependencias.php
index 2f60e98..341222f 100755
--- a/ferramentas/linhadotempo/dependencias.php
+++ b/ferramentas/linhadotempo/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.linhadotempo.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/linhadotempo/index.js b/ferramentas/linhadotempo/index.js
index c2cd56e..b5d59f6 100755
--- a/ferramentas/linhadotempo/index.js
+++ b/ferramentas/linhadotempo/index.js
@@ -33,6 +33,13 @@ i3GEOF.linhadotempo = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.linhadotempo.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/linhadotempo/template_mst.html", function(template) {
+ i3GEOF.linhadotempo.MUSTACHE = template;
+ i3GEOF.linhadotempo.inicia(iddiv);
+ });
+ return;
+ }
var b,box;
if(iddiv){
i3GEOF.linhadotempo.iddiv = iddiv;
diff --git a/ferramentas/markercluster/dependencias.php b/ferramentas/markercluster/dependencias.php
index 8cd7958..09a6d67 100755
--- a/ferramentas/markercluster/dependencias.php
+++ b/ferramentas/markercluster/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.markercluster.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/markercluster/index.js b/ferramentas/markercluster/index.js
index 2d613ac..4df84de 100755
--- a/ferramentas/markercluster/index.js
+++ b/ferramentas/markercluster/index.js
@@ -72,12 +72,15 @@ i3GEOF.markercluster = {
* ferramenta
*/
inicia : function(iddiv) {
- try {
- $i(iddiv).innerHTML += i3GEOF.markercluster.html();
- i3GEOF.markercluster.t0();
- } catch (erro) {
- i3GEO.janela.tempoMsg(erro);
+ if(i3GEOF.markercluster.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/markercluster/template_mst.html", function(template) {
+ i3GEOF.markercluster.MUSTACHE = template;
+ i3GEOF.markercluster.inicia(iddiv);
+ });
+ return;
}
+ $i(iddiv).innerHTML += i3GEOF.markercluster.html();
+ i3GEOF.markercluster.t0();
},
/**
* Function: html
diff --git a/ferramentas/mascara/dependencias.php b/ferramentas/mascara/dependencias.php
index f33ded1..75221d9 100755
--- a/ferramentas/mascara/dependencias.php
+++ b/ferramentas/mascara/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.mascara.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/mascara/index.js b/ferramentas/mascara/index.js
index 2635ca3..c75704b 100755
--- a/ferramentas/mascara/index.js
+++ b/ferramentas/mascara/index.js
@@ -68,6 +68,13 @@ i3GEOF.mascara = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.mascara.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/mascara/template_mst.html", function(template) {
+ i3GEOF.mascara.MUSTACHE = template;
+ i3GEOF.mascara.inicia(iddiv);
+ });
+ return;
+ }
i3GEOF.mascara.aguarde.visibility = "visible";
$i(iddiv).innerHTML = i3GEOF.mascara.html();
i3GEOF.mascara.selMascara();
diff --git a/ferramentas/melhorcaminho/dependencias.php b/ferramentas/melhorcaminho/dependencias.php
index f022360..5f0ad49 100755
--- a/ferramentas/melhorcaminho/dependencias.php
+++ b/ferramentas/melhorcaminho/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.melhorcaminho.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/melhorcaminho/index.js b/ferramentas/melhorcaminho/index.js
index d2e2ebd..cc81705 100755
--- a/ferramentas/melhorcaminho/index.js
+++ b/ferramentas/melhorcaminho/index.js
@@ -84,11 +84,15 @@ i3GEOF.melhorcaminho = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
- $i(iddiv).innerHTML += i3GEOF.melhorcaminho.html();
- i3GEOF.melhorcaminho.t0();
+ if(i3GEOF.melhorcaminho.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/melhorcaminho/template_mst.html", function(template) {
+ i3GEOF.melhorcaminho.MUSTACHE = template;
+ i3GEOF.melhorcaminho.inicia(iddiv);
+ });
+ return;
}
- catch(erro){i3GEO.janela.tempoMsg(erro);}
+ $i(iddiv).innerHTML += i3GEOF.melhorcaminho.html();
+ i3GEOF.melhorcaminho.t0();
},
/*
Function: html
diff --git a/ferramentas/metar/dependencias.php b/ferramentas/metar/dependencias.php
index 4b32df4..fa8ed01 100755
--- a/ferramentas/metar/dependencias.php
+++ b/ferramentas/metar/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.metar.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/metar/index.js b/ferramentas/metar/index.js
index c03e542..7398a1e 100755
--- a/ferramentas/metar/index.js
+++ b/ferramentas/metar/index.js
@@ -74,7 +74,13 @@ i3GEOF.metar =
* iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia : function(iddiv) {
- try {
+ if(i3GEOF.metar.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/metar/template_mst.html", function(template) {
+ i3GEOF.metar.MUSTACHE = template;
+ i3GEOF.metar.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML += i3GEOF.metar.html();
i3GEOF.metar.ativaFoco();
if (i3GEO.Interface.ATUAL !== "googlemaps" && i3GEO.Interface.ATUAL !== "googleearth") {
@@ -94,9 +100,7 @@ i3GEOF.metar =
});
}
i3GEOF.metar.lista();
- } catch (erro) {
- i3GEO.janela.tempoMsg(erro);
- }
+
},
/*
* Function: html
diff --git a/ferramentas/mmscale/dependencias.php b/ferramentas/mmscale/dependencias.php
index 7d1953c..8404e14 100755
--- a/ferramentas/mmscale/dependencias.php
+++ b/ferramentas/mmscale/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.mmscale.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/mmscale/index.js b/ferramentas/mmscale/index.js
index 273e829..db5a82e 100755
--- a/ferramentas/mmscale/index.js
+++ b/ferramentas/mmscale/index.js
@@ -41,6 +41,13 @@ i3GEOF.mmscale = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.mmscale.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/mmscale/template_mst.html", function(template) {
+ i3GEOF.mmscale.MUSTACHE = template;
+ i3GEOF.mmscale.inicia(iddiv);
+ });
+ return;
+ }
if (!$i("i3GEOFmmscaleComboCabecaSel")) {
i3GEO.janela.comboCabecalhoTemasBs("i3GEOFmmscaleComboCabeca","i3GEOFmmscaleComboCabecaSel","mmscale","ligados",function(evt){
var botao = evt.target;
diff --git a/ferramentas/mostraexten/dependencias.php b/ferramentas/mostraexten/dependencias.php
index 02cd7d3..11c735f 100755
--- a/ferramentas/mostraexten/dependencias.php
+++ b/ferramentas/mostraexten/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.mostraExten.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/mostraexten/index.js b/ferramentas/mostraexten/index.js
index 8268dd3..a9e9b16 100755
--- a/ferramentas/mostraexten/index.js
+++ b/ferramentas/mostraexten/index.js
@@ -67,7 +67,14 @@ i3GEOF.mostraExten = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.mostraExten.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/mostraexten/template_mst.html", function(template) {
+ i3GEOF.mostraExten.MUSTACHE = template;
+ i3GEOF.mostraExten.inicia(iddiv);
+ });
+ return;
+ }
+
$i(iddiv).innerHTML += i3GEOF.mostraExten.html();
var b =new YAHOO.widget.Button(
"i3GEOmostraExtenbotao1",
@@ -75,8 +82,7 @@ i3GEOF.mostraExten = {
);
b.addClass("rodar");
i3GEOF.mostraExten.ativaFoco();
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
+
},
/*
Function: html
diff --git a/ferramentas/nptpol/dependencias.php b/ferramentas/nptpol/dependencias.php
index d82a0bc..603006d 100755
--- a/ferramentas/nptpol/dependencias.php
+++ b/ferramentas/nptpol/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.nptpol.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/nptpol/index.js b/ferramentas/nptpol/index.js
index cc4a035..0b76ce9 100755
--- a/ferramentas/nptpol/index.js
+++ b/ferramentas/nptpol/index.js
@@ -68,11 +68,15 @@ i3GEOF.nptpol = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.nptpol.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/nptpol/template_mst.html", function(template) {
+ i3GEOF.nptpol.MUSTACHE = template;
+ i3GEOF.nptpol.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML += i3GEOF.nptpol.html();
i3GEOF.nptpol.t0();
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
},
/*
Function: html
diff --git a/ferramentas/nuvemtags/dependencias.php b/ferramentas/nuvemtags/dependencias.php
index 8e91293..397292e 100755
--- a/ferramentas/nuvemtags/dependencias.php
+++ b/ferramentas/nuvemtags/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.nuvemtags.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/nuvemtags/index.js b/ferramentas/nuvemtags/index.js
index 6fbaaba..9890155 100755
--- a/ferramentas/nuvemtags/index.js
+++ b/ferramentas/nuvemtags/index.js
@@ -94,6 +94,13 @@ i3GEOF.nuvemtags = {
dados {JSON} - dados para o gráfico (opcional)
*/
inicia: function(iddiv){
+ if(i3GEOF.nuvemtags.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/nuvemtags/template_mst.html", function(template) {
+ i3GEOF.nuvemtags.MUSTACHE = template;
+ i3GEOF.nuvemtags.inicia(iddiv);
+ });
+ return;
+ }
try{
$i(iddiv).innerHTML += i3GEOF.nuvemtags.html();
i3GEO.guias.mostraGuiaFerramenta("i3GEOnuvemtagsguia1","i3GEOnuvemtagsguia");
diff --git a/ferramentas/opcoes_autoredesenha/dependencias.php b/ferramentas/opcoes_autoredesenha/dependencias.php
index fd1de6a..93ba8c2 100755
--- a/ferramentas/opcoes_autoredesenha/dependencias.php
+++ b/ferramentas/opcoes_autoredesenha/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.opcoesTempo.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/opcoes_autoredesenha/index.js b/ferramentas/opcoes_autoredesenha/index.js
index e813c58..f2b64fb 100755
--- a/ferramentas/opcoes_autoredesenha/index.js
+++ b/ferramentas/opcoes_autoredesenha/index.js
@@ -69,6 +69,13 @@ i3GEOF.opcoesTempo = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.opcoesTempo.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/opcoes_autoredesenha/template_mst.html", function(template) {
+ i3GEOF.opcoesTempo.MUSTACHE = template;
+ i3GEOF.opcoesTempo.inicia(iddiv);
+ });
+ return;
+ }
try{
$i(iddiv).innerHTML += i3GEOF.opcoesTempo.html();
var b = new YAHOO.widget.Button(
diff --git a/ferramentas/opcoes_escala/dependencias.php b/ferramentas/opcoes_escala/dependencias.php
index 72ea0ca..b7d92c6 100755
--- a/ferramentas/opcoes_escala/dependencias.php
+++ b/ferramentas/opcoes_escala/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.opcoesEscala.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/opcoes_escala/index.js b/ferramentas/opcoes_escala/index.js
index 8cb6c03..e0b1eb3 100755
--- a/ferramentas/opcoes_escala/index.js
+++ b/ferramentas/opcoes_escala/index.js
@@ -37,6 +37,13 @@ i3GEOF.opcoesEscala = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.opcoesEscala.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/opcoes_escala/template_mst.html", function(template) {
+ i3GEOF.opcoesEscala.MUSTACHE = template;
+ i3GEOF.opcoesEscala.inicia(iddiv);
+ });
+ return;
+ }
try{
$i(iddiv).innerHTML += i3GEOF.opcoesEscala.html();
var b = new YAHOO.widget.Button(
diff --git a/ferramentas/opcoes_fundo/dependencias.php b/ferramentas/opcoes_fundo/dependencias.php
index 4f926e6..d41435f 100755
--- a/ferramentas/opcoes_fundo/dependencias.php
+++ b/ferramentas/opcoes_fundo/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.opcoesFundo.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/opcoes_fundo/index.js b/ferramentas/opcoes_fundo/index.js
index a5822a7..d5afed5 100755
--- a/ferramentas/opcoes_fundo/index.js
+++ b/ferramentas/opcoes_fundo/index.js
@@ -35,6 +35,13 @@ i3GEOF.opcoesFundo =
* iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia : function(iddiv) {
+ if(i3GEOF.opcoesFundo.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/opcoes_fundo/template_mst.html", function(template) {
+ i3GEOF.opcoesFundo.MUSTACHE = template;
+ i3GEOF.opcoesFundo.inicia(iddiv);
+ });
+ return;
+ }
try {
i3GEOF.opcoesFundo.aguarde.visibility = "visible";
$i(iddiv).innerHTML += i3GEOF.opcoesFundo.html();
diff --git a/ferramentas/opcoes_legenda/dependencias.php b/ferramentas/opcoes_legenda/dependencias.php
index aacf8d7..dae68c4 100755
--- a/ferramentas/opcoes_legenda/dependencias.php
+++ b/ferramentas/opcoes_legenda/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.opcoesLegenda.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/opcoes_legenda/index.js b/ferramentas/opcoes_legenda/index.js
index 270251a..ba9a360 100755
--- a/ferramentas/opcoes_legenda/index.js
+++ b/ferramentas/opcoes_legenda/index.js
@@ -37,6 +37,13 @@ i3GEOF.opcoesLegenda = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.opcoesLegenda.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/opcoes_legenda/template_mst.html", function(template) {
+ i3GEOF.opcoesLegenda.MUSTACHE = template;
+ i3GEOF.opcoesLegenda.inicia(iddiv);
+ });
+ return;
+ }
try{
$i(iddiv).innerHTML = i3GEOF.opcoesLegenda.html();
var b = new YAHOO.widget.Button(
diff --git a/ferramentas/opcoes_querymap/dependencias.php b/ferramentas/opcoes_querymap/dependencias.php
index d8966f3..19881a4 100755
--- a/ferramentas/opcoes_querymap/dependencias.php
+++ b/ferramentas/opcoes_querymap/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.opcoesQuery.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/opcoes_querymap/index.js b/ferramentas/opcoes_querymap/index.js
index 1251240..72192a5 100755
--- a/ferramentas/opcoes_querymap/index.js
+++ b/ferramentas/opcoes_querymap/index.js
@@ -33,6 +33,13 @@ i3GEOF.opcoesQuery = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.opcoesQuery.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/opcoes_querymap/template_mst.html", function(template) {
+ i3GEOF.opcoesQuery.MUSTACHE = template;
+ i3GEOF.opcoesQuery.inicia(iddiv);
+ });
+ return;
+ }
try{
i3GEOF.opcoesQuery.aguarde.visibility = "visible";
$i(iddiv).innerHTML += i3GEOF.opcoesQuery.html();
diff --git a/ferramentas/opcoes_tamanho/dependencias.php b/ferramentas/opcoes_tamanho/dependencias.php
index 10edd58..341222f 100755
--- a/ferramentas/opcoes_tamanho/dependencias.php
+++ b/ferramentas/opcoes_tamanho/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.opcoesTamanho.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/opcoes_tamanho/index.js b/ferramentas/opcoes_tamanho/index.js
index 2087222..8a80926 100755
--- a/ferramentas/opcoes_tamanho/index.js
+++ b/ferramentas/opcoes_tamanho/index.js
@@ -68,6 +68,13 @@ i3GEOF.opcoesTamanho = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.opcoesTamanho.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/opcoes_tamanho/template_mst.html", function(template) {
+ i3GEOF.opcoesTamanho.MUSTACHE = template;
+ i3GEOF.opcoesTamanho.inicia(iddiv);
+ });
+ return;
+ }
var b,box;
try{
$i(iddiv).innerHTML += i3GEOF.opcoesTamanho.html();
diff --git a/ferramentas/outputformat/dependencias.php b/ferramentas/outputformat/dependencias.php
index 8793871..87b7718 100755
--- a/ferramentas/outputformat/dependencias.php
+++ b/ferramentas/outputformat/dependencias.php
@@ -16,18 +16,7 @@ if(extension_loaded('zlib')){
header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
-echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.outputformat.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/outputformat/index.js b/ferramentas/outputformat/index.js
index 73ae297..5cc6b6d 100755
--- a/ferramentas/outputformat/index.js
+++ b/ferramentas/outputformat/index.js
@@ -68,11 +68,14 @@ i3GEOF.outputformat = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
- $i(iddiv).innerHTML += i3GEOF.outputformat.html();
+ if(i3GEOF.outputformat.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/outputformat/template_mst.html", function(template) {
+ i3GEOF.outputformat.MUSTACHE = template;
+ i3GEOF.outputformat.inicia(iddiv);
+ });
+ return;
}
- catch(erro){i3GEO.janela.tempoMsg(erro);}
-
+ $i(iddiv).innerHTML += i3GEOF.outputformat.html();
},
/*
Function: html
diff --git a/ferramentas/parametrossql/dependencias.php b/ferramentas/parametrossql/dependencias.php
index 5eca4ee..fb3e8f2 100755
--- a/ferramentas/parametrossql/dependencias.php
+++ b/ferramentas/parametrossql/dependencias.php
@@ -18,17 +18,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.parametrossql.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/parametrossql/index.js b/ferramentas/parametrossql/index.js
index 6e84b72..e9d25b5 100755
--- a/ferramentas/parametrossql/index.js
+++ b/ferramentas/parametrossql/index.js
@@ -71,6 +71,13 @@ i3GEOF.parametrossql = {
camada - objeto contendo os dados do plugin
*/
inicia: function(iddiv,camada){
+ if(i3GEOF.parametrossql.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/parametrossql/template_mst.html", function(template) {
+ i3GEOF.parametrossql.MUSTACHE = template;
+ i3GEOF.parametrossql.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML = i3GEOF.parametrossql.html();
var b,
f = i3GEOF.parametrossql.formulario(camada);
diff --git a/ferramentas/perfil/dependencias.php b/ferramentas/perfil/dependencias.php
index 38306e7..11f6bb1 100755
--- a/ferramentas/perfil/dependencias.php
+++ b/ferramentas/perfil/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.perfil.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/perfil/index.js b/ferramentas/perfil/index.js
index 2f2cb2e..07c6f0a 100755
--- a/ferramentas/perfil/index.js
+++ b/ferramentas/perfil/index.js
@@ -80,7 +80,13 @@ i3GEOF.perfil = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.perfil.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/perfil/template_mst.html", function(template) {
+ i3GEOF.perfil.MUSTACHE = template;
+ i3GEOF.perfil.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML += i3GEOF.perfil.html();
i3GEOF.perfil.comboTemas();
var b = new YAHOO.widget.Button(
@@ -88,8 +94,6 @@ i3GEOF.perfil = {
{onclick:{fn: i3GEOF.perfil.criaPerfil}}
);
b.addClass("rodar");
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
},
/*
Function: html
diff --git a/ferramentas/pontoempoligono/dependencias.php b/ferramentas/pontoempoligono/dependencias.php
index dd762e9..71cb936 100755
--- a/ferramentas/pontoempoligono/dependencias.php
+++ b/ferramentas/pontoempoligono/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.pontoEmPoligono.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/pontoempoligono/index.js b/ferramentas/pontoempoligono/index.js
index 56b1ef6..153fb81 100755
--- a/ferramentas/pontoempoligono/index.js
+++ b/ferramentas/pontoempoligono/index.js
@@ -69,11 +69,15 @@ i3GEOF.pontoEmPoligono = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.pontoEmPoligono.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/pontoempoligono/template_mst.html", function(template) {
+ i3GEOF.pontoEmPoligono.MUSTACHE = template;
+ i3GEOF.pontoEmPoligono.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML += i3GEOF.pontoEmPoligono.html();
i3GEOF.pontoEmPoligono.t0();
- }
- catch(erro){i3GEO.janela.tempoMsg(erro);}
},
/*
Function: html
diff --git a/ferramentas/pontosdistri/dependencias.php b/ferramentas/pontosdistri/dependencias.php
index 202c1a4..e2dd984 100755
--- a/ferramentas/pontosdistri/dependencias.php
+++ b/ferramentas/pontosdistri/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.pontosDistri.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/pontosdistri/index.js b/ferramentas/pontosdistri/index.js
index 0d2784d..c5c99c9 100755
--- a/ferramentas/pontosdistri/index.js
+++ b/ferramentas/pontosdistri/index.js
@@ -35,6 +35,13 @@ i3GEOF.pontosDistri = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.pontosDistri.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/pontosdistri/template_mst.html", function(template) {
+ i3GEOF.pontosDistri.MUSTACHE = template;
+ i3GEOF.pontosDistri.inicia(iddiv);
+ });
+ return;
+ }
try{
var b;
$i(iddiv).innerHTML += i3GEOF.pontosDistri.html();
diff --git a/ferramentas/salvamapa/dependencias.php b/ferramentas/salvamapa/dependencias.php
index ab871ab..69d38a2 100755
--- a/ferramentas/salvamapa/dependencias.php
+++ b/ferramentas/salvamapa/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.salvaMapa.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/salvamapa/index.js b/ferramentas/salvamapa/index.js
index 21e4c8d..c0d4ed2 100755
--- a/ferramentas/salvamapa/index.js
+++ b/ferramentas/salvamapa/index.js
@@ -63,6 +63,13 @@ i3GEOF.salvaMapa = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.salvaMapa.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/salvamapa/template_mst.html", function(template) {
+ i3GEOF.salvaMapa.MUSTACHE = template;
+ i3GEOF.salvaMapa.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML = i3GEOF.salvaMapa.html();
var temp = function(dados){
i3GEOF.salvaMapa.htmlMapaLocal("i3GEOFsalvaMapaLocal");
diff --git a/ferramentas/storymap/dependencias.php b/ferramentas/storymap/dependencias.php
index 4c585dc..a5662b3 100755
--- a/ferramentas/storymap/dependencias.php
+++ b/ferramentas/storymap/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.storymap.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/storymap/index.js b/ferramentas/storymap/index.js
index d2e7b8e..521359f 100755
--- a/ferramentas/storymap/index.js
+++ b/ferramentas/storymap/index.js
@@ -109,6 +109,13 @@ i3GEOF.storymap =
* iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia : function(iddiv) {
+ if(i3GEOF.storymap.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/storymap/template_mst.html", function(template) {
+ i3GEOF.storymap.MUSTACHE = template;
+ i3GEOF.storymap.inicia(iddiv);
+ });
+ return;
+ }
var camada = "";
if (!$i("i3GEOFstoComboCabecaSel")) {
i3GEO.janela.comboCabecalhoTemasBs("i3GEOFstoComboCabeca", "i3GEOFstoComboCabecaSel", "storymap", "ligadosComTabela",function(evt){
diff --git a/ferramentas/tabela/dependencias.php b/ferramentas/tabela/dependencias.php
index 6923a68..fc41816 100755
--- a/ferramentas/tabela/dependencias.php
+++ b/ferramentas/tabela/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.tabela.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/tabela/index.js b/ferramentas/tabela/index.js
index c853c7d..5ac9316 100755
--- a/ferramentas/tabela/index.js
+++ b/ferramentas/tabela/index.js
@@ -121,6 +121,13 @@ i3GEOF.tabela =
* iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia : function(iddiv, idjanela) {
+ if(i3GEOF.tabela.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/tabela/template_mst.html", function(template) {
+ i3GEOF.tabela.MUSTACHE = template;
+ i3GEOF.tabela.inicia(iddiv);
+ });
+ return;
+ }
var b, onButtonClick = function(evt) {
var botao = evt.target;
if (botao) {
diff --git a/ferramentas/tipoimagem/dependencias.php b/ferramentas/tipoimagem/dependencias.php
index 15c7c37..607b8bb 100755
--- a/ferramentas/tipoimagem/dependencias.php
+++ b/ferramentas/tipoimagem/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.tipoimagem.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/tipoimagem/index.js b/ferramentas/tipoimagem/index.js
index 22ff0d3..01a90ea 100755
--- a/ferramentas/tipoimagem/index.js
+++ b/ferramentas/tipoimagem/index.js
@@ -69,6 +69,13 @@ i3GEOF.tipoimagem = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.tipoimagem.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/tipoimagem/template_mst.html", function(template) {
+ i3GEOF.tipoimagem.MUSTACHE = template;
+ i3GEOF.tipoimagem.inicia(iddiv);
+ });
+ return;
+ }
try{
var temp,f,b;
diff --git a/ferramentas/tme/dependencias.php b/ferramentas/tme/dependencias.php
index 580bcb8..0a65b46 100755
--- a/ferramentas/tme/dependencias.php
+++ b/ferramentas/tme/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.tme.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/tme/index.js b/ferramentas/tme/index.js
index babe88e..dc96f65 100755
--- a/ferramentas/tme/index.js
+++ b/ferramentas/tme/index.js
@@ -116,6 +116,13 @@ i3GEOF.tme =
* iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia : function(iddiv) {
+ if(i3GEOF.tme.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/tme/template_mst.html", function(template) {
+ i3GEOF.tme.MUSTACHE = template;
+ i3GEOF.tme.inicia(iddiv);
+ });
+ return;
+ }
var camada = "";
if (!$i("i3GEOFtmeComboCabecaSel")) {
i3GEO.janela.comboCabecalhoTemasBs("i3GEOFtmeComboCabeca", "i3GEOFtmeComboCabecaSel", "tme", "ligadosComTabela",function(evt){
diff --git a/ferramentas/toponimia/dependencias.php b/ferramentas/toponimia/dependencias.php
index f5bfe4d..a57a9a2 100755
--- a/ferramentas/toponimia/dependencias.php
+++ b/ferramentas/toponimia/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.toponimia.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/toponimia/index.js b/ferramentas/toponimia/index.js
index 44c87f2..ff6c807 100755
--- a/ferramentas/toponimia/index.js
+++ b/ferramentas/toponimia/index.js
@@ -45,6 +45,13 @@ i3GEOF.toponimia = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.toponimia.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/toponimia/template_mst.html", function(template) {
+ i3GEOF.toponimia.MUSTACHE = template;
+ i3GEOF.toponimia.inicia(iddiv);
+ });
+ return;
+ }
if (!$i("i3GEOFtoponimiaComboCabecaSel")) {
i3GEO.janela.comboCabecalhoTemasBs("i3GEOFtoponimiaComboCabeca","i3GEOFtoponimiaComboCabecaSel","toponimia","ligadosComTabela",function(evt){
var botao = evt.target;
diff --git a/ferramentas/uploadarquivos/dependencias.php b/ferramentas/uploadarquivos/dependencias.php
index f057669..9a5231f 100755
--- a/ferramentas/uploadarquivos/dependencias.php
+++ b/ferramentas/uploadarquivos/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.uploadarquivos.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/uploadarquivos/index.js b/ferramentas/uploadarquivos/index.js
index 68b4bf1..4edc4ce 100755
--- a/ferramentas/uploadarquivos/index.js
+++ b/ferramentas/uploadarquivos/index.js
@@ -28,6 +28,13 @@ i3GEOF.uploadarquivos =
* iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia : function(iddiv) {
+ if(i3GEOF.uploadarquivos.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/uploadarquivos/template_mst.html", function(template) {
+ i3GEOF.uploadarquivos.MUSTACHE = template;
+ i3GEOF.uploadarquivos.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML = i3GEOF.uploadarquivos.html();
new YAHOO.widget.Button("i3GEOFuploadarquivosShp", {
onclick : {
diff --git a/ferramentas/uploaddbf/dependencias.php b/ferramentas/uploaddbf/dependencias.php
index acc61e1..02c545e 100755
--- a/ferramentas/uploaddbf/dependencias.php
+++ b/ferramentas/uploaddbf/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.uploaddbf.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/uploaddbf/index.js b/ferramentas/uploaddbf/index.js
index 1165fd6..0ddbb4e 100755
--- a/ferramentas/uploaddbf/index.js
+++ b/ferramentas/uploaddbf/index.js
@@ -61,7 +61,13 @@ i3GEOF.uploaddbf = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
- try{
+ if(i3GEOF.uploaddbf.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/uploaddbf/template_mst.html", function(template) {
+ i3GEOF.uploaddbf.MUSTACHE = template;
+ i3GEOF.uploaddbf.inicia(iddiv);
+ });
+ return;
+ }try{
$i(iddiv).innerHTML += i3GEOF.uploaddbf.html();
var b = new YAHOO.widget.Button(
"i3GEOuploaddbfbotao1",
diff --git a/ferramentas/uploadgpx/dependencias.php b/ferramentas/uploadgpx/dependencias.php
index a2402cb..5fb6800 100755
--- a/ferramentas/uploadgpx/dependencias.php
+++ b/ferramentas/uploadgpx/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.uploadgpx.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/uploadgpx/index.js b/ferramentas/uploadgpx/index.js
index 5e55141..40e8aa9 100755
--- a/ferramentas/uploadgpx/index.js
+++ b/ferramentas/uploadgpx/index.js
@@ -67,6 +67,13 @@ i3GEOF.uploadgpx = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.uploadgpx.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/uploadgpx/template_mst.html", function(template) {
+ i3GEOF.uploadgpx.MUSTACHE = template;
+ i3GEOF.uploadgpx.inicia(iddiv);
+ });
+ return;
+ }
try{
$i(iddiv).innerHTML += i3GEOF.uploadgpx.html();
var b = new YAHOO.widget.Button(
diff --git a/ferramentas/uploadkml/dependencias.php b/ferramentas/uploadkml/dependencias.php
index 4260c08..a85aba7 100755
--- a/ferramentas/uploadkml/dependencias.php
+++ b/ferramentas/uploadkml/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.uploadkml.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/uploadkml/index.js b/ferramentas/uploadkml/index.js
index 1cf9c7a..531e36a 100755
--- a/ferramentas/uploadkml/index.js
+++ b/ferramentas/uploadkml/index.js
@@ -64,6 +64,13 @@ i3GEOF.uploadkml = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.uploadkml.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/uploadkml/template_mst.html", function(template) {
+ i3GEOF.uploadkml.MUSTACHE = template;
+ i3GEOF.uploadkml.inicia(iddiv);
+ });
+ return;
+ }
try{
$i(iddiv).innerHTML += i3GEOF.uploadkml.html();
var b = new YAHOO.widget.Button(
diff --git a/ferramentas/vinde/dependencias.php b/ferramentas/vinde/dependencias.php
index b10dc31..864a60e 100755
--- a/ferramentas/vinde/dependencias.php
+++ b/ferramentas/vinde/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.vinde.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/vinde/index.js b/ferramentas/vinde/index.js
index 6d14912..bb83389 100755
--- a/ferramentas/vinde/index.js
+++ b/ferramentas/vinde/index.js
@@ -72,6 +72,13 @@ i3GEOF.vinde = {
arvore {YAHOO.widget.TreeView} (opcional) arvore onde o no da inde sera criado
*/
inicia: function(iddiv,arvore){
+ if(i3GEOF.vinde.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/vinde/template_mst.html", function(template) {
+ i3GEOF.vinde.MUSTACHE = template;
+ i3GEOF.vinde.inicia(iddiv);
+ });
+ return;
+ }
if($i("i3GEOF.vinde_imagemCabecalho")){
i3GEOF.vinde.aguarde.visibility = "visible";
}
diff --git a/ferramentas/wiki/dependencias.php b/ferramentas/wiki/dependencias.php
index 44770e7..3ae55f9 100755
--- a/ferramentas/wiki/dependencias.php
+++ b/ferramentas/wiki/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.wiki.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/wiki/index.js b/ferramentas/wiki/index.js
index 3d9a8be..6c8e1fd 100755
--- a/ferramentas/wiki/index.js
+++ b/ferramentas/wiki/index.js
@@ -72,6 +72,13 @@ i3GEOF.wiki = {
iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia: function(iddiv){
+ if(i3GEOF.wiki.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/wiki/template_mst.html", function(template) {
+ i3GEOF.wiki.MUSTACHE = template;
+ i3GEOF.wiki.inicia(iddiv);
+ });
+ return;
+ }
try{
$i(iddiv).innerHTML += i3GEOF.wiki.html();
i3GEOF.wiki.ativaFoco();
diff --git a/ferramentas/wkt2layer/dependencias.php b/ferramentas/wkt2layer/dependencias.php
index 9893c0e..ec4bd15 100755
--- a/ferramentas/wkt2layer/dependencias.php
+++ b/ferramentas/wkt2layer/dependencias.php
@@ -17,17 +17,7 @@ header("Content-type: text/javascript");
include("index.js");
include("dicionario.js");
echo "\n";
-/**
- * Inclui o template mustache do HTML usado para criar o conteudo da janela
- */
-echo 'i3GEOF.wkt2layer.MUSTACHE = "';
-$texto = file_get_contents("template_mst.html");
-$texto = str_replace("\n", "", $texto);
-$texto = str_replace("\r", "", $texto);
-$texto = str_replace("\t", "", $texto);
-$texto = str_replace('"', "'", $texto);
-echo $texto;
-echo '";';
+
if(extension_loaded('zlib')){
ob_end_flush();
}
diff --git a/ferramentas/wkt2layer/index.js b/ferramentas/wkt2layer/index.js
index 2cd2783..4413f18 100755
--- a/ferramentas/wkt2layer/index.js
+++ b/ferramentas/wkt2layer/index.js
@@ -42,6 +42,13 @@ i3GEOF.wkt2layer =
* iddiv {String} - id do div que receberá o conteudo HTML da ferramenta
*/
inicia : function(iddiv,wkt,texto) {
+ if(i3GEOF.wkt2layer.MUSTACHE == ""){
+ $.get(i3GEO.configura.locaplic + "/ferramentas/wkt2layer/template_mst.html", function(template) {
+ i3GEOF.wkt2layer.MUSTACHE = template;
+ i3GEOF.wkt2layer.inicia(iddiv);
+ });
+ return;
+ }
$i(iddiv).innerHTML = i3GEOF.wkt2layer.html(wkt,texto);
new YAHOO.widget.Button("i3GEOFwkt2layerShp", {
onclick : {
--
libgit2 0.21.2