Commit 2917b2deb1150bc0732b70549c1b18587d2de043
1 parent
11d33b42
Exists in
master
and in
7 other branches
correção nos layouts de alguns formulários do sistema de admnistração
Showing
9 changed files
with
65 additions
and
37 deletions
Show diff stats
admin/js/arvore.js
... | ... | @@ -546,7 +546,7 @@ function montaDivTema(i) |
546 | 546 | var ins = "<br>Tema:<br><br>" |
547 | 547 | ins += "<div id=comboTema >Buscando...</div>" |
548 | 548 | ins += "<p>Perfis que podem ver: </p>" |
549 | - ins += "<input size=50 type=text id='En3_perfil' value='"+i.n3_perfil+"' /></p>" | |
549 | + ins += "<input type=text id='En3_perfil' value='"+i.n3_perfil+"' /></p>" | |
550 | 550 | ins += "<div id=comboPerfil >Buscando...</div>"; |
551 | 551 | ins += "<br>Publicado?<br>" |
552 | 552 | ins += "<select id='Epublicado' >" | ... | ... |
admin/js/core.js
... | ... | @@ -501,7 +501,7 @@ function core_comboGrupos(onde,id,marcar,funcao) |
501 | 501 | {var funcao = "";} |
502 | 502 | if (funcao != "") |
503 | 503 | {var funcao = "onchange='"+funcao+"'";} |
504 | - ins = "<select id='"+id+"' "+funcao+" >" | |
504 | + ins = "<select size=6 style='width:370px' id='"+id+"' "+funcao+" >" | |
505 | 505 | ins += core_comboObjeto(valores,"id_grupo","nome_grupo",marcar) |
506 | 506 | ins += "</select></p>" |
507 | 507 | $i(onde).innerHTML = ins; |
... | ... | @@ -542,7 +542,7 @@ function core_comboSubGrupos(onde,id,marcar,funcao) |
542 | 542 | {var funcao = "";} |
543 | 543 | if (funcao != "") |
544 | 544 | {var funcao = "onchange='"+funcao+"'";} |
545 | - ins = "<select id='"+id+"' "+funcao+" >" | |
545 | + ins = "<select size=6 style='width:370px' id='"+id+"' "+funcao+" >" | |
546 | 546 | ins += core_comboObjeto(valores,"id_subgrupo","nome_subgrupo",marcar) |
547 | 547 | ins += "</select></p>" |
548 | 548 | $i(onde).innerHTML = ins; |
... | ... | @@ -583,8 +583,8 @@ function core_comboTemas(onde,id,marcar,funcao) |
583 | 583 | {var funcao = "";} |
584 | 584 | if (funcao != "") |
585 | 585 | {var funcao = "onchange='"+funcao+"'";} |
586 | - ins = "<select id='"+id+"' "+funcao+" >" | |
587 | - ins += core_comboObjeto(valores,"id_tema","nome_tema",marcar) | |
586 | + ins = "<select size=6 style='width:370px' id='"+id+"' "+funcao+" >" | |
587 | + ins += core_comboObjeto(valores,"id_tema","nome_tema",marcar,"codigo_tema") | |
588 | 588 | ins += "</select></p>" |
589 | 589 | $i(onde).innerHTML = ins; |
590 | 590 | } |
... | ... | @@ -755,7 +755,7 @@ Function: core_comboObjeto |
755 | 755 | |
756 | 756 | Retorna os itens option de um combo baseado em um objeto json |
757 | 757 | */ |
758 | -function core_comboObjeto(obj,valor,texto,marcar) | |
758 | +function core_comboObjeto(obj,valor,texto,marcar,texto2) | |
759 | 759 | { |
760 | 760 | var ins = "<option value='' " |
761 | 761 | ins += ">---</option>"; |
... | ... | @@ -769,6 +769,11 @@ function core_comboObjeto(obj,valor,texto,marcar) |
769 | 769 | var t = eval("obj[k]."+texto); |
770 | 770 | else |
771 | 771 | var t = obj[k]; |
772 | + | |
773 | + if(texto2){ | |
774 | + t += " ("+eval("obj[k]."+texto2)+")"; | |
775 | + } | |
776 | + | |
772 | 777 | ins += "<option value='"+v+"' " |
773 | 778 | if (marcar == v){ins += "selected"} |
774 | 779 | ins += ">"+t+"</option>"; | ... | ... |
admin/js/editormapfile.js
... | ... | @@ -110,8 +110,8 @@ function ativaBotaoAdicionaMapfile(idBotao) |
110 | 110 | { |
111 | 111 | var adiciona = function() |
112 | 112 | { |
113 | - core_montaEditor("adicionaNovoMapfile()") | |
114 | - ins = "<p>Título do novo tema: </p>" | |
113 | + core_montaEditor("adicionaNovoMapfile()","450px","660px") | |
114 | + ins = "<p><b>Título do novo tema</b></p>" | |
115 | 115 | ins += "<p>Português: </p>"; |
116 | 116 | ins += "<input size=50 type=text id='Etitulo' value='' /></p>" |
117 | 117 | ins += "<p>Espanhol:: </p>"; | ... | ... |
admin/js/listatemas.js
... | ... | @@ -34,6 +34,12 @@ function montaEditorTema(dados) |
34 | 34 | editorBotoes.on("checkedButtonChange", on_editorCheckBoxChange); |
35 | 35 | YAHOO.example.container.panelEditorTema = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:true,width:"400px", height:"400px",overflow:"auto", visible:false,constraintoviewport:true } ); |
36 | 36 | YAHOO.example.container.panelEditorTema.render(); |
37 | + var fecha = function() | |
38 | + { | |
39 | + YAHOO.example.container.panelEditorTema.destroy(); | |
40 | + YAHOO.example.container.panelEditorTema = null; | |
41 | + } | |
42 | + YAHOO.util.Event.addListener(YAHOO.example.container.panelEditorTema.close, "click", fecha); | |
37 | 43 | } |
38 | 44 | YAHOO.example.container.panelEditorTema.show(); |
39 | 45 | //carrega os dados na janela | ... | ... |
menutemas/admin.db
No preview for this file type
ms_configura.php
temas/biomashp.map
1 | 1 | MAP |
2 | 2 | LAYER |
3 | + CONNECTION "" | |
3 | 4 | DATA "c:\ms4w\apache\htdocs\geodados\brasil\vegetacao\biomas.shp" |
4 | 5 | GROUP "Grupo 1" |
5 | 6 | METADATA |
... | ... | @@ -8,13 +9,14 @@ MAP |
8 | 9 | "permitedownload" "sim" |
9 | 10 | "download" "SIM" |
10 | 11 | "arquivodownload" "C:\ms4w\Apache\htdocs\geodados\brasil\vegetacao\vegetacao.zip" |
11 | - "permiteogc" "" | |
12 | 12 | "permitekml" "sim" |
13 | + "permiteogc" "" | |
13 | 14 | "TEMA" "Biomas shapefile" |
14 | 15 | END |
15 | 16 | NAME "biomashp" |
16 | 17 | STATUS OFF |
17 | 18 | TEMPLATE "none.htm" |
19 | + OPACITY 50 | |
18 | 20 | TYPE POLYGON |
19 | 21 | UNITS METERS |
20 | 22 | CLASS | ... | ... |
temas/geopr_aneel_linhas.map
1 | -MAP | |
2 | - | |
3 | - | |
4 | -SYMBOLSET ../symbols/simbolos.sym | |
5 | -FONTSET "../symbols/fontes.txt" | |
6 | -LAYER | |
1 | +MAP | |
2 | + FONTSET "../symbols/fontes.txt" | |
3 | + SYMBOLSET "../symbols/simbolos.sym" | |
4 | + LAYER | |
7 | 5 | CONNECTION "http://sigel.aneel.gov.br/wmsconnector/com.esri.wms.Esrimap/gsiwms?" |
8 | 6 | CONNECTIONTYPE WMS |
9 | 7 | DATA "" |
10 | - METADATA | |
11 | - "wms_srs" "EPSG:4326" | |
12 | - "wms_exceptions_format" "application/vnd.ogc.se_xml" | |
13 | - "CLASSE" "SIM" | |
14 | - "wfs" "nao" | |
15 | - "TEXTO" "NAO" | |
16 | - "wms_force_separate_request" "1" | |
17 | - "wms_name" "3" | |
18 | - "formatosinfo" "application/vnd.ogc.wms_xml,text/xml,text/html,text/plain" | |
19 | - "legendawms" "http://sigel.aneel.gov.br/wmsconnector/com.esri.wms.Esrimap/gsiwms?&service=wms&request=getlegendgraphic&version=1.1.1&service=wms&layer=3&format=image/png" | |
20 | - "wms_formatlist" "image/png,image/jpeg" | |
21 | - "wms_format" "image/png" | |
22 | - "wms_connectiontimeout" "30" | |
23 | - "TEMA" "Linhas de Transmissão" | |
24 | - "wms_server_version" "1.1.1" | |
25 | - "wms_style" "default" | |
26 | - END | |
8 | + METADATA | |
9 | + "wms_srs" "EPSG:4326" | |
10 | + "wms_exceptions_format" "application/vnd.ogc.se_xml" | |
11 | + "CLASSE" "SIM" | |
12 | + "wfs" "nao" | |
13 | + "wms_force_separate_request" "1" | |
14 | + "TEXTO" "NAO" | |
15 | + "legendawms" "http://sigel.aneel.gov.br/wmsconnector/com.esri.wms.Esrimap/gsiwms?&service=wms&request=getlegendgraphic&version=1.1.1&service=wms&layer=3&format=image/png" | |
16 | + "formatosinfo" "application/vnd.ogc.wms_xml,text/xml,text/html,text/plain" | |
17 | + "wms_name" "3" | |
18 | + "wms_format" "image/png" | |
19 | + "wms_formatlist" "image/png,image/jpeg" | |
20 | + "wms_connectiontimeout" "30" | |
21 | + "TEMA" "Linhas de Transmissão" | |
22 | + "wms_server_version" "1.1.1" | |
23 | + "wms_style" "default" | |
24 | + END | |
27 | 25 | NAME "geopr_aneel_linhas" |
28 | 26 | OFFSITE 255 255 255 |
29 | - SIZEUNITS PIXELS | |
30 | 27 | STATUS DEFAULT |
31 | 28 | TOLERANCE 0 |
32 | - TOLERANCEUNITS PIXELS | |
33 | 29 | TYPE RASTER |
34 | 30 | UNITS METERS |
35 | 31 | CLASS |
36 | 32 | NAME " " |
37 | - METADATA | |
38 | - END | |
39 | 33 | END |
40 | 34 | END |
35 | + | |
41 | 36 | END |
37 | + | ... | ... |
... | ... | @@ -0,0 +1,19 @@ |
1 | +MAP | |
2 | +SYMBOLSET ../symbols/simbolos.sym | |
3 | +FONTSET "../symbols/fontes.txt" | |
4 | +LAYER | |
5 | + NAME teste5 | |
6 | + TYPE line | |
7 | + DATA "" | |
8 | + METADATA | |
9 | + TEMA "teste criando novo mapfile" | |
10 | + CLASSE "SIM" | |
11 | + END | |
12 | + CLASS | |
13 | + NAME "" | |
14 | + STYLE | |
15 | + COLOR 0 0 0 | |
16 | + END | |
17 | + END | |
18 | +END | |
19 | +END | ... | ... |