From 6f4e05d6738c148af82d1703845fa607c5272c92 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 11 Mar 2010 17:53:42 +0000 Subject: [PATCH] --- mobile/desligar.php | 8 +++++--- mobile/ligar.php | 11 ++++------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/mobile/desligar.php b/mobile/desligar.php index 0111e4b..6e39975 100644 --- a/mobile/desligar.php +++ b/mobile/desligar.php @@ -83,9 +83,11 @@ $par = $m->parametrosTemas(); echo "

Escolha o tema que vc não quer ver no mapa:

"; foreach($par as $p) { - $existe=true; - $titulo = mb_convert_encoding($p["tema"],"ISO-8859-1","UTF-8"); - echo "".$titulo."
"; + if($p["status"] !== 0){ + $existe=true; + $titulo = mb_convert_encoding($p["tema"],"ISO-8859-1","UTF-8"); + echo "".$titulo."
"; + } } if (!$existe) echo "Nenhum tema disponível.
"; diff --git a/mobile/ligar.php b/mobile/ligar.php index 8141f50..c9ca51a 100644 --- a/mobile/ligar.php +++ b/mobile/ligar.php @@ -80,18 +80,15 @@ if(isset($tema) && $tema != '') } $m = New Mapa($tmpfname); $par = $m->parametrosTemas(); -$par = mb_convert_encoding($par,"ISO-8859-1","UTF-8"); -$par = explode("'",$par); -$par = explode(";",$par[1]); + echo "

Escolha o tema que vc quer ver no mapa:

"; $existe = false; foreach($par as $p) { - $p = explode("*",$p); - if($p[1] != 2) - { + if($p["status"] == 0){ $existe=true; - echo "".$p[2]."
"; + $titulo = mb_convert_encoding($p["tema"],"ISO-8859-1","UTF-8"); + echo "".$titulo."
"; } } if (!$existe) -- libgit2 0.21.2