Commit 68e494615deda3419ab09fb7d4ecd03f80d0ba86
1 parent
a0838314
Exists in
master
and in
7 other branches
#267
Showing
6 changed files
with
50 additions
and
5 deletions
Show diff stats
admin/index.html
| ... | ... | @@ -9,6 +9,12 @@ |
| 9 | 9 | <div style=width:80%;text-align:left;> |
| 10 | 10 | <h1>Administração do i3geo</h1> |
| 11 | 11 | <p>Se você atualizou o Mapserver para a versão 5.2.2, seus mapfiles antigos podem não funcionar. Veja em "Outras opções" o item "Ajusta mapfiles". |
| 12 | +<div id=mensagemIE style=display:none > | |
| 13 | +<p style=color:red >Atenção: o sistema de administração funciona melhor no Firefox.</p> | |
| 14 | +<p>No Internet Explorer, vc deve alterar as configurações de armazenamento de 'cache' para não ter problemas.</p> | |
| 15 | +<p>No menu 'Ferramentas->Opções da Internet->Geral' clique em 'Configurações' no item 'Histórico de navegação'</p> | |
| 16 | +<p>Marque a opção 'Sempre que eu visitar a página da web'</p> | |
| 17 | +</div> | |
| 12 | 18 | <fieldset> |
| 13 | 19 | <legend>Leia-me</legend> |
| 14 | 20 | <div style=display:none; > |
| ... | ... | @@ -223,6 +229,8 @@ ativaLegenda() |
| 223 | 229 | |
| 224 | 230 | function ajuda(i,t) |
| 225 | 231 | {$i(i).style.display="block";t.style.display="none"} |
| 226 | - | |
| 232 | + | |
| 233 | +if(navm) | |
| 234 | +{$i("mensagemIE").style.display = "block";} | |
| 227 | 235 | </script> |
| 228 | 236 | </html> |
| 229 | 237 | \ No newline at end of file | ... | ... |
admin/js/admin.js
| ... | ... | @@ -26,6 +26,11 @@ Free Software Foundation, Inc., no endereço |
| 26 | 26 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. |
| 27 | 27 | */ |
| 28 | 28 | //variáveis globais |
| 29 | +navn = false; | |
| 30 | +//seta as variáveis navn e navm | |
| 31 | +var app = navigator.appName.substring(0,1); | |
| 32 | +if (app==='N'){navn=true;}else{navm=true;} | |
| 33 | + | |
| 29 | 34 | /* |
| 30 | 35 | Variable: $mensagemAguarde |
| 31 | 36 | */ | ... | ... |
admin/php/admin.php
| ... | ... | @@ -93,6 +93,10 @@ function retornaJSON($obj) |
| 93 | 93 | if (!mb_detect_encoding($texto,"UTF-8",true)) |
| 94 | 94 | $texto = utf8_encode($texto); |
| 95 | 95 | header("Content-type: text/ascii; charset=UTF-8"); |
| 96 | + header('Expires: Fri, 14 Mar 1980 20:53:00 GMT'); | |
| 97 | + header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); | |
| 98 | + header('Cache-Control: no-cache, must-revalidate'); | |
| 99 | + header('Pragma: no-cache'); | |
| 96 | 100 | echo $texto; |
| 97 | 101 | /* |
| 98 | 102 | } | ... | ... |
menutemas/admin.db
No preview for this file type
| ... | ... | @@ -0,0 +1,23 @@ |
| 1 | +MAP | |
| 2 | +SYMBOLSET ../symbols/simbolos.sym | |
| 3 | +FONTSET "../symbols/fontes.txt" | |
| 4 | +LAYER | |
| 5 | + NAME cbers | |
| 6 | + TYPE POLYGON | |
| 7 | + STATUS DEFAULT | |
| 8 | + DATA "c:\ms4w\apache\htdocs\geodados\brasil\CBERS_cenas.shp" | |
| 9 | + TEMPLATE "none.htm" | |
| 10 | + METADATA | |
| 11 | + TEMA "CBERS" | |
| 12 | + ESCALA "250000" | |
| 13 | + CLASSE "SIM" | |
| 14 | + END | |
| 15 | + CLASS | |
| 16 | + NAME " " | |
| 17 | + CLASS | |
| 18 | + COLOR 100 255 100 | |
| 19 | + OUTLINECOLOR 0 0 0 | |
| 20 | + END | |
| 21 | + END # CLASS | |
| 22 | +END # LAYER | |
| 23 | +END | ... | ... |
testamapfile.php
| ... | ... | @@ -86,10 +86,14 @@ if(!isset($tipo)) |
| 86 | 86 | {$tipo = "";} |
| 87 | 87 | if ($tipo == "") |
| 88 | 88 | { |
| 89 | - echo '<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"></head><script>function roda(){window.location.href = "?map="+document.getElementById("nomemap").value;}</script><body ><form action="testamapfile.php" method="post" id=f >Nome do arquivo map existente no diretório i3geo/temas (digite "todos" para testar todos de uma só vez):<br><br><input id=nomemap class=digitar type="file" size=20 ><input id=map type="hidden" value="" name="map"><input type="button" onclick="roda()" class=executar value="Testar" size=10 name="submit"></form></body></html>'; | |
| 89 | + echo '<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"></head><script>function roda(){window.location.href = "?map="+document.getElementById("nomemap").value;}</script><body >'; | |
| 90 | + echo '<form action="testamapfile.php" method="post" id=f >'; | |
| 91 | + echo 'Nome do arquivo map existente no diretório i3geo/temas (complete com "testamapfile.php?map=todos" na URL para testar todos de uma só vez):<br><br><input id=nomemap class=digitar type="file" size=20 ><input id=map type="hidden" value="" name="map"><input type="button" onclick="roda()" class=executar value="Testar" size=10 name="submit">'; | |
| 92 | + echo '<br>Mostra apenas a legenda? <input type=radio name=solegenda value=sim />sim <input type=radio name=solegenda value=nao CHECKED /> não<br></form></body></html>'; | |
| 90 | 93 | } |
| 91 | 94 | if (isset($map) && $map != "") |
| 92 | 95 | { |
| 96 | + if(!isset($solegenda)){$solegenda = "nao";} | |
| 93 | 97 | if ($map == "todos") |
| 94 | 98 | { |
| 95 | 99 | $tipo = "todos"; |
| ... | ... | @@ -113,9 +117,9 @@ if (isset($map) && $map != "") |
| 113 | 117 | echo "<hr><br><br><a href='testamapfile.php?map=todos&iniciar=".($iniciar+10)."' >Próximos mapas</a>"; |
| 114 | 118 | } |
| 115 | 119 | else |
| 116 | - {verifica($map);} | |
| 120 | + {verifica($map,$solegenda);} | |
| 117 | 121 | } |
| 118 | -function verifica($map) | |
| 122 | +function verifica($map,$solegenda) | |
| 119 | 123 | { |
| 120 | 124 | global $tipo,$locaplic,$postgis_mapa; |
| 121 | 125 | if ($tipo == "mini" && file_exists('temas/miniaturas/'.$map.".mini.png")) |
| ... | ... | @@ -256,7 +260,8 @@ function verifica($map) |
| 256 | 260 | |
| 257 | 261 | if(($tipo == "") || ($tipo == "todos")) |
| 258 | 262 | { |
| 259 | - echo "<img src=".$nomer." /><br>"; | |
| 263 | + if($solegenda == "nao") | |
| 264 | + {echo "<img src=".$nomer." /><br>";} | |
| 260 | 265 | echo "<img src=".$nomerl." />"; |
| 261 | 266 | if($tipo == "todos") |
| 262 | 267 | { | ... | ... |