Commit 57dacdda26b8f5ea8ad63c2dfee38bd49490986c

Authored by Edmar Moretti
1 parent 8ee3c857

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,6 +64,7 @@ require_once("../classesphp/funcoes_gerais.php");
64 include("../classesphp/classe_menutemas.php"); 64 include("../classesphp/classe_menutemas.php");
65 include("../classesphp/carrega_ext.php"); 65 include("../classesphp/carrega_ext.php");
66 include("../ms_configura.php"); 66 include("../ms_configura.php");
  67 +if (!isset($temasa)){$temasa = "";}
67 $m = new Menutemas($tmpfname,""); 68 $m = new Menutemas($tmpfname,"");
68 $mapas = $m->pegaListaDeMapas($locmapas); 69 $mapas = $m->pegaListaDeMapas($locmapas);
69 echo "<h1>Escolha um dos mapas:</h1>"; 70 echo "<h1>Escolha um dos mapas:</h1>";
@@ -77,8 +78,8 @@ echo &quot;&lt;input type=radio onclick=&#39;localizar()&#39; /&gt;Procurar lugar&lt;br&gt;&lt;br&gt;&quot;; @@ -77,8 +78,8 @@ echo &quot;&lt;input type=radio onclick=&#39;localizar()&#39; /&gt;Procurar lugar&lt;br&gt;&lt;br&gt;&quot;;
77 <form id=f action='inicia.php' method='get' > 78 <form id=f action='inicia.php' method='get' >
78 <input id='wmobile' type=hidden name='wmobile' value='' /> 79 <input id='wmobile' type=hidden name='wmobile' value='' />
79 <input id='hmobile' type=hidden name='hmobile' value='' /> 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 <input type='hidden' id='tipo' name='tipo' value='inicia' /> 83 <input type='hidden' id='tipo' name='tipo' value='inicia' />
83 </form> 84 </form>
84 <hr> 85 <hr>
@@ -92,6 +93,8 @@ if (w &gt; 600){var w = w/2;} @@ -92,6 +93,8 @@ if (w &gt; 600){var w = w/2;}
92 if (h > 600){var h = h/2;} 93 if (h > 600){var h = h/2;}
93 document.getElementById('wmobile').value = w; 94 document.getElementById('wmobile').value = w;
94 document.getElementById('hmobile').value = h; 95 document.getElementById('hmobile').value = h;
  96 +if ('<?php echo $temasa;?>' != "")
  97 +{document.getElementById('f').submit();}
95 /* 98 /*
96 Function: ligar 99 Function: ligar
97 100