Commit 97b3e048f68bcb27d8f203dc3d05f8e15a5b5fc5
1 parent
be91fd97
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
39 additions
and
38 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/js/editormapfile.js
| ... | ... | @@ -350,7 +350,7 @@ function montaTextoTemaMapfile(mapfile){ |
| 350 | 350 | } |
| 351 | 351 | conteudo += " <img style="+i+";width:20px; onclick=\"javascript:window.open('../../interface/black_editor.php?&temaEdicao="+mapfile.codigo+"')\" title='"+ $trad("editarI3geo",i3GEOadmin.core.dicionario) +"' src=\"../imagens/i3geo2editor.jpg\" />"; |
| 352 | 352 | conteudo += " <img style="+i+";width:20px; onclick=\"javascript:window.open('../../ms_criamapa.php?temasa="+mapfile.codigo+"&layers="+mapfile.codigo+"')\" title='"+ $trad("testarI3geo",i3GEOadmin.core.dicionario) +"' src=\"../imagens/i3geo2.jpg\" />"; |
| 353 | - conteudo += "<b> "+mapfile.codigo+"</b> <span class=iconeEditar title='"+$trad("editarNome",i3GEOadmin.core.dicionario)+"' onclick='alteraNomeTema(this)' style=cursor:pointer;color:gray id='idNome_"+mapfile.codigo+"'>"+mapfile.nome+"</span>"; | |
| 353 | + conteudo += "<b> "+mapfile.codigo+"</b> <span class=iconeEditar title='"+$trad("editarNome",i3GEOadmin.core.dicionario)+"' onclick='alteraNomeTema(this,\""+mapfile.codigo+"\")' style=cursor:pointer;color:gray id='idNome_"+mapfile.codigo+"'>"+mapfile.nome+"</span>"; | |
| 354 | 354 | conteudo += "<br><img src=''style='display:none;' id='testeRapido"+mapfile.codigo+"' />"; |
| 355 | 355 | if(mapfile.imagem != "" && $i("mostraMini").checked == true){ |
| 356 | 356 | conteudo += "</b><br><img src='../../temas/miniaturas/"+mapfile.imagem+"'/>"; |
| ... | ... | @@ -659,9 +659,9 @@ function clonarMapfile(codigoMap) |
| 659 | 659 | var largura = "300"; |
| 660 | 660 | core_dialogoPergunta(handleYes,handleNo,mensagem,largura); |
| 661 | 661 | } |
| 662 | -function alteraNomeTema(obj){ | |
| 662 | +function alteraNomeTema(obj,codigoMap){ | |
| 663 | 663 | var handleYes, handleNo, codigoMap, mensagem, largura = "300"; |
| 664 | - codigoMap = obj.id.replace("idNome_",""); | |
| 664 | + | |
| 665 | 665 | mensagem = ""+ $trad("novoTitulo",i3GEOadmin.core.dicionario) +"<br><input size=30 type=text value='"+obj.innerHTML+"' id=mudarNomePara />"; |
| 666 | 666 | handleNo = function(){ |
| 667 | 667 | this.hide(); | ... | ... |
temas/_lbairros.map
| 1 | -MAP | |
| 2 | - FONTSET "/var/www/i3geo/symbols/fontes.txt" | |
| 3 | - SYMBOLSET "/var/www/i3geo/symbols/simbolosv6.sym" | |
| 4 | - LAYER | |
| 5 | - CONNECTION "user=postgres password=postgres dbname=i3geosaude host=localhost port=5432" | |
| 6 | - CONNECTIONTYPE POSTGIS | |
| 7 | - DATA "the_geom from (select gid, st_setsrid(the_geom,4326) as the_geom,co_bairro,no_bairro,no_distr,no_municip from i3geo_metaestat.bairros /*FW*//*FW*/) as foo using unique co_bairro using srid=4326" | |
| 8 | - METADATA | |
| 9 | - "TIP" "no_bairro" | |
| 10 | - "cache" "SIM" | |
| 11 | - "CLASSE" "SIM" | |
| 12 | - "ITENSDESC" "id,Código bairro,Nome,Distrito,Município" | |
| 13 | - "EDITAVEL" "SIM" | |
| 14 | - "ESQUEMATABELAEDITAVEL" "i3geo_metaestat" | |
| 15 | - "ITENS" "gid,co_bairro,no_bairro,no_distr,no_municip" | |
| 16 | - "TEMA" "Bairro via mapfile" | |
| 17 | - "COLUNAIDUNICO" "gid" | |
| 18 | - "COLUNAGEOMETRIA" "the_geom" | |
| 19 | - "TABELAEDITAVEL" "bairros" | |
| 20 | - END # METADATA | |
| 21 | - NAME "_lbairros" | |
| 22 | - STATUS DEFAULT | |
| 23 | - TEMPLATE "none.htm" | |
| 24 | - TYPE POLYGON | |
| 25 | - UNITS METERS | |
| 26 | - CLASS | |
| 27 | - NAME "" | |
| 28 | - STYLE | |
| 29 | - OUTLINECOLOR 255 100 0 | |
| 30 | - END # STYLE | |
| 31 | - END # CLASS | |
| 32 | - END # LAYER | |
| 33 | - | |
| 34 | -END # MAP | |
| 35 | - | |
| 1 | +MAP | |
| 2 | + FONTSET "/var/www/i3geo/symbols/fontes.txt" | |
| 3 | + SYMBOLSET "/var/www/i3geo/symbols/simbolosv6.sym" | |
| 4 | + LAYER | |
| 5 | + CONNECTION "user=postgres password=postgres dbname=i3geosaude host=localhost port=5432" | |
| 6 | + CONNECTIONTYPE POSTGIS | |
| 7 | + DATA "the_geom from (select gid, st_setsrid(the_geom,4326) as the_geom,co_bairro,no_bairro,no_distr,no_municip from i3geo_metaestat.bairros /*FW*//*FW*/) as foo using unique co_bairro using srid=4326" | |
| 8 | + METADATA | |
| 9 | + "TIP" "no_bairro" | |
| 10 | + "cache" "SIM" | |
| 11 | + "CLASSE" "SIM" | |
| 12 | + "ITENSDESC" "id,Código bairro,Nome,Distrito,Município" | |
| 13 | + "EDITAVEL" "SIM" | |
| 14 | + "ESQUEMATABELAEDITAVEL" "i3geo_metaestat" | |
| 15 | + "ITENS" "gid,co_bairro,no_bairro,no_distr,no_municip" | |
| 16 | + "TEMA" "_Bairros POSTGIS" | |
| 17 | + "COLUNAIDUNICO" "gid" | |
| 18 | + "COLUNAGEOMETRIA" "the_geom" | |
| 19 | + "TABELAEDITAVEL" "bairros" | |
| 20 | + END # METADATA | |
| 21 | + NAME "_lbairros" | |
| 22 | + STATUS DEFAULT | |
| 23 | + TEMPLATE "none.htm" | |
| 24 | + TILEITEM "location" | |
| 25 | + TYPE POLYGON | |
| 26 | + UNITS METERS | |
| 27 | + CLASS | |
| 28 | + NAME "" | |
| 29 | + STYLE | |
| 30 | + OUTLINECOLOR 255 100 0 | |
| 31 | + END # STYLE | |
| 32 | + END # CLASS | |
| 33 | + END # LAYER | |
| 34 | + | |
| 35 | +END # MAP | |
| 36 | + | ... | ... |