index.js
6.08 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
botoesIni = [
{
"img":"openlayers.png",
"href": customDir + "/black_ol.htm",
"titulo":$trad(4,g_traducao_init),
"subtitulo": $trad("4a",g_traducao_init),
"fa": "map-o",
"target": "_blank"
},{
"img":"osm.png",
"href": customDir + "/black_osm.htm",
"titulo":$trad(23,g_traducao_init),
"subtitulo": $trad("23a",g_traducao_init),
"fa": "map-o",
"target": "_blank"
},{
"img":"googlemaps.png",
"href": customDir + "/black_gm.phtml",
"titulo":$trad(6,g_traducao_init),
"subtitulo": $trad("6a",g_traducao_init),
"fa": "map-o",
"target": "_blank"
},{
"img":"mashup.png",
"href":"../mashups",
"titulo":$trad(18,g_traducao_init) + "<br><a href='../mashups/osm.php?temas=&largura=800&altura=500' target=_blank >OSM</a>" + " - <a href='../mashups/openlayers.php?temas=&largura=800&altura=500' target=_blank >OpenLayers</a>",
"subtitulo": $trad("18a",g_traducao_init),
"fa": "map-o",
"target": "_self"
},{
"img":"googleearth.png",
"href": customDir + "/googleearth.phtml",
"titulo":$trad(7,g_traducao_init),
"subtitulo": $trad("7a",g_traducao_init),
"fa": "map-o",
"target": "_blank"
},{
"img":"cartogramas.png",
"href": customDir + "/black_carto_ol.htm",
"titulo":$trad(8,g_traducao_init),
"subtitulo": $trad("8a",g_traducao_init),
"fa": "map-o",
"target": "_blank"
},{
"img":"editor.png",
"href":"../ferramentas/metaestat/editorlimites.php",
"titulo":$trad(9,g_traducao_init),
"subtitulo": $trad("9a",g_traducao_init),
"fa": "map-o",
"target": "_blank"
},{
"img":"window-duplicate.png",
"href":"../ferramentas/salvamapa/lista.htm",
"titulo":$trad(34,g_traducao_init),
"subtitulo": $trad("34a",g_traducao_init),
"fa": "map-o",
"target": "_self"
},{
"img":"svn-update.png",
"href":"../datadownload.htm",
"titulo":$trad(10,g_traducao_init),
"subtitulo": $trad("10a",g_traducao_init),
"fa": "download",
"target": "_self"
},{
"img":"ogc_logo.jpg",
"href":"../ogc.htm",
"titulo":$trad(11,g_traducao_init),
"subtitulo": $trad("11a",g_traducao_init),
"fa": "download",
"target": "_self"
},{
"img":"application-vnd-google-earth-kml.png",
"href":"../kml.php",
"titulo":$trad(12,g_traducao_init),
"subtitulo": $trad("12a",g_traducao_init),
"fa": "download",
"target": "_self"
},{
"img":"../imagens/saiku_free_small.png",
"href":"../ferramentas/saiku/startsaiku.php?locaplic="+window.location.href.replace("/init/index.php",""),
"titulo":$trad(25,g_traducao_init),
"subtitulo": $trad("25a",g_traducao_init),
"fa": "bar-chart",
"target": "_self"
},{
"img":"insert-link.png",
"href":"../geradordelinks.htm",
"titulo":$trad(13,g_traducao_init),
"subtitulo": $trad("13a",g_traducao_init),
"fa": "map-o",
"target": "_self"
},{
"img":"openlayersdebug.png",
"href": customDir + "/openlayersdebug.htm",
"titulo":$trad(5,g_traducao_init),
"subtitulo": $trad("5a",g_traducao_init),
"fa": "cogs",
"target": "_blank"
},{
"img":"certificate-server.png",
"href":"../testainstal/index.php",
"titulo":$trad(2,g_traducao_init),
"subtitulo": $trad("2a",g_traducao_init),
"fa": "cogs",
"target": "_self"
},{
"img":"applications-development-web.png",
"href":"../admin",
"titulo":$trad(3,g_traducao_init),
"subtitulo": $trad("3a",g_traducao_init),
"fa": "cogs",
"target": "_self"
},{
"img":"folder-image.png",
"href":"../exemplos",
"titulo":$trad(14,g_traducao_init),
"subtitulo": $trad("14a",g_traducao_init),
"fa": "cogs",
"target": "_self"
},{
"img":"applications-development.png",
"href":"../pacotes/utils/index.php",
"titulo":$trad(33,g_traducao_init),
"subtitulo": $trad("33a",g_traducao_init),
"fa": "wrench",
"target": "_self"
},{
"img":"guiamigracao.png",
"href":"../guia_de_migracao.txt",
"titulo":$trad(17,g_traducao_init),
"subtitulo": $trad("17a",g_traducao_init),
"fa": "cogs",
"target": "_self"
},{
"img":"docapi.png",
"href":"../documentacao",
"titulo":$trad(24,g_traducao_init),
"subtitulo": $trad("24a",g_traducao_init),
"fa": "book",
"target": "_self"
},{
"img":"tools-report-bug.png",
"href":"https://softwarepublico.gov.br/gitlab/i3geo/i3geo/issues",
"titulo":$trad(16,g_traducao_init),
"subtitulo": $trad("16a",g_traducao_init),
"fa": "group",
"target": "_self"
},{
"img":"../imagens/apple-touch-icon.png",
"href":"https://softwarepublico.gov.br/gitlab/groups/i3geo",
"titulo":$trad(30,g_traducao_init),
"subtitulo": $trad("30a",g_traducao_init),
"fa": "group",
"target": "_self"
},{
"img":"logo_psp.png",
"href":"https://portal.softwarepublico.gov.br/social/i3geo/",
"titulo":$trad(31,g_traducao_init),
"subtitulo": $trad("31a",g_traducao_init),
"fa": "group",
"target": "_self"
},{
"img":"mailman.jpg",
"href":"http://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo",
"titulo":$trad(32,g_traducao_init),
"subtitulo": $trad("32a",g_traducao_init),
"fa": "group",
"target": "_self"
}
];
function mostraBotoes(){
$i("mensagemLogin").innerHTML = men;
i3GEO.configura = {"locaplic" : ".."};
i3GEO.idioma.IDSELETOR = "bandeiras";
i3GEO.idioma.mostraSeletor();
var ins = [],i,n = botoesIni.length,texto;
for(i=0;i<n;i++){
texto = '<div class="r" ><div class="ri" ><a target=_blank href="'+botoesIni[i].href+'" ><img style="max-height:77px;" src="'+botoesIni[i].img+'" /><br><br>'+botoesIni[i].titulo+'</a>';
if(botoesIni[i].subtitulo){
//texto += botoesIni[i].subtitulo;
}
texto += '</div></div>';
ins.push(texto);
}
$i("botoes").innerHTML = ins.join("");
$i("conteudo").style.height = i3GEO.util.getScrollHeight() + "px";
}
//TODO um dia, remover as imagens da pasta init e deixar apenas as da pasta init/imagens
function mostraBotoesBT(men){
var html = "";
//menu
html = Mustache.to_html(
$("#menuTpl").html(),
i3GEO.idioma.objetoIdioma(g_traducao_init)
);
$("#menuTpl").html(html);
//
$("#mensagemLogin").html(men);
html = Mustache.to_html(
$("#jumbotron").html(),
{
"jumbotron" : $trad(35,g_traducao_init),
"host" : location.host,
"href" : location.href
}
);
$("#jumbotron").html(html);
i3GEO.configura = {"locaplic" : ".."};
i3GEO.idioma.IDSELETOR = "bandeiras";
i3GEO.idioma.mostraSeletor();
html = Mustache.to_html(
"{{#d}}" + $("#botoesTpl").html() + "{{/d}}",
{"d":botoesIni,"abrir" : $trad(36,g_traducao_init)}
);
$("#botoesTpl").html(html);
}