From 68e494615deda3419ab09fb7d4ecd03f80d0ba86 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Wed, 25 Nov 2009 13:25:46 +0000 Subject: [PATCH] #267 --- admin/index.html | 10 +++++++++- admin/js/admin.js | 5 +++++ admin/php/admin.php | 4 ++++ menutemas/admin.db | Bin 53248 -> 0 bytes temas/cbers.map | 23 +++++++++++++++++++++++ testamapfile.php | 13 +++++++++---- 6 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 temas/cbers.map diff --git a/admin/index.html b/admin/index.html index 2981c6b..089f1d9 100644 --- a/admin/index.html +++ b/admin/index.html @@ -9,6 +9,12 @@

Administração do i3geo

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". +

Leia-me
@@ -223,6 +229,8 @@ ativaLegenda() function ajuda(i,t) {$i(i).style.display="block";t.style.display="none"} - + +if(navm) +{$i("mensagemIE").style.display = "block";} \ No newline at end of file diff --git a/admin/js/admin.js b/admin/js/admin.js index 3713301..72ad317 100644 --- a/admin/js/admin.js +++ b/admin/js/admin.js @@ -26,6 +26,11 @@ Free Software Foundation, Inc., no endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. */ //variáveis globais +navn = false; +//seta as variáveis navn e navm +var app = navigator.appName.substring(0,1); +if (app==='N'){navn=true;}else{navm=true;} + /* Variable: $mensagemAguarde */ diff --git a/admin/php/admin.php b/admin/php/admin.php index 8e9dc5b..93bca28 100644 --- a/admin/php/admin.php +++ b/admin/php/admin.php @@ -93,6 +93,10 @@ function retornaJSON($obj) if (!mb_detect_encoding($texto,"UTF-8",true)) $texto = utf8_encode($texto); header("Content-type: text/ascii; charset=UTF-8"); + header('Expires: Fri, 14 Mar 1980 20:53:00 GMT'); + header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); + header('Cache-Control: no-cache, must-revalidate'); + header('Pragma: no-cache'); echo $texto; /* } diff --git a/menutemas/admin.db b/menutemas/admin.db index ee9ed0a..a006e4f 100644 Binary files a/menutemas/admin.db and b/menutemas/admin.db differ diff --git a/temas/cbers.map b/temas/cbers.map new file mode 100644 index 0000000..7311b93 --- /dev/null +++ b/temas/cbers.map @@ -0,0 +1,23 @@ +MAP +SYMBOLSET ../symbols/simbolos.sym +FONTSET "../symbols/fontes.txt" +LAYER + NAME cbers + TYPE POLYGON + STATUS DEFAULT + DATA "c:\ms4w\apache\htdocs\geodados\brasil\CBERS_cenas.shp" + TEMPLATE "none.htm" + METADATA + TEMA "CBERS" + ESCALA "250000" + CLASSE "SIM" + END + CLASS + NAME " " + CLASS + COLOR 100 255 100 + OUTLINECOLOR 0 0 0 + END + END # CLASS +END # LAYER +END diff --git a/testamapfile.php b/testamapfile.php index 8fe5884..cadd997 100644 --- a/testamapfile.php +++ b/testamapfile.php @@ -86,10 +86,14 @@ if(!isset($tipo)) {$tipo = "";} if ($tipo == "") { - echo '
Nome do arquivo map existente no diretório i3geo/temas (digite "todos" para testar todos de uma só vez):

'; + echo ''; + echo '
'; + 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):

'; + echo '
Mostra apenas a legenda? sim não
'; } if (isset($map) && $map != "") { + if(!isset($solegenda)){$solegenda = "nao";} if ($map == "todos") { $tipo = "todos"; @@ -113,9 +117,9 @@ if (isset($map) && $map != "") echo "


Próximos mapas"; } else - {verifica($map);} + {verifica($map,$solegenda);} } -function verifica($map) +function verifica($map,$solegenda) { global $tipo,$locaplic,$postgis_mapa; if ($tipo == "mini" && file_exists('temas/miniaturas/'.$map.".mini.png")) @@ -256,7 +260,8 @@ function verifica($map) if(($tipo == "") || ($tipo == "todos")) { - echo "
"; + if($solegenda == "nao") + {echo "
";} echo ""; if($tipo == "todos") { -- libgit2 0.21.2