Commit 57dacdda26b8f5ea8ad63c2dfee38bd49490986c
1 parent
8ee3c857
Exists in
master
and in
7 other branches
Inclusão do parâmetro &temasa que quando especificado inicia o mapa diretamente
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
mobile/index.php
| ... | ... | @@ -64,6 +64,7 @@ require_once("../classesphp/funcoes_gerais.php"); |
| 64 | 64 | include("../classesphp/classe_menutemas.php"); |
| 65 | 65 | include("../classesphp/carrega_ext.php"); |
| 66 | 66 | include("../ms_configura.php"); |
| 67 | +if (!isset($temasa)){$temasa = "";} | |
| 67 | 68 | $m = new Menutemas($tmpfname,""); |
| 68 | 69 | $mapas = $m->pegaListaDeMapas($locmapas); |
| 69 | 70 | echo "<h1>Escolha um dos mapas:</h1>"; |
| ... | ... | @@ -77,8 +78,8 @@ echo "<input type=radio onclick='localizar()' />Procurar lugar<br><br>"; |
| 77 | 78 | <form id=f action='inicia.php' method='get' > |
| 78 | 79 | <input id='wmobile' type=hidden name='wmobile' value='' /> |
| 79 | 80 | <input id='hmobile' type=hidden name='hmobile' value='' /> |
| 80 | -<input type='hidden' id='temasa' name='temasa' value='' /> | |
| 81 | -<input type='hidden' id='layers' name='layers' value='' /> | |
| 81 | +<input type='hidden' id='temasa' name='temasa' value='<?php echo $temasa;?>' /> | |
| 82 | +<input type='hidden' id='layers' name='layers' value='<?php echo $temasa;?>' /> | |
| 82 | 83 | <input type='hidden' id='tipo' name='tipo' value='inicia' /> |
| 83 | 84 | </form> |
| 84 | 85 | <hr> |
| ... | ... | @@ -92,6 +93,8 @@ if (w > 600){var w = w/2;} |
| 92 | 93 | if (h > 600){var h = h/2;} |
| 93 | 94 | document.getElementById('wmobile').value = w; |
| 94 | 95 | document.getElementById('hmobile').value = h; |
| 96 | +if ('<?php echo $temasa;?>' != "") | |
| 97 | +{document.getElementById('f').submit();} | |
| 95 | 98 | /* |
| 96 | 99 | Function: ligar |
| 97 | 100 | ... | ... |