diff --git a/admin/admin.db b/admin/admin.db
index 706e944..321e3d9 100755
Binary files a/admin/admin.db and b/admin/admin.db differ
diff --git a/admin1/head.php b/admin1/head.php
index 6c5f864..34449aa 100755
--- a/admin1/head.php
+++ b/admin1/head.php
@@ -59,13 +59,13 @@ hr {
.btn.btn-fab.btn-fab-mini {
font-size: 12px;
- height: 24px;
- min-width: 24px;
- padding-bottom: 5px;
- padding-left: 5px;
- padding-right: 5px;
- padding-top: 5px;
- width: 24px;
+ height: 28px;
+ min-width: 28px;
+ padding-bottom: 6px;
+ padding-left: 6px;
+ padding-right: 6px;
+ padding-top: 6px;
+ width: 28px;
}
.btn.btn-fab.btn-fab-max {
@@ -81,7 +81,7 @@ hr {
.material-icons.md-18 {
font-size: 18px;
- background-color: #e13023;
+
}
body {
diff --git a/init/head.php b/init/head.php
index b6da17a..f225e33 100755
--- a/init/head.php
+++ b/init/head.php
@@ -83,14 +83,14 @@ hr {
.navbar-collapse { max-height: 100% !important; }
.btn.btn-fab.btn-fab-mini {
- font-size: 12px;
- height: 24px;
- min-width: 24px;
- padding-bottom: 5px;
- padding-left: 5px;
- padding-right: 5px;
- padding-top: 5px;
- width: 24px;
+ font-size: 12px;
+ height: 28px;
+ min-width: 28px;
+ padding-bottom: 6px;
+ padding-left: 6px;
+ padding-right: 6px;
+ padding-top: 6px;
+ width: 28px;
}
.btn.btn-fab.btn-fab-max {
diff --git a/ogc/exec.php b/ogc/exec.php
index 2fa1981..64e0567 100755
--- a/ogc/exec.php
+++ b/ogc/exec.php
@@ -78,6 +78,30 @@ ORDER BY lower(n0.nome_menu)
}
retornaJSON ( array("dados"=>$dados) );
break;
+
+ case "LISTATODAS":
+ $sqlCamadas = "
+ SELECT * FROM (SELECT n3.id_tema AS id_tema,t.codigo_tema AS codigo_tema,t.nome_tema AS nome_tema,t.link_tema AS link_tema,
+ lower(t.ogc_tema) AS ogc_tema,lower(t.download_tema) AS download_tema
+ FROM {$esquemaadmin}i3geoadmin_n3 AS n3, {$esquemaadmin}i3geoadmin_temas AS t
+ WHERE n3.id_tema = t.id_tema AND t.ogc_tema != 'NAO' AND n3.publicado != 'NAO' AND (n3_perfil = '' OR n3_perfil isnull )
+ UNION
+ SELECT r.id_tema AS id_tema,t.codigo_tema AS codigo_tema,t.nome_tema AS nome_tema,t.link_tema AS link_tema,
+ lower(t.ogc_tema) AS ogc_tema,lower(t.download_tema) AS download_tema
+ FROM {$esquemaadmin}i3geoadmin_raiz AS r, {$esquemaadmin}i3geoadmin_temas AS t
+ WHERE r.id_tema = t.id_tema AND (t.ogc_tema != 'NAO' OR t.download_tema != 'NAO')) AS u
+ GROUP BY id_tema,codigo_tema,nome_tema,link_tema,ogc_tema,download_tema
+ ORDER BY lower(u.nome_tema)
+ ";
+ $camadas = pegaDados ( $sqlCamadas, "", false );
+ if ($camadas === false) {
+ header ( "HTTP/1.1 500 erro ao consultar banco de dados" );
+ exit ();
+ }
+
+ retornaJSON ( array("dados"=>"","camadas"=>$camadas) );
+ break;
}
+
cpjson ( $retorno );
?>
diff --git a/ogc/index.js b/ogc/index.js
index 0b9add2..1e3ac3e 100755
--- a/ogc/index.js
+++ b/ogc/index.js
@@ -64,5 +64,103 @@ Lista de menus
},
proximoNivel: function(id,nome){
window.location.href = "menu/index.php?id_menu=" + id + "&nome_menu=" + nome;
+ },
+ mostraLinksServico: function(codigo_tema){
+ $(".modal-body").html('Aguarde');
+ var html;
+ tradLinks["tema"] = codigo_tema;
+ html = Mustache.to_html(
+ $("#templateLinksOgc").html(),
+ tradLinks
+ );
+ $(".modal-body").html(html);
+ },
+ mostraLinksDownload: function(codigo_tema){
+ $(".modal-body").html('Aguarde');
+ tradLinks["tema"] = codigo_tema;
+ $.post(
+ "../classesphp/mapa_controle.php",
+ "map_file=&funcao=download3&tema="+codigo_tema
+ )
+ .done(
+ function(data, status){
+ var retorno = jQuery.parseJSON(data).data;
+ var html,arqs,i,n,ins = "";
+ tradLinks["mapfile"] = window.location.protocol + "//" + window.location.host + "/" + retorno.mapfileurl;
+ tradLinks["sldurl"] = tradLinks["urli3geo"] + "/ferramentas/legenda/exec.php?funcao=TEMA2SLD&tema=" + retorno.tema + "&map_file=" + retorno.mapfile;
+ arqs = retorno.arquivos.split(",");
+ n = arqs.length;
+ for (i=0; i