Commit 0c5efd4dfaff3cca40029944e2cccc3ec324d1f7
1 parent
827e75fa
Exists in
master
Correção em ferramentas de análise cuja passagem de parâmetros estava com erros
Showing
3 changed files
with
6 additions
and
24 deletions
Show diff stats
ferramentas/gradepol/exec.php
| @@ -19,7 +19,9 @@ Salva o mapa acrescentando um novo layer com a grade. | @@ -19,7 +19,9 @@ Salva o mapa acrescentando um novo layer com a grade. | ||
| 19 | case "GRADEDEPOL": | 19 | case "GRADEDEPOL": |
| 20 | include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); | 20 | include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); |
| 21 | copiaSeguranca($map_file); | 21 | copiaSeguranca($map_file); |
| 22 | - if(!isset($tema)){$tema = "";} | 22 | + if(!isset($tema)){ |
| 23 | + $tema = ""; | ||
| 24 | + } | ||
| 23 | $m = new Analise($map_file,$tema); | 25 | $m = new Analise($map_file,$tema); |
| 24 | if($_GET["proj"] == "sim"){ | 26 | if($_GET["proj"] == "sim"){ |
| 25 | $_GET["proj"] = true; | 27 | $_GET["proj"] = true; |
| @@ -27,8 +29,7 @@ Salva o mapa acrescentando um novo layer com a grade. | @@ -27,8 +29,7 @@ Salva o mapa acrescentando um novo layer com a grade. | ||
| 27 | else{ | 29 | else{ |
| 28 | $_GET["proj"] = false; | 30 | $_GET["proj"] = false; |
| 29 | } | 31 | } |
| 30 | - | ||
| 31 | - $retorno = $m->gradeDePol($_GET["dd"],$_GET["px"],$_GET["py"],$locaplic,$_GET["nptx"],$_GET["npty"],$_GET["proj"]); | 32 | + $retorno = $m->gradeDePol($_GET["xdd"],$_GET["ydd"],$_GET["px"],$_GET["py"],$locaplic,$_GET["nptx"],$_GET["npty"],$_GET["proj"]); |
| 32 | $m->salva(); | 33 | $m->salva(); |
| 33 | $_SESSION["contadorsalva"]++; | 34 | $_SESSION["contadorsalva"]++; |
| 34 | break; | 35 | break; |
ferramentas/selecao/exec.php
| @@ -52,7 +52,7 @@ Sleciona elementos de um tema com base em outro tema. | @@ -52,7 +52,7 @@ Sleciona elementos de um tema com base em outro tema. | ||
| 52 | $temas = explode(",",$tema); | 52 | $temas = explode(",",$tema); |
| 53 | foreach($temas as $tema){ | 53 | foreach($temas as $tema){ |
| 54 | $m = new Selecao($map_file,$tema); | 54 | $m = new Selecao($map_file,$tema); |
| 55 | - $ok[] = $m->selecaoTema($temao,$_GET["tipo"],$_GET["buffer"]); | 55 | + $ok[] = $m->selecaoTema($_GET["temao"],$_GET["tipo"],$_GET["buffer"]); |
| 56 | } | 56 | } |
| 57 | $_SESSION["contadorsalva"]++; | 57 | $_SESSION["contadorsalva"]++; |
| 58 | redesenhaMapa(); | 58 | redesenhaMapa(); |
ferramentas/selecao/index.js
| @@ -393,7 +393,6 @@ i3GEOF.selecao = | @@ -393,7 +393,6 @@ i3GEOF.selecao = | ||
| 393 | i3GEO.util.mudaCursor(i3GEO.configura.cursores, "crosshair", i3GEO.Interface.IDMAPA, i3GEO.configura.locaplic); | 393 | i3GEO.util.mudaCursor(i3GEO.configura.cursores, "crosshair", i3GEO.Interface.IDMAPA, i3GEO.configura.locaplic); |
| 394 | i3GEO.barraDeBotoes.ativaIcone("selecao"); | 394 | i3GEO.barraDeBotoes.ativaIcone("selecao"); |
| 395 | i3GEOF.selecao.pegaTemasSel(); | 395 | i3GEOF.selecao.pegaTemasSel(); |
| 396 | - i3GEOF.selecao.mudaicone(); | ||
| 397 | var i = $i("i3GEOF.selecao_c").style; | 396 | var i = $i("i3GEOF.selecao_c").style; |
| 398 | i3GEO.janela.ULTIMOZINDEX++; | 397 | i3GEO.janela.ULTIMOZINDEX++; |
| 399 | i.zIndex = 51000 + i3GEO.janela.ULTIMOZINDEX; | 398 | i.zIndex = 51000 + i3GEO.janela.ULTIMOZINDEX; |
| @@ -433,17 +432,7 @@ i3GEOF.selecao = | @@ -433,17 +432,7 @@ i3GEOF.selecao = | ||
| 433 | * Altera as bordas dos ícones | 432 | * Altera as bordas dos ícones |
| 434 | */ | 433 | */ |
| 435 | mudaicone : function() { | 434 | mudaicone : function() { |
| 436 | - $i("i3GEOselecaopt").parentNode.style.backgroundColor = "#F5F5F5"; | ||
| 437 | - $i("i3GEOselecaoext").parentNode.style.backgroundColor = "#F5F5F5"; | ||
| 438 | - if ($i("i3GEOselecaobox")) { | ||
| 439 | - $i("i3GEOselecaobox").parentNode.style.backgroundColor = "#F5F5F5"; | ||
| 440 | - } | ||
| 441 | - if ($i("i3GEOselecaopoli")) { | ||
| 442 | - $i("i3GEOselecaopoli").parentNode.style.backgroundColor = "#F5F5F5"; | ||
| 443 | - } | ||
| 444 | - if ($i("i3GEOselecaoFigura")) { | ||
| 445 | - $i("i3GEOselecaoFigura").parentNode.style.backgroundColor = "#F5F5F5"; | ||
| 446 | - } | 435 | + |
| 447 | }, | 436 | }, |
| 448 | /* | 437 | /* |
| 449 | * Function: pegaTemasSel | 438 | * Function: pegaTemasSel |
| @@ -557,28 +546,24 @@ i3GEOF.selecao = | @@ -557,28 +546,24 @@ i3GEOF.selecao = | ||
| 557 | } | 546 | } |
| 558 | if (obj.value == "i3GEOselecaobox") { | 547 | if (obj.value == "i3GEOselecaobox") { |
| 559 | i3GEOF.selecao.tipoSel = obj.value; | 548 | i3GEOF.selecao.tipoSel = obj.value; |
| 560 | - i3GEOF.selecao.mudaicone(); | ||
| 561 | obj.style.backgroundColor = "#cedff2"; | 549 | obj.style.backgroundColor = "#cedff2"; |
| 562 | i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); | 550 | i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); |
| 563 | i3GEOF.selecao.box[api].inicia(); | 551 | i3GEOF.selecao.box[api].inicia(); |
| 564 | } | 552 | } |
| 565 | if (obj.value == "i3GEOselecaopt") { | 553 | if (obj.value == "i3GEOselecaopt") { |
| 566 | i3GEOF.selecao.tipoSel = obj.value; | 554 | i3GEOF.selecao.tipoSel = obj.value; |
| 567 | - i3GEOF.selecao.mudaicone(); | ||
| 568 | obj.style.backgroundColor = "#cedff2"; | 555 | obj.style.backgroundColor = "#cedff2"; |
| 569 | i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); | 556 | i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); |
| 570 | i3GEOF.selecao.clique[api].inicia(); | 557 | i3GEOF.selecao.clique[api].inicia(); |
| 571 | } | 558 | } |
| 572 | if (obj.value == "i3GEOselecaopoli") { | 559 | if (obj.value == "i3GEOselecaopoli") { |
| 573 | i3GEOF.selecao.tipoSel = obj.value; | 560 | i3GEOF.selecao.tipoSel = obj.value; |
| 574 | - i3GEOF.selecao.mudaicone(); | ||
| 575 | obj.style.backgroundColor = "#cedff2"; | 561 | obj.style.backgroundColor = "#cedff2"; |
| 576 | i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); | 562 | i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); |
| 577 | i3GEOF.selecao.poligono[api].inicia(); | 563 | i3GEOF.selecao.poligono[api].inicia(); |
| 578 | } | 564 | } |
| 579 | if (obj.value == "i3GEOselecaofigura") { | 565 | if (obj.value == "i3GEOselecaofigura") { |
| 580 | i3GEOF.selecao.tipoSel = obj.value; | 566 | i3GEOF.selecao.tipoSel = obj.value; |
| 581 | - i3GEOF.selecao.mudaicone(); | ||
| 582 | obj.style.backgroundColor = "#cedff2"; | 567 | obj.style.backgroundColor = "#cedff2"; |
| 583 | i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); | 568 | i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia(); |
| 584 | i3GEOF.selecao.figura[api].inicia(); | 569 | i3GEOF.selecao.figura[api].inicia(); |
| @@ -744,7 +729,6 @@ i3GEOF.selecao = | @@ -744,7 +729,6 @@ i3GEOF.selecao = | ||
| 744 | i3GEO.janela.abreAguarde("i3GEO.atualiza", $trad("o1")); | 729 | i3GEO.janela.abreAguarde("i3GEO.atualiza", $trad("o1")); |
| 745 | i3GEO.eventos.cliquePerm.ativa(); | 730 | i3GEO.eventos.cliquePerm.ativa(); |
| 746 | i3GEO.php.selecaobox(retorna, tema, tipo, box); | 731 | i3GEO.php.selecaobox(retorna, tema, tipo, box); |
| 747 | - i3GEOF.selecao.mudaicone(); | ||
| 748 | } | 732 | } |
| 749 | }, | 733 | }, |
| 750 | /* | 734 | /* |
| @@ -883,7 +867,6 @@ i3GEOF.selecao = | @@ -883,7 +867,6 @@ i3GEOF.selecao = | ||
| 883 | }; | 867 | }; |
| 884 | i3GEO.eventos.cliquePerm.ativa(); | 868 | i3GEO.eventos.cliquePerm.ativa(); |
| 885 | i3GEO.php.selecaopt(retorna, tema, x + " " + y, tipo, tolerancia); | 869 | i3GEO.php.selecaopt(retorna, tema, x + " " + y, tipo, tolerancia); |
| 886 | - i3GEOF.selecao.mudaicone(); | ||
| 887 | } | 870 | } |
| 888 | }, | 871 | }, |
| 889 | /* | 872 | /* |
| @@ -997,7 +980,6 @@ i3GEOF.selecao = | @@ -997,7 +980,6 @@ i3GEOF.selecao = | ||
| 997 | }; | 980 | }; |
| 998 | i3GEO.eventos.cliquePerm.ativa(); | 981 | i3GEO.eventos.cliquePerm.ativa(); |
| 999 | i3GEO.php.selecaoWkt(retorna, tema, tipo, wkt, $i("i3GEOselecaotoleranciapt").value); | 982 | i3GEO.php.selecaoWkt(retorna, tema, tipo, wkt, $i("i3GEOselecaotoleranciapt").value); |
| 1000 | - i3GEOF.selecao.mudaicone(); | ||
| 1001 | } | 983 | } |
| 1002 | }, | 984 | }, |
| 1003 | /* | 985 | /* |
| @@ -1188,7 +1170,6 @@ i3GEOF.selecao = | @@ -1188,7 +1170,6 @@ i3GEOF.selecao = | ||
| 1188 | }; | 1170 | }; |
| 1189 | i3GEO.janela.abreAguarde("i3GEO.atualiza", $trad("o1")); | 1171 | i3GEO.janela.abreAguarde("i3GEO.atualiza", $trad("o1")); |
| 1190 | i3GEO.eventos.cliquePerm.ativa(); | 1172 | i3GEO.eventos.cliquePerm.ativa(); |
| 1191 | - i3GEOF.selecao.mudaicone(); | ||
| 1192 | p = i3GEO.configura.locaplic + "/ferramentas/selecao/exec.php?g_sid=" + i3GEO.configura.sid + "&funcao=selecaoPoli"; | 1173 | p = i3GEO.configura.locaplic + "/ferramentas/selecao/exec.php?g_sid=" + i3GEO.configura.sid + "&funcao=selecaoPoli"; |
| 1193 | cp = new cpaint(); | 1174 | cp = new cpaint(); |
| 1194 | // cp.set_debug(2) | 1175 | // cp.set_debug(2) |