From 8dfa7cf0a37b07a105ebc35ed49f5506e5629bd1 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 14 Dec 2007 20:03:50 +0000 Subject: [PATCH] adicionada opção de ativação de toponimia na versão mobile --- mobile/ativatexto.php | 146 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ mobile/mobile.php | 3 +++ 2 files changed, 149 insertions(+), 0 deletions(-) create mode 100644 mobile/ativatexto.php diff --git a/mobile/ativatexto.php b/mobile/ativatexto.php new file mode 100644 index 0000000..bea05f8 --- /dev/null +++ b/mobile/ativatexto.php @@ -0,0 +1,146 @@ + + + + +
+ + + + +
+
+criaToponimia($item,"MS_AUTO",1,0,0,auto,auto,0,"off",1,1,"off","100 100 100",1,1,"off","off",0,8,"bitmap",""); + $m->salva(); + $tema = ""; +} +// +//monta a lista de itens de um tema +// +if (($tema != '') && ($item == "")) +{ + include("../classesphp/classe_atributos.php"); + $m = new Atributos($tmpfname,$tema); + $itens = $m->listaItens(); + echo "

Escolha o item que contém os textos:

"; + foreach($itens["valores"] as $i) + { + echo "".$i["item"]."
"; + } +} +// +//monta a lista de temas +// +if ($tema == '') +{ + include("../classesphp/classe_mapa.php"); + $m = New Mapa($tmpfname); + $par = $m->parametrosTemas(); + //var_dump($par); + $par = mb_convert_encoding($par,"ISO-8859-1","UTF-8"); + $par = explode("'",$par); + $par = explode(";",$par[1]); + echo "

Escolha o tema que vc quer mostrar os textos no mapa:

"; + $existe = false; + foreach($par as $p) + { + $p = explode("*",$p); + if(($p[1] == 2) && ($p[4] < 3 )) + { + $existe=true; + echo "".$p[2]."
"; + } + } + if (!$existe) + echo "Nenhum tema disponível.
"; +} +?> +
+ + + + diff --git a/mobile/mobile.php b/mobile/mobile.php index 97448ef..165c916 100644 --- a/mobile/mobile.php +++ b/mobile/mobile.php @@ -181,6 +181,7 @@ if(!isset($maparef)){$maparef = "";} + @@ -296,6 +297,8 @@ function op(valor) {document.getElementById('f').action = "adicionatema.php?"} if (valor=="reiniciar") {document.getElementById('f').action = "index.php?"} + if (valor=="ativatexto") + {document.getElementById('f').action = "ativatexto.php?"} document.getElementById('f').submit(); } function maparef() -- libgit2 0.21.2