Commit 41ba3ffb94aa58409d875d19e421c406494012ea

Authored by Edmar Moretti
1 parent 28233738

Correção nos links dos botoes

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