Commit cfbfa316f222ff6ebb23686d1736cdcc2d079563
1 parent
16ac714b
Exists in
master
Teste animagif
Showing
1 changed file
with
3 additions
and
6 deletions
Show diff stats
ferramentas/animagif/exec.php
... | ... | @@ -187,16 +187,13 @@ if(validaAcessoTemas($arqtemp.".map",false) == true){ |
187 | 187 | //pega a lista de valores unicos da $colunat |
188 | 188 | include_once("../../classesphp/classe_atributos.php"); |
189 | 189 | $m = new Atributos($arqtemp.".map",$tema); |
190 | -$lista = $m->listaRegistros($colunat,"mapa","sim",0,"","tudo","nao"); | |
191 | -$lista = $lista[1]["registros"]; | |
190 | +$lista = $m->listaUnicoRapida($colunat); | |
192 | 191 | $listaunica = array(); |
193 | 192 | foreach($lista as $l){ |
194 | - $v = $l["valores"][0]["valor"]; | |
195 | - if($v != ""){ | |
196 | - $listaunica[] = $v; | |
193 | + if($l != ""){ | |
194 | + $listaunica[] = $l; | |
197 | 195 | } |
198 | 196 | } |
199 | -sort($listaunica); | |
200 | 197 | //cria as imagens para cada periodo |
201 | 198 | $layer = $mapa->getlayerbyname($tema); |
202 | 199 | ... | ... |