Commit 1649d82c31250c396c8dc794aaa9cae5573ecd04
1 parent
e6e24cdd
Exists in
master
and in
7 other branches
Ajustes no layout do editor de textos de mapfile
Showing
3 changed files
with
16 additions
and
20 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/js/editormapfile.js
@@ -29,7 +29,6 @@ Arquivo: | @@ -29,7 +29,6 @@ Arquivo: | ||
29 | 29 | ||
30 | i3geo/admin/js/editormapfile.js | 30 | i3geo/admin/js/editormapfile.js |
31 | */ | 31 | */ |
32 | -//XODO reposicionar os botoes de salvar, voltar, etc | ||
33 | contaN = 0; | 32 | contaN = 0; |
34 | objcontype = [ | 33 | objcontype = [ |
35 | {texto:"MS_INLINE",valor:"0"}, | 34 | {texto:"MS_INLINE",valor:"0"}, |
admin/php/editortexto.php
@@ -12,21 +12,20 @@ body { | @@ -12,21 +12,20 @@ body { | ||
12 | </style> | 12 | </style> |
13 | <link rel="stylesheet" type="text/css" href="../html/admin.css"> | 13 | <link rel="stylesheet" type="text/css" href="../html/admin.css"> |
14 | </head> | 14 | </head> |
15 | -<body class=" yui-skin-sam fundoPonto"> | ||
16 | - <div class="bordaSuperior"> </div> | ||
17 | - <div class="mascaraPrincipal" id="divGeral" style="width: 100%;max-width:95%"> | ||
18 | - <div id=cabecalhoPrincipal></div> | 15 | +<body class=" yui-skin-sam "> |
16 | + <div class="" id="divGeral" style="width: 100%;"> | ||
19 | <h1>Editor de mapfiles</h1> | 17 | <h1>Editor de mapfiles</h1> |
20 | - <a href="http://mapserver.org/mapfile/index.html#mapfile" | ||
21 | - target="_new">Documentação do Mapserver</a><br> <br> <a | ||
22 | - href="../html/editormapfile.html" target="_self">Voltar</a><br> <br> | 18 | + Mais detalhes sobre a edição de mapfiles: <a href="http://mapserver.org/mapfile/index.html#mapfile" target="_new">Documentação do Mapserver</a> |
19 | + <br><br> | ||
20 | + <input type=button value="<--- Voltar" onclick="window.history.back()" /> | ||
21 | + <br> <br> Mapfile em edição: | ||
22 | + <div id="comboMapfiles" style="width: 100%; max-width: 450px">Aguarde...</div> | ||
23 | + <br><br> | ||
23 | <form style="width: 98%;" action="editortexto.php?mapfile=<?php echo $_GET["mapfile"];?>" method=post> | 24 | <form style="width: 98%;" action="editortexto.php?mapfile=<?php echo $_GET["mapfile"];?>" method=post> |
24 | - <input type=submit value="Salvar (também atualiza o mapa)" /><input type=button value="Testar" | ||
25 | - onclick="testar()" /><input type=button value="Testar no i3Geo" | ||
26 | - onclick="abrirI3geo()" /> (Salve antes de testar)<br> <br> | ||
27 | - <div id="letras" style="width: 100%;max-width:750px"></div> | ||
28 | - <div id="comboMapfiles" style="width: 100%;max-width:450px">Aguarde...</div> | ||
29 | - <br> | 25 | + <input type=submit value="Salvar (também atualiza o mapa)" /> |
26 | + <input type=button value="Testar" onclick="testar()" /> | ||
27 | + <input type=button value="Testar no i3Geo" onclick="abrirI3geo()" /> | ||
28 | + (Salve antes de testar)<br> <br> | ||
30 | <?php | 29 | <?php |
31 | //evita erros removendo caracteres PHP | 30 | //evita erros removendo caracteres PHP |
32 | if(isset($_POST["texto"])){ | 31 | if(isset($_POST["texto"])){ |
@@ -61,16 +60,14 @@ body { | @@ -61,16 +60,14 @@ body { | ||
61 | } | 60 | } |
62 | fclose($fp); | 61 | fclose($fp); |
63 | } | 62 | } |
64 | - echo 'RGB: <input type=text value="clique" size=10 id="corrgb" onclick="i3GEO.util.abreCor(\'\',\'corrgb\',\'rgbSep\')" /><br><br>'; | ||
65 | - echo "<i>Você pode usar símbolos em linha, veja exemplo no mapfile _llocali</i>"; | ||
66 | - echo "<br>Edite:<br>"; | ||
67 | - echo "<TEXTAREA name=texto cols=100 rows=20 style='width:500px;float:left;height:500px'>"; | 63 | + echo 'Ajudante de cores RGB: <input type=text value="clique" size=10 id="corrgb" onclick="i3GEO.util.abreCor(\'\',\'corrgb\',\'rgbSep\')" /><br><br>'; |
64 | + echo "<div style='width:2000px;' ><TEXTAREA name=texto cols=100 rows=20 style='width:500px;float:left;height:500px'>"; | ||
68 | echo file_get_contents($mapfile); | 65 | echo file_get_contents($mapfile); |
69 | echo "</TEXTAREA>"; | 66 | echo "</TEXTAREA>"; |
70 | $mapfile = str_replace("\\","/",$mapfile); | 67 | $mapfile = str_replace("\\","/",$mapfile); |
71 | 68 | ||
72 | echo "<iframe id='mapaPreview' src='../../mashups/openlayers.php?nocache=sim&DESLIGACACHE=sim&controles=navigation,panzoombar,scaleline,mouseposition&botoes=identifica&largura=480&fundo=".$mapfile."&temas=".$mapfile."' cols=100 rows=20 style='position:relative;top:2px;overflow:hidden;width:500px;height:500px;border:1px solid gray;'>"; | 69 | echo "<iframe id='mapaPreview' src='../../mashups/openlayers.php?nocache=sim&DESLIGACACHE=sim&controles=navigation,panzoombar,scaleline,mouseposition&botoes=identifica&largura=480&fundo=".$mapfile."&temas=".$mapfile."' cols=100 rows=20 style='position:relative;top:2px;overflow:hidden;width:500px;height:500px;border:1px solid gray;'>"; |
73 | - echo "</iframe>"; | 70 | + echo "</iframe></div>"; |
74 | echo "<input type=hidden name=tipo value=gravar />"; | 71 | echo "<input type=hidden name=tipo value=gravar />"; |
75 | 72 | ||
76 | if(!@ms_newMapObj($mapfile)){ | 73 | if(!@ms_newMapObj($mapfile)){ |
@@ -99,7 +96,7 @@ body { | @@ -99,7 +96,7 @@ body { | ||
99 | i3GEO.configura = {locaplic: "../../"}; | 96 | i3GEO.configura = {locaplic: "../../"}; |
100 | 97 | ||
101 | ins = "<p><div id=filtroDeLetras ></div><br>"; | 98 | ins = "<p><div id=filtroDeLetras ></div><br>"; |
102 | -document.getElementById("letras").innerHTML = ins; | 99 | +//document.getElementById("letras").innerHTML = ins; |
103 | core_listaDeLetras("filtroDeLetras","filtraLetra"); | 100 | core_listaDeLetras("filtroDeLetras","filtraLetra"); |
104 | if(i3GEO.util.pegaCookie("I3GEOletraAdmin")) { | 101 | if(i3GEO.util.pegaCookie("I3GEOletraAdmin")) { |
105 | letraAtual = i3GEO.util.pegaCookie("I3GEOletraAdmin"); | 102 | letraAtual = i3GEO.util.pegaCookie("I3GEOletraAdmin"); |