index.php
3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<html>
<style>
body
{
font:14pt arial,helvetica,clean,sans-serif;
color:rgb(100,100,100);
}
p
{
font:12pt arial,helvetica,clean,sans-serif;
color:black;
}
input
{
font:14pt arial,helvetica,clean,sans-serif;
color:blue;
cursor:pointer;
}
h1
{
font:16pt arial,helvetica,clean,sans-serif;
color:brown;
}
</style>
<body>
<img src='../imagens/i3geo1.jpg' /><br>
<?php
/*
Title: i3geo mobile
Inicializa a versão do i3geo para dispositivos móveis.
A lista de mapas mostrada na tela é obtida do arquivo menutemas/mapas.xml ou outro que estiver definido na variável de configuração $locmapas (definido no i3geo/ms_configura.php)
Faz o cálculo do tamanho da tela do dispositivo e repassa a variável para o programa inicia.php.
File: i3geo/mobile/index.php
About: Licença
I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet
Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil
Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br
Este programa é software livre; você pode redistribuí-lo
e/ou modificá-lo sob os termos da Licença Pública Geral
GNU conforme publicada pela Free Software Foundation;
tanto a versão 2 da Licença.
Este programa é distribuído na expectativa de que seja útil,
porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita
de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA.
Consulte a Licença Pública Geral do GNU para mais detalhes.
Você deve ter recebido uma cópia da Licença Pública Geral do
GNU junto com este programa; se não, escreva para a
Free Software Foundation, Inc., no endereço
59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
*/
include_once("../classesphp/pega_variaveis.php");
require_once("../classesphp/funcoes_gerais.php");
include("../classesphp/classe_menutemas.php");
include("../classesphp/carrega_ext.php");
include("../ms_configura.php");
echo $tituloInstituicao;
if (!isset($temasa)){$temasa = "";}
if (!isset($layers)){$layers = $temasa;}
$m = new Menutemas($tmpfname,"");
$mapas = $m->pegaListaDeMapas($locmapas);
echo "<h1>Escolha um dos mapas:</h1>";
foreach($mapas["mapas"] as $obj)
{
echo "<input type=radio onclick='ligar(\"".$obj["TEMAS"]."\",\"".$obj["LIGADOS"]."\")' />".$obj["NOME"]."<br><br>";
}
echo "<h1>ou uma das opções:</h1>";
echo "<input type=radio onclick='localizar()' />Procurar lugar<br><br>";
?>
<form id=f action='inicia.php' method='get' >
<input id='wmobile' type=hidden name='wmobile' value='' />
<input id='hmobile' type=hidden name='hmobile' value='' />
<input type='hidden' id='temasa' name='temasa' value='<?php echo $temasa;?>' />
<input type='hidden' id='layers' name='layers' value='<?php echo $layers;?>' />
<input type='hidden' id='tipo' name='tipo' value='inicia' />
</form>
<hr>
<p>O i3Geo é um software livre desenvolvido pelo Ministério do Meio Ambiente. Veja:
<a href='http://mapas.mma.gov.br' >http://mapas.mma.gov.br</a></p>
</body>
<script>
var w = screen.availWidth;
var h = screen.availHeight;
if (w > 600){var w = w/2;}
if (h > 600){var h = h/2;}
document.getElementById('wmobile').value = w;
document.getElementById('hmobile').value = h - 30;
if ('<?php echo $temasa;?>' != "")
{document.getElementById('f').submit();}
/*
Function: ligar
Inicializa o i3geo mobile passando a lista de temas que devem ser ativados
Parameter:
temas - lista de códigos de temas
*/
function ligar(temas,layers)
{
document.getElementById('temasa').value = temas;
document.getElementById('layers').value = layers;
document.getElementById('f').submit();
}
/*
Function: localizar
Inicia a busca por um lugar
*/
function localizar(temas)
{
document.getElementById('temasa').value = "estadosl";
document.getElementById('layers').value = "baserasterwms";
document.getElementById('tipo').value = "localizar";
document.getElementById('f').submit();
}
</script>
</html>