Commit d6ffc4e063bf54d40dcbf033fd25c2f5f7bdda79
1 parent
10b224ea
Exists in
master
and in
7 other branches
Correção no carregamento da página para evitar bloqueio de js
Showing
2 changed files
with
145 additions
and
145 deletions
Show diff stats
| @@ -0,0 +1,131 @@ | @@ -0,0 +1,131 @@ | ||
| 1 | +botoesIni = []; | ||
| 2 | +botoesIni.push({ | ||
| 3 | + "img":"start-here.png", | ||
| 4 | + "href":"../testainstal.php", | ||
| 5 | + "titulo":$trad(2,g_traducao_init) | ||
| 6 | + },{ | ||
| 7 | + "img":"applications-development-web.png", | ||
| 8 | + "href":"../admin", | ||
| 9 | + "titulo":$trad(3,g_traducao_init) | ||
| 10 | + },{ | ||
| 11 | + "img":"openlayers.png", | ||
| 12 | + "href":"../<?php echo $customDir; ?>/black_ol.htm", | ||
| 13 | + "titulo":$trad(4,g_traducao_init) | ||
| 14 | + },{ | ||
| 15 | + "img":"openlayersdebug.png", | ||
| 16 | + "href":"../<?php echo $customDir; ?>/openlayersdebug.htm", | ||
| 17 | + "titulo":$trad(5,g_traducao_init) | ||
| 18 | + },{ | ||
| 19 | + "img":"osm.png", | ||
| 20 | + "href":"../<?php echo $customDir; ?>/black_osm.htm", | ||
| 21 | + "titulo":$trad(23,g_traducao_init) | ||
| 22 | + },{ | ||
| 23 | + "img":"mashup.png", | ||
| 24 | + "href":"../mashups", | ||
| 25 | + "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 | + },{ | ||
| 27 | + "img":"googlemaps.png", | ||
| 28 | + "href":"../<?php echo $customDir; ?>/black_gm.phtml", | ||
| 29 | + "titulo":$trad(6,g_traducao_init) | ||
| 30 | + },{ | ||
| 31 | + "img":"googlemaps_noite.png", | ||
| 32 | + "href":"../<?php echo $customDir; ?>/googlemaps_noite.phtml", | ||
| 33 | + "titulo":$trad(22,g_traducao_init) | ||
| 34 | + },{ | ||
| 35 | + "img":"googleearth.png", | ||
| 36 | + "href":"../<?php echo $customDir; ?>/googleearth.phtml", | ||
| 37 | + "titulo":$trad(7,g_traducao_init) | ||
| 38 | + },{ | ||
| 39 | + "img":"cartogramas.png", | ||
| 40 | + "href":"../<?php echo $customDir; ?>/black_carto_ol.htm", | ||
| 41 | + "titulo":$trad(8,g_traducao_init) | ||
| 42 | + },{ | ||
| 43 | + "img":"editor.png", | ||
| 44 | + "href":"../ferramentas/metaestat/editorlimites.php", | ||
| 45 | + "titulo":$trad(9,g_traducao_init) | ||
| 46 | + },{ | ||
| 47 | + "img":"svn-update.png", | ||
| 48 | + "href":"../datadownload.htm", | ||
| 49 | + "titulo":$trad(10,g_traducao_init) | ||
| 50 | + },{ | ||
| 51 | + "img":"ogc_logo.jpg", | ||
| 52 | + "href":"../ogc.htm", | ||
| 53 | + "titulo":$trad(11,g_traducao_init) | ||
| 54 | + },{ | ||
| 55 | + "img":"application-vnd-google-earth-kml.png", | ||
| 56 | + "href":"../kml.php", | ||
| 57 | + "titulo":$trad(12,g_traducao_init) | ||
| 58 | + },{ | ||
| 59 | + "img":"../imagens/saiku_free_small.png", | ||
| 60 | + "href":"../ferramentas/saiku/esquemaxml.php?locaplic="+window.location.href.replace("/init/index.php",""), | ||
| 61 | + "titulo":$trad(25,g_traducao_init), | ||
| 62 | + "subtitulo": " <a style='cursor:pointer;' target=_blank src='https://medium.com/innovative-business-intelligence/so-people-who-land-on-our-community-download-page-will-notice-a-subtle-difference-when-they-click-1b61aca316c5' >"+$trad(29,g_traducao_init)+"</a>", | ||
| 63 | + },{ | ||
| 64 | + "img":"../imagens/gvsig.jpg", | ||
| 65 | + "href":"../pacotes/gvsig/gvsig2mapfile/upload.htm", | ||
| 66 | + "titulo":$trad(26,g_traducao_init) | ||
| 67 | + },{ | ||
| 68 | + "img":"insert-link.png", | ||
| 69 | + "href":"../geradordelinks.htm", | ||
| 70 | + "titulo":$trad(13,g_traducao_init) | ||
| 71 | + },{ | ||
| 72 | + "img":"atlas.png", | ||
| 73 | + "href":"../atlas", | ||
| 74 | + "titulo":$trad(27,g_traducao_init) | ||
| 75 | + },{ | ||
| 76 | + "img":"folder-image.png", | ||
| 77 | + "href":"../exemplos", | ||
| 78 | + "titulo":$trad(14,g_traducao_init) | ||
| 79 | + },{ | ||
| 80 | + "img":"applications-development.png", | ||
| 81 | + "href":"../pacotes/utils/index.php", | ||
| 82 | + "titulo":$trad(33,g_traducao_init) | ||
| 83 | + },{ | ||
| 84 | + "img":"accessories-dictionary.png", | ||
| 85 | + "href":"../guia_de_migracao.txt", | ||
| 86 | + "titulo":$trad(17,g_traducao_init) | ||
| 87 | + },{ | ||
| 88 | + "img":"accessories-dictionary.png", | ||
| 89 | + "href":"../documentacao", | ||
| 90 | + "titulo":$trad(24,g_traducao_init) | ||
| 91 | + },{ | ||
| 92 | + "img":"accessories-dictionary.png", | ||
| 93 | + "href":"http://moodle.gvsig-training.com/course/view.php?id=11", | ||
| 94 | + "titulo":$trad(28,g_traducao_init) | ||
| 95 | + },{ | ||
| 96 | + "img":"tools-report-bug.png", | ||
| 97 | + "href":"http://svn.softwarepublico.gov.br/trac/i3geo/newticket", | ||
| 98 | + "titulo":$trad(16,g_traducao_init) | ||
| 99 | + },{ | ||
| 100 | + "img":"trac_logo_mini.png", | ||
| 101 | + "href":"http://svn.softwarepublico.gov.br/trac/i3geo/wiki", | ||
| 102 | + "titulo":$trad(30,g_traducao_init) | ||
| 103 | + },{ | ||
| 104 | + "img":"logo_psp.png", | ||
| 105 | + "href":"http://www.softwarepublico.gov.br/ver-comunidade?community_id=1444332", | ||
| 106 | + "titulo":$trad(31,g_traducao_init) | ||
| 107 | + },{ | ||
| 108 | + "img":"mailman.jpg", | ||
| 109 | + "href":"http://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo", | ||
| 110 | + "titulo":$trad(32,g_traducao_init) | ||
| 111 | + } | ||
| 112 | +); | ||
| 113 | +function mostraBotoes(){ | ||
| 114 | + $i("mensagemLogin").innerHTML = men; | ||
| 115 | + | ||
| 116 | + i3GEO.configura.locaplic = ".."; | ||
| 117 | + i3GEO.idioma.IDSELETOR = "bandeiras"; | ||
| 118 | + i3GEO.idioma.mostraSeletor(); | ||
| 119 | + i3GEO.barraDeBotoes.ATIVA = false; | ||
| 120 | + var ins = [],i,n = botoesIni.length,texto; | ||
| 121 | + for(i=0;i<n;i++){ | ||
| 122 | + texto = '<div class="r" ><table ><tr><td><a target=_blank href="'+botoesIni[i].href+'" ><img src="'+botoesIni[i].img+'" /><br><br>'+botoesIni[i].titulo+'</a>'; | ||
| 123 | + if(botoesIni[i].subtitulo){ | ||
| 124 | + texto += botoesIni[i].subtitulo; | ||
| 125 | + } | ||
| 126 | + texto += '</td></tr></table></div>'; | ||
| 127 | + ins.push(texto); | ||
| 128 | + } | ||
| 129 | + $i("botoes").innerHTML = ins.join(""); | ||
| 130 | + $i("conteudo").style.height = i3GEO.util.getScrollHeight() + "px"; | ||
| 131 | +} |
init/index.php
| @@ -52,8 +52,16 @@ header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT'); | @@ -52,8 +52,16 @@ header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT'); | ||
| 52 | ?> | 52 | ?> |
| 53 | <script type="text/javascript" src="../classesjs/i3geo.js"></script> | 53 | <script type="text/javascript" src="../classesjs/i3geo.js"></script> |
| 54 | <script type="text/javascript" src="dicionario.js"></script> | 54 | <script type="text/javascript" src="dicionario.js"></script> |
| 55 | +<script type="text/javascript" src="index.js"></script> | ||
| 56 | +<script> | ||
| 57 | +men = ""; | ||
| 58 | +<?php | ||
| 59 | + if($i3geomaster[0]["usuario"] == "admin" && $i3geomaster[0]["senha"] == "admin" ){ | ||
| 60 | + echo "men = $"."trad(19,g_traducao_init);"; | ||
| 61 | + } | ||
| 62 | +?> | ||
| 63 | +</script> | ||
| 55 | <link rel="stylesheet" type="text/css" href="../admin/html/admin.css"> | 64 | <link rel="stylesheet" type="text/css" href="../admin/html/admin.css"> |
| 56 | - | ||
| 57 | <style> | 65 | <style> |
| 58 | body { | 66 | body { |
| 59 | padding-top: 0px; | 67 | padding-top: 0px; |
| @@ -62,7 +70,7 @@ body { | @@ -62,7 +70,7 @@ body { | ||
| 62 | font-size: 0.6cm; | 70 | font-size: 0.6cm; |
| 63 | font-family: Verdana, Arial, Helvetica, sans-serif; | 71 | font-family: Verdana, Arial, Helvetica, sans-serif; |
| 64 | background-color: rgb(250, 250, 250); | 72 | background-color: rgb(250, 250, 250); |
| 65 | - maergin: auto; | 73 | + margin: auto; |
| 66 | } | 74 | } |
| 67 | 75 | ||
| 68 | .r { | 76 | .r { |
| @@ -121,7 +129,7 @@ a { | @@ -121,7 +129,7 @@ a { | ||
| 121 | } | 129 | } |
| 122 | </style> | 130 | </style> |
| 123 | </head> | 131 | </head> |
| 124 | -<body class=" yui-skin-sam "> | 132 | +<body class=" yui-skin-sam " style="background-color: rgb(250, 250, 250);" > |
| 125 | <div class="borda"> | 133 | <div class="borda"> |
| 126 | <div id="bandeiras"></div> | 134 | <div id="bandeiras"></div> |
| 127 | <div> | 135 | <div> |
| @@ -131,14 +139,10 @@ a { | @@ -131,14 +139,10 @@ a { | ||
| 131 | 139 | ||
| 132 | <div id="conteudo" style="position: relative; top: -10px; margin: auto; max-width: 1000px; left: 10px;"> | 140 | <div id="conteudo" style="position: relative; top: -10px; margin: auto; max-width: 1000px; left: 10px;"> |
| 133 | <div style="margin-top: 5px;"> | 141 | <div style="margin-top: 5px;"> |
| 134 | - <?php | ||
| 135 | - if($i3geomaster[0]["usuario"] == "admin" && $i3geomaster[0]["senha"] == "admin" ){ | ||
| 136 | - echo "<p style='font-size:14px;color:red;margin-top:20px;'><script>document.write($"."trad(19,g_traducao_init));</script>"; | ||
| 137 | - } | ||
| 138 | - ?> | 142 | + <div id="mensagemLogin" style="font-size:14px;color:red;margin-top:20px;text-align: left;"></div> |
| 139 | <br> | 143 | <br> |
| 140 | <div id="botoes" style=""></div> | 144 | <div id="botoes" style=""></div> |
| 141 | - | 145 | + <script>mostraBotoes();</script> |
| 142 | <div class="r"> | 146 | <div class="r"> |
| 143 | <table> | 147 | <table> |
| 144 | <tbody> | 148 | <tbody> |
| @@ -181,140 +185,5 @@ a { | @@ -181,140 +185,5 @@ a { | ||
| 181 | </a> | 185 | </a> |
| 182 | </div> | 186 | </div> |
| 183 | </div> | 187 | </div> |
| 184 | - | ||
| 185 | -</body> | ||
| 186 | -<script> | ||
| 187 | -botoesIni = []; | ||
| 188 | -botoesIni.push({ | ||
| 189 | - "img":"start-here.png", | ||
| 190 | - "href":"../testainstal.php", | ||
| 191 | - "titulo":$trad(2,g_traducao_init) | ||
| 192 | - },{ | ||
| 193 | - "img":"applications-development-web.png", | ||
| 194 | - "href":"../admin", | ||
| 195 | - "titulo":$trad(3,g_traducao_init) | ||
| 196 | - },{ | ||
| 197 | - "img":"openlayers.png", | ||
| 198 | - "href":"../<?php echo $customDir; ?>/black_ol.htm", | ||
| 199 | - "titulo":$trad(4,g_traducao_init) | ||
| 200 | - },{ | ||
| 201 | - "img":"openlayersdebug.png", | ||
| 202 | - "href":"../<?php echo $customDir; ?>/openlayersdebug.htm", | ||
| 203 | - "titulo":$trad(5,g_traducao_init) | ||
| 204 | - },{ | ||
| 205 | - "img":"osm.png", | ||
| 206 | - "href":"../<?php echo $customDir; ?>/black_osm.htm", | ||
| 207 | - "titulo":$trad(23,g_traducao_init) | ||
| 208 | - },{ | ||
| 209 | - "img":"mashup.png", | ||
| 210 | - "href":"../mashups", | ||
| 211 | - "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>" | ||
| 212 | - },{ | ||
| 213 | - "img":"googlemaps.png", | ||
| 214 | - "href":"../<?php echo $customDir; ?>/black_gm.phtml", | ||
| 215 | - "titulo":$trad(6,g_traducao_init) | ||
| 216 | - },{ | ||
| 217 | - "img":"googlemaps_noite.png", | ||
| 218 | - "href":"../<?php echo $customDir; ?>/googlemaps_noite.phtml", | ||
| 219 | - "titulo":$trad(22,g_traducao_init) | ||
| 220 | - },{ | ||
| 221 | - "img":"googleearth.png", | ||
| 222 | - "href":"../<?php echo $customDir; ?>/googleearth.phtml", | ||
| 223 | - "titulo":$trad(7,g_traducao_init) | ||
| 224 | - },{ | ||
| 225 | - "img":"cartogramas.png", | ||
| 226 | - "href":"../<?php echo $customDir; ?>/black_carto_ol.htm", | ||
| 227 | - "titulo":$trad(8,g_traducao_init) | ||
| 228 | - },{ | ||
| 229 | - "img":"editor.png", | ||
| 230 | - "href":"../ferramentas/metaestat/editorlimites.php", | ||
| 231 | - "titulo":$trad(9,g_traducao_init) | ||
| 232 | - },{ | ||
| 233 | - "img":"svn-update.png", | ||
| 234 | - "href":"../datadownload.htm", | ||
| 235 | - "titulo":$trad(10,g_traducao_init) | ||
| 236 | - },{ | ||
| 237 | - "img":"ogc_logo.jpg", | ||
| 238 | - "href":"../ogc.htm", | ||
| 239 | - "titulo":$trad(11,g_traducao_init) | ||
| 240 | - },{ | ||
| 241 | - "img":"application-vnd-google-earth-kml.png", | ||
| 242 | - "href":"../kml.php", | ||
| 243 | - "titulo":$trad(12,g_traducao_init) | ||
| 244 | - },{ | ||
| 245 | - "img":"../imagens/saiku_free_small.png", | ||
| 246 | - "href":"../ferramentas/saiku/esquemaxml.php?locaplic="+window.location.href.replace("/init/index.php",""), | ||
| 247 | - "titulo":$trad(25,g_traducao_init), | ||
| 248 | - "subtitulo": " <a style='cursor:pointer;' target=_blank src='https://medium.com/innovative-business-intelligence/so-people-who-land-on-our-community-download-page-will-notice-a-subtle-difference-when-they-click-1b61aca316c5' >"+$trad(29,g_traducao_init)+"</a>", | ||
| 249 | - },{ | ||
| 250 | - "img":"../imagens/gvsig.jpg", | ||
| 251 | - "href":"../pacotes/gvsig/gvsig2mapfile/upload.htm", | ||
| 252 | - "titulo":$trad(26,g_traducao_init) | ||
| 253 | - },{ | ||
| 254 | - "img":"insert-link.png", | ||
| 255 | - "href":"../geradordelinks.htm", | ||
| 256 | - "titulo":$trad(13,g_traducao_init) | ||
| 257 | - },{ | ||
| 258 | - "img":"atlas.png", | ||
| 259 | - "href":"../atlas", | ||
| 260 | - "titulo":$trad(27,g_traducao_init) | ||
| 261 | - },{ | ||
| 262 | - "img":"folder-image.png", | ||
| 263 | - "href":"../exemplos", | ||
| 264 | - "titulo":$trad(14,g_traducao_init) | ||
| 265 | - },{ | ||
| 266 | - "img":"applications-development.png", | ||
| 267 | - "href":"../pacotes/utils/index.php", | ||
| 268 | - "titulo":$trad(33,g_traducao_init) | ||
| 269 | - },{ | ||
| 270 | - "img":"accessories-dictionary.png", | ||
| 271 | - "href":"../guia_de_migracao.txt", | ||
| 272 | - "titulo":$trad(17,g_traducao_init) | ||
| 273 | - },{ | ||
| 274 | - "img":"accessories-dictionary.png", | ||
| 275 | - "href":"../documentacao", | ||
| 276 | - "titulo":$trad(24,g_traducao_init) | ||
| 277 | - },{ | ||
| 278 | - "img":"accessories-dictionary.png", | ||
| 279 | - "href":"http://moodle.gvsig-training.com/course/view.php?id=11", | ||
| 280 | - "titulo":$trad(28,g_traducao_init) | ||
| 281 | - },{ | ||
| 282 | - "img":"tools-report-bug.png", | ||
| 283 | - "href":"http://svn.softwarepublico.gov.br/trac/i3geo/newticket", | ||
| 284 | - "titulo":$trad(16,g_traducao_init) | ||
| 285 | - },{ | ||
| 286 | - "img":"trac_logo_mini.png", | ||
| 287 | - "href":"http://svn.softwarepublico.gov.br/trac/i3geo/wiki", | ||
| 288 | - "titulo":$trad(30,g_traducao_init) | ||
| 289 | - },{ | ||
| 290 | - "img":"logo_psp.png", | ||
| 291 | - "href":"http://www.softwarepublico.gov.br/ver-comunidade?community_id=1444332", | ||
| 292 | - "titulo":$trad(31,g_traducao_init) | ||
| 293 | - },{ | ||
| 294 | - "img":"mailman.jpg", | ||
| 295 | - "href":"http://lists.osgeo.org/cgi-bin/mailman/listinfo/i3geo", | ||
| 296 | - "titulo":$trad(32,g_traducao_init) | ||
| 297 | - } | ||
| 298 | -); | ||
| 299 | -mostraBotoes(); | ||
| 300 | - | ||
| 301 | -i3GEO.configura.locaplic = ".."; | ||
| 302 | -i3GEO.idioma.IDSELETOR = "bandeiras"; | ||
| 303 | -i3GEO.idioma.mostraSeletor(); | ||
| 304 | -i3GEO.barraDeBotoes.ATIVA = false; | ||
| 305 | -function mostraBotoes(){ | ||
| 306 | - var ins = [],i,n = botoesIni.length,texto; | ||
| 307 | - for(i=0;i<n;i++){ | ||
| 308 | - texto = '<div class="r" ><table ><tr><td><a target=_blank href="'+botoesIni[i].href+'" ><img src="'+botoesIni[i].img+'" /><br><br>'+botoesIni[i].titulo+'</a>'; | ||
| 309 | - if(botoesIni[i].subtitulo){ | ||
| 310 | - texto += botoesIni[i].subtitulo; | ||
| 311 | - } | ||
| 312 | - texto += '</td></tr></table></div>'; | ||
| 313 | - ins.push(texto); | ||
| 314 | - } | ||
| 315 | - $i("botoes").innerHTML = ins.join(""); | ||
| 316 | - $i("conteudo").style.height = i3GEO.util.getScrollHeight() + "px"; | ||
| 317 | -} | ||
| 318 | - | ||
| 319 | -</script> | 188 | + </body> |
| 320 | </html> | 189 | </html> |