diff --git a/admin/admin.db b/admin/admin.db index 0735ec1..6942f8a 100755 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/css/geral.css b/css/geral.css index ea95093..af5ba6d 100755 --- a/css/geral.css +++ b/css/geral.css @@ -1048,11 +1048,16 @@ H1 { z-index: 1000; } -#listaTemas,#legenda,#legendai,#corpoLegi,#listaPropriedades { +#legenda,#legendai,#corpoLegi,#listaPropriedades { overflow: auto; background-color: white; text-align: left; } +#listaTemas{ + background-color: white; + text-align: left; + overflow: none; +} #ferr1 { background-color: rgb(255, 255, 255); diff --git a/css/i3geo7.css.php b/css/i3geo7.css.php old mode 100644 new mode 100755 index 7321a98..7321a98 --- a/css/i3geo7.css.php +++ b/css/i3geo7.css.php diff --git a/ferramentas/importarwmc/index.js b/ferramentas/importarwmc/index.js index 74e8960..0a8208f 100755 --- a/ferramentas/importarwmc/index.js +++ b/ferramentas/importarwmc/index.js @@ -114,7 +114,7 @@ i3GEOF.importarwmc = { minimiza = function(){ i3GEO.janela.minimiza("i3GEOF.importarwmc"); }; - titulo = "" + $trad("x53")+""; + titulo = "" + $trad("x53")+""; janela = i3GEO.janela.cria( "320px", "280px", diff --git a/ferramentas/upload/dependencias.php b/ferramentas/upload/dependencias.php new file mode 100755 index 0000000..38993cd --- /dev/null +++ b/ferramentas/upload/dependencias.php @@ -0,0 +1,22 @@ + ou com a funcao scripttag do i3Geo + * Alem de carregar os scripts, carrega tambem o template no formato MUSTACHE, definindo a variavel + * javascript i3GEOF.uploaddbf.MUSTACHE + * O template e substituido pelos valores definidos em index.js no momento da inicializacao da ferramenta + */ +if(extension_loaded('zlib')){ + ob_start('ob_gzhandler'); +} +header("Content-type: text/javascript"); +include("index.js"); +include("dicionario.js"); +echo "\n"; + +if(extension_loaded('zlib')){ + ob_end_flush(); +} +?> \ No newline at end of file diff --git a/ferramentas/upload/index.js b/ferramentas/upload/index.js index 1745baa..b3425bc 100755 --- a/ferramentas/upload/index.js +++ b/ferramentas/upload/index.js @@ -42,30 +42,15 @@ i3GEOF.upload = { Estilo do objeto DOM com a imagem de aguarde existente no cabeçalho da janela. */ aguarde: "", - /* - Para efeitos de compatibilidade antes da versão 4.7 que não tinha dicionário - */ - criaJanelaFlutuante: function(){ - i3GEOF.upload.iniciaDicionario(); - }, - /* - Function: iniciaDicionario - - Carrega o dicionário e chama a função que inicia a ferramenta - - O Javascript é carregado com o id i3GEOF.nomedaferramenta.dicionario_script - */ - iniciaDicionario: function(){ - if(typeof(i3GEOF.upload.dicionario) === 'undefined'){ - i3GEO.util.scriptTag( - i3GEO.configura.locaplic+"/ferramentas/upload/dicionario.js", - "i3GEOF.upload.iniciaJanelaFlutuante()", - "i3GEOF.upload.dicionario_script" - ); - } - else{ - i3GEOF.upload.iniciaJanelaFlutuante(); - } + MUSTACHE: "", + /** + * Susbtitutos para o template + */ + mustacheHash : function() { + var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.upload.dicionario); + dicionario["locaplic"] = i3GEO.configura.locaplic; + dicionario["sid"] = i3GEO.configura.sid; + return dicionario; }, /* Function: inicia @@ -77,23 +62,22 @@ i3GEOF.upload = { iddiv {String} - id do div que receberá o conteudo HTML da ferramenta */ inicia: function(iddiv){ - try{ - $i(iddiv).innerHTML += i3GEOF.upload.html(); - var b = new YAHOO.widget.Button( - "i3GEOuploadbotao1", - {onclick:{fn: i3GEOF.upload.submete}} - ); - b.addClass("rodar"); - i3GEO.util.radioEpsg( - function(retorno){ - $i("i3GEOuploadListaepsg").innerHTML = retorno.dados; - }, - "i3GEOuploadListaepsg", - "upload", - "nao" - ); + if(i3GEOF.upload.MUSTACHE == ""){ + $.get(i3GEO.configura.locaplic + "/ferramentas/upload/template_mst.html", function(template) { + i3GEOF.upload.MUSTACHE = template; + i3GEOF.upload.inicia(iddiv); + }); + return; } - catch(erro){i3GEO.janela.tempoMsg(erro);} + $i(iddiv).innerHTML += i3GEOF.upload.html(); + i3GEO.util.radioEpsg( + function(retorno){ + $i("i3GEOuploadListaepsg").innerHTML = retorno.dados; + }, + "i3GEOuploadListaepsg", + "upload", + "nao" + ); }, /* Function: html @@ -105,35 +89,7 @@ i3GEOF.upload = { String com o código html */ html:function(){ - var ins = '
' + - '
' + - '

