Commit f86a8637f8711fb3b0b1ac61ca09b72b9b1c2a77
1 parent
c6c37803
Exists in
master
and in
7 other branches
Correção no ordenamento da lista de pranchas de um Atlas e lista de temas de uma…
… prancha. atualização dos códigos da interface Atlas para funcionamento com as nova interface OpenLayers
Showing
3 changed files
with
20 additions
and
4 deletions
Show diff stats
admin/php/atlas.php
@@ -200,6 +200,12 @@ function alterarAtlas() | @@ -200,6 +200,12 @@ function alterarAtlas() | ||
200 | try | 200 | try |
201 | { | 201 | { |
202 | include("conexao.php"); | 202 | include("conexao.php"); |
203 | + if($h_atlas == "") | ||
204 | + {$h_atlas = 0;} | ||
205 | + if($h_atlas == "") | ||
206 | + {$w_atlas = 0;} | ||
207 | + if($ordem_atlas == "") | ||
208 | + {$ordem_atlas = 0;} | ||
203 | if($convUTF) | 209 | if($convUTF) |
204 | { | 210 | { |
205 | $desc_atlas = utf8_encode($desc_atlas); | 211 | $desc_atlas = utf8_encode($desc_atlas); |
@@ -236,6 +242,13 @@ function alterarPrancha() | @@ -236,6 +242,13 @@ function alterarPrancha() | ||
236 | try | 242 | try |
237 | { | 243 | { |
238 | include("conexao.php"); | 244 | include("conexao.php"); |
245 | + if($h_prancha == "") | ||
246 | + {$h_prancha = 0;} | ||
247 | + if($h_prancha == "") | ||
248 | + {$w_prancha = 0;} | ||
249 | + if($ordem_prancha == "") | ||
250 | + {$ordem_prancha = 0;} | ||
251 | + | ||
239 | if($convUTF) | 252 | if($convUTF) |
240 | { | 253 | { |
241 | $desc_prancha = utf8_encode($desc_prancha); | 254 | $desc_prancha = utf8_encode($desc_prancha); |
admin/php/xml.php
@@ -454,7 +454,7 @@ function geraXmlMenutemas_notema($qtemas,$xml,$perfil) | @@ -454,7 +454,7 @@ function geraXmlMenutemas_notema($qtemas,$xml,$perfil) | ||
454 | } | 454 | } |
455 | function geraXmlAtlas_pegapranchas($xml,$id_atlas,$dbh) | 455 | function geraXmlAtlas_pegapranchas($xml,$id_atlas,$dbh) |
456 | { | 456 | { |
457 | - $q = "select * from i3geoadmin_atlasp as p where p.id_atlas = $id_atlas "; | 457 | + $q = "select * from i3geoadmin_atlasp as p where p.id_atlas = $id_atlas order by ordem_prancha"; |
458 | $qpranchas = $dbh->query($q); | 458 | $qpranchas = $dbh->query($q); |
459 | foreach($qpranchas as $row) | 459 | foreach($qpranchas as $row) |
460 | { | 460 | { |
@@ -475,7 +475,7 @@ function geraXmlAtlas_pegapranchas($xml,$id_atlas,$dbh) | @@ -475,7 +475,7 @@ function geraXmlAtlas_pegapranchas($xml,$id_atlas,$dbh) | ||
475 | } | 475 | } |
476 | function geraXmlAtlas_pegatemas($xml,$id_prancha,$dbh) | 476 | function geraXmlAtlas_pegatemas($xml,$id_prancha,$dbh) |
477 | { | 477 | { |
478 | - $q = "select t.codigo_tema,t.ligado_tema from i3geoadmin_atlast as t where t.id_prancha = '$id_prancha'"; | 478 | + $q = "select t.codigo_tema,t.ligado_tema from i3geoadmin_atlast as t where t.id_prancha = '$id_prancha' order by ordem_tema"; |
479 | //echo $q; | 479 | //echo $q; |
480 | $qtemas = $dbh->query($q); | 480 | $qtemas = $dbh->query($q); |
481 | foreach($qtemas as $row) | 481 | foreach($qtemas as $row) |
zerocal/geral.htm
@@ -22,14 +22,17 @@ arquivos não compactados, bastando substituir por i3geonaocompacto --> | @@ -22,14 +22,17 @@ arquivos não compactados, bastando substituir por i3geonaocompacto --> | ||
22 | 22 | ||
23 | <table width=100% cellspacing='0'> | 23 | <table width=100% cellspacing='0'> |
24 | <tr style="border:0px"> | 24 | <tr style="border:0px"> |
25 | -<td style="height:45px;width:100%;background-image:url('../imagens/atlas.jpg');"><div style="left:25px;font-weight: bold;font-size:16px;text-align:left;color:white;width:400px" id="tituloAtlas" >Aguarde...Inicializando o Atlas</div></td> | 25 | +<td style="height:45px;width:100%;background-image:url('../imagens/atlas.jpg');"> |
26 | +<div style="left:25px;font-weight: bold;font-size:16px;text-align:left;color:white;width:400px" id="tituloAtlas" >Aguarde...Inicializando o Atlas</div></td> | ||
26 | </tr> | 27 | </tr> |
27 | </table> | 28 | </table> |
28 | 29 | ||
29 | <table style="border:solid 2px black;" width=90% cellspacing='0'> | 30 | <table style="border:solid 2px black;" width=90% cellspacing='0'> |
30 | <tr><td> | 31 | <tr><td> |
31 | <table id='mst' style="display:none;" width=100% cellspacing='0'> | 32 | <table id='mst' style="display:none;" width=100% cellspacing='0'> |
32 | -<tr style="border:0px"><td colspan=2 style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td></tr> | 33 | +<tr style="border:0px"> |
34 | +<td colspan=2 style="background-image:url('../imagens/visual/default/cabeca.png');height:10px"></td> | ||
35 | +</tr> | ||
33 | <tr> | 36 | <tr> |
34 | <td> | 37 | <td> |
35 | <table width=100% cellspacing=0 cellpadding=0 > | 38 | <table width=100% cellspacing=0 cellpadding=0 > |