Commit 0c5efd4dfaff3cca40029944e2cccc3ec324d1f7

Authored by Edmar Moretti
1 parent 827e75fa
Exists in master

Correção em ferramentas de análise cuja passagem de parâmetros estava com erros

ferramentas/gradepol/exec.php
... ... @@ -19,7 +19,9 @@ Salva o mapa acrescentando um novo layer com a grade.
19 19 case "GRADEDEPOL":
20 20 include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php");
21 21 copiaSeguranca($map_file);
22   - if(!isset($tema)){$tema = "";}
  22 + if(!isset($tema)){
  23 + $tema = "";
  24 + }
23 25 $m = new Analise($map_file,$tema);
24 26 if($_GET["proj"] == "sim"){
25 27 $_GET["proj"] = true;
... ... @@ -27,8 +29,7 @@ Salva o mapa acrescentando um novo layer com a grade.
27 29 else{
28 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 33 $m->salva();
33 34 $_SESSION["contadorsalva"]++;
34 35 break;
... ...
ferramentas/selecao/exec.php
... ... @@ -52,7 +52,7 @@ Sleciona elementos de um tema com base em outro tema.
52 52 $temas = explode(",",$tema);
53 53 foreach($temas as $tema){
54 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 57 $_SESSION["contadorsalva"]++;
58 58 redesenhaMapa();
... ...
ferramentas/selecao/index.js
... ... @@ -393,7 +393,6 @@ i3GEOF.selecao =
393 393 i3GEO.util.mudaCursor(i3GEO.configura.cursores, "crosshair", i3GEO.Interface.IDMAPA, i3GEO.configura.locaplic);
394 394 i3GEO.barraDeBotoes.ativaIcone("selecao");
395 395 i3GEOF.selecao.pegaTemasSel();
396   - i3GEOF.selecao.mudaicone();
397 396 var i = $i("i3GEOF.selecao_c").style;
398 397 i3GEO.janela.ULTIMOZINDEX++;
399 398 i.zIndex = 51000 + i3GEO.janela.ULTIMOZINDEX;
... ... @@ -433,17 +432,7 @@ i3GEOF.selecao =
433 432 * Altera as bordas dos ícones
434 433 */
435 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 438 * Function: pegaTemasSel
... ... @@ -557,28 +546,24 @@ i3GEOF.selecao =
557 546 }
558 547 if (obj.value == "i3GEOselecaobox") {
559 548 i3GEOF.selecao.tipoSel = obj.value;
560   - i3GEOF.selecao.mudaicone();
561 549 obj.style.backgroundColor = "#cedff2";
562 550 i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia();
563 551 i3GEOF.selecao.box[api].inicia();
564 552 }
565 553 if (obj.value == "i3GEOselecaopt") {
566 554 i3GEOF.selecao.tipoSel = obj.value;
567   - i3GEOF.selecao.mudaicone();
568 555 obj.style.backgroundColor = "#cedff2";
569 556 i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia();
570 557 i3GEOF.selecao.clique[api].inicia();
571 558 }
572 559 if (obj.value == "i3GEOselecaopoli") {
573 560 i3GEOF.selecao.tipoSel = obj.value;
574   - i3GEOF.selecao.mudaicone();
575 561 obj.style.backgroundColor = "#cedff2";
576 562 i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia();
577 563 i3GEOF.selecao.poligono[api].inicia();
578 564 }
579 565 if (obj.value == "i3GEOselecaofigura") {
580 566 i3GEOF.selecao.tipoSel = obj.value;
581   - i3GEOF.selecao.mudaicone();
582 567 obj.style.backgroundColor = "#cedff2";
583 568 i3GEO.desenho[i3GEO.Interface["ATUAL"]].inicia();
584 569 i3GEOF.selecao.figura[api].inicia();
... ... @@ -744,7 +729,6 @@ i3GEOF.selecao =
744 729 i3GEO.janela.abreAguarde("i3GEO.atualiza", $trad("o1"));
745 730 i3GEO.eventos.cliquePerm.ativa();
746 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 867 };
884 868 i3GEO.eventos.cliquePerm.ativa();
885 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 980 };
998 981 i3GEO.eventos.cliquePerm.ativa();
999 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 1170 };
1189 1171 i3GEO.janela.abreAguarde("i3GEO.atualiza", $trad("o1"));
1190 1172 i3GEO.eventos.cliquePerm.ativa();
1191   - i3GEOF.selecao.mudaicone();
1192 1173 p = i3GEO.configura.locaplic + "/ferramentas/selecao/exec.php?g_sid=" + i3GEO.configura.sid + "&funcao=selecaoPoli";
1193 1174 cp = new cpaint();
1194 1175 // cp.set_debug(2)
... ...