Commit 9e10ed8aac963c6db334a6c05163b02d6390a7fe
1 parent
b86633e5
Exists in
master
and in
7 other branches
correção na interface datadownload e ogc.htm
Showing
4 changed files
with
21 additions
and
15 deletions
Show diff stats
classesjs/datadownload.js
| @@ -351,18 +351,20 @@ function dataDownloadLinks(rss) | @@ -351,18 +351,20 @@ function dataDownloadLinks(rss) | ||
| 351 | } | 351 | } |
| 352 | var linhas = retorno.data.split("|") | 352 | var linhas = retorno.data.split("|") |
| 353 | var ins = "" | 353 | var ins = "" |
| 354 | - for (var i=0;i<linhas.length; i++) | 354 | + var n = linhas.length; |
| 355 | + if(n == 1){return;} | ||
| 356 | + for (var i=0;i<n; i++) | ||
| 355 | { | 357 | { |
| 356 | var caso = linhas[i].split("#") | 358 | var caso = linhas[i].split("#") |
| 357 | if (i > 0) | 359 | if (i > 0) |
| 358 | { | 360 | { |
| 359 | - ins += "<a style=text-align:left href='"+caso[2]+"' target=blank >"+caso[0]+" ("+caso[3]+")</a>" | 361 | + ins += "<a style=text-align:left href='"+caso[2]+"' target=blank >"+caso[0]+" ("+caso[1]+")</a>" |
| 360 | ins += "<br>" | 362 | ins += "<br>" |
| 361 | } | 363 | } |
| 362 | else | 364 | else |
| 363 | {ins += "<p class=clique ><b>"+caso[0]+"</b> "+caso[1]+" </p>"} | 365 | {ins += "<p class=clique ><b>"+caso[0]+"</b> "+caso[1]+" </p>"} |
| 364 | } | 366 | } |
| 365 | - document.getElementById("RSSl").innerHTML = ins+"<br><br>" | 367 | + document.getElementById("RSSl").innerHTML = ins |
| 366 | } | 368 | } |
| 367 | if (document.getElementById("RSSl")) | 369 | if (document.getElementById("RSSl")) |
| 368 | { | 370 | { |
datadownload.htm
| @@ -13,25 +13,27 @@ P | @@ -13,25 +13,27 @@ P | ||
| 13 | #banner | 13 | #banner |
| 14 | {position:absolute;top:0px;left:0px;} | 14 | {position:absolute;top:0px;left:0px;} |
| 15 | #arvoreTemas | 15 | #arvoreTemas |
| 16 | -{overflow:auto;height:400px;width:270px;left:10px;top:135px;position:absolute;} | 16 | +{width:270px;} |
| 17 | #arvoreDir | 17 | #arvoreDir |
| 18 | -{text-align:left;overflow:auto;height:120px;top:35px;width:280px;left:10px;position:absolute;} | 18 | +{width:280px;} |
| 19 | #corpo | 19 | #corpo |
| 20 | {text-align:left;font-size:12px;width:480px;position:absolute;top:20px;left:285px;background:rgb(250,250,250);} | 20 | {text-align:left;font-size:12px;width:480px;position:absolute;top:20px;left:285px;background:rgb(250,250,250);} |
| 21 | #bandeiras | 21 | #bandeiras |
| 22 | -{width:80px;position:absolute;top:25px;left:2px;} | 22 | +{width:80px;text-align:left;} |
| 23 | </style> | 23 | </style> |
| 24 | </head> | 24 | </head> |
| 25 | <body class="yui-skin-sam" style="background-color:white"> | 25 | <body class="yui-skin-sam" style="background-color:white"> |
| 26 | - | ||
| 27 | <div id=banner ><img src="imagens/barrasuperior_geradordelinks_2006.jpg" width="765" ></div> | 26 | <div id=banner ><img src="imagens/barrasuperior_geradordelinks_2006.jpg" width="765" ></div> |
| 28 | -<div id="bandeiras" ></div> | ||
| 29 | -<!-- aqui vão os links para download --> | ||
| 30 | -<div id=arvoreDir > | ||
| 31 | - <div id=RSSl style="height:100px;overflow:auto;width:230px;text-align:left" ></div> | 27 | +<div id=menu style="position:absolute;left:10px;top:30px;"> |
| 28 | + <div id="bandeiras" ></div> | ||
| 29 | + <br></br> | ||
| 30 | + <div id=arvoreDir > | ||
| 31 | + <div id=RSSl style="width:230px;text-align:left" ></div> | ||
| 32 | + </div> | ||
| 33 | + <br></br> | ||
| 34 | + <!-- aqui vai o menu de opções --> | ||
| 35 | + <div id=arvoreTemas ></div> | ||
| 32 | </div> | 36 | </div> |
| 33 | -<!-- aqui vai o menu de opções --> | ||
| 34 | -<div id=arvoreTemas ></div> | ||
| 35 | <!-- aqui vai o corpo da aplicação --> | 37 | <!-- aqui vai o corpo da aplicação --> |
| 36 | <div id=corpo style="background-color:rgb(250,250,250)"> | 38 | <div id=corpo style="background-color:rgb(250,250,250)"> |
| 37 | <H1>Download de dados geográficos</H1> | 39 | <H1>Download de dados geográficos</H1> |
menutemas/admin.db
No preview for this file type
ogc.htm
| @@ -12,20 +12,22 @@ P | @@ -12,20 +12,22 @@ P | ||
| 12 | #banner | 12 | #banner |
| 13 | {position:absolute;top:0px;left:0px;} | 13 | {position:absolute;top:0px;left:0px;} |
| 14 | #arvoreTemas | 14 | #arvoreTemas |
| 15 | -{overflow:auto;height:400px;width:280px;position:absolute;top:70px;left:10px;} | 15 | +{width:280px;} |
| 16 | #corpo | 16 | #corpo |
| 17 | {text-align:left;font-size:12px;width:425px;position:absolute;top:30px;left:295px;background:rgb(250,250,250);} | 17 | {text-align:left;font-size:12px;width:425px;position:absolute;top:30px;left:295px;background:rgb(250,250,250);} |
| 18 | #bandeiras | 18 | #bandeiras |
| 19 | -{width:80px;position:absolute;top:30px;left:10px;} | 19 | +{width:80px;text-align:left;} |
| 20 | </style> | 20 | </style> |
| 21 | </head> | 21 | </head> |
| 22 | <body class="yui-skin-sam" style="background-color:white"> | 22 | <body class="yui-skin-sam" style="background-color:white"> |
| 23 | <div id=banner ><img src="imagens/barrasuperior_geradordelinks_2006.jpg" width="765" ></div> | 23 | <div id=banner ><img src="imagens/barrasuperior_geradordelinks_2006.jpg" width="765" ></div> |
| 24 | +<div style=position:absolute;left:10px;top:30px; > | ||
| 24 | <div id="bandeiras" ></div> | 25 | <div id="bandeiras" ></div> |
| 25 | <br> | 26 | <br> |
| 26 | <div id=arvoreTemas > | 27 | <div id=arvoreTemas > |
| 27 | <p>Carregando árvore... | 28 | <p>Carregando árvore... |
| 28 | </div> | 29 | </div> |
| 30 | +</div> | ||
| 29 | <!-- aqui vai o corpo da aplicação --> | 31 | <!-- aqui vai o corpo da aplicação --> |
| 30 | <div id=corpo style="background-color:rgb(250,250,250)"> | 32 | <div id=corpo style="background-color:rgb(250,250,250)"> |
| 31 | <H1>Web services OGC</H1> | 33 | <H1>Web services OGC</H1> |