Commit 9afb75f18b87637e45b733554a137305711d73e3

Authored by Edmar Moretti
1 parent 7134fdec
Exists in master

Ajustes no layout da ferramenta de upload de símbolos e no menu do sistema de administração

admin/menu.html
@@ -131,26 +131,26 @@ @@ -131,26 +131,26 @@
131 131
132 } 132 }
133 ]},{ 133 ]},{
134 - html: "Enviar arquivo para o servidor",  
135 - type: "html",  
136 - children:[  
137 - {  
138 - html: "<a href='html/subirshapefile.html' target='principal'>Shape file</a>",  
139 - type: "html",  
140 - enableHighlight: false,  
141 -  
142 - },{  
143 - html: "<a href='html/estat_editor.html' target='principal'>Gerenciador de tabelas de dados estat&iacute;sticos (upload de SHP e CSV)</a>",  
144 - type: "html",  
145 - enableHighlight: false,  
146 -  
147 - },{  
148 - html: "<a href='html/subirsimbolo.html' target='principal'>Upload de imagem para uso como s&iacute;mbolo</a>",  
149 - type: "html",  
150 - enableHighlight: false,  
151 -  
152 - }  
153 - ]},{ 134 + html: "Enviar arquivo para o servidor",
  135 + type: "html",
  136 + children:[
  137 + {
  138 + html: "<a href='html/subirshapefile.html' target='principal'>Upload de arquivo Shape file</a>",
  139 + type: "html",
  140 + enableHighlight: false,
  141 +
  142 + },{
  143 + html: "<a href='html/estat_editor.html' target='principal'>Gerenciador de banco de dados (upload/inser&ccedil;&atilde;o de SHP e CSV)</a>",
  144 + type: "html",
  145 + enableHighlight: false,
  146 +
  147 + },{
  148 + html: "<a href='html/subirsimbolo.html' target='principal'>Upload de imagem para uso como s&iacute;mbolo</a>",
  149 + type: "html",
  150 + enableHighlight: false,
  151 +
  152 + }
  153 + ]},{
154 html: "Editor de mapfiles", 154 html: "Editor de mapfiles",
155 type: "html", 155 type: "html",
156 children:[ 156 children:[
ferramentas/uploadsimbolo/dicionario.js
1 //+$trad(1,i3GEOF.uploadsimbolo.dicionario)+ 1 //+$trad(1,i3GEOF.uploadsimbolo.dicionario)+
2 i3GEOF.uploadsimbolo.dicionario = { 2 i3GEOF.uploadsimbolo.dicionario = {
3 'pastaArmazenamento' : [ { 3 'pastaArmazenamento' : [ {
4 - pt : "pasta no servidor onde os dados<br>ser&atilde;o armazenados (opcional)", 4 + pt : "Pasta no servidor onde os dados ser&atilde;o armazenados (opcional - deixe em branco para usar a pasta i3geo/symbols/images). A pasta deve ter permiss&otilde;es adequadas para permitir o upload, consulte o administrador do sistema caso ocorra algum problema",
5 en : "", 5 en : "",
6 es : "" 6 es : ""
7 } ], 7 } ],
@@ -15,8 +15,8 @@ i3GEOF.uploadsimbolo.dicionario = { @@ -15,8 +15,8 @@ i3GEOF.uploadsimbolo.dicionario = {
15 en : "", 15 en : "",
16 es : "" 16 es : ""
17 } ], 17 } ],
18 - 10 : [ {  
19 - pt : "", 18 + "escolha" : [ {
  19 + pt : "Selecione o arquivo PNG ou JPG",
20 en : "", 20 en : "",
21 es : "" 21 es : ""
22 } ] 22 } ]
ferramentas/uploadsimbolo/index.js
@@ -32,6 +32,7 @@ Free Software Foundation, Inc., no endere&amp;ccedil;o @@ -32,6 +32,7 @@ Free Software Foundation, Inc., no endere&amp;ccedil;o
32 if(typeof(i3GEOF) === 'undefined'){ 32 if(typeof(i3GEOF) === 'undefined'){
33 var i3GEOF = {}; 33 var i3GEOF = {};
34 } 34 }
  35 +//TODO incluir icone de upload no botao de enviar
35 /* 36 /*
36 Classe: i3GEOF.uploadsimbolo 37 Classe: i3GEOF.uploadsimbolo
37 */ 38 */
@@ -98,7 +99,7 @@ i3GEOF.uploadsimbolo = { @@ -98,7 +99,7 @@ i3GEOF.uploadsimbolo = {
98 */ 99 */
99 html:function(){ 100 html:function(){
100 var ins = '<form id=i3GEOuploadsimbolof target="i3GEOuploadsimboloiframe" action="'+i3GEO.configura.locaplic+'/ferramentas/uploadsimbolo/upload.php" method="post" ENCTYPE="multipart/form-data">' + 101 var ins = '<form id=i3GEOuploadsimbolof target="i3GEOuploadsimboloiframe" action="'+i3GEO.configura.locaplic+'/ferramentas/uploadsimbolo/upload.php" method="post" ENCTYPE="multipart/form-data">' +
101 - '<p class="paragrafo" >PNG/JPG: <br><input type="file" size=22 name="i3GEOuploadsimboloarq" style="top:0px;left:0px;cursor:pointer;"></p>'; 102 + '<p class="paragrafo" >'+$trad('escolha',i3GEOF.uploadsimbolo.dicionario)+': <br><br><input type="file" size=42 name="i3GEOuploadsimboloarq" style="top:0px;left:0px;cursor:pointer;"></p>';
102 if(i3GEO.parametros.editor === "sim"){ 103 if(i3GEO.parametros.editor === "sim"){
103 ins += '<p class="paragrafo" >'+$trad('pastaArmazenamento',i3GEOF.uploadsimbolo.dicionario)+':</p><div class="i3geoForm i3geoFormIconeEdita" ><input class=digitar type="text" name="dirDestino" id="dirDestino" ></div>'; 104 ins += '<p class="paragrafo" >'+$trad('pastaArmazenamento',i3GEOF.uploadsimbolo.dicionario)+':</p><div class="i3geoForm i3geoFormIconeEdita" ><input class=digitar type="text" name="dirDestino" id="dirDestino" ></div>';
104 //ins += "<img onclick='i3GEOF.uploadsimbolo.selNavegador(\"dirDestino\")' src='"+limg+"' style='cursor:pointer;position :relative;top:2px'/></p>"; 105 //ins += "<img onclick='i3GEOF.uploadsimbolo.selNavegador(\"dirDestino\")' src='"+limg+"' style='cursor:pointer;position :relative;top:2px'/></p>";