+
Loading...
@@ -77,6 +84,11 @@ include (ONDEI3GEO."/init/head.php");
tradLinks["urli3geo"] = window.location.href.split("/ogc")[0];
tradLinks["mapext"] = "";
+ //traducoes de alguns elementos individualmente
+ $("#titulo").html(
+ $trad("txtDesc",ogc.dicionario)
+ );
+
var html = Mustache.to_html(
$("#menuTpl").html(),
tradLinks
diff --git a/ogc/old/index.js b/ogc/old/index.js
deleted file mode 100755
index 6de5e30..0000000
--- a/ogc/old/index.js
+++ /dev/null
@@ -1,338 +0,0 @@
-function listaDoNivelMenu(templateMenus,templateGrupos,templateSubGrupos,templateCamadas){
- var r = function(retorno) {
- var menus = retorno.data,
- nmenus = menus.length, i = 0, s = [], camadasRaiz, dataMenu, htmlMenus, grupos, temp;
- for(i=0; i
---" +
- Mustache.to_html(
- "{{#grupos}}" + $("#templateFiltroGrupo").html() + "{{/grupos}}",
- {"grupos":g}
- )
- );
- //monta a lista de grupos
- if(g){
- htmlGrupos = Mustache.to_html(
- "{{#grupos}}" + templateGrupos + "{{/grupos}}",
- {"grupos":g}
- );
-
- }
- $("#gruposMenu"+retorno.data.idmenu).html(htmlGrupos);
- //monta os subgrupos
- for (i = 0; i < c; i++) {
- subgrupos = gr[i].subgrupos;
- id_n1 = gr[i]["id_n1"];
- nsubgrupos = subgrupos.length;
- j = 0;
- for( j = 0; j < nsubgrupos; j++){
- subgrupos[j]["id_n1"] = id_n1;
- subgrupos[j]["idmenu"] = retorno.data.idmenu;
- }
- htmlSubGrupos = Mustache.to_html(
- "{{#s}}" + templateSubGrupos + "{{/s}}",
- {"s":subgrupos}
- );
- if(id_n1){
- $("#subGruposGrupo"+id_n1).html(htmlSubGrupos);
- }
- }
- }
- };
- i3GEO.php.pegalistadegrupos(grupos, menus[i]["idmenu"], "sim", "sim", "sim", "sim");
- }
- };
- i3GEO.php.pegalistademenus(r,"sim","sim");
-}
-function listaCamadasSubgrupo(idmenu,id_n1,id_n2){
- //console.info(id_n2)
- var corpo = $("#corpoSubGrupo"+id_n2),
- camadas;
- if(corpo.html().trim()+"x" == "x"){
- corpo.html('Aguarde
');
-
- }
- var r = function(retorno){
- camadas = ckCamada(retorno.data.temas,$("#templateCamadas").html(),"tema");
- corpo.html('' + camadas + "
");
- }
- i3GEO.php.pegalistadetemas(r, idmenu, id_n1, id_n2);
-}
-function listaMetaestat (onde,templateCamadas){
- if(onde.html()){
- var r, p;
- r = function(d){
- var html = "", n, camadas = [], i, t;
- n = d.length;
- if(n > 0){
- for(i=0; i 0){
- for(i=0; i'+html+' ';
- }
- else{
- return "";
- }
-}
-function mostraLinksServico(tema,tipo,disabled){
- $(".modal-body").html('
Aguarde ');
- var html;
- if(disabled != ""){
- $(".modal-body").html = "";
- return;
- }
- else{
- if(tipo == "meta"){
- tradLinks["tema"] = "metaestat_"+tema;
- tradLinks["id_medida_variavel"] = "&id_medida_variavel="+tema;
- }
- if(tipo == "mapa"){
- tradLinks["tema"] = "mapa_cadastrado_"+tema;
- tradLinks["id_medida_variavel"] = "&mapa_cadastrado="+tema;
- }
- if(tipo == "tema"){
- tradLinks["tema"] = tema;
- }
- html = Mustache.to_html(
- $("#templateLinksOgc").html(),
- tradLinks
- );
- $(".modal-body").html(html);
- }
-
-}
-function mostraLinksDownload(tema,tipo,disabled){
- $(".modal-body").html('
Aguarde ');
- var html, r, p;
- if(disabled != ""){
- return;
- }
- else{
- r = function(retorno){
- var html,arqs,i,n,ins = "";
- retorno = retorno.data;
- //adiciona no hash os dados necessarios
- if(tipo == "meta"){
- tradLinks["tema"] = "metaestat_" + tema;
- tradLinks["id_medida_variavel"] = "&id_medida_variavel=" + tema;
- }
- if(tipo == "tema"){
- tradLinks["tema"] = tema;
- }
- 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
"+arqs[i]+" ";
- }
- tradLinks["shp"] = ins;
-
- html = Mustache.to_html(
- $("#templateLinksDownload").html(),
- tradLinks
- );
- tradLinks["shp"] = "";
- tradLinks["mapfile"] = "";
- tradLinks["sldurl"] = "";
-
- $(".modal-body").html(html);
- }
- //obtem o shapefile e outros dados
- p = "../classesphp/mapa_controle.php?map_file=&funcao=download3&tema="+tema;
- //caso a camada venha do sistema de metadados estatisticos e seja uma variavel
- if(tipo == "meta"){
- p = "../classesphp/mapa_controle.php?map_file=&funcao=download3&id_medida_variavel="+tema;
- }
- cpJSON.call(p, "foo", r);
- }
-}
-function listaCompleta(onde){
- var r, p;
- r = function(retorno){
- var d, html = "", n, camadas = [], i, t;
- d = retorno.data.temas;
- n = d.length;
- if(n > 0){
- for(i=0; iextent->minx . "," . $map->extent->miny . "," . $map->extent->maxx . "," . $map->extent->maxy;
-error_reporting ( 0 );
-include "../init/head.php";
-?>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-