";
+ if(i3GEO.configura.verificaCookieLogin === true){
+ ins += "
" + $trad("x89") + " ";
+ }
+ ins += "
";
mapa = retorno.data.mapas;
ig1lt = mapa.length;
ig1 = 0;
@@ -183,21 +187,22 @@ i3GEO.guias =
link = lkd;
}
ins +=
- "
";
+ "
";
if (temp.IMAGEM && temp.IMAGEM != "") {
ins +=
- "
";
}
// verifica se o mapfile esta salvo no banco
// diretamente
+ nome += " (" + temp.ID_MAPA + ")";
if (temp.CONTEMMAPFILE == "nao") {
ins +=
- "
";
+ "
";
} else {
// combo de opcoes para abrir os mapas
// salvos
@@ -244,17 +249,13 @@ i3GEO.guias =
+ "&botoes=legenda pan zoombox zoomtot zoomin zoomout'>Botoes de navegacao"
+ "";
ins +=
- "
";
+ + "'>
"
+ + combo + "
";
+
}
ins += "
";
ig1++;
diff --git a/classesphp/funcoes_gerais.php b/classesphp/funcoes_gerais.php
index c540e56..c184ac0 100644
--- a/classesphp/funcoes_gerais.php
+++ b/classesphp/funcoes_gerais.php
@@ -1269,8 +1269,7 @@ function georssCanais($servico,$map_file,$dir_tmp,$locaplic)
{
$xml = simplexml_load_file($servico);
//var_dump($xml);
- foreach($xml->channel as $c)
- {
+ foreach($xml->channel as $c){
$resultado[] = array("title"=>(ixml($c,"title")),"link"=>(ixml($c,"link")),"description"=>(ixml($c,"description")),"category"=>(ixml($c,"category")));
}
//var_dump($resultado);
diff --git a/ferramentas/conectargeojson/index.js b/ferramentas/conectargeojson/index.js
index 2bb20fb..6638230 100644
--- a/ferramentas/conectargeojson/index.js
+++ b/ferramentas/conectargeojson/index.js
@@ -56,7 +56,6 @@ i3GEOF.conectargeojson = {
*/
mustacheHash : function() {
var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.conectargeojson.dicionario);
- dicionario["conectaGeoJson"] = $inputText('','','i3GEOconectargeojsonurl','',45,'');
dicionario["aguarde"] = $trad("o1");
dicionario["locaplic"] = i3GEO.configura.locaplic;
dicionario["aplica"] = $trad("p14");
diff --git a/ferramentas/conectargeojson/template_mst.html b/ferramentas/conectargeojson/template_mst.html
index 87258e5..32f2fba 100644
--- a/ferramentas/conectargeojson/template_mst.html
+++ b/ferramentas/conectargeojson/template_mst.html
@@ -1,6 +1,9 @@
-
- {{{insereEndereco}}} {{{conectaGeoJson}}}
-
{{{aguarde}}}
+
{{{insereEndereco}}}
+
+
+
+
+
{{{aguarde}}}
\ No newline at end of file
diff --git a/ferramentas/conectargeorss/index.htm b/ferramentas/conectargeorss/index.htm
index 6c2a754..1e8bab5 100644
--- a/ferramentas/conectargeorss/index.htm
+++ b/ferramentas/conectargeorss/index.htm
@@ -1,55 +1,86 @@
-
+
+
-
-
+
+
-
+
-
-
-
- Digite o endereço do serviço ou clique da lista abaixo. Utilize as guias acima para ver o resultado do acesso.
-
-
-
+
+
+ Digite o endereço do serviço ou clique da lista abaixo. Utilize as guias acima para ver o resultado da conexão.
+
+
+
-
+
-
-
+
+
+ Aguarde...
+
+
+
+
+
diff --git a/ferramentas/conectargeorss/index.js b/ferramentas/conectargeorss/index.js
index 5dbd861..e422618 100644
--- a/ferramentas/conectargeorss/index.js
+++ b/ferramentas/conectargeorss/index.js
@@ -39,20 +39,26 @@ Free Software Foundation, Inc., no endereço
*/
//parametrosURL();
-ativaGuias("");
-mostraGuia("guia1");
+
+
//variaveis globais
+i3GEOF = {conectargeorss: {}};
+
g_tipo = ""; //tipo de tema
g_tema = ""; //tema selecionado do ws
g_legenda = ""; //legenda do tema
g_nometema = ""; //nome do tema
+g_sid = window.parent.i3GEO.configura.sid;
-$i("guia1").onclick = function()
-{
- mostraGuia("guia1");
+i3GEO.guias.mostraGuiaFerramenta("guia1");
+
+$i("guia1").onclick = function(){
+ i3GEO.guias.mostraGuiaFerramenta("guia1");
$i("resultadoget").innerHTML = "";
};
-$i("guia2").onclick = function(){clickGuia2();};
+$i("guia2").onclick = function(){
+ clickGuia2();
+};
/*
Function: clickGuia2
@@ -65,11 +71,10 @@ Veja:
*/
function clickGuia2()
{
- mostraGuia("guia2");
+ i3GEO.guias.mostraGuiaFerramenta("guia2");
$i("resultadoget").innerHTML = "";
if ($i("servico").value == ""){i3GEO.janela.tempoMsg($trad('msgServico',i3GEOF.conectargeorss.dicionario));}
- else
- {
+ else{
$i("guia2obj").style.display="block";
aguarde("block");
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ção clickGuia2
*/
function listaCanais(retorno)
{
- var i,ins = $trad('selecionaItem',i3GEOF.conectargeorss.dicionario)+"
";
+ var i,ins = "
"+ $trad('selecionaItem',i3GEOF.conectargeorss.dicionario)+"
";
if (retorno.data != undefined)
{
retorno = retorno.data;
for (i=0;i
"+retorno[i].title+ " ";
- ins += ""+retorno[i].link+" ";
+ ins += " "+retorno[i].title+ "
";
+ ins += ""+retorno[i].link+" ";
ins += ""+$trad('descricao',i3GEOF.conectargeorss.dicionario)+" "+retorno[i].description;
ins += ""+$trad('categoria',i3GEOF.conectargeorss.dicionario)+" "+retorno[i].category;
}
@@ -177,4 +182,8 @@ function abrejanelaIframe(){
g_locaplic+"/imagens/oxygen/16x16/application-x-smb-workgroup.png"
);
YAHOO.util.Event.addListener(janelaeditor[0].close, "click", iniciaListaGEORSS,janelaeditor[0].panel,{id:janelaeditor[0].id},true);
+}
+function aguarde(valor){
+ if(document.getElementById("aguarde"))
+ document.getElementById("aguarde").style.display = valor;
}
\ No newline at end of file
diff --git a/ferramentas/conectarservicos/index.js b/ferramentas/conectarservicos/index.js
index b8f390e..eaf1e5e 100755
--- a/ferramentas/conectarservicos/index.js
+++ b/ferramentas/conectarservicos/index.js
@@ -84,7 +84,7 @@ i3GEOF.conectarservicos =
"",
"",
$trad("x46")
- + " ",
"i3GEO.conectarwmst",
@@ -110,7 +110,7 @@ i3GEOF.conectarservicos =
"",
"",
$trad("x47")
- + " ",
"i3GEO.conectargeorss",
diff --git a/ferramentas/conectarwms/index.htm b/ferramentas/conectarwms/index.htm
index 34c2024..f5bbf98 100644
--- a/ferramentas/conectarwms/index.htm
+++ b/ferramentas/conectarwms/index.htm
@@ -9,6 +9,7 @@ button {
}
+
@@ -63,10 +71,10 @@ body {
- 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.
+ 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.
-
-
+
+
@@ -145,7 +153,7 @@ body {
var canais = retorno.data.canais
var ncanais = canais.length
$i("RSSbt").innerHTML = retorno.data.rss;
- var ins = "";
+ var i, ins = "";
ins += "
";
for (i = 0; i < ncanais; i++) {
var caso = canais[i];
diff --git a/js/guias.js b/js/guias.js
index 300004d..6f45aa7 100755
--- a/js/guias.js
+++ b/js/guias.js
@@ -150,114 +150,115 @@ i3GEO.guias =
//TODO retirar os estilos do codigo e incluir em arquivo css
var pegaMapas =
function(retorno) {
- var ins, mapa, ig1lt, ig1, nome, lkd, link, temp, combo, urlinterface;
- ins =
- "" + "
" + $trad("x89") + " ";
- mapa = retorno.data.mapas;
- ig1lt = mapa.length;
- ig1 = 0;
- urlinterface = window.location.origin + window.location.pathname;
- if (ig1lt > 0) {
- do {
- temp = mapa[ig1];
- nome = temp.NOME;
- if (temp.PUBLICADO) {
- if (temp.PUBLICADO.toLowerCase() === "nao") {
- nome = "
" + nome + " ";
- }
- }
- lkd = temp.LINK;
- link = i3GEO.configura.locaplic + "/ms_criamapa.php?temasa=" + temp.TEMAS + "&layers=" + temp.LIGADOS;
- if (temp.EXTENSAO !== "") {
- link += "&mapext=" + temp.EXTENSAO;
- }
- if (temp.OUTROS !== "") {
- link += "&" + temp.OUTROS;
- }
- if (lkd !== "") {
- link = lkd;
+ var ins, mapa, ig1lt, ig1, nome, lkd, link, temp, combo, urlinterface;
+ ins =
+ "
";
+ if(i3GEO.configura.verificaCookieLogin === true){
+ ins += "
" + $trad("x89") + " ";
+ }
+ ins += "
";
+ mapa = retorno.data.mapas;
+ ig1lt = mapa.length;
+ ig1 = 0;
+ urlinterface = window.location.origin + window.location.pathname;
+ if (ig1lt > 0) {
+ do {
+ temp = mapa[ig1];
+ nome = temp.NOME;
+ if (temp.PUBLICADO) {
+ if (temp.PUBLICADO.toLowerCase() === "nao") {
+ nome = "
" + nome + " ";
}
+ }
+ lkd = temp.LINK;
+ link = i3GEO.configura.locaplic + "/ms_criamapa.php?temasa=" + temp.TEMAS + "&layers=" + temp.LIGADOS;
+ if (temp.EXTENSAO !== "") {
+ link += "&mapext=" + temp.EXTENSAO;
+ }
+ if (temp.OUTROS !== "") {
+ link += "&" + temp.OUTROS;
+ }
+ if (lkd !== "") {
+ link = lkd;
+ }
+ ins +=
+ "
";
+
+ if (temp.IMAGEM && temp.IMAGEM != "") {
ins +=
- "
";
+ "
";
+ }
+ // verifica se o mapfile esta salvo no banco
+ // diretamente
+ nome += " (" + temp.ID_MAPA + ")";
+ if (temp.CONTEMMAPFILE == "nao") {
+ ins +=
+ "
";
+ } else {
+ // combo de opcoes para abrir os mapas
+ // salvos
+ // como mapfiles
+ // esses links tambem sao colocados em
+ // admin/php/xml.php geraRSSmapas
+ combo =
+ "
"
+ + ""
+ + $trad("x103")
+ + ": "
+ + "Como foi salvo "
+ + "Com a interface atual "
+ + "Openlayers com todos os botoes "
+ + "Sem o fundo "
+ + "Com botoes principais "
+ + "Com botoes principais e OSM "
+ + "Botoes de navegacao "
+ + " ";
+ ins +=
+ "
"
+ + "
"
+ + combo + "
";
- if (temp.IMAGEM && temp.IMAGEM != "") {
- ins +=
- "
";
- }
- // verifica se o mapfile esta salvo no banco
- // diretamente
- if (temp.CONTEMMAPFILE == "nao") {
- ins +=
- "
";
- } else {
- // combo de opcoes para abrir os mapas
- // salvos
- // como mapfiles
- // esses links tambem sao colocados em
- // admin/php/xml.php geraRSSmapas
- combo =
- "
"
- + ""
- + $trad("x103")
- + ": "
- + "Como foi salvo "
- + "Com a interface atual "
- + "Openlayers com todos os botoes "
- + "Sem o fundo "
- + "Com botoes principais "
- + "Com botoes principais e OSM "
- + "Botoes de navegacao "
- + " ";
- ins +=
- "
";
- }
- ins += "
";
- ig1++;
- } while (ig1 < ig1lt);
- }
- $i(onde).innerHTML = ins + "
";
- };
+ }
+ ins += "
";
+ ig1++;
+ } while (ig1 < ig1lt);
+ }
+ $i(onde).innerHTML = ins + "
";
+ };
if ($i(i3GEO.guias.CONFIGURA.mapas.idconteudo)) {
$i(i3GEO.guias.CONFIGURA.mapas.idconteudo).innerHTML = "Aguarde...";
}
--
libgit2 0.21.2