Commit 5cf2654203c3afd66395232327a2d1d301364192
1 parent
8aa2d9e4
Exists in
master
Inclusão de novos botões no editor da árvore de camadas
Showing
4 changed files
with
22 additions
and
10 deletions
Show diff stats
726 Bytes
606 Bytes
admin/js/arvore.js
| ... | ... | @@ -363,20 +363,32 @@ function montaTemas(idmenu,no,dados,redesenha) |
| 363 | 363 | } |
| 364 | 364 | if(redesenha){tree.draw();} |
| 365 | 365 | } |
| 366 | +function testarMapfile(codigoMap){ | |
| 367 | + window.open("../../testamapfile.php?map="+codigoMap); | |
| 368 | +} | |
| 366 | 369 | function montaConteudoNo(id,publicado,nome,tipo,tema){ |
| 367 | 370 | var complemento = "", cor = "", conteudo = " <img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"sobeDesce('sobe','"+tipo+"','"+id+"')\" title=sobe src=\"../imagens/34.png\" />"; |
| 368 | 371 | conteudo += " <img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"sobeDesce('desce','"+tipo+"','"+id+"')\" title=desce src=\"../imagens/33.png\" />"; |
| 369 | 372 | conteudo += " <img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"excluir('"+tipo+"','"+id+"')\" title=excluir width='10px' heigth='10px' src=\"../imagens/01.png\" />"; |
| 370 | - conteudo += " <img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"editar('"+tipo+"','"+id+"')\" title=editar width='10px' heigth='10px' src=\"../imagens/06.png\" /> "; | |
| 371 | - if(publicado == "NAO") | |
| 372 | - {cor = "style='color:red'";} | |
| 373 | + conteudo += " <img style=\"position:relative;cursor:pointer;top:0px\" onclick=\"editar('"+tipo+"','"+id+"')\" title=editar width='10px' heigth='10px' src=\"../imagens/06.png\" />"; | |
| 374 | + if(tipo === "tema"){ | |
| 375 | + conteudo += " <img style=\"position:relative;cursor:pointer;top:0px;width:10px;\" onclick=\"testarMapfile('"+tema+".map')\" title='testar!' src=\"../imagens/41.png\" />"; | |
| 376 | + conteudo += "<a style='margin-left:2px;border:solid white 0px;text-decoration:none;' href='../php/editortexto.php?mapfile="+tema+"' target=_self > <img title='Editor de textos' style=\"border:0px solid white;width:12px;position:relative;cursor:pointer;top:2px\" src=\"../imagens/document-edit.png\" /></a>"; | |
| 377 | + | |
| 378 | + } | |
| 379 | + conteudo += " "; | |
| 380 | + if(publicado == "NAO"){ | |
| 381 | + cor = "style='color:red'"; | |
| 382 | + } | |
| 373 | 383 | if(tema && tema != undefined && tema != ""){ |
| 374 | 384 | complemento = " tema: "+tema; |
| 375 | 385 | } |
| 376 | - if(nome) | |
| 377 | - conteudo += "<span "+cor+" >"+nome+"<span style='color:gray'> id: "+id+complemento+"</span></span>"; | |
| 378 | - else | |
| 379 | - conteudo += "<span "+cor+" > ??? vc precisa editar esse nó</span>"; | |
| 386 | + if(nome){ | |
| 387 | + conteudo += "<span "+cor+" >"+nome+"<span style='color:gray'> id: "+id+complemento+"</span></span>"; | |
| 388 | + } | |
| 389 | + else { | |
| 390 | + conteudo += "<span "+cor+" > ??? vc precisa editar esse nó</span>"; | |
| 391 | + } | |
| 380 | 392 | return conteudo; |
| 381 | 393 | } |
| 382 | 394 | function montaTemasRaiz(no,dados,redesenha) | ... | ... |
admin/js/editormapfile.js
| ... | ... | @@ -323,7 +323,7 @@ function montaTextoTemaMapfile(mapfile){ |
| 323 | 323 | conteudo += "<b>("+mapfile.extensao+") </b>"; |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | - i = "margin-left:2px;width:12px;position:relative;cursor:pointer;top:2px"; | |
| 326 | + i = "margin-left:2px;width:13px;position:relative;cursor:pointer;top:2px"; | |
| 327 | 327 | conteudo += " <img style="+i+" onclick=\"excluirMapfile('"+mapfile.codigo+"')\" title=excluir src=\"../imagens/01.png\" />"; |
| 328 | 328 | conteudo += " <img style="+i+" onclick=\"filtraLetra('"+mapfile.codigo+"')\" title='filtrar lista' src=\"../imagens/view-filter.png\" />"; |
| 329 | 329 | if(i3GEO.util.in_array(mapfile.codigo,favoritosArray)){ |
| ... | ... | @@ -336,9 +336,9 @@ function montaTextoTemaMapfile(mapfile){ |
| 336 | 336 | conteudo += " <img style="+i+" onclick=\"clonarMapfile('"+mapfile.codigo+"')\" title='cria uma copia' src=\"../imagens/clonar.png\" />"; |
| 337 | 337 | } |
| 338 | 338 | conteudo += " <img style="+i+" onclick=\"limparCacheMapfile('"+mapfile.codigo+"')\" title='limpa o cache de imagens se houver' src=\"../imagens/limparcache.png\" />"; |
| 339 | - conteudo += " <img style="+i+" onclick=\"editorTemaMapfile('"+mapfile.codigo+"')\" title='editar tema associado' src=\"../imagens/03.png\" />"; | |
| 339 | + conteudo += " <img style="+i+" onclick=\"editorTemaMapfile('"+mapfile.codigo+"')\" title='editar tema associado' src=\"../imagens/text-frame-link.png\" />"; | |
| 340 | 340 | if(iconePlus){ |
| 341 | - conteudo += "<a style='margin-left:2px;border:solid white 0px;text-decoration:none;' href='../php/editortexto.php?mapfile="+mapfile.codigo+"' target=_self > <img title='Editor de textos' style=\"border:0px solid white;width:12px;position:relative;cursor:pointer;top:2px\" src=\"../imagens/06.png\" /></a>"; | |
| 341 | + conteudo += "<a style='margin-left:2px;border:solid white 0px;text-decoration:none;' href='../php/editortexto.php?mapfile="+mapfile.codigo+"' target=_self > <img title='Editor de textos' style=\"border:0px solid white;width:12px;position:relative;cursor:pointer;top:2px\" src=\"../imagens/document-edit.png\" /></a>"; | |
| 342 | 342 | } |
| 343 | 343 | //opcao de download se for gvsig |
| 344 | 344 | if(mapfile.extensao === "gvp"){ | ... | ... |