Commit 70571e0196f5231fd4d325122d2d422d7a52d382
1 parent
44de0d27
Exists in
master
--no commit message
Showing
6 changed files
with
108 additions
and
59 deletions
Show diff stats
ferramentas/conectargeojson/index.js
@@ -56,7 +56,6 @@ i3GEOF.conectargeojson = { | @@ -56,7 +56,6 @@ i3GEOF.conectargeojson = { | ||
56 | */ | 56 | */ |
57 | mustacheHash : function() { | 57 | mustacheHash : function() { |
58 | var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.conectargeojson.dicionario); | 58 | var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.conectargeojson.dicionario); |
59 | - dicionario["conectaGeoJson"] = $inputText('','','i3GEOconectargeojsonurl','',45,''); | ||
60 | dicionario["aguarde"] = $trad("o1"); | 59 | dicionario["aguarde"] = $trad("o1"); |
61 | dicionario["locaplic"] = i3GEO.configura.locaplic; | 60 | dicionario["locaplic"] = i3GEO.configura.locaplic; |
62 | dicionario["aplica"] = $trad("p14"); | 61 | dicionario["aplica"] = $trad("p14"); |
ferramentas/conectargeojson/template_mst.html
1 | -<p class="paragrafo"> | ||
2 | - {{{insereEndereco}}}<br> <br> {{{conectaGeoJson}}} <br> <br> | ||
3 | -<div id='i3GEOconectargeojsonCombo' style='left: 1px; display: block; width: 315px; text-align: left;'>{{{aguarde}}}</div> | 1 | +<p class="paragrafo">{{{insereEndereco}}}</p> |
2 | +<div class="i3geoForm i3geoFormIconeEdita" style="width:350px;"> | ||
3 | + <input id=i3GEOconectargeojsonurl type="text" value="" /> | ||
4 | +</div> | ||
5 | +<p class=paragrafo > | ||
6 | +<div id='i3GEOconectargeojsonCombo' style='left: 1px; display: block; width: 350px; text-align: left;'>{{{aguarde}}}</div> | ||
4 | <br> | 7 | <br> |
5 | <br> | 8 | <br> |
6 | <input id='i3GEOconectargeojsonbotao1' type='button' value='{{{aplica}}}' /> | 9 | <input id='i3GEOconectargeojsonbotao1' type='button' value='{{{aplica}}}' /> |
7 | \ No newline at end of file | 10 | \ No newline at end of file |
ferramentas/conectargeorss/index.htm
1 | <html> | 1 | <html> |
2 | <head> | 2 | <head> |
3 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | 3 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> |
4 | -<link rel="stylesheet" type="text/css" href="../../css/i3geo_ferramentas6.css"> | 4 | +<script type="text/javascript" src="../../classesjs/i3geo.js"></script> |
5 | +<link rel="stylesheet" type="text/css" href="../../css/black.css"> | ||
5 | <title></title> | 6 | <title></title> |
6 | -<style type="text/css" >button{background:url(../../imagens/tic.png) 98% 50% no-repeat;}</style> | ||
7 | -<link rel="stylesheet" type="text/css" href="../../pacotes/yui290/build/button/assets/skins/sam/button.css"/> | 7 | + |
8 | +<style type="text/css"> | ||
9 | +button { | ||
10 | + background: url(../../imagens/tic.png) 98% 50% no-repeat; | ||
11 | +} | ||
12 | +</style> | ||
8 | <style type="text/css"> | 13 | <style type="text/css"> |
9 | body { | 14 | body { |
10 | - margin:0; | ||
11 | - padding:0;border:0px; | 15 | + margin: 0; |
16 | + padding: 0; | ||
17 | + border: 0px; | ||
18 | + background-color: white; | ||
19 | +} | ||
20 | +.guiaobj { | ||
21 | + background-color: white; | ||
22 | + display: block; | ||
23 | + height: 90%; | ||
24 | + left: 0; | ||
25 | + overflow: auto; | ||
26 | + text-align: left; | ||
27 | + top: 0; | ||
28 | + width: 97%; | ||
12 | } | 29 | } |
13 | </style> | 30 | </style> |
14 | </head> | 31 | </head> |
15 | -<body class="yui-skin-sam" > | 32 | +<body class="yui-skin-sam" style="background-color: white;" id="i3geo"> |
16 | <div id=guiasYUI class="yui-navset" style="top:0px;cursor:pointer;left:0px;"> | 33 | <div id=guiasYUI class="yui-navset" style="top:0px;cursor:pointer;left:0px;"> |
17 | <ul class="yui-nav" style="border-width:0pt 0pt 0px;border-color:rgb(240,240,240);border-bottom-color:white;"> | 34 | <ul class="yui-nav" style="border-width:0pt 0pt 0px;border-color:rgb(240,240,240);border-bottom-color:white;"> |
18 | - <li><div id="guia1" style="text-align:center;font-size:10px;left:0px;" ><a href="#ancora"><em>Serviços</em></a></div></li> | ||
19 | - <li><div id="guia2" style="text-align:center;font-size:10px;left:0px;" ><a href="#ancora"><em>Canais</em></a></div></li> | 35 | + <li> |
36 | + <div id="guia1" style="text-align:center;font-size:10px;left:0px;" > | ||
37 | + <a><em>Serviços</em></a> | ||
38 | + </div> | ||
39 | + </li> | ||
40 | + <li> | ||
41 | + <div id="guia2" style="text-align:center;font-size:10px;left:0px;" ><a href="#ancora"><em>Canais</em></a></div> | ||
42 | + </li> | ||
20 | </ul> | 43 | </ul> |
21 | </div> | 44 | </div> |
22 | - <div id=geral style="left:0px;top:0px;"> | ||
23 | - <div class=guiaobj id="guia1obj" style="text-align:left;top:0px;left:0px"> | ||
24 | - <div id=opc1 style="text-align:left;top:0px;left:0px"> | ||
25 | - Digite o endereço do serviço ou clique da lista abaixo. Utilize as guias acima para ver o resultado do acesso.<br> | ||
26 | - <input class=digitar id=servico value="" size=45 /> | ||
27 | - </div> | ||
28 | - <div id=RSS style="text-align:left;color:navy;cursor:pointer;width:95%;top:5px;left:5px"></div> | 45 | + <div class=guiaobj id="guia1obj" style="text-align:left;top:0px;left:0px"> |
46 | + <p class=paragrafo> | ||
47 | + Digite o endereço do serviço ou clique da lista abaixo. Utilize as guias acima para ver o resultado da conexão.<br> | ||
48 | + </p> | ||
49 | + <div class="i3geoForm i3geoFormIconeEdita" style="width:350px;"> | ||
50 | + <input id=servico type="text" value="" /> | ||
29 | </div> | 51 | </div> |
30 | - <div class=guiaobj id="guia2obj" style="display:none;text-align:left;top:0px;left:0px"> | ||
31 | - <div id=resultadoget style="text-align:left;top:0px;left:0px"> | ||
32 | - </div> | 52 | + <p class=paragrafo > |
53 | + <div id=RSSgeo style="width: 350px;" class=paragrafo ></div> | ||
54 | + <br> | ||
55 | + <div id=RSS style="text-align:left;"></div> | ||
56 | + <div id=opc1 style="text-align:left;"></div> | ||
57 | + </div> | ||
58 | + <div class=guiaobj id="guia2obj" style="display:none;text-align:left;top:0px;left:0px"> | ||
59 | + <div id=resultadoget class="paragrafo" style="text-align:left;top:0px;left:0px"> | ||
33 | </div> | 60 | </div> |
34 | </div> | 61 | </div> |
35 | 62 | ||
36 | -<script src="../i3geo_tudo_compacto.js.php" type="text/javascript"></script> | ||
37 | -<script type="text/javascript" src="index.js"></script> | 63 | + <div id="aguarde"> |
64 | + <img alt="" src="../../imagens/aguarde.gif" /> | ||
65 | + Aguarde... | ||
66 | + </div> | ||
67 | + | ||
68 | + | ||
69 | + <script type="text/javascript" src="index.js"></script> | ||
70 | + <script type="text/javascript" src="dicionario.js"></script> | ||
38 | 71 | ||
39 | <script type="text/javascript" > | 72 | <script type="text/javascript" > |
40 | -//TODO remover i3geo_tudo_compacto.js.php | ||
41 | -if(window.parent.i3GEO.parametros.editor.toLowerCase() == "sim"){ | ||
42 | - var temp = "<p><a href='#' style='color:red' onclick='abrejanelaIframe()' title='Opção visível apenas para usuários editores'>Editar a lista de endereços dos serviços</a></p>"; | ||
43 | - document.getElementById("opc1").innerHTML += temp; | ||
44 | -} | 73 | + |
45 | aguarde("block"); | 74 | aguarde("block"); |
46 | g_RSS = new Array(""); | 75 | g_RSS = new Array(""); |
47 | -iniciaListaGEORSS() | 76 | +iniciaListaGEORSS(); |
77 | +g_locaplic = "../.."; | ||
48 | function iniciaListaGEORSS(){ | 78 | function iniciaListaGEORSS(){ |
49 | if (document.getElementById("RSS")) | 79 | if (document.getElementById("RSS")) |
50 | { | 80 | { |
51 | if (g_RSS.length > 0) | 81 | if (g_RSS.length > 0) |
52 | { | 82 | { |
83 | + aguarde("block"); | ||
53 | var p = "../../classesphp/wscliente.php?funcao=listaRSSwsARRAY&rss="+g_RSS.join("|")+"&tipo=GEORSS"; | 84 | var p = "../../classesphp/wscliente.php?funcao=listaRSSwsARRAY&rss="+g_RSS.join("|")+"&tipo=GEORSS"; |
54 | var cp = new cpaint(); | 85 | var cp = new cpaint(); |
55 | //cp.set_debug(2) | 86 | //cp.set_debug(2) |
@@ -69,18 +100,17 @@ function mostraRetornoRSS(retorno) | @@ -69,18 +100,17 @@ function mostraRetornoRSS(retorno) | ||
69 | } | 100 | } |
70 | var canais = retorno.data.canais | 101 | var canais = retorno.data.canais |
71 | var ncanais = canais.length | 102 | var ncanais = canais.length |
72 | - var ins = "<br>"+retorno.data.rss | ||
73 | - for (i=0;i<ncanais; i++) | ||
74 | - { | ||
75 | - var caso = canais[i] | ||
76 | - ins += "\<p class=clique onclick=\"registraws('"+caso.link+"','"+caso.id_ws+"')\" \>\<b\>"+caso.title+"\<\/b\> "+caso.description+" ("+caso.author+")" | ||
77 | - if(caso.nacessos > 0) | ||
78 | - { | ||
79 | - var pc = (parseInt(caso.nacessosok) * 100) / parseInt(caso.nacessos) | ||
80 | - ins += " \<span style=color:gray \>(disponibilidade: "+pc+"%, acessos considerados: "+caso.nacessos+")\<\/span>\<\/p\>"; | ||
81 | - } | 103 | + |
104 | + $i("RSS").innerHTML = retorno.data.rss; | ||
105 | + var i, ins = ""; | ||
106 | + ins += "<select size='5' onchange='registraws(this.value)' style='width:100%;' >"; | ||
107 | + for (i = 0; i < ncanais; i++) { | ||
108 | + var caso = canais[i]; | ||
109 | + var valor = "'" + caso.link + "','" + caso.id_ws + "'"; | ||
110 | + ins += "<option value=" + valor + " >"+caso.title+"</option>"; | ||
82 | } | 111 | } |
83 | - document.getElementById("RSS").innerHTML = ins+"<br><br>" | 112 | + ins += "</select>"; |
113 | + document.getElementById("RSSgeo").innerHTML = ins; | ||
84 | } | 114 | } |
85 | 115 | ||
86 | </script> | 116 | </script> |
ferramentas/conectargeorss/index.js
@@ -39,20 +39,26 @@ Free Software Foundation, Inc., no endere&ccedil;o | @@ -39,20 +39,26 @@ Free Software Foundation, Inc., no endere&ccedil;o | ||
39 | */ | 39 | */ |
40 | 40 | ||
41 | //parametrosURL(); | 41 | //parametrosURL(); |
42 | -ativaGuias(""); | ||
43 | -mostraGuia("guia1"); | 42 | + |
43 | + | ||
44 | //variaveis globais | 44 | //variaveis globais |
45 | +i3GEOF = {conectargeorss: {}}; | ||
46 | + | ||
45 | g_tipo = ""; //tipo de tema | 47 | g_tipo = ""; //tipo de tema |
46 | g_tema = ""; //tema selecionado do ws | 48 | g_tema = ""; //tema selecionado do ws |
47 | g_legenda = ""; //legenda do tema | 49 | g_legenda = ""; //legenda do tema |
48 | g_nometema = ""; //nome do tema | 50 | g_nometema = ""; //nome do tema |
51 | +g_sid = window.parent.i3GEO.configura.sid; | ||
49 | 52 | ||
50 | -$i("guia1").onclick = function() | ||
51 | -{ | ||
52 | - mostraGuia("guia1"); | 53 | +i3GEO.guias.mostraGuiaFerramenta("guia1"); |
54 | + | ||
55 | +$i("guia1").onclick = function(){ | ||
56 | + i3GEO.guias.mostraGuiaFerramenta("guia1"); | ||
53 | $i("resultadoget").innerHTML = ""; | 57 | $i("resultadoget").innerHTML = ""; |
54 | }; | 58 | }; |
55 | -$i("guia2").onclick = function(){clickGuia2();}; | 59 | +$i("guia2").onclick = function(){ |
60 | + clickGuia2(); | ||
61 | +}; | ||
56 | 62 | ||
57 | /* | 63 | /* |
58 | Function: clickGuia2 | 64 | Function: clickGuia2 |
@@ -65,11 +71,10 @@ Veja: | @@ -65,11 +71,10 @@ Veja: | ||
65 | */ | 71 | */ |
66 | function clickGuia2() | 72 | function clickGuia2() |
67 | { | 73 | { |
68 | - mostraGuia("guia2"); | 74 | + i3GEO.guias.mostraGuiaFerramenta("guia2"); |
69 | $i("resultadoget").innerHTML = ""; | 75 | $i("resultadoget").innerHTML = ""; |
70 | if ($i("servico").value == ""){i3GEO.janela.tempoMsg($trad('msgServico',i3GEOF.conectargeorss.dicionario));} | 76 | if ($i("servico").value == ""){i3GEO.janela.tempoMsg($trad('msgServico',i3GEOF.conectargeorss.dicionario));} |
71 | - else | ||
72 | - { | 77 | + else{ |
73 | $i("guia2obj").style.display="block"; | 78 | $i("guia2obj").style.display="block"; |
74 | aguarde("block"); | 79 | aguarde("block"); |
75 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=georssCanais&servico="+$i("servico").value; | 80 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=georssCanais&servico="+$i("servico").value; |
@@ -99,14 +104,14 @@ retorno {JSON} - retorno da fun&ccedil;&atilde;o clickGuia2 | @@ -99,14 +104,14 @@ retorno {JSON} - retorno da fun&ccedil;&atilde;o clickGuia2 | ||
99 | */ | 104 | */ |
100 | function listaCanais(retorno) | 105 | function listaCanais(retorno) |
101 | { | 106 | { |
102 | - var i,ins = $trad('selecionaItem',i3GEOF.conectargeorss.dicionario)+"<br>"; | 107 | + var i,ins = "<p class='paragrafo'>"+ $trad('selecionaItem',i3GEOF.conectargeorss.dicionario)+"</p>"; |
103 | if (retorno.data != undefined) | 108 | if (retorno.data != undefined) |
104 | { | 109 | { |
105 | retorno = retorno.data; | 110 | retorno = retorno.data; |
106 | for (i=0;i<retorno.length; i++) | 111 | for (i=0;i<retorno.length; i++) |
107 | { | 112 | { |
108 | - ins += "<p style=cursor:pointer onclick=adicionatema('"+i+"') ><input type=radio name=cn value=mapa > <b>"+retorno[i].title+ "</b></p>"; | ||
109 | - ins += "<br><a href="+retorno[i].link+" target=blank >"+retorno[i].link+"</a>"; | 113 | + ins += "<p class='paragrafo'><input style='cursor:pointer;' onclick=adicionatema('"+i+"') type=radio name=cn value=mapa > <b>"+retorno[i].title+ "</b></p>"; |
114 | + ins += "<a href="+retorno[i].link+" target=blank >"+retorno[i].link+"</a>"; | ||
110 | ins += "<br><i>"+$trad('descricao',i3GEOF.conectargeorss.dicionario)+"</i> "+retorno[i].description; | 115 | ins += "<br><i>"+$trad('descricao',i3GEOF.conectargeorss.dicionario)+"</i> "+retorno[i].description; |
111 | ins += "<br><i>"+$trad('categoria',i3GEOF.conectargeorss.dicionario)+" </i>"+retorno[i].category; | 116 | ins += "<br><i>"+$trad('categoria',i3GEOF.conectargeorss.dicionario)+" </i>"+retorno[i].category; |
112 | } | 117 | } |
@@ -177,4 +182,8 @@ function abrejanelaIframe(){ | @@ -177,4 +182,8 @@ function abrejanelaIframe(){ | ||
177 | g_locaplic+"/imagens/oxygen/16x16/application-x-smb-workgroup.png" | 182 | g_locaplic+"/imagens/oxygen/16x16/application-x-smb-workgroup.png" |
178 | ); | 183 | ); |
179 | YAHOO.util.Event.addListener(janelaeditor[0].close, "click", iniciaListaGEORSS,janelaeditor[0].panel,{id:janelaeditor[0].id},true); | 184 | YAHOO.util.Event.addListener(janelaeditor[0].close, "click", iniciaListaGEORSS,janelaeditor[0].panel,{id:janelaeditor[0].id},true); |
185 | +} | ||
186 | +function aguarde(valor){ | ||
187 | + if(document.getElementById("aguarde")) | ||
188 | + document.getElementById("aguarde").style.display = valor; | ||
180 | } | 189 | } |
181 | \ No newline at end of file | 190 | \ No newline at end of file |
ferramentas/conectarservicos/index.js
@@ -84,7 +84,7 @@ i3GEOF.conectarservicos = | @@ -84,7 +84,7 @@ i3GEOF.conectarservicos = | ||
84 | "", | 84 | "", |
85 | "", | 85 | "", |
86 | $trad("x46") | 86 | $trad("x46") |
87 | - + "<a class=ajuda_usuario target=_blank href='" | 87 | + + " <a class=ajuda_usuario target=_blank href='" |
88 | + i3GEO.configura.locaplic | 88 | + i3GEO.configura.locaplic |
89 | + "/ajuda_usuario.php?idcategoria=4&idajuda=76' ><b> </b></a>", | 89 | + "/ajuda_usuario.php?idcategoria=4&idajuda=76' ><b> </b></a>", |
90 | "i3GEO.conectarwmst", | 90 | "i3GEO.conectarwmst", |
@@ -110,7 +110,7 @@ i3GEOF.conectarservicos = | @@ -110,7 +110,7 @@ i3GEOF.conectarservicos = | ||
110 | "", | 110 | "", |
111 | "", | 111 | "", |
112 | $trad("x47") | 112 | $trad("x47") |
113 | - + "<a class=ajuda_usuario target=_blank href='" | 113 | + + " <a class=ajuda_usuario target=_blank href='" |
114 | + i3GEO.configura.locaplic | 114 | + i3GEO.configura.locaplic |
115 | + "/ajuda_usuario.php?idcategoria=4&idajuda=29' ><b> </b></a>", | 115 | + "/ajuda_usuario.php?idcategoria=4&idajuda=29' ><b> </b></a>", |
116 | "i3GEO.conectargeorss", | 116 | "i3GEO.conectargeorss", |
ferramentas/conectarwms/index.htm
@@ -9,6 +9,7 @@ button { | @@ -9,6 +9,7 @@ button { | ||
9 | } | 9 | } |
10 | </style> | 10 | </style> |
11 | <link rel="stylesheet" type="text/css" href="../../pacotes/yui290/build/button/assets/skins/sam/button.css" /> | 11 | <link rel="stylesheet" type="text/css" href="../../pacotes/yui290/build/button/assets/skins/sam/button.css" /> |
12 | + | ||
12 | <style type="text/css"> | 13 | <style type="text/css"> |
13 | body { | 14 | body { |
14 | margin: 0; | 15 | margin: 0; |
@@ -26,6 +27,13 @@ body { | @@ -26,6 +27,13 @@ body { | ||
26 | top: 0; | 27 | top: 0; |
27 | width: 97%; | 28 | width: 97%; |
28 | } | 29 | } |
30 | +input[type=text]{ | ||
31 | + -webkit-user-select: text; | ||
32 | + -khtml-user-select: text; | ||
33 | + -moz-user-select: text; | ||
34 | + -o-user-select: text; | ||
35 | + user-select: text; | ||
36 | +} | ||
29 | </style> | 37 | </style> |
30 | </head> | 38 | </head> |
31 | <body class="yui-skin-sam" style="background-color: white;"> | 39 | <body class="yui-skin-sam" style="background-color: white;"> |
@@ -63,10 +71,10 @@ body { | @@ -63,10 +71,10 @@ body { | ||
63 | <br> | 71 | <br> |
64 | </p> | 72 | </p> |
65 | <p class=paragrafo> | 73 | <p class=paragrafo> |
66 | - Digite o endereço do serviço ou escolha da lista abaixo. Utilize as guias acima para ver o resultado do acesso. Por padrão, utiliza-se a versão 1.1.0 do GetCapabilities. Você pode adicionar um outro, bastando incluir no endereço do serviço "&version=1.3.0" por exemplo.<br> | 74 | + Digite o endereço do serviço ou escolha da lista abaixo. Utilize as guias acima para ver o resultado da conexão. Por padrão, utiliza-se a versão 1.1.0 do GetCapabilities. Você pode adicionar um outro, bastando incluir no endereço do serviço "&version=1.3.0" por exemplo.<br> |
67 | </p> | 75 | </p> |
68 | - <div class="styled-select" style="width: 350px; margin-top: 15px;"> | ||
69 | - <input tabindex='0' id=servico value="" size=45 /> | 76 | + <div class="i3geoForm i3geoFormIconeEdita" style="width: 350px; margin-top: 15px;"> |
77 | + <input tabindex='0' id=servico value="" type="text" /> | ||
70 | </div> | 78 | </div> |
71 | <p class=paragrafo > | 79 | <p class=paragrafo > |
72 | <div id=RSSwms style="width: 350px;" class=paragrafo ></div> | 80 | <div id=RSSwms style="width: 350px;" class=paragrafo ></div> |
@@ -145,7 +153,7 @@ body { | @@ -145,7 +153,7 @@ body { | ||
145 | var canais = retorno.data.canais | 153 | var canais = retorno.data.canais |
146 | var ncanais = canais.length | 154 | var ncanais = canais.length |
147 | $i("RSSbt").innerHTML = retorno.data.rss; | 155 | $i("RSSbt").innerHTML = retorno.data.rss; |
148 | - var ins = ""; | 156 | + var i, ins = ""; |
149 | ins += "<select size='5' onchange='registraws(this.value)' style='width:100%;' >"; | 157 | ins += "<select size='5' onchange='registraws(this.value)' style='width:100%;' >"; |
150 | for (i = 0; i < ncanais; i++) { | 158 | for (i = 0; i < ncanais; i++) { |
151 | var caso = canais[i]; | 159 | var caso = canais[i]; |