shp:

' + - '

shx:

' + - '

dbf:

' + - '

prj (opcional):

' + - '
'; - ins += '
' + - '

'+$trad('tipoGeom',i3GEOF.upload.dicionario)+':

' + - '
' + - ' ' + - '
' + - '

'+$trad('projecao',i3GEOF.upload.dicionario)+':

' + - '
' + - '
' + - '
' + - '

' + - '' + - '' + - '

' + - - "

"+$trad('ajudaCaracter',i3GEOF.upload.dicionario)+"

" + - '' + - '
'; + var ins = Mustache.render(i3GEOF.upload.MUSTACHE, i3GEOF.upload.mustacheHash()); return ins; }, /* @@ -164,7 +120,11 @@ i3GEOF.upload = { cabecalho, minimiza, "", - true + true, + "", + "", + "", + "" ); divid = janela[2].id; $i("i3GEOF.upload_corpo").style.backgroundColor = "white"; diff --git a/ferramentas/upload/template_mst.html b/ferramentas/upload/template_mst.html new file mode 100755 index 0000000..ce1f421 --- /dev/null +++ b/ferramentas/upload/template_mst.html @@ -0,0 +1,56 @@ +
+
{{{ajudaCaracter}}}
+ +
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ + + +
+
+
+ +
+ +
+
+ +
+ +
+
+
+ +
+ + + + +
+ + + +
\ No newline at end of file diff --git a/ferramentas/uploadarquivos/index.js b/ferramentas/uploadarquivos/index.js index 7264759..b61d7a1 100755 --- a/ferramentas/uploadarquivos/index.js +++ b/ferramentas/uploadarquivos/index.js @@ -39,8 +39,8 @@ i3GEOF.uploadarquivos = }, shp: function() { i3GEO.util.scriptTag(i3GEO.configura.locaplic - + "/ferramentas/upload/index.js", - "i3GEOF.upload.criaJanelaFlutuante()", + + "/ferramentas/upload/dependencias.php", + "i3GEOF.upload.iniciaJanelaFlutuante()", "i3GEOF.upload_script"); }, dbfcsv: function() { diff --git a/ferramentas/uploaddbf/index.js b/ferramentas/uploaddbf/index.js index 0ddbb4e..22d5e39 100755 --- a/ferramentas/uploaddbf/index.js +++ b/ferramentas/uploaddbf/index.js @@ -42,6 +42,7 @@ i3GEOF.uploaddbf = { Estilo do objeto DOM com a imagem de aguarde existente no cabeçalho da janela. */ aguarde: "", + MUSTACHE: "", /** * Susbtitutos para o template */ @@ -67,21 +68,20 @@ i3GEOF.uploaddbf = { i3GEOF.uploaddbf.inicia(iddiv); }); return; - }try{ - $i(iddiv).innerHTML += i3GEOF.uploaddbf.html(); - var b = new YAHOO.widget.Button( - "i3GEOuploaddbfbotao1", - {onclick:{fn: i3GEOF.uploaddbf.submete}} - ); - b.addClass("rodar"); - i3GEO.util.radioEpsg( - function(retorno) - {$i("i3GEOuploaddbfListaepsg").innerHTML = retorno.dados;}, - "i3GEOuploaddbfListaepsg", - "uploaddbf" - ); } - catch(erro){i3GEO.janela.tempoMsg(erro);} + $i(iddiv).innerHTML += i3GEOF.uploaddbf.html(); + var b = new YAHOO.widget.Button( + "i3GEOuploaddbfbotao1", + {onclick:{fn: i3GEOF.uploaddbf.submete}} + ); + b.addClass("rodar"); + i3GEO.util.radioEpsg( + function(retorno){ + $i("i3GEOuploaddbfListaepsg").innerHTML = retorno.dados; + }, + "i3GEOuploaddbfListaepsg", + "uploaddbf" + ); }, /* Function: html diff --git a/ferramentas/uploadgpx/index.js b/ferramentas/uploadgpx/index.js index 40e8aa9..5467550 100755 --- a/ferramentas/uploadgpx/index.js +++ b/ferramentas/uploadgpx/index.js @@ -57,6 +57,7 @@ i3GEOF.uploadgpx = { dicionario["locaplic"] = i3GEO.configura.locaplic; return dicionario; }, + MUSTACHE: "", /* Function: inicia diff --git a/ferramentas/uploadkml/index.js b/ferramentas/uploadkml/index.js index 531e36a..514cd02 100755 --- a/ferramentas/uploadkml/index.js +++ b/ferramentas/uploadkml/index.js @@ -54,6 +54,7 @@ i3GEOF.uploadkml = { dicionario["locaplic"] = i3GEO.configura.locaplic; return dicionario; }, + MUSTACHE: "", /* Function: inicia diff --git a/interface/carto_ol.htm b/interface/carto_ol.htm index 9d4a5a6..bdc4451 100755 --- a/interface/carto_ol.htm +++ b/interface/carto_ol.htm @@ -294,7 +294,7 @@
  • - Miniaturas +
  • Busca na INDE diff --git a/interface/gm.phtml b/interface/gm.phtml index cd35618..097d5ed 100755 --- a/interface/gm.phtml +++ b/interface/gm.phtml @@ -305,7 +305,7 @@ include("../ms_configura.php");
  • - Miniaturas +
  • Busca na INDE diff --git a/interface/gmdebug.phtml b/interface/gmdebug.phtml index 16bfd8d..66f5911 100755 --- a/interface/gmdebug.phtml +++ b/interface/gmdebug.phtml @@ -305,7 +305,7 @@ include("../ms_configura.php");
  • - Miniaturas +
  • Busca na INDE diff --git a/interface/googlemaps_noite.phtml b/interface/googlemaps_noite.phtml index 92b1357..0faedf6 100755 --- a/interface/googlemaps_noite.phtml +++ b/interface/googlemaps_noite.phtml @@ -305,7 +305,7 @@ include("../ms_configura.php");
  • - Miniaturas +
  • Busca na INDE diff --git a/interface/ol.htm b/interface/ol.htm index d80b8a8..f9d2b0a 100755 --- a/interface/ol.htm +++ b/interface/ol.htm @@ -289,7 +289,7 @@
  • - Miniaturas +
  • Busca na INDE diff --git a/interface/openlayersdebug.htm b/interface/openlayersdebug.htm index f3e44b0..3b199e9 100755 --- a/interface/openlayersdebug.htm +++ b/interface/openlayersdebug.htm @@ -214,7 +214,8 @@
  • - Miniaturas +
  • Busca na INDE diff --git a/interface/osm.htm b/interface/osm.htm index 3b90ac0..0414a86 100755 --- a/interface/osm.htm +++ b/interface/osm.htm @@ -289,7 +289,7 @@
  • - Miniaturas +
  • Busca na INDE diff --git a/interface/osmdebug.htm b/interface/osmdebug.htm index 9d3713f..b9c0ad3 100755 --- a/interface/osmdebug.htm +++ b/interface/osmdebug.htm @@ -289,7 +289,7 @@
  • - Miniaturas +
  • Busca na INDE diff --git a/js/i3geo_tudo_compacto7.js.php b/js/i3geo_tudo_compacto7.js.php old mode 100644 new mode 100755 index 1d29f1b..1d29f1b --- a/js/i3geo_tudo_compacto7.js.php +++ b/js/i3geo_tudo_compacto7.js.php -- libgit2 0.21.2