From f86a8637f8711fb3b0b1ac61ca09b72b9b1c2a77 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 16 Aug 2010 21:27:35 +0000 Subject: [PATCH] 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 --- admin/php/atlas.php | 13 +++++++++++++ admin/php/xml.php | 4 ++-- zerocal/geral.htm | 7 +++++-- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/admin/php/atlas.php b/admin/php/atlas.php index 8a7ac56..e329c1a 100644 --- a/admin/php/atlas.php +++ b/admin/php/atlas.php @@ -200,6 +200,12 @@ function alterarAtlas() try { include("conexao.php"); + if($h_atlas == "") + {$h_atlas = 0;} + if($h_atlas == "") + {$w_atlas = 0;} + if($ordem_atlas == "") + {$ordem_atlas = 0;} if($convUTF) { $desc_atlas = utf8_encode($desc_atlas); @@ -236,6 +242,13 @@ function alterarPrancha() try { include("conexao.php"); + if($h_prancha == "") + {$h_prancha = 0;} + if($h_prancha == "") + {$w_prancha = 0;} + if($ordem_prancha == "") + {$ordem_prancha = 0;} + if($convUTF) { $desc_prancha = utf8_encode($desc_prancha); diff --git a/admin/php/xml.php b/admin/php/xml.php index 3c3bc29..060ed68 100644 --- a/admin/php/xml.php +++ b/admin/php/xml.php @@ -454,7 +454,7 @@ function geraXmlMenutemas_notema($qtemas,$xml,$perfil) } function geraXmlAtlas_pegapranchas($xml,$id_atlas,$dbh) { - $q = "select * from i3geoadmin_atlasp as p where p.id_atlas = $id_atlas "; + $q = "select * from i3geoadmin_atlasp as p where p.id_atlas = $id_atlas order by ordem_prancha"; $qpranchas = $dbh->query($q); foreach($qpranchas as $row) { @@ -475,7 +475,7 @@ function geraXmlAtlas_pegapranchas($xml,$id_atlas,$dbh) } function geraXmlAtlas_pegatemas($xml,$id_prancha,$dbh) { - $q = "select t.codigo_tema,t.ligado_tema from i3geoadmin_atlast as t where t.id_prancha = '$id_prancha'"; + $q = "select t.codigo_tema,t.ligado_tema from i3geoadmin_atlast as t where t.id_prancha = '$id_prancha' order by ordem_tema"; //echo $q; $qtemas = $dbh->query($q); foreach($qtemas as $row) diff --git a/zerocal/geral.htm b/zerocal/geral.htm index e59072a..8f9cbeb 100644 --- a/zerocal/geral.htm +++ b/zerocal/geral.htm @@ -22,14 +22,17 @@ arquivos não compactados, bastando substituir por i3geonaocompacto --> - +
Aguarde...Inicializando o Atlas
+
Aguarde...Inicializando o Atlas
- + + +