From 80958f405bc1b3eadf182b1f609c129e5db6418c Mon Sep 17 00:00:00 2001
From: Edmar Moretti
Date: Sat, 14 Jun 2008 01:03:13 +0000
Subject: [PATCH] Conclusão dos geradores de xml atlas, identifica e menutemas
---
admin/index.html | 6 +++++-
admin/xmlatlas.php | 9 ++++++---
admin/xmlidentifica.php | 30 ++++++++++++++++++++++++++++++
admin/xmlmenutemas.php | 33 +++++++++++++++++++++++++++++----
4 files changed, 70 insertions(+), 8 deletions(-)
create mode 100644 admin/xmlidentifica.php
diff --git a/admin/index.html b/admin/index.html
index 707910c..a572de8 100644
--- a/admin/index.html
+++ b/admin/index.html
@@ -67,7 +67,7 @@ dos arquivos XML.
@@ -173,6 +173,10 @@ que por sua vez contém temas.
| Descrição do banco padrão (SQLITE) |
| Gera as miniaturas (thumbnails) para os temas existentes no diretório i3geo/temas |
+ | Ver xml com a árvore de temas |
+ | Ver xml com os Atlas |
+ | Ver xml com os sistemas utilizados na ferramenta de identificação |
+
diff --git a/admin/xmlatlas.php b/admin/xmlatlas.php
index a1c182c..5f347d7 100644
--- a/admin/xmlatlas.php
+++ b/admin/xmlatlas.php
@@ -57,11 +57,14 @@ function xmlmenu_pegapranchas($id_atlas)
function xmlmenu_pegatemas($id_prancha)
{
global $dbh;
- $q = "select * from i3geoadmin_atlast as t where t.id_prancha = $id_prancha ";
- $qpranchas = $dbh->query($q);
- foreach($qpranchas as $row)
+ $q = "select tema.codigo_tema,t.ligado_tema from i3geoadmin_atlast as t,i3geoadmin_temas as tema where tema.id_tema = t.id_tema and t.id_prancha = $id_prancha ";
+ //echo $q;
+ $qtemas = $dbh->query($q);
+ foreach($qtemas as $row)
{
echo "\n";
+ echo "".$row["codigo_tema"]."\n";
+ echo "".$row["ligado_tema"]."\n";
echo "\n";
}
}
diff --git a/admin/xmlidentifica.php b/admin/xmlidentifica.php
new file mode 100644
index 0000000..5976023
--- /dev/null
+++ b/admin/xmlidentifica.php
@@ -0,0 +1,30 @@
+";
+//echo "<"."\x3F"."xml-stylesheet type='text/xsl' href='../menutemas/menutemas.xsl'"."\x3F".">";
+echo "\n\n";
+if (!isset($perfil)){$perfil = "";}
+
+$q = "select * from i3geoadmin_identifica ";
+$qi = $dbh->query($q);
+foreach($qi as $row)
+{
+ echo " \n";
+ echo " ".xmlmenu_prepara($row["nome_i"])."\n";
+ echo " ".xmlmenu_prepara($row["abrir_i"])."\n";
+ $target = $row["target_i"];
+ if($target == ""){$target = "_self";}
+ echo " ".$target."\n";
+ echo " \n";
+}
+echo "\n";
+$dbh = null;
+function xmlmenu_prepara($texto)
+{
+ return str_replace("&","&",$texto);
+}
+?>
diff --git a/admin/xmlmenutemas.php b/admin/xmlmenutemas.php
index 764a711..89f7b8d 100644
--- a/admin/xmlmenutemas.php
+++ b/admin/xmlmenutemas.php
@@ -1,13 +1,35 @@
";
//echo "<"."\x3F"."xml-stylesheet type='text/xsl' href='../menutemas/menutemas.xsl'"."\x3F".">";
echo "\n\n";
+if(!isset($id_menu))
+echo "Utilize ?id_menu=1 por exemplo\n";
+else
echo "\n";
if (!isset($perfil)){$perfil = "";}
//
@@ -114,6 +136,9 @@ function xmlmenu_notema($qtemas)
echo "".$row["tipoa_tema"]."\n";
echo "".xmlmenu_prepara($row["tags_tema"])."\n";
echo "".$row["kml_tema"]."\n";
+ if($row["tipoa_tema"] == "WMS")
+ echo "nao\n";
+ else
echo "".$row["ogc_tema"]."\n";
echo "".$row["download_tema"]."\n";
echo "\n";
--
libgit2 0.21.2