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 | 15 | en : "", |
| 16 | 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 | 20 | en : "", |
| 21 | 21 | es : "" |
| 22 | 22 | } ], | ... | ... |
ferramentas/download/index.js
| ... | ... | @@ -104,23 +104,30 @@ i3GEOF.download = { |
| 104 | 104 | else{ |
| 105 | 105 | mostraDownload = function(retorno){ |
| 106 | 106 | var ins = "", |
| 107 | - arqs,n,arq; | |
| 107 | + arqs,n,arq, temp; | |
| 108 | 108 | if (retorno.data != undefined){ |
| 109 | 109 | retorno = retorno.data; |
| 110 | 110 | arqs = retorno.arquivos.split(","); |
| 111 | 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 | 115 | else{ |
| 115 | 116 | for (arq=0;arq<n;arq++){ |
| 116 | 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 | 131 | $i("i3GEOdownloadResultado").innerHTML = ins; |
| 125 | 132 | i3GEOF.download.aguarde.visibility = "hidden"; |
| 126 | 133 | }; |
| ... | ... | @@ -153,7 +160,7 @@ i3GEOF.download = { |
| 153 | 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 | 161 | janela = i3GEO.janela.cria( |
| 155 | 162 | "300px", |
| 156 | - "150px", | |
| 163 | + "200px", | |
| 157 | 164 | "", |
| 158 | 165 | "", |
| 159 | 166 | "", | ... | ... |