Commit f9d5991beb2e002906d6bfabc6454b15b0d3da76
1 parent
f2ab1189
Exists in
master
and in
7 other branches
Complementação de opções da ferramenta de download
Showing
2 changed files
with
17 additions
and
10 deletions
Show diff stats
ferramentas/download/dicionario.js
| @@ -15,8 +15,8 @@ i3GEOF.download.dicionario = { | @@ -15,8 +15,8 @@ i3GEOF.download.dicionario = { | ||
| 15 | en : "", | 15 | en : "", |
| 16 | es : "Número de registros" | 16 | es : "Número de registros" |
| 17 | } ], | 17 | } ], |
| 18 | - 4 : [ { | ||
| 19 | - pt : "", | 18 | + 'pagdownload' : [ { |
| 19 | + pt : "Acesse a página de download, que contém mais opções:", | ||
| 20 | en : "", | 20 | en : "", |
| 21 | es : "" | 21 | es : "" |
| 22 | } ], | 22 | } ], |
ferramentas/download/index.js
| @@ -104,23 +104,30 @@ i3GEOF.download = { | @@ -104,23 +104,30 @@ i3GEOF.download = { | ||
| 104 | else{ | 104 | else{ |
| 105 | mostraDownload = function(retorno){ | 105 | mostraDownload = function(retorno){ |
| 106 | var ins = "", | 106 | var ins = "", |
| 107 | - arqs,n,arq; | 107 | + arqs,n,arq, temp; |
| 108 | if (retorno.data != undefined){ | 108 | if (retorno.data != undefined){ |
| 109 | retorno = retorno.data; | 109 | retorno = retorno.data; |
| 110 | arqs = retorno.arquivos.split(","); | 110 | arqs = retorno.arquivos.split(","); |
| 111 | n = arqs.length; | 111 | n = arqs.length; |
| 112 | - if(retorno == "erro") | ||
| 113 | - {ins = "<p style=color:red >"+$trad('erroTema',i3GEOF.download.dicionario)+"<br>";} | 112 | + if(retorno == "erro"){ |
| 113 | + ins = "<p style=color:red >"+$trad('erroTema',i3GEOF.download.dicionario)+"<br>"; | ||
| 114 | + } | ||
| 114 | else{ | 115 | else{ |
| 115 | for (arq=0;arq<n;arq++){ | 116 | for (arq=0;arq<n;arq++){ |
| 116 | ins += "<a href='"+window.location.protocol+"//"+window.location.host+"/"+arqs[arq]+"'>"+arqs[arq]+"</a><br>"; | 117 | ins += "<a href='"+window.location.protocol+"//"+window.location.host+"/"+arqs[arq]+"'>"+arqs[arq]+"</a><br>"; |
| 117 | } | 118 | } |
| 118 | } | 119 | } |
| 119 | - if(retorno.nreg) | ||
| 120 | - {ins += "<br><br>"+$trad('registros',i3GEOF.download.dicionario)+" ="+retorno.nreg;} | 120 | + if(retorno.nreg){ |
| 121 | + ins += "<br><br>"+$trad('registros',i3GEOF.download.dicionario)+" ="+retorno.nreg; | ||
| 122 | + } | ||
| 123 | + ins += "<br><br>"+$trad('pagdownload',i3GEOF.download.dicionario); | ||
| 124 | + temp = i3GEO.configura.locaplic+"/datadownload.htm?tema="+tema+"&temaDownload="+tema; | ||
| 125 | + ins += "<a href='"+temp+"' target=_blank >"+temp+"</a>"; | ||
| 126 | + | ||
| 127 | + } | ||
| 128 | + else{ | ||
| 129 | + ins = "<p style=color:red >"+$trad("x66")+"<br>"; | ||
| 121 | } | 130 | } |
| 122 | - else | ||
| 123 | - {ins = "<p style=color:red >"+$trad("x66")+"<br>";} | ||
| 124 | $i("i3GEOdownloadResultado").innerHTML = ins; | 131 | $i("i3GEOdownloadResultado").innerHTML = ins; |
| 125 | i3GEOF.download.aguarde.visibility = "hidden"; | 132 | i3GEOF.download.aguarde.visibility = "hidden"; |
| 126 | }; | 133 | }; |
| @@ -153,7 +160,7 @@ i3GEOF.download = { | @@ -153,7 +160,7 @@ i3GEOF.download = { | ||
| 153 | titulo = "<div class='i3GeoTituloJanela'>Download<a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=2&idajuda=82' ><b> </b></a></div>"; | 160 | titulo = "<div class='i3GeoTituloJanela'>Download<a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=2&idajuda=82' ><b> </b></a></div>"; |
| 154 | janela = i3GEO.janela.cria( | 161 | janela = i3GEO.janela.cria( |
| 155 | "300px", | 162 | "300px", |
| 156 | - "150px", | 163 | + "200px", |
| 157 | "", | 164 | "", |
| 158 | "", | 165 | "", |
| 159 | "", | 166 | "", |