Commit 11d0da9a4aec5bc8f2fbb0e5090847a53be87aed
1 parent
23950f76
Exists in
master
and in
7 other branches
Teste animagif
Showing
2 changed files
with
16 additions
and
10 deletions
Show diff stats
ferramentas/animagif/exec.php
... | ... | @@ -96,9 +96,9 @@ for ($i=0;$i < $numlayers;$i++){ |
96 | 96 | } |
97 | 97 | } |
98 | 98 | //ajusta o label |
99 | -$l = $mapa->getlayerbyname("copyright"); | |
100 | -if($l != ""){ | |
101 | - $classe = $l->getclass(0); | |
99 | +$copyright = $mapa->getlayerbyname("copyright"); | |
100 | +if($copyright != ""){ | |
101 | + $classe = $copyright->getclass(0); | |
102 | 102 | $label = $classe->getLabel(0); |
103 | 103 | $label->updatefromstring("LABEL TYPE TRUETYPE END"); |
104 | 104 | $label->set("font","arial"); |
... | ... | @@ -197,9 +197,9 @@ foreach($lista as $l){ |
197 | 197 | //cria as imagens para cada periodo |
198 | 198 | $layer = $mapa->getlayerbyname($tema); |
199 | 199 | |
200 | -$l = $mapa->getlayerbyname("copyright"); | |
201 | -if($l != ""){ | |
202 | - $c = $l->getclass(0); | |
200 | +$copyright = $mapa->getlayerbyname("copyright"); | |
201 | +if($copyright != ""){ | |
202 | + $c = $copyright->getclass(0); | |
203 | 203 | $label = $c->getLabel(0); |
204 | 204 | } |
205 | 205 | $imagens = array(); |
... | ... | @@ -218,7 +218,7 @@ foreach($listaunica as $d){ |
218 | 218 | $nomec = $arqtemp.$d.".png"; |
219 | 219 | |
220 | 220 | $s = "LABEL TEXT '".$d."' END"; |
221 | - if($l != ""){ | |
221 | + if($copyright != ""){ | |
222 | 222 | $label->updateFromString($s); |
223 | 223 | } |
224 | 224 | if($objImagem == ""){ | ... | ... |
ferramentas/animagif/index.php
1 | 1 | <?php |
2 | -//http://localhost/i3geo/ferramentas/animagif/index.php?transparente=sim&legenda=sim&tema=_llocali&colunat=ANOCRIA&w=500&h=500&mapext=-74%20-32%20-34%204 | |
3 | - $url = "./exec.php?".$_SERVER["QUERY_STRING"]; | |
2 | +$url = strip_tags("./exec.php?".$_SERVER["QUERY_STRING"]); | |
4 | 3 | ?> |
5 | 4 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
6 | 5 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
... | ... | @@ -9,6 +8,11 @@ |
9 | 8 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
10 | 9 | <script type="text/javascript" src="../../pacotes/libgifjs/libgif.js"></script> |
11 | 10 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> |
11 | + <style> | |
12 | + body { | |
13 | + font-family: Verdana, Arial, Helvetica, sans-serif; | |
14 | + } | |
15 | + </style> | |
12 | 16 | </head> |
13 | 17 | |
14 | 18 | <body> |
... | ... | @@ -22,8 +26,10 @@ |
22 | 26 | <button style="cursor:pointer;" onclick="sup1.pause(); return false;"><img src='../../imagens/player_pausa.png' /></button> |
23 | 27 | <button style="cursor:pointer;" onclick="sup1.play(); return false;"><img src='../../imagens/player_inicia.png' /></button> |
24 | 28 | <button style="cursor:pointer;" onclick="sup1.move_to(0); return false;"><img src='../../imagens/player_para.png' /></button> |
25 | - <button style="cursor:pointer;" onclick="sup1.move_relative(1); return false;"><img src='../../imagens/player_avanca.png' /></button> | |
26 | 29 | <button style="cursor:pointer;" onclick="sup1.move_relative(-1); return false;"><img src='../../imagens/player_volta.png' /></button> |
30 | + <button style="cursor:pointer;" onclick="sup1.move_relative(1); return false;"><img src='../../imagens/player_avanca.png' /></button> | |
31 | + <br><br> | |
32 | + <a href="<?php echo $url; ?>" >Download</a> | |
27 | 33 | </center> |
28 | 34 | </body> |
29 | 35 | </html> |
30 | 36 | \ No newline at end of file | ... | ... |