@@ -163,11 +163,26 @@ discard block |
||
163 | 163 | <li><div class="checkbox"><label><input type="checkbox" name="notamcb" value="1" onclick="showNotam();" /><?php echo _("Display NOTAM"); ?></label></div></li> |
164 | 164 | <li><?php echo _("NOTAM scope:"); ?> |
165 | 165 | <select class="selectpicker" onchange="notamscope(this);"> |
166 | - <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') print ' selected'; ?>>All</option> |
|
167 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') print ' selected'; ?>>Airport/Enroute warning</option> |
|
168 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') print ' selected'; ?>>Airport warning</option> |
|
169 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') print ' selected'; ?>>Navigation warning</option> |
|
170 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') print ' selected'; ?>>Enroute warning</option> |
|
166 | + <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') { |
|
167 | + print ' selected'; |
|
168 | +} |
|
169 | +?>>All</option> |
|
170 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') { |
|
171 | + print ' selected'; |
|
172 | +} |
|
173 | +?>>Airport/Enroute warning</option> |
|
174 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') { |
|
175 | + print ' selected'; |
|
176 | +} |
|
177 | +?>>Airport warning</option> |
|
178 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') { |
|
179 | + print ' selected'; |
|
180 | +} |
|
181 | +?>>Navigation warning</option> |
|
182 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') { |
|
183 | + print ' selected'; |
|
184 | +} |
|
185 | +?>>Enroute warning</option> |
|
171 | 186 | </select |
172 | 187 | </li> |
173 | 188 | </ul> |
@@ -195,7 +210,12 @@ discard block |
||
195 | 210 | <div class="form-group"> |
196 | 211 | <label>From (UTC):</label> |
197 | 212 | <div class='input-group date' id='datetimepicker1'> |
198 | - <input type='text' name="start_date" class="form-control" value="<?php if (isset($_POST['start_date'])) print $_POST['start_date']; elseif (isset($_COOKIE['archive_begin'])) print date("m/d/Y h:i a",$_COOKIE['archive_begin']); ?>" required /> |
|
213 | + <input type='text' name="start_date" class="form-control" value="<?php if (isset($_POST['start_date'])) { |
|
214 | + print $_POST['start_date']; |
|
215 | +} elseif (isset($_COOKIE['archive_begin'])) { |
|
216 | + print date("m/d/Y h:i a",$_COOKIE['archive_begin']); |
|
217 | +} |
|
218 | +?>" required /> |
|
199 | 219 | <span class="input-group-addon"> |
200 | 220 | <span class="glyphicon glyphicon-calendar"></span> |
201 | 221 | </span> |
@@ -204,7 +224,12 @@ discard block |
||
204 | 224 | <div class="form-group"> |
205 | 225 | <label>To (UTC):</label> |
206 | 226 | <div class='input-group date' id='datetimepicker2'> |
207 | - <input type='text' name="end_date" class="form-control" value="<?php if (isset($_POST['end_date'])) print $_POST['end_date']; elseif (isset($_COOKIE['archive_end'])) print date("m/d/Y h:i a",$_COOKIE['archive_end']); ?>" /> |
|
227 | + <input type='text' name="end_date" class="form-control" value="<?php if (isset($_POST['end_date'])) { |
|
228 | + print $_POST['end_date']; |
|
229 | +} elseif (isset($_COOKIE['archive_end'])) { |
|
230 | + print date("m/d/Y h:i a",$_COOKIE['archive_end']); |
|
231 | +} |
|
232 | +?>" /> |
|
208 | 233 | <span class="input-group-addon"> |
209 | 234 | <span class="glyphicon glyphicon-calendar"></span> |
210 | 235 | </span> |
@@ -229,8 +254,20 @@ discard block |
||
229 | 254 | </script> |
230 | 255 | <li><?php echo _("Playback speed:"); ?> |
231 | 256 | <div class="range"> |
232 | - <input type="range" min="0" max="50" step="1" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_POST['archivespeed'])) print $_POST['archivespeed']; elseif (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?>"> |
|
233 | - <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?></output> |
|
257 | + <input type="range" min="0" max="50" step="1" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_POST['archivespeed'])) { |
|
258 | + print $_POST['archivespeed']; |
|
259 | +} elseif (isset($_COOKIE['archive_speed'])) { |
|
260 | + print $_COOKIE['archive_speed']; |
|
261 | +} else { |
|
262 | + print '1'; |
|
263 | +} |
|
264 | +?>"> |
|
265 | + <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) { |
|
266 | + print $_COOKIE['archive_speed']; |
|
267 | +} else { |
|
268 | + print '1'; |
|
269 | +} |
|
270 | +?></output> |
|
234 | 271 | </div> |
235 | 272 | </li> |
236 | 273 | <li><input type="submit" name="archive" value="Show archive" class="btn btn-primary" /></li> |
@@ -252,15 +289,27 @@ discard block |
||
252 | 289 | <li><?php echo _("Type of Map:"); ?> |
253 | 290 | <select class="selectpicker" onchange="mapType(this);"> |
254 | 291 | <?php |
255 | - if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
|
256 | - else $MapType = $_COOKIE['MapType']; |
|
292 | + if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') { |
|
293 | + $MapType = $globalMapProvider; |
|
294 | + } else { |
|
295 | + $MapType = $_COOKIE['MapType']; |
|
296 | + } |
|
257 | 297 | ?> |
258 | 298 | <?php |
259 | 299 | if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
260 | 300 | ?> |
261 | - <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
|
262 | - <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
|
263 | - <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
|
301 | + <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') { |
|
302 | + print ' selected'; |
|
303 | +} |
|
304 | +?>>Bing-Aerial</option> |
|
305 | + <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') { |
|
306 | + print ' selected'; |
|
307 | +} |
|
308 | +?>>Bing-Hybrid</option> |
|
309 | + <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') { |
|
310 | + print ' selected'; |
|
311 | +} |
|
312 | +?>>Bing-Road</option> |
|
264 | 313 | <?php |
265 | 314 | } |
266 | 315 | ?> |
@@ -270,56 +319,131 @@ discard block |
||
270 | 319 | <?php |
271 | 320 | if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
272 | 321 | ?> |
273 | - <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
|
274 | - <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
|
275 | - <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
|
322 | + <option value="Here-Aerial"<?php if ($MapType == 'Here') { |
|
323 | + print ' selected'; |
|
324 | +} |
|
325 | +?>>Here-Aerial</option> |
|
326 | + <option value="Here-Hybrid"<?php if ($MapType == 'Here') { |
|
327 | + print ' selected'; |
|
328 | +} |
|
329 | +?>>Here-Hybrid</option> |
|
330 | + <option value="Here-Road"<?php if ($MapType == 'Here') { |
|
331 | + print ' selected'; |
|
332 | +} |
|
333 | +?>>Here-Road</option> |
|
276 | 334 | <?php |
277 | 335 | } |
278 | 336 | ?> |
279 | 337 | <?php |
280 | 338 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
281 | 339 | ?> |
282 | - <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
|
283 | - <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
|
284 | - <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
|
285 | - <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
|
340 | + <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') { |
|
341 | + print ' selected'; |
|
342 | +} |
|
343 | +?>>Google Roadmap</option> |
|
344 | + <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') { |
|
345 | + print ' selected'; |
|
346 | +} |
|
347 | +?>>Google Satellite</option> |
|
348 | + <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') { |
|
349 | + print ' selected'; |
|
350 | +} |
|
351 | +?>>Google Hybrid</option> |
|
352 | + <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') { |
|
353 | + print ' selected'; |
|
354 | +} |
|
355 | +?>>Google Terrain</option> |
|
286 | 356 | <?php |
287 | 357 | } |
288 | 358 | ?> |
289 | 359 | <?php |
290 | 360 | if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
291 | 361 | ?> |
292 | - <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
|
293 | - <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
|
294 | - <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
|
362 | + <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') { |
|
363 | + print ' selected'; |
|
364 | +} |
|
365 | +?>>MapQuest-OSM</option> |
|
366 | + <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') { |
|
367 | + print ' selected'; |
|
368 | +} |
|
369 | +?>>MapQuest-Aerial</option> |
|
370 | + <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') { |
|
371 | + print ' selected'; |
|
372 | +} |
|
373 | +?>>MapQuest-Hybrid</option> |
|
295 | 374 | <?php |
296 | 375 | } |
297 | 376 | ?> |
298 | - <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
|
377 | + <option value="Yandex"<?php if ($MapType == 'Yandex') { |
|
378 | + print ' selected'; |
|
379 | +} |
|
380 | +?>>Yandex</option> |
|
299 | 381 | <?php |
300 | 382 | } |
301 | 383 | ?> |
302 | 384 | <?php |
303 | 385 | if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
304 | - if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
|
305 | - else $MapBoxId = $_COOKIE['MapTypeId']; |
|
386 | + if (!isset($_COOKIE['MapTypeId'])) { |
|
387 | + $MapBoxId = 'default'; |
|
388 | + } else { |
|
389 | + $MapBoxId = $_COOKIE['MapTypeId']; |
|
390 | + } |
|
306 | 391 | ?> |
307 | - <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
|
308 | - <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
|
309 | - <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option> |
|
310 | - <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') print ' selected'; ?>>Mapbox dark</option> |
|
311 | - <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') print ' selected'; ?>>Mapbox satellite</option> |
|
312 | - <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') print ' selected'; ?>>Mapbox streets-satellite</option> |
|
313 | - <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') print ' selected'; ?>>Mapbox streets-basic</option> |
|
314 | - <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') print ' selected'; ?>>Mapbox comic</option> |
|
315 | - <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') print ' selected'; ?>>Mapbox outdoors</option> |
|
316 | - <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') print ' selected'; ?>>Mapbox pencil</option> |
|
317 | - <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
|
318 | - <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
|
392 | + <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') { |
|
393 | + print ' selected'; |
|
394 | +} |
|
395 | +?>>Mapbox default</option> |
|
396 | + <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') { |
|
397 | + print ' selected'; |
|
398 | +} |
|
399 | +?>>Mapbox streets</option> |
|
400 | + <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') { |
|
401 | + print ' selected'; |
|
402 | +} |
|
403 | +?>>Mapbox light</option> |
|
404 | + <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') { |
|
405 | + print ' selected'; |
|
406 | +} |
|
407 | +?>>Mapbox dark</option> |
|
408 | + <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') { |
|
409 | + print ' selected'; |
|
410 | +} |
|
411 | +?>>Mapbox satellite</option> |
|
412 | + <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') { |
|
413 | + print ' selected'; |
|
414 | +} |
|
415 | +?>>Mapbox streets-satellite</option> |
|
416 | + <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') { |
|
417 | + print ' selected'; |
|
418 | +} |
|
419 | +?>>Mapbox streets-basic</option> |
|
420 | + <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') { |
|
421 | + print ' selected'; |
|
422 | +} |
|
423 | +?>>Mapbox comic</option> |
|
424 | + <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') { |
|
425 | + print ' selected'; |
|
426 | +} |
|
427 | +?>>Mapbox outdoors</option> |
|
428 | + <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') { |
|
429 | + print ' selected'; |
|
430 | +} |
|
431 | +?>>Mapbox pencil</option> |
|
432 | + <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') { |
|
433 | + print ' selected'; |
|
434 | +} |
|
435 | +?>>Mapbox pirates</option> |
|
436 | + <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') { |
|
437 | + print ' selected'; |
|
438 | +} |
|
439 | +?>>Mapbox emerald</option> |
|
319 | 440 | <?php |
320 | 441 | } |
321 | 442 | ?> |
322 | - <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
|
443 | + <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') { |
|
444 | + print ' selected'; |
|
445 | +} |
|
446 | +?>>OpenStreetMap</option> |
|
323 | 447 | </select> |
324 | 448 | </li> |
325 | 449 | <?php |
@@ -327,10 +451,22 @@ discard block |
||
327 | 451 | ?> |
328 | 452 | <li><?php echo _("Type of Terrain:"); ?> |
329 | 453 | <select class="selectpicker" onchange="terrainType(this);"> |
330 | - <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') print ' selected'; ?>>stk terrain</option> |
|
331 | - <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected';?>>ellipsoid</option> |
|
332 | - <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected';?>>vr terrain</option> |
|
333 | - <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') print ' selected';?>>ArticDEM</option> |
|
454 | + <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') { |
|
455 | + print ' selected'; |
|
456 | +} |
|
457 | +?>>stk terrain</option> |
|
458 | + <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') { |
|
459 | + print ' selected'; |
|
460 | +} |
|
461 | +?>>ellipsoid</option> |
|
462 | + <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') { |
|
463 | + print ' selected'; |
|
464 | +} |
|
465 | +?>>vr terrain</option> |
|
466 | + <option value="articdem"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'articdem') { |
|
467 | + print ' selected'; |
|
468 | +} |
|
469 | +?>>ArticDEM</option> |
|
334 | 470 | </select> |
335 | 471 | </li> |
336 | 472 | <?php |
@@ -342,33 +478,69 @@ discard block |
||
342 | 478 | <?php |
343 | 479 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
344 | 480 | ?> |
345 | - <li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') print 'checked'; ?> ><?php echo _("Display flight info as popup"); ?></label></div></li> |
|
346 | - <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true')) print 'checked'; ?> ><?php echo _("Display flight path"); ?></label></div></li> |
|
347 | - <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || (isset($globalMapRoute) && $globalMapRoute)) print 'checked'; ?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
348 | - <li><div class="checkbox"><label><input type="checkbox" name="flightremainingroute" value="1" onclick="clickFlightRemainingRoute(this)" <?php if ((isset($_COOKIE['MapRemainingRoute']) && $_COOKIE['MapRemainingRoute'] == 'true') || !isset($_COOKIE['MapRemainingRoute']) || (isset($globalMapRemainingRoute) && $globalMapRemainingRoute)) print 'checked'; ?> ><?php echo _("Display flight remaining route on click"); ?></label></div></li> |
|
349 | - <li><div class="checkbox"><label><input type="checkbox" name="flightestimation" value="1" onclick="clickFlightEstimation(this)" <?php if ((isset($_COOKIE['flightestimation']) && $_COOKIE['flightestimation'] == 'true') || (!isset($_COOKIE['flightestimation']) && !isset($globalMapEstimation)) || (!isset($_COOKIE['flightestimation']) && isset($globalMapEstimation) && $globalMapEstimation)) print 'checked'; ?> ><?php echo _("Planes animate between updates"); ?></label></div></li> |
|
481 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') { |
|
482 | + print 'checked'; |
|
483 | +} |
|
484 | +?> ><?php echo _("Display flight info as popup"); ?></label></div></li> |
|
485 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true')) { |
|
486 | + print 'checked'; |
|
487 | +} |
|
488 | +?> ><?php echo _("Display flight path"); ?></label></div></li> |
|
489 | + <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || (isset($globalMapRoute) && $globalMapRoute)) { |
|
490 | + print 'checked'; |
|
491 | +} |
|
492 | +?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
493 | + <li><div class="checkbox"><label><input type="checkbox" name="flightremainingroute" value="1" onclick="clickFlightRemainingRoute(this)" <?php if ((isset($_COOKIE['MapRemainingRoute']) && $_COOKIE['MapRemainingRoute'] == 'true') || !isset($_COOKIE['MapRemainingRoute']) || (isset($globalMapRemainingRoute) && $globalMapRemainingRoute)) { |
|
494 | + print 'checked'; |
|
495 | +} |
|
496 | +?> ><?php echo _("Display flight remaining route on click"); ?></label></div></li> |
|
497 | + <li><div class="checkbox"><label><input type="checkbox" name="flightestimation" value="1" onclick="clickFlightEstimation(this)" <?php if ((isset($_COOKIE['flightestimation']) && $_COOKIE['flightestimation'] == 'true') || (!isset($_COOKIE['flightestimation']) && !isset($globalMapEstimation)) || (!isset($_COOKIE['flightestimation']) && isset($globalMapEstimation) && $globalMapEstimation)) { |
|
498 | + print 'checked'; |
|
499 | +} |
|
500 | +?> ><?php echo _("Planes animate between updates"); ?></label></div></li> |
|
350 | 501 | <?php |
351 | 502 | } |
352 | 503 | if (isset($globalSatellite) && $globalSatellite === TRUE) { |
353 | 504 | ?> |
354 | - <li><div class="checkbox"><label><input type="checkbox" name="satelliteestimation" value="1" onclick="clickSatelliteEstimation(this)" <?php if ((isset($_COOKIE['satelliteestimation']) && $_COOKIE['satelliteestimation'] == 'true') || (!isset($_COOKIE['satelliteestimation']) && !isset($globalMapEstimation)) || (!isset($_COOKIE['satelliteestimation']) && isset($globalMapEstimation) && $globalMapEstimation)) print 'checked'; ?> ><?php echo _("Satellites animate between updates"); ?></label></div></li> |
|
505 | + <li><div class="checkbox"><label><input type="checkbox" name="satelliteestimation" value="1" onclick="clickSatelliteEstimation(this)" <?php if ((isset($_COOKIE['satelliteestimation']) && $_COOKIE['satelliteestimation'] == 'true') || (!isset($_COOKIE['satelliteestimation']) && !isset($globalMapEstimation)) || (!isset($_COOKIE['satelliteestimation']) && isset($globalMapEstimation) && $globalMapEstimation)) { |
|
506 | + print 'checked'; |
|
507 | +} |
|
508 | +?> ><?php echo _("Satellites animate between updates"); ?></label></div></li> |
|
355 | 509 | <?php |
356 | 510 | } |
357 | 511 | } |
358 | 512 | ?> |
359 | - <li><div class="checkbox"><label><input type="checkbox" name="displayairports" value="1" onclick="clickDisplayAirports(this)" <?php if (isset($_COOKIE['displayairports']) && $_COOKIE['displayairports'] == 'true' || !isset($_COOKIE['displayairports'])) print 'checked'; ?> ><?php echo _("Display airports on map"); ?></label></div></li> |
|
360 | - <li><div class="checkbox"><label><input type="checkbox" name="displaygroundstation" value="1" onclick="clickDisplayGroundStation(this)" <?php if ((isset($_COOKIE['show_GroundStation']) && $_COOKIE['show_GroundStation'] == 'true') || (!isset($_COOKIE['show_GroundStation']) && (isset($globalMapGroundStation) && $globalMapGroundStation === TRUE))) print 'checked'; ?> ><?php echo _("Display ground station on map"); ?></label></div></li> |
|
361 | - <li><div class="checkbox"><label><input type="checkbox" name="displayweatherstation" value="1" onclick="clickDisplayWeatherStation(this)" <?php if ((isset($_COOKIE['show_WeatherStation']) && $_COOKIE['show_WeatherStation'] == 'true') || (!isset($_COOKIE['show_WeatherStation']) && (isset($globalMapWeatherStation) && $globalMapWeatherStation === TRUE))) print 'checked'; ?> ><?php echo _("Display weather station on map"); ?></label></div></li> |
|
362 | - <li><div class="checkbox"><label><input type="checkbox" name="displaylightning" value="1" onclick="clickDisplayLightning(this)" <?php if ((isset($_COOKIE['show_Lightning']) && $_COOKIE['show_Lightning'] == 'true') || (!isset($_COOKIE['show_Lightning']) && (isset($globalMapLightning) && $globalMapLightning === TRUE))) print 'checked'; ?> ><?php echo _("Display lightning on map"); ?></label></div></li> |
|
513 | + <li><div class="checkbox"><label><input type="checkbox" name="displayairports" value="1" onclick="clickDisplayAirports(this)" <?php if (isset($_COOKIE['displayairports']) && $_COOKIE['displayairports'] == 'true' || !isset($_COOKIE['displayairports'])) { |
|
514 | + print 'checked'; |
|
515 | +} |
|
516 | +?> ><?php echo _("Display airports on map"); ?></label></div></li> |
|
517 | + <li><div class="checkbox"><label><input type="checkbox" name="displaygroundstation" value="1" onclick="clickDisplayGroundStation(this)" <?php if ((isset($_COOKIE['show_GroundStation']) && $_COOKIE['show_GroundStation'] == 'true') || (!isset($_COOKIE['show_GroundStation']) && (isset($globalMapGroundStation) && $globalMapGroundStation === TRUE))) { |
|
518 | + print 'checked'; |
|
519 | +} |
|
520 | +?> ><?php echo _("Display ground station on map"); ?></label></div></li> |
|
521 | + <li><div class="checkbox"><label><input type="checkbox" name="displayweatherstation" value="1" onclick="clickDisplayWeatherStation(this)" <?php if ((isset($_COOKIE['show_WeatherStation']) && $_COOKIE['show_WeatherStation'] == 'true') || (!isset($_COOKIE['show_WeatherStation']) && (isset($globalMapWeatherStation) && $globalMapWeatherStation === TRUE))) { |
|
522 | + print 'checked'; |
|
523 | +} |
|
524 | +?> ><?php echo _("Display weather station on map"); ?></label></div></li> |
|
525 | + <li><div class="checkbox"><label><input type="checkbox" name="displaylightning" value="1" onclick="clickDisplayLightning(this)" <?php if ((isset($_COOKIE['show_Lightning']) && $_COOKIE['show_Lightning'] == 'true') || (!isset($_COOKIE['show_Lightning']) && (isset($globalMapLightning) && $globalMapLightning === TRUE))) { |
|
526 | + print 'checked'; |
|
527 | +} |
|
528 | +?> ><?php echo _("Display lightning on map"); ?></label></div></li> |
|
363 | 529 | <?php |
364 | 530 | if (isset($globalFires)) { |
365 | 531 | ?> |
366 | - <li><div class="checkbox"><label><input type="checkbox" name="displayfires" value="1" onclick="clickDisplayFires(this)" <?php if ((isset($_COOKIE['show_Fires']) && $_COOKIE['show_Fires'] == 'true') || (!isset($_COOKIE['show_Fires']) && (isset($globalMapFires) && $globalMapFires === TRUE))) print 'checked'; ?> ><?php echo _("Display fires on map"); ?></label></div></li> |
|
532 | + <li><div class="checkbox"><label><input type="checkbox" name="displayfires" value="1" onclick="clickDisplayFires(this)" <?php if ((isset($_COOKIE['show_Fires']) && $_COOKIE['show_Fires'] == 'true') || (!isset($_COOKIE['show_Fires']) && (isset($globalMapFires) && $globalMapFires === TRUE))) { |
|
533 | + print 'checked'; |
|
534 | +} |
|
535 | +?> ><?php echo _("Display fires on map"); ?></label></div></li> |
|
367 | 536 | <?php |
368 | 537 | } |
369 | 538 | if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
370 | 539 | ?> |
371 | - <li><div class="checkbox"><label><input type="checkbox" name="displayminimap" value="1" onclick="clickDisplayMinimap(this)" <?php if (!isset($_COOKIE['displayminimap']) || (isset($_COOKIE['displayminimap']) && $_COOKIE['displayminimap'] == 'true')) print 'checked'; ?> ><?php echo _("Show mini-map"); ?></label></div></li> |
|
540 | + <li><div class="checkbox"><label><input type="checkbox" name="displayminimap" value="1" onclick="clickDisplayMinimap(this)" <?php if (!isset($_COOKIE['displayminimap']) || (isset($_COOKIE['displayminimap']) && $_COOKIE['displayminimap'] == 'true')) { |
|
541 | + print 'checked'; |
|
542 | +} |
|
543 | +?> ><?php echo _("Show mini-map"); ?></label></div></li> |
|
372 | 544 | <?php |
373 | 545 | } |
374 | 546 | if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
@@ -381,17 +553,25 @@ discard block |
||
381 | 553 | if (function_exists('array_column')) { |
382 | 554 | if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
383 | 555 | ?> |
384 | - <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) print 'checked'; ?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
556 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
557 | + print 'checked'; |
|
558 | +} |
|
559 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
385 | 560 | <?php |
386 | 561 | } |
387 | 562 | } elseif (isset($globalSources)) { |
388 | 563 | $dispolar = false; |
389 | 564 | foreach ($globalSources as $testsource) { |
390 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
565 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) { |
|
566 | + $dispolar = true; |
|
567 | + } |
|
391 | 568 | } |
392 | 569 | if ($dispolar) { |
393 | 570 | ?> |
394 | - <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) print 'checked'; ?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
571 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
572 | + print 'checked'; |
|
573 | +} |
|
574 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
395 | 575 | <?php |
396 | 576 | } |
397 | 577 | } |
@@ -404,12 +584,22 @@ discard block |
||
404 | 584 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
405 | 585 | if (extension_loaded('gd') && function_exists('gd_info')) { |
406 | 586 | ?> |
407 | - <li><input type="checkbox" name="aircraftcoloraltitude" value="1" onclick="iconColorAltitude(this)" <?php if (isset($_COOKIE['IconColorAltitude']) && $_COOKIE['IconColorAltitude'] == 'true') print 'checked'; ?> ><?php echo _("Aircraft icon color based on altitude"); ?></li> |
|
587 | + <li><input type="checkbox" name="aircraftcoloraltitude" value="1" onclick="iconColorAltitude(this)" <?php if (isset($_COOKIE['IconColorAltitude']) && $_COOKIE['IconColorAltitude'] == 'true') { |
|
588 | + print 'checked'; |
|
589 | +} |
|
590 | +?> ><?php echo _("Aircraft icon color based on altitude"); ?></li> |
|
408 | 591 | <?php |
409 | 592 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
410 | 593 | ?> |
411 | 594 | <li><?php echo _("Aircraft icon color:"); ?> |
412 | - <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) print $_COOKIE['IconColor']; elseif (isset($globalAircraftIconColor)) print $globalAircraftIconColor; else print '1a3151'; ?>"> |
|
595 | + <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
596 | + print $_COOKIE['IconColor']; |
|
597 | +} elseif (isset($globalAircraftIconColor)) { |
|
598 | + print $globalAircraftIconColor; |
|
599 | +} else { |
|
600 | + print '1a3151'; |
|
601 | +} |
|
602 | +?>"> |
|
413 | 603 | </li> |
414 | 604 | <?php |
415 | 605 | } |
@@ -421,7 +611,14 @@ discard block |
||
421 | 611 | if (extension_loaded('gd') && function_exists('gd_info')) { |
422 | 612 | ?> |
423 | 613 | <li><?php echo _("Marine icon color:"); ?> |
424 | - <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) print $_COOKIE['MarineIconColor']; elseif (isset($globalMarineIconColor)) print $globalMarineIconColor; else print '1a3151'; ?>"> |
|
614 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
615 | + print $_COOKIE['MarineIconColor']; |
|
616 | +} elseif (isset($globalMarineIconColor)) { |
|
617 | + print $globalMarineIconColor; |
|
618 | +} else { |
|
619 | + print '1a3151'; |
|
620 | +} |
|
621 | +?>"> |
|
425 | 622 | </li> |
426 | 623 | <?php |
427 | 624 | } |
@@ -432,7 +629,14 @@ discard block |
||
432 | 629 | if (extension_loaded('gd') && function_exists('gd_info')) { |
433 | 630 | ?> |
434 | 631 | <li><?php echo _("Tracker icon color:"); ?> |
435 | - <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) print $_COOKIE['TrackerIconColor']; elseif (isset($globalTrackerIconColor)) print $globalTrackerIconColor; else print '1a3151'; ?>"> |
|
632 | + <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) { |
|
633 | + print $_COOKIE['TrackerIconColor']; |
|
634 | +} elseif (isset($globalTrackerIconColor)) { |
|
635 | + print $globalTrackerIconColor; |
|
636 | +} else { |
|
637 | + print '1a3151'; |
|
638 | +} |
|
639 | +?>"> |
|
436 | 640 | </li> |
437 | 641 | <?php |
438 | 642 | } |
@@ -443,8 +647,22 @@ discard block |
||
443 | 647 | ?> |
444 | 648 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
445 | 649 | <div class="range"> |
446 | - <input type="range" min="0" max="19" step="1" name="airportzoom" onchange="range.value=value;airportDisplayZoom(airportzoom.value);" value="<?php if (isset($_COOKIE['AirportZoom'])) print $_COOKIE['AirportZoom']; elseif (isset($globalAirportZoom)) print $globalAirportZoom; else print '7'; ?>"> |
|
447 | - <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) print $_COOKIE['AirportZoom']; elseif (isset($globalAirportZoom)) print $globalAirportZoom; else print '7'; ?></output> |
|
650 | + <input type="range" min="0" max="19" step="1" name="airportzoom" onchange="range.value=value;airportDisplayZoom(airportzoom.value);" value="<?php if (isset($_COOKIE['AirportZoom'])) { |
|
651 | + print $_COOKIE['AirportZoom']; |
|
652 | +} elseif (isset($globalAirportZoom)) { |
|
653 | + print $globalAirportZoom; |
|
654 | +} else { |
|
655 | + print '7'; |
|
656 | +} |
|
657 | +?>"> |
|
658 | + <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) { |
|
659 | + print $_COOKIE['AirportZoom']; |
|
660 | +} elseif (isset($globalAirportZoom)) { |
|
661 | + print $globalAirportZoom; |
|
662 | +} else { |
|
663 | + print '7'; |
|
664 | +} |
|
665 | +?></output> |
|
448 | 666 | </div> |
449 | 667 | </li> |
450 | 668 | <?php |
@@ -456,10 +674,23 @@ discard block |
||
456 | 674 | <?php |
457 | 675 | if (!isset($globalAircraft) || $globalAircraft === TRUE) { |
458 | 676 | ?> |
459 | - <li><input type="checkbox" name="useliveries" value="1" onclick="useLiveries(this)" <?php if (isset($_COOKIE['UseLiveries']) && $_COOKIE['UseLiveries'] == 'true') print 'checked'; ?> ><?php echo _("Use airlines liveries"); ?></li> |
|
460 | - <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Aircraft color"); ?></li> |
|
677 | + <li><input type="checkbox" name="useliveries" value="1" onclick="useLiveries(this)" <?php if (isset($_COOKIE['UseLiveries']) && $_COOKIE['UseLiveries'] == 'true') { |
|
678 | + print 'checked'; |
|
679 | +} |
|
680 | +?> ><?php echo _("Use airlines liveries"); ?></li> |
|
681 | + <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') { |
|
682 | + print 'checked'; |
|
683 | +} |
|
684 | +?> ><?php echo _("Force Aircraft color"); ?></li> |
|
461 | 685 | <li><?php echo _("Aircraft icon color:"); ?> |
462 | - <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) print $_COOKIE['IconColor']; elseif (isset($globalAircraftIconColor)) print $globalAircraftIconColor; else print 'ff0000'; ?>"> |
|
686 | + <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
687 | + print $_COOKIE['IconColor']; |
|
688 | +} elseif (isset($globalAircraftIconColor)) { |
|
689 | + print $globalAircraftIconColor; |
|
690 | +} else { |
|
691 | + print 'ff0000'; |
|
692 | +} |
|
693 | +?>"> |
|
463 | 694 | </li> |
464 | 695 | <?php |
465 | 696 | } |
@@ -467,9 +698,19 @@ discard block |
||
467 | 698 | <?php |
468 | 699 | if (isset($globalMarine) && $globalMarine === TRUE) { |
469 | 700 | ?> |
470 | - <li><input type="checkbox" name="marinecolorforce" value="1" onclick="MarineiconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Marine color"); ?></li> |
|
701 | + <li><input type="checkbox" name="marinecolorforce" value="1" onclick="MarineiconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') { |
|
702 | + print 'checked'; |
|
703 | +} |
|
704 | +?> ><?php echo _("Force Marine color"); ?></li> |
|
471 | 705 | <li><?php echo _("Marine icon color:"); ?> |
472 | - <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) print $_COOKIE['MarineIconColor']; elseif (isset($globalMarineIconColor)) print $globalMarineIconColor; else print 'ff0000'; ?>"> |
|
706 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="MarineiconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
707 | + print $_COOKIE['MarineIconColor']; |
|
708 | +} elseif (isset($globalMarineIconColor)) { |
|
709 | + print $globalMarineIconColor; |
|
710 | +} else { |
|
711 | + print 'ff0000'; |
|
712 | +} |
|
713 | +?>"> |
|
473 | 714 | </li> |
474 | 715 | <?php |
475 | 716 | } |
@@ -477,9 +718,19 @@ discard block |
||
477 | 718 | <?php |
478 | 719 | if (isset($globalTracker) && $globalTracker === TRUE) { |
479 | 720 | ?> |
480 | - <li><input type="checkbox" name="trackercolorforce" value="1" onclick="TrackericonColorForce(this)" <?php if (isset($_COOKIE['TrackerIconColorForce']) && $_COOKIE['TrackerIconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Tracker color"); ?></li> |
|
721 | + <li><input type="checkbox" name="trackercolorforce" value="1" onclick="TrackericonColorForce(this)" <?php if (isset($_COOKIE['TrackerIconColorForce']) && $_COOKIE['TrackerIconColorForce'] == 'true') { |
|
722 | + print 'checked'; |
|
723 | +} |
|
724 | +?> ><?php echo _("Force Tracker color"); ?></li> |
|
481 | 725 | <li><?php echo _("Tracker icon color:"); ?> |
482 | - <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) print $_COOKIE['TrackerIconColor']; elseif (isset($globalTrackerIconColor)) print $globalTrackerIconColor; else print 'ff0000'; ?>"> |
|
726 | + <input type="color" name="trackercolor" id="html5colorpicker" onchange="TrackericonColor(trackercolor.value);" value="#<?php if (isset($_COOKIE['TrackerIconColor'])) { |
|
727 | + print $_COOKIE['TrackerIconColor']; |
|
728 | +} elseif (isset($globalTrackerIconColor)) { |
|
729 | + print $globalTrackerIconColor; |
|
730 | +} else { |
|
731 | + print 'ff0000'; |
|
732 | +} |
|
733 | +?>"> |
|
483 | 734 | </li> |
484 | 735 | <?php |
485 | 736 | } |
@@ -487,22 +738,46 @@ discard block |
||
487 | 738 | ?> |
488 | 739 | <li><?php echo _("Distance unit:"); ?> |
489 | 740 | <select class="selectpicker" onchange="unitdistance(this);"> |
490 | - <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) echo ' selected'; ?>>km</option> |
|
491 | - <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) echo ' selected'; ?>>nm</option> |
|
492 | - <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) echo ' selected'; ?>>mi</option> |
|
741 | + <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) { |
|
742 | + echo ' selected'; |
|
743 | +} |
|
744 | +?>>km</option> |
|
745 | + <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) { |
|
746 | + echo ' selected'; |
|
747 | +} |
|
748 | +?>>nm</option> |
|
749 | + <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) { |
|
750 | + echo ' selected'; |
|
751 | +} |
|
752 | +?>>mi</option> |
|
493 | 753 | </select> |
494 | 754 | </li> |
495 | 755 | <li><?php echo _("Altitude unit:"); ?> |
496 | 756 | <select class="selectpicker" onchange="unitaltitude(this);"> |
497 | - <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) echo ' selected'; ?>>m</option> |
|
498 | - <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) echo ' selected'; ?>>feet</option> |
|
757 | + <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) { |
|
758 | + echo ' selected'; |
|
759 | +} |
|
760 | +?>>m</option> |
|
761 | + <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) { |
|
762 | + echo ' selected'; |
|
763 | +} |
|
764 | +?>>feet</option> |
|
499 | 765 | </select> |
500 | 766 | </li> |
501 | 767 | <li><?php echo _("Speed unit:"); ?> |
502 | 768 | <select class="selectpicker" onchange="unitspeed(this);"> |
503 | - <option value="kmh"<?php if ((!isset($_COOKIE['unitspeed']) && (!isset($globalUnitSpeed) || (isset($globalUnitSpeed) && $globalUnitSpeed == 'kmh'))) || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'kmh')) echo ' selected'; ?>>km/h</option> |
|
504 | - <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) echo ' selected'; ?>>mph</option> |
|
505 | - <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) echo ' selected'; ?>>knots</option> |
|
769 | + <option value="kmh"<?php if ((!isset($_COOKIE['unitspeed']) && (!isset($globalUnitSpeed) || (isset($globalUnitSpeed) && $globalUnitSpeed == 'kmh'))) || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'kmh')) { |
|
770 | + echo ' selected'; |
|
771 | +} |
|
772 | +?>>km/h</option> |
|
773 | + <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) { |
|
774 | + echo ' selected'; |
|
775 | +} |
|
776 | +?>>mph</option> |
|
777 | + <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) { |
|
778 | + echo ' selected'; |
|
779 | +} |
|
780 | +?>>knots</option> |
|
506 | 781 | </select> |
507 | 782 | </li> |
508 | 783 | |
@@ -520,9 +795,18 @@ discard block |
||
520 | 795 | <?php |
521 | 796 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
522 | 797 | ?> |
523 | - <?php if (isset($globalVATSIM) && $globalVATSIM) { ?><li><input type="checkbox" name="vatsim" value="1" onclick="clickVATSIM(this)" <?php if ((isset($_COOKIE['ShowVATSIM']) && $_COOKIE['ShowVATSIM'] == 'true') || !isset($_COOKIE['ShowVATSIM'])) print 'checked'; ?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?> |
|
524 | - <?php if (isset($globalIVAO) && $globalIVAO) { ?><li><input type="checkbox" name="ivao" value="1" onclick="clickIVAO(this)" <?php if ((isset($_COOKIE['ShowIVAO']) && $_COOKIE['ShowIVAO'] == 'true') || !isset($_COOKIE['ShowIVAO'])) print 'checked'; ?> ><?php echo _("Display IVAO data"); ?></li><?php } ?> |
|
525 | - <?php if (isset($globalphpVMS) && $globalphpVMS) { ?><li><input type="checkbox" name="phpvms" value="1" onclick="clickphpVMS(this)" <?php if ((isset($_COOKIE['ShowVMS']) && $_COOKIE['ShowVMS'] == 'true') || !isset($_COOKIE['ShowVMS'])) print 'checked'; ?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
|
798 | + <?php if (isset($globalVATSIM) && $globalVATSIM) { ?><li><input type="checkbox" name="vatsim" value="1" onclick="clickVATSIM(this)" <?php if ((isset($_COOKIE['ShowVATSIM']) && $_COOKIE['ShowVATSIM'] == 'true') || !isset($_COOKIE['ShowVATSIM'])) { |
|
799 | + print 'checked'; |
|
800 | +} |
|
801 | +?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?> |
|
802 | + <?php if (isset($globalIVAO) && $globalIVAO) { ?><li><input type="checkbox" name="ivao" value="1" onclick="clickIVAO(this)" <?php if ((isset($_COOKIE['ShowIVAO']) && $_COOKIE['ShowIVAO'] == 'true') || !isset($_COOKIE['ShowIVAO'])) { |
|
803 | + print 'checked'; |
|
804 | +} |
|
805 | +?> ><?php echo _("Display IVAO data"); ?></li><?php } ?> |
|
806 | + <?php if (isset($globalphpVMS) && $globalphpVMS) { ?><li><input type="checkbox" name="phpvms" value="1" onclick="clickphpVMS(this)" <?php if ((isset($_COOKIE['ShowVMS']) && $_COOKIE['ShowVMS'] == 'true') || !isset($_COOKIE['ShowVMS'])) { |
|
807 | + print 'checked'; |
|
808 | +} |
|
809 | +?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
|
526 | 810 | <?php |
527 | 811 | } |
528 | 812 | ?> |
@@ -530,10 +814,16 @@ discard block |
||
530 | 814 | if (!(isset($globalVA) && $globalVA) && !(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
531 | 815 | ?> |
532 | 816 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
533 | - <li><div class="checkbox"><label><input type="checkbox" name="sbs" value="1" onclick="clickSBS1(this)" <?php if ((isset($_COOKIE['ShowSBS1']) && $_COOKIE['ShowSBS1'] == 'true') || !isset($_COOKIE['ShowSBS1'])) print 'checked'; ?> ><?php echo _("Display ADS-B data"); ?></label></div></li> |
|
817 | + <li><div class="checkbox"><label><input type="checkbox" name="sbs" value="1" onclick="clickSBS1(this)" <?php if ((isset($_COOKIE['ShowSBS1']) && $_COOKIE['ShowSBS1'] == 'true') || !isset($_COOKIE['ShowSBS1'])) { |
|
818 | + print 'checked'; |
|
819 | +} |
|
820 | +?> ><?php echo _("Display ADS-B data"); ?></label></div></li> |
|
534 | 821 | <?php } ?> |
535 | 822 | <?php if (isset($globalAPRS) && $globalAPRS) { ?> |
536 | - <li><div class="checkbox"><label><input type="checkbox" name="aprs" value="1" onclick="clickAPRS(this)" <?php if ((isset($_COOKIE['ShowAPRS']) && $_COOKIE['ShowAPRS'] == 'true') || !isset($_COOKIE['ShowAPRS'])) print 'checked'; ?> ><?php echo _("Display APRS data"); ?></label></div></li> |
|
823 | + <li><div class="checkbox"><label><input type="checkbox" name="aprs" value="1" onclick="clickAPRS(this)" <?php if ((isset($_COOKIE['ShowAPRS']) && $_COOKIE['ShowAPRS'] == 'true') || !isset($_COOKIE['ShowAPRS'])) { |
|
824 | + print 'checked'; |
|
825 | +} |
|
826 | +?> ><?php echo _("Display APRS data"); ?></label></div></li> |
|
537 | 827 | <?php } ?> |
538 | 828 | <?php |
539 | 829 | } |
@@ -550,7 +840,9 @@ discard block |
||
550 | 840 | } |
551 | 841 | foreach($allairlinenames as $airline) { |
552 | 842 | $airline_name = $airline['airline_name']; |
553 | - if (strlen($airline_name) > 30) $airline_name = substr($airline_name,0,30).'...'; |
|
843 | + if (strlen($airline_name) > 30) { |
|
844 | + $airline_name = substr($airline_name,0,30).'...'; |
|
845 | + } |
|
554 | 846 | if (isset($_COOKIE['filter_Airlines']) && in_array($airline['airline_icao'],explode(',',$_COOKIE['filter_Airlines']))) { |
555 | 847 | echo '<option value="'.$airline['airline_icao'].'" selected>'.$airline_name.'</option>'; |
556 | 848 | } else { |
@@ -568,7 +860,10 @@ discard block |
||
568 | 860 | <li><?php echo _("Display alliance:"); ?> |
569 | 861 | <br/> |
570 | 862 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
571 | - <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
863 | + <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') { |
|
864 | + echo ' selected'; |
|
865 | +} |
|
866 | +?>><?php echo _("All"); ?></option> |
|
572 | 867 | <?php |
573 | 868 | foreach($allalliancenames as $alliance) { |
574 | 869 | $alliance_name = $alliance['alliance']; |
@@ -627,10 +922,22 @@ discard block |
||
627 | 922 | ?> |
628 | 923 | <li><?php echo _("Display airlines of type:"); ?><br/> |
629 | 924 | <select class="selectpicker" onchange="airlinestype(this);"> |
630 | - <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
631 | - <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') echo ' selected'; ?>><?php echo _("Passenger"); ?></option> |
|
632 | - <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') echo ' selected'; ?>><?php echo _("Cargo"); ?></option> |
|
633 | - <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') echo ' selected'; ?>><?php echo _("Military"); ?></option> |
|
925 | + <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') { |
|
926 | + echo ' selected'; |
|
927 | +} |
|
928 | +?>><?php echo _("All"); ?></option> |
|
929 | + <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') { |
|
930 | + echo ' selected'; |
|
931 | +} |
|
932 | +?>><?php echo _("Passenger"); ?></option> |
|
933 | + <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') { |
|
934 | + echo ' selected'; |
|
935 | +} |
|
936 | +?>><?php echo _("Cargo"); ?></option> |
|
937 | + <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') { |
|
938 | + echo ' selected'; |
|
939 | +} |
|
940 | +?>><?php echo _("Military"); ?></option> |
|
634 | 941 | </select> |
635 | 942 | </li> |
636 | 943 | <?php |
@@ -638,7 +945,10 @@ discard block |
||
638 | 945 | ?> |
639 | 946 | <li> |
640 | 947 | <?php echo _("Display flight with ident:"); ?> |
641 | - <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
|
948 | + <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) { |
|
949 | + print $_COOKIE['filter_ident']; |
|
950 | +} |
|
951 | +?>" /> |
|
642 | 952 | </li> |
643 | 953 | <?php |
644 | 954 | } |
@@ -657,7 +967,10 @@ discard block |
||
657 | 967 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
658 | 968 | <form> |
659 | 969 | <ul> |
660 | - <li><div class="checkbox"><label><input type="checkbox" name="displayiss" value="1" onclick="clickDisplayISS(this)" <?php if ((isset($_COOKIE['displayiss']) && $_COOKIE['displayiss'] == 'true') || !isset($_COOKIE['displayiss'])) print 'checked'; ?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li> |
|
970 | + <li><div class="checkbox"><label><input type="checkbox" name="displayiss" value="1" onclick="clickDisplayISS(this)" <?php if ((isset($_COOKIE['displayiss']) && $_COOKIE['displayiss'] == 'true') || !isset($_COOKIE['displayiss'])) { |
|
971 | + print 'checked'; |
|
972 | +} |
|
973 | +?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li> |
|
661 | 974 | <li><?php echo _("Type:"); ?> |
662 | 975 | <select class="selectpicker" multiple onchange="sattypes(this);"> |
663 | 976 | <?php |
@@ -665,25 +978,45 @@ discard block |
||
665 | 978 | $types = $Satellite->get_tle_types(); |
666 | 979 | foreach ($types as $type) { |
667 | 980 | $type_name = $type['tle_type']; |
668 | - if ($type_name == 'musson') $type_name = 'Russian LEO Navigation'; |
|
669 | - else if ($type_name == 'nnss') $type_name = 'Navi Navigation Satellite System'; |
|
670 | - else if ($type_name == 'sbas') $type_name = 'Satellite-Based Augmentation System'; |
|
671 | - else if ($type_name == 'glo-ops') $type_name = 'Glonass Operational'; |
|
672 | - else if ($type_name == 'gps-ops') $type_name = 'GPS Operational'; |
|
673 | - else if ($type_name == 'argos') $type_name = 'ARGOS Data Collection System'; |
|
674 | - else if ($type_name == 'tdrss') $type_name = 'Tracking and Data Relay Satellite System'; |
|
675 | - else if ($type_name == 'sarsat') $type_name = 'Search & Rescue'; |
|
676 | - else if ($type_name == 'dmc') $type_name = 'Disaster Monitoring'; |
|
677 | - else if ($type_name == 'resource') $type_name = 'Earth Resources'; |
|
678 | - else if ($type_name == 'stations') $type_name = 'Space Stations'; |
|
679 | - else if ($type_name == 'geo') $type_name = 'Geostationary'; |
|
680 | - else if ($type_name == 'amateur') $type_name = 'Amateur Radio'; |
|
681 | - else if ($type_name == 'x-comm') $type_name = 'Experimental'; |
|
682 | - else if ($type_name == 'other-comm') $type_name = 'Other Comm'; |
|
683 | - else if ($type_name == 'science') $type_name = 'Space & Earth Science'; |
|
684 | - else if ($type_name == 'military') $type_name = 'Miscellaneous Military'; |
|
685 | - else if ($type_name == 'radar') $type_name = 'Radar Calibration'; |
|
686 | - else if ($type_name == 'tle-new') $type_name = 'Last 30 days launches'; |
|
981 | + if ($type_name == 'musson') { |
|
982 | + $type_name = 'Russian LEO Navigation'; |
|
983 | + } else if ($type_name == 'nnss') { |
|
984 | + $type_name = 'Navi Navigation Satellite System'; |
|
985 | + } else if ($type_name == 'sbas') { |
|
986 | + $type_name = 'Satellite-Based Augmentation System'; |
|
987 | + } else if ($type_name == 'glo-ops') { |
|
988 | + $type_name = 'Glonass Operational'; |
|
989 | + } else if ($type_name == 'gps-ops') { |
|
990 | + $type_name = 'GPS Operational'; |
|
991 | + } else if ($type_name == 'argos') { |
|
992 | + $type_name = 'ARGOS Data Collection System'; |
|
993 | + } else if ($type_name == 'tdrss') { |
|
994 | + $type_name = 'Tracking and Data Relay Satellite System'; |
|
995 | + } else if ($type_name == 'sarsat') { |
|
996 | + $type_name = 'Search & Rescue'; |
|
997 | + } else if ($type_name == 'dmc') { |
|
998 | + $type_name = 'Disaster Monitoring'; |
|
999 | + } else if ($type_name == 'resource') { |
|
1000 | + $type_name = 'Earth Resources'; |
|
1001 | + } else if ($type_name == 'stations') { |
|
1002 | + $type_name = 'Space Stations'; |
|
1003 | + } else if ($type_name == 'geo') { |
|
1004 | + $type_name = 'Geostationary'; |
|
1005 | + } else if ($type_name == 'amateur') { |
|
1006 | + $type_name = 'Amateur Radio'; |
|
1007 | + } else if ($type_name == 'x-comm') { |
|
1008 | + $type_name = 'Experimental'; |
|
1009 | + } else if ($type_name == 'other-comm') { |
|
1010 | + $type_name = 'Other Comm'; |
|
1011 | + } else if ($type_name == 'science') { |
|
1012 | + $type_name = 'Space & Earth Science'; |
|
1013 | + } else if ($type_name == 'military') { |
|
1014 | + $type_name = 'Miscellaneous Military'; |
|
1015 | + } else if ($type_name == 'radar') { |
|
1016 | + $type_name = 'Radar Calibration'; |
|
1017 | + } else if ($type_name == 'tle-new') { |
|
1018 | + $type_name = 'Last 30 days launches'; |
|
1019 | + } |
|
687 | 1020 | |
688 | 1021 | if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'],explode(',',$_COOKIE['sattypes']))) { |
689 | 1022 | print '<option value="'.$type['tle_type'].'" selected>'.$type_name.'</option>'; |