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,9 +83,11 @@ $par = $m->parametrosTemas();
83 echo "<h1>Escolha o tema que vc não quer ver no mapa:</h1>"; 83 echo "<h1>Escolha o tema que vc não quer ver no mapa:</h1>";
84 foreach($par as $p) 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 if (!$existe) 92 if (!$existe)
91 echo "<span style='color:red' >Nenhum tema dispon&iacute;vel.</br>"; 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,18 +80,15 @@ if(isset($tema) &amp;&amp; $tema != &#39;&#39;)
80 } 80 }
81 $m = New Mapa($tmpfname); 81 $m = New Mapa($tmpfname);
82 $par = $m->parametrosTemas(); 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 echo "<h1>Escolha o tema que vc quer ver no mapa:</h1>"; 84 echo "<h1>Escolha o tema que vc quer ver no mapa:</h1>";
87 $existe = false; 85 $existe = false;
88 foreach($par as $p) 86 foreach($par as $p)
89 { 87 {
90 - $p = explode("*",$p);  
91 - if($p[1] != 2)  
92 - { 88 + if($p["status"] == 0){
93 $existe=true; 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 if (!$existe) 94 if (!$existe)