From a3a7360056b87f35910d71f9cf1588c928cd4241 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Tue, 27 Nov 2007 11:43:01 +0000 Subject: [PATCH] --- ferramentas/identifica/index.htm | 41 ----------------------------------------- ferramentas/identifica/index.js | 252 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 2 files changed, 0 insertions(+), 293 deletions(-) delete mode 100644 ferramentas/identifica/index.htm delete mode 100644 ferramentas/identifica/index.js diff --git a/ferramentas/identifica/index.htm b/ferramentas/identifica/index.htm deleted file mode 100644 index 9f11ced..0000000 --- a/ferramentas/identifica/index.htm +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - -
-
Temas visíveis
-
Todos os temas
-
Propriedades
-
- - - -
-
-
-
-
-
- -
- -
- Aguarde... -
- - - - - - - - \ No newline at end of file diff --git a/ferramentas/identifica/index.js b/ferramentas/identifica/index.js deleted file mode 100644 index 7e0e0d6..0000000 --- a/ferramentas/identifica/index.js +++ /dev/null @@ -1,252 +0,0 @@ -/* -About: Licença - -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet - -Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil -Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br - -Este programa é software livre; você pode redistribuí-lo -e/ou modificá-lo sob os termos da Licença Pública Geral -GNU conforme publicada pela Free Software Foundation; -tanto a versão 2 da Licença. -Este programa é distribuído na expectativa de que seja útil, -porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita -de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. -Consulte a Licença Pública Geral do GNU para mais detalhes. -Você deve ter recebido uma cópia da Licença Pública Geral do -GNU junto com este programa; se não, escreva para a -Free Software Foundation, Inc., no endereço -59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. -*/ -//inicializa -function inicializaJanela() -{ - aguarde("block") - ativaGuias("") - mostraGuia("guia1") - g_locaplic = window.parent.g_locaplic - xpt = unescape(((((window.location.href).split("x="))[1]).split("&"))[0] ); - ypt = unescape(((((window.location.href).split("y="))[1]).split("&"))[0] ); - escala = unescape(((((window.location.href).split("x="))[1]).split("&"))[0] ); - //eventos das guias - $i("guia1").onclick = function(){listaTemasLigados();mostraGuia("guia1")} - $i("guia2").onclick = function(){listaTodos()} - $i("guia3").onclick = function(){mostraGuia("guia3")} - $i("xy").innerHTML = "x: " + xpt + " y: " + ypt - listaTemasLigados() -} -//le o arquivo opcional de sistemas -function pegavalSistemas(xmlDoc) -{ - aguarde("none"); - if (xmlDoc != undefined) - { - var sis = xmlDoc.getElementsByTagName("FUNCAO") - for (ig=0;ig 0) - { - var linhas = "" - for (l=0;l 1) - linhas += ""+ltema[0]+"
" - } - $i("resultado").innerHTML += linhas - } - } - aguarde("none"); -} -//lista os temas ligados -function listaTemasLigados() -{ - aguarde("none"); - var lista = (window.parent.objmapa.temas).split(";") - var b = window.parent.convdmsf(xpt,ypt); - var x = b[0].split(" ") - var y = b[1].split(" ") - var w = "W" - var s = "S" - if (x[0]*1 > 0){w = "L"} - if (y[0]*1 > 0){s = "N"} - if (x[0]*1 < 0){x[0] = x[0]*-1} - if (y[0]*1 < 0){y[0] = y[0]*-1} - var param = y[0]+"_"+y[1]+"_"+y[2]+"_"+s+"_"+x[0]+"_"+x[1]+"_"+x[2]+"_"+w - var url = "http://tools.wikimedia.de/~magnus/geo/geohack.php?params="+param//15_48_00_S_47_51_50_W - var linhas = "Buscadores web
" - linhas += "Clique no tema para ver os dados" - var linhas1 = ""; - for (l=0;l" - } - } - $i("resultado").innerHTML = linhas+"
"+ltema[2]+"
"+linhas1+"
Todos
" - //verifica se existem sistemas para identificar - g_locidentifica = window.parent.g_locidentifica - if (g_locidentifica != "") - { - sistemasAdicionais = new Array() - ajaxexecASXml(g_locidentifica,"pegavalSistemas") - } - if (window.parent.objmapa.temaAtivo == "") - { - var temp = "" - for (l=0;l"+ltema[2]+"" - } - $i("resultado").innerHTML = ""+linhas+"
" - mostraGuia("guia1"); -} -//identifica o sistema clicado -function identificasistema(exec,t) -{ - var resolucao = $i("resolucao").value; - if ((t == "blank") || (t == "new") || (t == "BLANK") || (t == "NEW") || (t == "")) - {window.open(exec)} - else - {window.location.href = exec} -} -//identifica o tema clicado -function identifica(tema) -{ - var resolucao = $i("resolucao").value; - window.parent.objmapa.temaAtivo = tema; - var temp = $i("xy").innerHTML - var tempy = temp.split("y: ") - ypt = tempy[1] - var tempx = tempy[0] - tempx = tempx.split("x: ") - xpt = tempx[1] - $i("ocorrencia").innerHTML="" - //var resolucao = "0.01" - if (tema == "ligados"){var opcao = "ligados"} - else - {var opcao = "tema"} - var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=identifica&xy="+xpt+" ,"+ypt+"&opcao="+opcao+"&resolucao="+resolucao+"&tema="+tema - var cp = new cpaint(); - //cp.set_debug(2) - cp.set_response_type("JSON"); - cp.call(p,"identifica",mostraf); -} -//mostra uma ocorrencia em um div a parte -function mostraf(retorno) -{ - var res = "" - if (retorno.data != undefined) - { - var retorno = retorno.data - var re = new RegExp("zzzzzzzzzz","g") - var retorno = retorno.replace(re,"
") - var re = new RegExp('" ',"g") - var retorno = retorno.replace(re,'"
') - var re = new RegExp("' ","g") - var retorno = retorno.replace(re,"'
") - var reg = /Erro./; - if (retorno.search(reg) != -1) - { - $i("ocorrencia").innerHTML="OOps! Ocorreu um erro\n"+retorno; - return; - } - $i("ocorrencia").innerHTML="" - var octemas = retorno.split("!") - for (octemasc=0;octemasc" - //verifica se é WS - var pares = ocs[1].split("##") - var valores = pares[0].split("#") - //dados vem de uma chamada WS - if (valores[1] == undefined) - { - res += "
Resultado:
" + valores[0] + "
" - res += "
------
" - $i("ocorrencia").innerHTML=res - //return - } - var contao = 0 - for (oc=0;oc  " + valores[0] + " link"} - else if ((valores[2] == " ") || (valores[2] != undefined)) - { - var testaIcone = (valores[0].split(".png")).length - if (testaIcone == 1) //nao é do tipo ícone - {res = res + "
  " + valores[0] + " " + valores[1] + "
"} - else //corrige o caminho do ícone - { - var i = valores[0].replace("..","../..") - res = res + "
" + i + " " + valores[1] + "
" - } - } - contav = contav + 1 - if (cor == "RGB(245,245,245)"){cor = "RGB(230,230,230)";} - else - {cor = "RGB(245,245,245)";} - } - //res += "

" - } - contao = contao + 1 - } - } - $i("ocorrencia").innerHTML=res - } - else - { - aguarde("none") - $i("ocorrencia").innerHTML = "

Ocorreu um erro
" - } -} \ No newline at end of file -- libgit2 0.21.2