Commit 41ba3ffb94aa58409d875d19e421c406494012ea
1 parent
28233738
Exists in
master
and in
7 other branches
Correção nos links dos botoes
Showing
2 changed files
with
21 additions
and
20 deletions
Show diff stats
init/index.js
1 | botoesIni = [ | 1 | botoesIni = [ |
2 | { | 2 | { |
3 | "img":"openlayers.png", | 3 | "img":"openlayers.png", |
4 | - "href": location.href.replace("index.php","") + customDir + "/black_ol.htm", | 4 | + "href": location.href.replace("init/index.php","") + customDir + "/black_ol.htm", |
5 | "titulo":$trad(4,g_traducao_init), | 5 | "titulo":$trad(4,g_traducao_init), |
6 | "subtitulo": $trad("4a",g_traducao_init), | 6 | "subtitulo": $trad("4a",g_traducao_init), |
7 | "fa": "map-o", | 7 | "fa": "map-o", |
8 | "target": "_blank" | 8 | "target": "_blank" |
9 | },{ | 9 | },{ |
10 | "img":"osm.png", | 10 | "img":"osm.png", |
11 | - "href": location.href.replace("index.php","") + customDir + "/black_osm.htm", | 11 | + "href": location.href.replace("init/index.php","") + customDir + "/black_osm.htm", |
12 | "titulo":$trad(23,g_traducao_init), | 12 | "titulo":$trad(23,g_traducao_init), |
13 | "subtitulo": $trad("23a",g_traducao_init), | 13 | "subtitulo": $trad("23a",g_traducao_init), |
14 | "fa": "map-o", | 14 | "fa": "map-o", |
15 | "target": "_blank" | 15 | "target": "_blank" |
16 | },{ | 16 | },{ |
17 | "img":"googlemaps.png", | 17 | "img":"googlemaps.png", |
18 | - "href": location.href.replace("index.php","") + customDir + "/black_gm.phtml", | 18 | + "href": location.href.replace("init/index.php","") + customDir + "/black_gm.phtml", |
19 | "titulo":$trad(6,g_traducao_init), | 19 | "titulo":$trad(6,g_traducao_init), |
20 | "subtitulo": $trad("6a",g_traducao_init), | 20 | "subtitulo": $trad("6a",g_traducao_init), |
21 | "fa": "map-o", | 21 | "fa": "map-o", |
22 | "target": "_blank" | 22 | "target": "_blank" |
23 | },{ | 23 | },{ |
24 | "img":"mashup.png", | 24 | "img":"mashup.png", |
25 | - "href": location.href.replace("index.php","") + "../mashups", | 25 | + "href": "../mashups", |
26 | "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>", | 26 | "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>", |
27 | "subtitulo": $trad("18a",g_traducao_init), | 27 | "subtitulo": $trad("18a",g_traducao_init), |
28 | "fa": "map-o", | 28 | "fa": "map-o", |
29 | "target": "_self" | 29 | "target": "_self" |
30 | },{ | 30 | },{ |
31 | "img":"googleearth.png", | 31 | "img":"googleearth.png", |
32 | - "href": location.href.replace("index.php","") + customDir + "/googleearth.phtml", | 32 | + "href": location.href.replace("init/index.php","") + customDir + "/googleearth.phtml", |
33 | "titulo":$trad(7,g_traducao_init), | 33 | "titulo":$trad(7,g_traducao_init), |
34 | "subtitulo": $trad("7a",g_traducao_init), | 34 | "subtitulo": $trad("7a",g_traducao_init), |
35 | "fa": "map-o", | 35 | "fa": "map-o", |
36 | "target": "_blank" | 36 | "target": "_blank" |
37 | },{ | 37 | },{ |
38 | "img":"cartogramas.png", | 38 | "img":"cartogramas.png", |
39 | - "href": location.href.replace("index.php","") + customDir + "/black_carto_ol.htm", | 39 | + "href": location.href.replace("init/index.php","") + customDir + "/black_carto_ol.htm", |
40 | "titulo":$trad(8,g_traducao_init), | 40 | "titulo":$trad(8,g_traducao_init), |
41 | "subtitulo": $trad("8a",g_traducao_init), | 41 | "subtitulo": $trad("8a",g_traducao_init), |
42 | "fa": "map-o", | 42 | "fa": "map-o", |
43 | "target": "_blank" | 43 | "target": "_blank" |
44 | },{ | 44 | },{ |
45 | "img":"editor.png", | 45 | "img":"editor.png", |
46 | - "href": location.href.replace("index.php","") + "../ferramentas/metaestat/editorlimites.php", | 46 | + "href": "../ferramentas/metaestat/editorlimites.php", |
47 | "titulo":$trad(9,g_traducao_init), | 47 | "titulo":$trad(9,g_traducao_init), |
48 | "subtitulo": $trad("9a",g_traducao_init), | 48 | "subtitulo": $trad("9a",g_traducao_init), |
49 | "fa": "map-o", | 49 | "fa": "map-o", |
50 | "target": "_blank" | 50 | "target": "_blank" |
51 | },{ | 51 | },{ |
52 | "img":"window-duplicate.png", | 52 | "img":"window-duplicate.png", |
53 | - "href": location.href.replace("index.php","") + "../mapas/index.php", | 53 | + "href": "../mapas/index.php", |
54 | "titulo":$trad(34,g_traducao_init), | 54 | "titulo":$trad(34,g_traducao_init), |
55 | "subtitulo": $trad("34a",g_traducao_init), | 55 | "subtitulo": $trad("34a",g_traducao_init), |
56 | "fa": "map-o", | 56 | "fa": "map-o", |
57 | "target": "_self" | 57 | "target": "_self" |
58 | },{ | 58 | },{ |
59 | "img":"ogc_logo.png", | 59 | "img":"ogc_logo.png", |
60 | - "href": location.href.replace("index.php","") + "../ogc/index.php", | 60 | + "href": "../ogc/index.php", |
61 | "titulo":$trad(11,g_traducao_init), | 61 | "titulo":$trad(11,g_traducao_init), |
62 | "subtitulo": $trad("11a",g_traducao_init), | 62 | "subtitulo": $trad("11a",g_traducao_init), |
63 | "fa": "download", | 63 | "fa": "download", |
64 | "target": "_self" | 64 | "target": "_self" |
65 | },{ | 65 | },{ |
66 | "img":"application-vnd-google-earth-kml.png", | 66 | "img":"application-vnd-google-earth-kml.png", |
67 | - "href": location.href.replace("index.php","") + "../kml.php", | 67 | + "href": "../kml.php", |
68 | "titulo":$trad(12,g_traducao_init), | 68 | "titulo":$trad(12,g_traducao_init), |
69 | "subtitulo": $trad("12a",g_traducao_init), | 69 | "subtitulo": $trad("12a",g_traducao_init), |
70 | "fa": "download", | 70 | "fa": "download", |
71 | "target": "_self" | 71 | "target": "_self" |
72 | },{ | 72 | },{ |
73 | "img":"../imagens/saiku_free_small.png", | 73 | "img":"../imagens/saiku_free_small.png", |
74 | - "href": location.href.replace("index.php","") + "../ferramentas/saiku/esquemaxml.php?locaplic="+window.location.href.replace("/init/index.php",""), | 74 | + "href": "../ferramentas/saiku/esquemaxml.php?locaplic="+window.location.href.replace("/init/index.php",""), |
75 | "titulo":$trad(25,g_traducao_init), | 75 | "titulo":$trad(25,g_traducao_init), |
76 | "subtitulo": $trad("25a",g_traducao_init), | 76 | "subtitulo": $trad("25a",g_traducao_init), |
77 | "fa": "bar-chart", | 77 | "fa": "bar-chart", |
78 | "target": "_self" | 78 | "target": "_self" |
79 | },{ | 79 | },{ |
80 | "img":"insert-link.png", | 80 | "img":"insert-link.png", |
81 | - "href": location.href.replace("index.php","") + "../permlinks/index.php", | 81 | + "href": "../permlinks/index.php", |
82 | "titulo":$trad(13,g_traducao_init), | 82 | "titulo":$trad(13,g_traducao_init), |
83 | "subtitulo": $trad("13a",g_traducao_init), | 83 | "subtitulo": $trad("13a",g_traducao_init), |
84 | "fa": "map-o", | 84 | "fa": "map-o", |
85 | "target": "_self" | 85 | "target": "_self" |
86 | },{ | 86 | },{ |
87 | "img":"openlayersdebug.png", | 87 | "img":"openlayersdebug.png", |
88 | - "href": location.href.replace("index.php","") + customDir + "/openlayersdebug.htm", | 88 | + "href": location.href.replace("init/index.php","") + customDir + "/openlayersdebug.htm", |
89 | "titulo":$trad(5,g_traducao_init), | 89 | "titulo":$trad(5,g_traducao_init), |
90 | "subtitulo": $trad("5a",g_traducao_init), | 90 | "subtitulo": $trad("5a",g_traducao_init), |
91 | "fa": "cogs", | 91 | "fa": "cogs", |
92 | "target": "_blank" | 92 | "target": "_blank" |
93 | },{ | 93 | },{ |
94 | "img":"certificate-server.png", | 94 | "img":"certificate-server.png", |
95 | - "href": location.href.replace("index.php","") + "../testainstal/index.php", | 95 | + "href": "../testainstal/index.php", |
96 | "titulo":$trad(2,g_traducao_init), | 96 | "titulo":$trad(2,g_traducao_init), |
97 | "subtitulo": $trad("2a",g_traducao_init), | 97 | "subtitulo": $trad("2a",g_traducao_init), |
98 | "fa": "cogs", | 98 | "fa": "cogs", |
99 | "target": "_self" | 99 | "target": "_self" |
100 | },{ | 100 | },{ |
101 | "img":"applications-development-web.png", | 101 | "img":"applications-development-web.png", |
102 | - "href": location.href.replace("index.php","") + "../admin", | 102 | + "href": "../admin", |
103 | "titulo":$trad(3,g_traducao_init), | 103 | "titulo":$trad(3,g_traducao_init), |
104 | "subtitulo": $trad("3a",g_traducao_init), | 104 | "subtitulo": $trad("3a",g_traducao_init), |
105 | "fa": "cogs", | 105 | "fa": "cogs", |
106 | "target": "_self" | 106 | "target": "_self" |
107 | },{ | 107 | },{ |
108 | "img":"folder-image.png", | 108 | "img":"folder-image.png", |
109 | - "href": location.href.replace("index.php","") + "../exemplos/index.php", | 109 | + "href": "../exemplos/index.php", |
110 | "titulo":$trad(14,g_traducao_init), | 110 | "titulo":$trad(14,g_traducao_init), |
111 | "subtitulo": $trad("14a",g_traducao_init), | 111 | "subtitulo": $trad("14a",g_traducao_init), |
112 | "fa": "cogs", | 112 | "fa": "cogs", |
113 | "target": "_self" | 113 | "target": "_self" |
114 | },{ | 114 | },{ |
115 | "img":"applications-development.png", | 115 | "img":"applications-development.png", |
116 | - "href": location.href.replace("index.php","") + "../utilitarios/index.php", | 116 | + "href": "../utilitarios/index.php", |
117 | "titulo":$trad(33,g_traducao_init), | 117 | "titulo":$trad(33,g_traducao_init), |
118 | "subtitulo": $trad("33a",g_traducao_init), | 118 | "subtitulo": $trad("33a",g_traducao_init), |
119 | "fa": "wrench", | 119 | "fa": "wrench", |
120 | "target": "_self" | 120 | "target": "_self" |
121 | },{ | 121 | },{ |
122 | "img":"guiamigracao.png", | 122 | "img":"guiamigracao.png", |
123 | - "href": location.href.replace("index.php","") + "../guia_de_migracao.txt", | 123 | + "href": "../guia_de_migracao.txt", |
124 | "titulo":$trad(17,g_traducao_init), | 124 | "titulo":$trad(17,g_traducao_init), |
125 | "subtitulo": $trad("17a",g_traducao_init), | 125 | "subtitulo": $trad("17a",g_traducao_init), |
126 | "fa": "cogs", | 126 | "fa": "cogs", |
127 | "target": "_self" | 127 | "target": "_self" |
128 | },{ | 128 | },{ |
129 | "img":"docapi.png", | 129 | "img":"docapi.png", |
130 | - "href": location.href.replace("index.php","") + "../documentacao", | 130 | + "href": "../documentacao", |
131 | "titulo":$trad(24,g_traducao_init), | 131 | "titulo":$trad(24,g_traducao_init), |
132 | "subtitulo": $trad("24a",g_traducao_init), | 132 | "subtitulo": $trad("24a",g_traducao_init), |
133 | "fa": "book", | 133 | "fa": "book", |
@@ -178,6 +178,7 @@ function mostraBotoes(){ | @@ -178,6 +178,7 @@ function mostraBotoes(){ | ||
178 | //i3GEO.barraDeBotoes.ATIVA = false; | 178 | //i3GEO.barraDeBotoes.ATIVA = false; |
179 | var ins = [],i,n = botoesIni.length,texto; | 179 | var ins = [],i,n = botoesIni.length,texto; |
180 | for(i=0;i<n;i++){ | 180 | for(i=0;i<n;i++){ |
181 | + botoesIni[i].href = botoesIni[i].href.replace("#topo",""); | ||
181 | 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>'; | 182 | 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>'; |
182 | if(botoesIni[i].subtitulo){ | 183 | if(botoesIni[i].subtitulo){ |
183 | //texto += botoesIni[i].subtitulo; | 184 | //texto += botoesIni[i].subtitulo; |
init/index.php
@@ -183,7 +183,7 @@ include "head.php"; | @@ -183,7 +183,7 @@ include "head.php"; | ||
183 | 183 | ||
184 | <script> | 184 | <script> |
185 | //utilizado em ms_configura.php para customizar o local da pasta de inicializacao | 185 | //utilizado em ms_configura.php para customizar o local da pasta de inicializacao |
186 | - var customDir = "../<?php echo $customDir; ?>"; | 186 | + var customDir = "<?php echo $customDir; ?>"; |
187 | </script> | 187 | </script> |
188 | <script src='../pacotes/cpaint/cpaint2_compacto.inc.js'></script> | 188 | <script src='../pacotes/cpaint/cpaint2_compacto.inc.js'></script> |
189 | <script src='../classesjs/compactados/dicionario_compacto.js'></script> | 189 | <script src='../classesjs/compactados/dicionario_compacto.js'></script> |