Commit 1649d82c31250c396c8dc794aaa9cae5573ecd04

Authored by Edmar Moretti
1 parent e6e24cdd

Ajustes no layout do editor de textos de mapfile

admin/admin.db
No preview for this file type
admin/js/editormapfile.js
... ... @@ -29,7 +29,6 @@ Arquivo:
29 29  
30 30 i3geo/admin/js/editormapfile.js
31 31 */
32   -//XODO reposicionar os botoes de salvar, voltar, etc
33 32 contaN = 0;
34 33 objcontype = [
35 34 {texto:"MS_INLINE",valor:"0"},
... ...
admin/php/editortexto.php
... ... @@ -12,21 +12,20 @@ body {
12 12 </style>
13 13 <link rel="stylesheet" type="text/css" href="../html/admin.css">
14 14 </head>
15   -<body class=" yui-skin-sam fundoPonto">
16   - <div class="bordaSuperior">&nbsp;</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 17 <h1>Editor de mapfiles</h1>
20   - <a href="http://mapserver.org/mapfile/index.html#mapfile"
21   - target="_new">Documenta&ccedil;&atilde;o do Mapserver</a><br> <br> <a
22   - href="../html/editormapfile.html" target="_self">Voltar</a><br> <br>
  18 + Mais detalhes sobre a edi&ccedil;&atilde;o de mapfiles: <a href="http://mapserver.org/mapfile/index.html#mapfile" target="_new">Documenta&ccedil;&atilde;o do Mapserver</a>
  19 + <br><br>
  20 + <input type=button value="<--- Voltar" onclick="window.history.back()" />
  21 + <br> <br> Mapfile em edi&ccedil;&atilde;o:
  22 + <div id="comboMapfiles" style="width: 100%; max-width: 450px">Aguarde...</div>
  23 + <br><br>
23 24 <form style="width: 98%;" action="editortexto.php?mapfile=<?php echo $_GET["mapfile"];?>" method=post>
24   - <input type=submit value="Salvar (tamb&eacute;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&eacute;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 29 <?php
31 30 //evita erros removendo caracteres PHP
32 31 if(isset($_POST["texto"])){
... ... @@ -61,16 +60,14 @@ body {
61 60 }
62 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&ecirc; pode usar s&iacute;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 65 echo file_get_contents($mapfile);
69 66 echo "</TEXTAREA>";
70 67 $mapfile = str_replace("\\","/",$mapfile);
71 68  
72 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 71 echo "<input type=hidden name=tipo value=gravar />";
75 72  
76 73 if(!@ms_newMapObj($mapfile)){
... ... @@ -99,7 +96,7 @@ body {
99 96 i3GEO.configura = {locaplic: "../../"};
100 97  
101 98 ins = "<p><div id=filtroDeLetras ></div><br>";
102   -document.getElementById("letras").innerHTML = ins;
  99 +//document.getElementById("letras").innerHTML = ins;
103 100 core_listaDeLetras("filtroDeLetras","filtraLetra");
104 101 if(i3GEO.util.pegaCookie("I3GEOletraAdmin")) {
105 102 letraAtual = i3GEO.util.pegaCookie("I3GEOletraAdmin");
... ...