From 182d15c535c7a431551f264b9f931669a23f4762 Mon Sep 17 00:00:00 2001 From: edmarmoretti Date: Thu, 17 Aug 2017 14:58:32 -0300 Subject: [PATCH] Adaptação da ferramenta Procurar para Bootstrap --- ferramentas/busca/dicionario.js | 15 +++++---------- ferramentas/busca/index.js | 46 ++++++++++++++++++++++++---------------------- ferramentas/busca/template_mst.html | 86 +++++++++++++++++++++++++++++++++++++++++++------------------------------------------- ferramentas/etiqueta/templateLista_mst.html | 5 ++--- ferramentas/inserexy2/template_mst.html | 10 ++++------ js/listaDeFerramentas.js | 2 +- 6 files changed, 79 insertions(+), 85 deletions(-) diff --git a/ferramentas/busca/dicionario.js b/ferramentas/busca/dicionario.js index c2b2645..e51516c 100755 --- a/ferramentas/busca/dicionario.js +++ b/ferramentas/busca/dicionario.js @@ -1,7 +1,7 @@ //+$trad(1,i3GEOF.busca.dicionario)+ i3GEOF.busca.dicionario = { 'digita' : [ { - pt : "digite aqui o texto...", + pt : "Texto para busca", en : "", es : "digite aquí el texto..." } ], @@ -65,18 +65,13 @@ i3GEOF.busca.dicionario = { en : "", es : "localiza" } ], - 14 : [ { - pt : "", + 'onde' : [ { + pt : "Buscar na camada", en : "", es : "" } ], - 15 : [ { - pt : "", - en : "", - es : "" - } ], - 16 : [ { - pt : "", + 'opecoes' : [ { + pt : "Opções", en : "", es : "" } ] diff --git a/ferramentas/busca/index.js b/ferramentas/busca/index.js index eb17633..88398f9 100755 --- a/ferramentas/busca/index.js +++ b/ferramentas/busca/index.js @@ -109,11 +109,6 @@ i3GEOF.busca = { } i3GEO.php.listaItensTema(i3GEOF.busca.montaListaItens,i3GEOF.busca.tema); - var b = new YAHOO.widget.Button( - "i3GEObuscabotao1", - {onclick:{fn: i3GEOF.busca.procurar}} - ); - b.addClass("rodar"); } catch(erro){alert(erro);} }, @@ -195,18 +190,14 @@ i3GEOF.busca = { var ins = "", i, n; - try{ - ins += (""); - n = retorno.data.valores.length; - for (i=0;i"; - ins += ""; - } - ins += "
 " + retorno.data.valores[i].item + "
"; - $i("i3GEObuscalistai").innerHTML = ins; + n = retorno.data.valores.length; + for (i=0;i' + + ' ' + retorno.data.valores[i].item + + ''; } - catch(e) - {$i("i3GEObuscalistai").innerHTML = "

"+$trad('erro',i3GEOF.busca.dicionario)+"
"+e;} + $i("i3GEObuscalistai").innerHTML = ins; }, /* Function: procurar @@ -295,7 +286,14 @@ i3GEOF.busca = { posicaotop = parseInt($i("i3GEOF.busca_c").style.top,10)+(i3GEOF.busca.nbuscas*10); i3GEOF.busca.nbuscas++; - i3GEO.janela.cria("200px","200px","",posicaoleft+290,posicaotop,"

" + palavra + "
",idJanela); + i3GEO.janela.cria( + "300px", + "350px", + "", + posicaoleft+290,posicaotop, + "
" + palavra + "
", + idJanela + ); if (retorno.data !== undefined) { nlinhas = retorno.data.length; @@ -306,18 +304,22 @@ i3GEOF.busca = { valores = (linhas[linha].box).split(" "); x = (valores[0] * 1) + ((((valores[0] * -1) - (valores[2] * -1)) / 2) * 1); y = (valores[1] * 1) + ((((valores[1] * -1) - (valores[3] * -1)) / 2) * 1); - ins.push("
zoom  "+$trad('localiza',i3GEOF.busca.dicionario)+"
"); + + ins.push(""); + ins.push(""); for (i=0;i"+palavra+""); - ins.push("
"+ linhas[linha].valores[i].item + ": " + tr + "

"); + ins.push("
"+ linhas[linha].valores[i].item + " : " + tr + "
"); + ins.push("
"); naoEncontrado = ""; } } } - $i(idJanela+"_corpo").innerHTML = "
"+naoEncontrado+ins.join("")+"
"; + $i(idJanela+"_corpo").innerHTML ="
"+naoEncontrado+ins.join("")+"
"; + } + else{ + $i(idJanela+"_corpo").innerHTML = "
"+$trad('erro',i3GEOF.busca.dicionario)+"
"; } - else - {$i(idJanela+"_corpo").innerHTML = "

"+$trad('erro',i3GEOF.busca.dicionario)+"
";} } }; diff --git a/ferramentas/busca/template_mst.html b/ferramentas/busca/template_mst.html index f22e39d..f9cae3a 100755 --- a/ferramentas/busca/template_mst.html +++ b/ferramentas/busca/template_mst.html @@ -1,47 +1,47 @@ -

+
+
{{{onde}}}
+
+ playlist_add_check +
+
+ + +
+ +
{{{opcoes}}}
-
- playlist_add_check +
+ +
+
+ +
+
+
-
- +
+
-
-

- -
- - - - - - - - - - - - - - - - - - - - - -
- - {{{busca}}}
- - {{{busca2}}}
 
- - {{{busca3}}}
- - {{{busca4}}}
-
-

- {{{busca5}}} -

+
{{{busca5}}}
+
\ No newline at end of file diff --git a/ferramentas/etiqueta/templateLista_mst.html b/ferramentas/etiqueta/templateLista_mst.html index 27f60b5..4edbffe 100755 --- a/ferramentas/etiqueta/templateLista_mst.html +++ b/ferramentas/etiqueta/templateLista_mst.html @@ -34,9 +34,8 @@
diff --git a/ferramentas/inserexy2/template_mst.html b/ferramentas/inserexy2/template_mst.html index 4e80245..56fbedd 100755 --- a/ferramentas/inserexy2/template_mst.html +++ b/ferramentas/inserexy2/template_mst.html @@ -110,18 +110,16 @@
diff --git a/js/listaDeFerramentas.js b/js/listaDeFerramentas.js index d0834fc..070cbf0 100755 --- a/js/listaDeFerramentas.js +++ b/js/listaDeFerramentas.js @@ -412,7 +412,7 @@ i3GEO.listaDeFerramentas = { { id : "omenudataFerramentas2b", text : $trad("t23"), - url : "javascript:i3GEO.tema.dialogo.procuraratrib()" + url : "javascript:i3GEO.tema.dialogo.procuraratrib()" //feramentas/busca }, { id : "omenudataFerramentas3b", -- libgit2 0.21.2