Commit 6f4e05d6738c148af82d1703845fa607c5272c92

Authored by Edmar Moretti
1 parent ae3bb77a

--no commit message

Showing 2 changed files with 9 additions and 10 deletions   Show diff stats
mobile/desligar.php
... ... @@ -83,9 +83,11 @@ $par = $m->parametrosTemas();
83 83 echo "<h1>Escolha o tema que vc não quer ver no mapa:</h1>";
84 84 foreach($par as $p)
85 85 {
86   - $existe=true;
87   - $titulo = mb_convert_encoding($p["tema"],"ISO-8859-1","UTF-8");
88   - echo "<input type=radio value='".$p["name"]."' onclick='desligar(this.value)' />".$titulo."<br>";
  86 + if($p["status"] !== 0){
  87 + $existe=true;
  88 + $titulo = mb_convert_encoding($p["tema"],"ISO-8859-1","UTF-8");
  89 + echo "<input type=radio value='".$p["name"]."' onclick='desligar(this.value)' />".$titulo."<br>";
  90 + }
89 91 }
90 92 if (!$existe)
91 93 echo "<span style='color:red' >Nenhum tema dispon&iacute;vel.</br>";
... ...
mobile/ligar.php
... ... @@ -80,18 +80,15 @@ if(isset($tema) &amp;&amp; $tema != &#39;&#39;)
80 80 }
81 81 $m = New Mapa($tmpfname);
82 82 $par = $m->parametrosTemas();
83   -$par = mb_convert_encoding($par,"ISO-8859-1","UTF-8");
84   -$par = explode("'",$par);
85   -$par = explode(";",$par[1]);
  83 +
86 84 echo "<h1>Escolha o tema que vc quer ver no mapa:</h1>";
87 85 $existe = false;
88 86 foreach($par as $p)
89 87 {
90   - $p = explode("*",$p);
91   - if($p[1] != 2)
92   - {
  88 + if($p["status"] == 0){
93 89 $existe=true;
94   - echo "<input type=radio value='$p[0]' onclick='ligar(this.value)' />".$p[2]."<br>";
  90 + $titulo = mb_convert_encoding($p["tema"],"ISO-8859-1","UTF-8");
  91 + echo "<input type=radio value='".$p["name"]."' onclick='ligar(this.value)' />".$titulo."<br>";
95 92 }
96 93 }
97 94 if (!$existe)
... ...