From 0c5efd4dfaff3cca40029944e2cccc3ec324d1f7 Mon Sep 17 00:00:00 2001 From: edmarmoretti Date: Sat, 19 Nov 2016 11:32:52 -0200 Subject: [PATCH] Correção em ferramentas de análise cuja passagem de parâmetros estava com erros --- ferramentas/gradepol/exec.php | 7 ++++--- ferramentas/selecao/exec.php | 2 +- ferramentas/selecao/index.js | 21 +-------------------- 3 files changed, 6 insertions(+), 24 deletions(-) diff --git a/ferramentas/gradepol/exec.php b/ferramentas/gradepol/exec.php index 8a90e38..2636b8d 100755 --- a/ferramentas/gradepol/exec.php +++ b/ferramentas/gradepol/exec.php @@ -19,7 +19,9 @@ Salva o mapa acrescentando um novo layer com a grade. case "GRADEDEPOL": include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); copiaSeguranca($map_file); - if(!isset($tema)){$tema = "";} + if(!isset($tema)){ + $tema = ""; + } $m = new Analise($map_file,$tema); if($_GET["proj"] == "sim"){ $_GET["proj"] = true; @@ -27,8 +29,7 @@ Salva o mapa acrescentando um novo layer com a grade. else{ $_GET["proj"] = false; } - - $retorno = $m->gradeDePol($_GET["dd"],$_GET["px"],$_GET["py"],$locaplic,$_GET["nptx"],$_GET["npty"],$_GET["proj"]); + $retorno = $m->gradeDePol($_GET["xdd"],$_GET["ydd"],$_GET["px"],$_GET["py"],$locaplic,$_GET["nptx"],$_GET["npty"],$_GET["proj"]); $m->salva(); $_SESSION["contadorsalva"]++; break; diff --git a/ferramentas/selecao/exec.php b/ferramentas/selecao/exec.php index 730a7ee..6dadddb 100755 --- a/ferramentas/selecao/exec.php +++ b/ferramentas/selecao/exec.php @@ -52,7 +52,7 @@ Sleciona elementos de um tema com base em outro tema. $temas = explode(",",$tema); foreach($temas as $tema){ $m = new Selecao($map_file,$tema); - $ok[] = $m->selecaoTema($temao,$_GET["tipo"],$_GET["buffer"]); + $ok[] = $m->selecaoTema($_GET["temao"],$_GET["tipo"],$_GET["buffer"]); } $_SESSION["contadorsalva"]++; redesenhaMapa(); diff --git a/ferramentas/selecao/index.js b/ferramentas/selecao/index.js index 7bd381d..f2b3f7e 100755 --- a/ferramentas/selecao/index.js +++ b/ferramentas/selecao/index.js @@ -393,7 +393,6 @@ i3GEOF.selecao = i3GEO.util.mudaCursor(i3GEO.configura.cursores, "crosshair", i3GEO.Interface.IDMAPA, i3GEO.configura.locaplic); i3GEO.barraDeBotoes.ativaIcone("selecao"); i3GEOF.selecao.pegaTemasSel(); - i3GEOF.selecao.mudaicone(); var i = $i("i3GEOF.selecao_c").style; i3GEO.janela.ULTIMOZINDEX++; i.zIndex = 51000 + i3GEO.janela.ULTIMOZINDEX; @@ -433,17 +432,7 @@ i3GEOF.selecao = * Altera as bordas dos ícones */ mudaicone : function() { - $i("i3GEOselecaopt").parentNode.style.backgroundColor = "#F5F5F5"; - $i("i3GEOselecaoext").parentNode.style.backgroundColor = "#F5F5F5"; - if ($i("i3GEOselecaobox")) { - $i("i3GEOselecaobox").parentNode.style.backgroundColor = "#F5F5F5"; - } - if ($i("i3GEOselecaopoli")) { - $i("i3GEOselecaopoli").parentNode.style.backgroundColor = "#F5F5F5"; - } - if ($i("i3GEOselecaoFigura")) { - $i("i3GEOselecaoFigura").parentNode.style.backgroundColor = "#F5F5F5"; - } + }, /* * Function: pegaTemasSel @@ -557,28 +546,24 @@ i3GEOF.selecao = } if (obj.value == "i3GEOselecaobox") { i3GEOF.selecao.tipoSel = obj.value; - i3GEOF.selecao.mudaicone(); obj.style.backgroundColor = "#cedff2"; i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); i3GEOF.selecao.box[api].inicia(); } if (obj.value == "i3GEOselecaopt") { i3GEOF.selecao.tipoSel = obj.value; - i3GEOF.selecao.mudaicone(); obj.style.backgroundColor = "#cedff2"; i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); i3GEOF.selecao.clique[api].inicia(); } if (obj.value == "i3GEOselecaopoli") { i3GEOF.selecao.tipoSel = obj.value; - i3GEOF.selecao.mudaicone(); obj.style.backgroundColor = "#cedff2"; i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); i3GEOF.selecao.poligono[api].inicia(); } if (obj.value == "i3GEOselecaofigura") { i3GEOF.selecao.tipoSel = obj.value; - i3GEOF.selecao.mudaicone(); obj.style.backgroundColor = "#cedff2"; i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); i3GEOF.selecao.figura[api].inicia(); @@ -744,7 +729,6 @@ i3GEOF.selecao = i3GEO.janela.abreAguarde("i3GEO.atualiza", $trad("o1")); i3GEO.eventos.cliquePerm.ativa(); i3GEO.php.selecaobox(retorna, tema, tipo, box); - i3GEOF.selecao.mudaicone(); } }, /* @@ -883,7 +867,6 @@ i3GEOF.selecao = }; i3GEO.eventos.cliquePerm.ativa(); i3GEO.php.selecaopt(retorna, tema, x + " " + y, tipo, tolerancia); - i3GEOF.selecao.mudaicone(); } }, /* @@ -997,7 +980,6 @@ i3GEOF.selecao = }; i3GEO.eventos.cliquePerm.ativa(); i3GEO.php.selecaoWkt(retorna, tema, tipo, wkt, $i("i3GEOselecaotoleranciapt").value); - i3GEOF.selecao.mudaicone(); } }, /* @@ -1188,7 +1170,6 @@ i3GEOF.selecao = }; i3GEO.janela.abreAguarde("i3GEO.atualiza", $trad("o1")); i3GEO.eventos.cliquePerm.ativa(); - i3GEOF.selecao.mudaicone(); p = i3GEO.configura.locaplic + "/ferramentas/selecao/exec.php?g_sid=" + i3GEO.configura.sid + "&funcao=selecaoPoli"; cp = new cpaint(); // cp.set_debug(2) -- libgit2 0.21.2