@@ -150,11 +150,26 @@ discard block |
||
150 | 150 | <li><div class="checkbox"><label><input type="checkbox" name="notamcb" value="1" onclick="showNotam();" /><?php echo _("Display NOTAM"); ?></label></div></li> |
151 | 151 | <li><?php echo _("NOTAM scope:"); ?> |
152 | 152 | <select class="selectpicker" onchange="notamscope(this);"> |
153 | - <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') print ' selected'; ?>>All</option> |
|
154 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') print ' selected'; ?>>Airport/Enroute warning</option> |
|
155 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') print ' selected'; ?>>Airport warning</option> |
|
156 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') print ' selected'; ?>>Navigation warning</option> |
|
157 | - <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') print ' selected'; ?>>Enroute warning</option> |
|
153 | + <option<?php if (!isset($_COOKIE['notamscope']) || $_COOKIE['notamscope'] == 'All') { |
|
154 | + print ' selected'; |
|
155 | +} |
|
156 | +?>>All</option> |
|
157 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport/Enroute warning') { |
|
158 | + print ' selected'; |
|
159 | +} |
|
160 | +?>>Airport/Enroute warning</option> |
|
161 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Airport warning') { |
|
162 | + print ' selected'; |
|
163 | +} |
|
164 | +?>>Airport warning</option> |
|
165 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Navigation warning') { |
|
166 | + print ' selected'; |
|
167 | +} |
|
168 | +?>>Navigation warning</option> |
|
169 | + <option<?php if (isset($_COOKIE['notamscope']) && $_COOKIE['notamscope'] == 'Enroute warning') { |
|
170 | + print ' selected'; |
|
171 | +} |
|
172 | +?>>Enroute warning</option> |
|
158 | 173 | </select |
159 | 174 | </li> |
160 | 175 | </ul> |
@@ -182,7 +197,12 @@ discard block |
||
182 | 197 | <div class="form-group"> |
183 | 198 | <label>From (UTC):</label> |
184 | 199 | <div class='input-group date' id='datetimepicker1'> |
185 | - <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 /> |
|
200 | + <input type='text' name="start_date" class="form-control" value="<?php if (isset($_POST['start_date'])) { |
|
201 | + print $_POST['start_date']; |
|
202 | +} elseif (isset($_COOKIE['archive_begin'])) { |
|
203 | + print date("m/d/Y h:i a",$_COOKIE['archive_begin']); |
|
204 | +} |
|
205 | +?>" required /> |
|
186 | 206 | <span class="input-group-addon"> |
187 | 207 | <span class="glyphicon glyphicon-calendar"></span> |
188 | 208 | </span> |
@@ -191,7 +211,12 @@ discard block |
||
191 | 211 | <div class="form-group"> |
192 | 212 | <label>To (UTC):</label> |
193 | 213 | <div class='input-group date' id='datetimepicker2'> |
194 | - <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']); ?>" /> |
|
214 | + <input type='text' name="end_date" class="form-control" value="<?php if (isset($_POST['end_date'])) { |
|
215 | + print $_POST['end_date']; |
|
216 | +} elseif (isset($_COOKIE['archive_end'])) { |
|
217 | + print date("m/d/Y h:i a",$_COOKIE['archive_end']); |
|
218 | +} |
|
219 | +?>" /> |
|
195 | 220 | <span class="input-group-addon"> |
196 | 221 | <span class="glyphicon glyphicon-calendar"></span> |
197 | 222 | </span> |
@@ -217,8 +242,20 @@ discard block |
||
217 | 242 | |
218 | 243 | <li><?php echo _("Playback speed:"); ?> |
219 | 244 | <div class="range"> |
220 | - <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'; ?>"> |
|
221 | - <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) print $_COOKIE['archive_speed']; else print '1'; ?></output> |
|
245 | + <input type="range" min="0" max="50" step="1" name="archivespeed" onChange="archivespeedrange.value=value;" value="<?php if (isset($_POST['archivespeed'])) { |
|
246 | + print $_POST['archivespeed']; |
|
247 | +} elseif (isset($_COOKIE['archive_speed'])) { |
|
248 | + print $_COOKIE['archive_speed']; |
|
249 | +} else { |
|
250 | + print '1'; |
|
251 | +} |
|
252 | +?>"> |
|
253 | + <output id="archivespeedrange"><?php if (isset($_COOKIE['archive_speed'])) { |
|
254 | + print $_COOKIE['archive_speed']; |
|
255 | +} else { |
|
256 | + print '1'; |
|
257 | +} |
|
258 | +?></output> |
|
222 | 259 | </div> |
223 | 260 | </li> |
224 | 261 | <li><input type="submit" name="archive" value="Show archive" class="btn btn-primary" /></li> |
@@ -240,15 +277,27 @@ discard block |
||
240 | 277 | <li><?php echo _("Type of Map:"); ?> |
241 | 278 | <select class="selectpicker" onchange="mapType(this);"> |
242 | 279 | <?php |
243 | - if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') $MapType = $globalMapProvider; |
|
244 | - else $MapType = $_COOKIE['MapType']; |
|
280 | + if (!isset($_COOKIE['MapType']) || $_COOKIE['MapType'] == '') { |
|
281 | + $MapType = $globalMapProvider; |
|
282 | + } else { |
|
283 | + $MapType = $_COOKIE['MapType']; |
|
284 | + } |
|
245 | 285 | ?> |
246 | 286 | <?php |
247 | 287 | if (isset($globalBingMapKey) && $globalBingMapKey != '') { |
248 | 288 | ?> |
249 | - <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') print ' selected'; ?>>Bing-Aerial</option> |
|
250 | - <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') print ' selected'; ?>>Bing-Hybrid</option> |
|
251 | - <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') print ' selected'; ?>>Bing-Road</option> |
|
289 | + <option value="Bing-Aerial"<?php if ($MapType == 'Bing-Aerial') { |
|
290 | + print ' selected'; |
|
291 | +} |
|
292 | +?>>Bing-Aerial</option> |
|
293 | + <option value="Bing-Hybrid"<?php if ($MapType == 'Bing-Hybrid') { |
|
294 | + print ' selected'; |
|
295 | +} |
|
296 | +?>>Bing-Hybrid</option> |
|
297 | + <option value="Bing-Road"<?php if ($MapType == 'Bing-Road') { |
|
298 | + print ' selected'; |
|
299 | +} |
|
300 | +?>>Bing-Road</option> |
|
252 | 301 | <?php |
253 | 302 | } |
254 | 303 | ?> |
@@ -258,56 +307,131 @@ discard block |
||
258 | 307 | <?php |
259 | 308 | if (isset($globalHereappId) && $globalHereappId != '' && isset($globalHereappCode) && $globalHereappCode != '') { |
260 | 309 | ?> |
261 | - <option value="Here-Aerial"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Aerial</option> |
|
262 | - <option value="Here-Hybrid"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Hybrid</option> |
|
263 | - <option value="Here-Road"<?php if ($MapType == 'Here') print ' selected'; ?>>Here-Road</option> |
|
310 | + <option value="Here-Aerial"<?php if ($MapType == 'Here') { |
|
311 | + print ' selected'; |
|
312 | +} |
|
313 | +?>>Here-Aerial</option> |
|
314 | + <option value="Here-Hybrid"<?php if ($MapType == 'Here') { |
|
315 | + print ' selected'; |
|
316 | +} |
|
317 | +?>>Here-Hybrid</option> |
|
318 | + <option value="Here-Road"<?php if ($MapType == 'Here') { |
|
319 | + print ' selected'; |
|
320 | +} |
|
321 | +?>>Here-Road</option> |
|
264 | 322 | <?php |
265 | 323 | } |
266 | 324 | ?> |
267 | 325 | <?php |
268 | 326 | if (isset($globalGoogleAPIKey) && $globalGoogleAPIKey != '') { |
269 | 327 | ?> |
270 | - <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') print ' selected'; ?>>Google Roadmap</option> |
|
271 | - <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') print ' selected'; ?>>Google Satellite</option> |
|
272 | - <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') print ' selected'; ?>>Google Hybrid</option> |
|
273 | - <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') print ' selected'; ?>>Google Terrain</option> |
|
328 | + <option value="Google-Roadmap"<?php if ($MapType == 'Google-Roadmap') { |
|
329 | + print ' selected'; |
|
330 | +} |
|
331 | +?>>Google Roadmap</option> |
|
332 | + <option value="Google-Satellite"<?php if ($MapType == 'Google-Satellite') { |
|
333 | + print ' selected'; |
|
334 | +} |
|
335 | +?>>Google Satellite</option> |
|
336 | + <option value="Google-Hybrid"<?php if ($MapType == 'Google-Hybrid') { |
|
337 | + print ' selected'; |
|
338 | +} |
|
339 | +?>>Google Hybrid</option> |
|
340 | + <option value="Google-Terrain"<?php if ($MapType == 'Google-Terrain') { |
|
341 | + print ' selected'; |
|
342 | +} |
|
343 | +?>>Google Terrain</option> |
|
274 | 344 | <?php |
275 | 345 | } |
276 | 346 | ?> |
277 | 347 | <?php |
278 | 348 | if (isset($globalMapQuestKey) && $globalMapQuestKey != '') { |
279 | 349 | ?> |
280 | - <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') print ' selected'; ?>>MapQuest-OSM</option> |
|
281 | - <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') print ' selected'; ?>>MapQuest-Aerial</option> |
|
282 | - <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') print ' selected'; ?>>MapQuest-Hybrid</option> |
|
350 | + <option value="MapQuest-OSM"<?php if ($MapType == 'MapQuest-OSM') { |
|
351 | + print ' selected'; |
|
352 | +} |
|
353 | +?>>MapQuest-OSM</option> |
|
354 | + <option value="MapQuest-Aerial"<?php if ($MapType == 'MapQuest-Aerial') { |
|
355 | + print ' selected'; |
|
356 | +} |
|
357 | +?>>MapQuest-Aerial</option> |
|
358 | + <option value="MapQuest-Hybrid"<?php if ($MapType == 'MapQuest-Hybrid') { |
|
359 | + print ' selected'; |
|
360 | +} |
|
361 | +?>>MapQuest-Hybrid</option> |
|
283 | 362 | <?php |
284 | 363 | } |
285 | 364 | ?> |
286 | - <option value="Yandex"<?php if ($MapType == 'Yandex') print ' selected'; ?>>Yandex</option> |
|
365 | + <option value="Yandex"<?php if ($MapType == 'Yandex') { |
|
366 | + print ' selected'; |
|
367 | +} |
|
368 | +?>>Yandex</option> |
|
287 | 369 | <?php |
288 | 370 | } |
289 | 371 | ?> |
290 | 372 | <?php |
291 | 373 | if (isset($globalMapboxToken) && $globalMapboxToken != '') { |
292 | - if (!isset($_COOKIE['MapTypeId'])) $MapBoxId = 'default'; |
|
293 | - else $MapBoxId = $_COOKIE['MapTypeId']; |
|
374 | + if (!isset($_COOKIE['MapTypeId'])) { |
|
375 | + $MapBoxId = 'default'; |
|
376 | + } else { |
|
377 | + $MapBoxId = $_COOKIE['MapTypeId']; |
|
378 | + } |
|
294 | 379 | ?> |
295 | - <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') print ' selected'; ?>>Mapbox default</option> |
|
296 | - <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') print ' selected'; ?>>Mapbox streets</option> |
|
297 | - <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') print ' selected'; ?>>Mapbox light</option> |
|
298 | - <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') print ' selected'; ?>>Mapbox dark</option> |
|
299 | - <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') print ' selected'; ?>>Mapbox satellite</option> |
|
300 | - <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') print ' selected'; ?>>Mapbox streets-satellite</option> |
|
301 | - <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') print ' selected'; ?>>Mapbox streets-basic</option> |
|
302 | - <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') print ' selected'; ?>>Mapbox comic</option> |
|
303 | - <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') print ' selected'; ?>>Mapbox outdoors</option> |
|
304 | - <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') print ' selected'; ?>>Mapbox pencil</option> |
|
305 | - <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') print ' selected'; ?>>Mapbox pirates</option> |
|
306 | - <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') print ' selected'; ?>>Mapbox emerald</option> |
|
380 | + <option value="Mapbox-default"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'default') { |
|
381 | + print ' selected'; |
|
382 | +} |
|
383 | +?>>Mapbox default</option> |
|
384 | + <option value="Mapbox-mapbox.streets"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets') { |
|
385 | + print ' selected'; |
|
386 | +} |
|
387 | +?>>Mapbox streets</option> |
|
388 | + <option value="Mapbox-mapbox.light"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.light') { |
|
389 | + print ' selected'; |
|
390 | +} |
|
391 | +?>>Mapbox light</option> |
|
392 | + <option value="Mapbox-mapbox.dark"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.dark') { |
|
393 | + print ' selected'; |
|
394 | +} |
|
395 | +?>>Mapbox dark</option> |
|
396 | + <option value="Mapbox-mapbox.satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.satellite') { |
|
397 | + print ' selected'; |
|
398 | +} |
|
399 | +?>>Mapbox satellite</option> |
|
400 | + <option value="Mapbox-mapbox.streets-satellite"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-satellite') { |
|
401 | + print ' selected'; |
|
402 | +} |
|
403 | +?>>Mapbox streets-satellite</option> |
|
404 | + <option value="Mapbox-mapbox.streets-basic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.streets-basic') { |
|
405 | + print ' selected'; |
|
406 | +} |
|
407 | +?>>Mapbox streets-basic</option> |
|
408 | + <option value="Mapbox-mapbox.comic"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.comic') { |
|
409 | + print ' selected'; |
|
410 | +} |
|
411 | +?>>Mapbox comic</option> |
|
412 | + <option value="Mapbox-mapbox.outdoors"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.outdoors') { |
|
413 | + print ' selected'; |
|
414 | +} |
|
415 | +?>>Mapbox outdoors</option> |
|
416 | + <option value="Mapbox-mapbox.pencil"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pencil') { |
|
417 | + print ' selected'; |
|
418 | +} |
|
419 | +?>>Mapbox pencil</option> |
|
420 | + <option value="Mapbox-mapbox.pirates"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.pirates') { |
|
421 | + print ' selected'; |
|
422 | +} |
|
423 | +?>>Mapbox pirates</option> |
|
424 | + <option value="Mapbox-mapbox.emerald"<?php if ($MapType == 'Mapbox' && $MapBoxId == 'mapbox.emerald') { |
|
425 | + print ' selected'; |
|
426 | +} |
|
427 | +?>>Mapbox emerald</option> |
|
307 | 428 | <?php |
308 | 429 | } |
309 | 430 | ?> |
310 | - <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') print ' selected'; ?>>OpenStreetMap</option> |
|
431 | + <option value="OpenStreetMap"<?php if ($MapType == 'OpenStreetMap') { |
|
432 | + print ' selected'; |
|
433 | +} |
|
434 | +?>>OpenStreetMap</option> |
|
311 | 435 | </select> |
312 | 436 | </li> |
313 | 437 | <?php |
@@ -315,9 +439,18 @@ discard block |
||
315 | 439 | ?> |
316 | 440 | <li><?php echo _("Type of Terrain:"); ?> |
317 | 441 | <select class="selectpicker" onchange="terrainType(this);"> |
318 | - <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') print ' selected'; ?>>stk terrain</option> |
|
319 | - <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') print ' selected';?>>ellipsoid</option> |
|
320 | - <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') print ' selected';?>>vr terrain</option> |
|
442 | + <option value="stk"<?php if (!isset($_COOKIE['MapTerrain']) || $_COOKIE['MapTerrain'] == 'stk') { |
|
443 | + print ' selected'; |
|
444 | +} |
|
445 | +?>>stk terrain</option> |
|
446 | + <option value="ellipsoid"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'ellipsoid') { |
|
447 | + print ' selected'; |
|
448 | +} |
|
449 | +?>>ellipsoid</option> |
|
450 | + <option value="vrterrain"<?php if (isset($_COOKIE['MapTerrain']) && $_COOKIE['MapTerrain'] == 'vrterrain') { |
|
451 | + print ' selected'; |
|
452 | +} |
|
453 | +?>>vr terrain</option> |
|
321 | 454 | </select> |
322 | 455 | </li> |
323 | 456 | <?php |
@@ -327,18 +460,36 @@ discard block |
||
327 | 460 | if (!isset($_COOKIE['MapFormat']) || $_COOKIE['MapFormat'] != '3d') { |
328 | 461 | ?> |
329 | 462 | |
330 | - <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> |
|
331 | - <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> |
|
332 | - <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || !isset($_COOKIE['MapRoute'])) print 'checked'; ?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
333 | - <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> |
|
463 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpopup" value="1" onclick="clickFlightPopup(this)" <?php if (isset($_COOKIE['flightpopup']) && $_COOKIE['flightpopup'] == 'true') { |
|
464 | + print 'checked'; |
|
465 | +} |
|
466 | +?> ><?php echo _("Display flight info as popup"); ?></label></div></li> |
|
467 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpath" value="1" onclick="clickFlightPath(this)" <?php if ((isset($_COOKIE['flightpath']) && $_COOKIE['flightpath'] == 'true')) { |
|
468 | + print 'checked'; |
|
469 | +} |
|
470 | +?> ><?php echo _("Display flight path"); ?></label></div></li> |
|
471 | + <li><div class="checkbox"><label><input type="checkbox" name="flightroute" value="1" onclick="clickFlightRoute(this)" <?php if ((isset($_COOKIE['MapRoute']) && $_COOKIE['MapRoute'] == 'true') || !isset($_COOKIE['MapRoute'])) { |
|
472 | + print 'checked'; |
|
473 | +} |
|
474 | +?> ><?php echo _("Display flight route on click"); ?></label></div></li> |
|
475 | + <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)) { |
|
476 | + print 'checked'; |
|
477 | +} |
|
478 | +?> ><?php echo _("Planes animate between updates"); ?></label></div></li> |
|
334 | 479 | <?php |
335 | 480 | } |
336 | 481 | ?> |
337 | - <li><div class="checkbox"><label><input type="checkbox" name="displayairports" value="1" onclick="clickDisplayAirports(this)" <?php if (isset($_COOKIE['displayairports']) && $_COOKIE['displayairports'] == 'true') print 'checked'; ?> ><?php echo _("Display airports on map"); ?></label></div></li> |
|
482 | + <li><div class="checkbox"><label><input type="checkbox" name="displayairports" value="1" onclick="clickDisplayAirports(this)" <?php if (isset($_COOKIE['displayairports']) && $_COOKIE['displayairports'] == 'true') { |
|
483 | + print 'checked'; |
|
484 | +} |
|
485 | +?> ><?php echo _("Display airports on map"); ?></label></div></li> |
|
338 | 486 | <?php |
339 | 487 | if (isset($_COOKIE['MapFormat']) && $_COOKIE['MapFormat'] == '3d') { |
340 | 488 | ?> |
341 | - <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> |
|
489 | + <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')) { |
|
490 | + print 'checked'; |
|
491 | +} |
|
492 | +?> ><?php echo _("Show mini-map"); ?></label></div></li> |
|
342 | 493 | <?php |
343 | 494 | } |
344 | 495 | if (time() > mktime(0,0,0,12,1,date("Y")) && time() < mktime(0,0,0,12,31,date("Y"))) { |
@@ -352,17 +503,25 @@ discard block |
||
352 | 503 | if (function_exists('array_column')) { |
353 | 504 | if (array_search(TRUE, array_column($globalSources, 'sourcestats')) !== FALSE) { |
354 | 505 | ?> |
355 | - <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> |
|
506 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
507 | + print 'checked'; |
|
508 | +} |
|
509 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
356 | 510 | <?php |
357 | 511 | } |
358 | 512 | } elseif (isset($globalSources)) { |
359 | 513 | $dispolar = false; |
360 | 514 | foreach ($globalSources as $testsource) { |
361 | - if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) $dispolar = true; |
|
515 | + if (isset($globalSources['sourcestats']) && $globalSources['sourcestats'] !== FALSE) { |
|
516 | + $dispolar = true; |
|
517 | + } |
|
362 | 518 | } |
363 | 519 | if ($dispolar) { |
364 | 520 | ?> |
365 | - <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> |
|
521 | + <li><div class="checkbox"><label><input type="checkbox" name="flightpolar" value="1" onclick="clickPolar(this)" <?php if ((isset($_COOKIE['polar']) && $_COOKIE['polar'] == 'true')) { |
|
522 | + print 'checked'; |
|
523 | +} |
|
524 | +?> ><?php echo _("Display polar on map"); ?></label></div></li> |
|
366 | 525 | <?php |
367 | 526 | } |
368 | 527 | } |
@@ -374,12 +533,22 @@ discard block |
||
374 | 533 | <?php |
375 | 534 | if (extension_loaded('gd') && function_exists('gd_info')) { |
376 | 535 | ?> |
377 | - <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> |
|
536 | + <li><input type="checkbox" name="aircraftcoloraltitude" value="1" onclick="iconColorAltitude(this)" <?php if (isset($_COOKIE['IconColorAltitude']) && $_COOKIE['IconColorAltitude'] == 'true') { |
|
537 | + print 'checked'; |
|
538 | +} |
|
539 | +?> ><?php echo _("Aircraft icon color based on altitude"); ?></li> |
|
378 | 540 | <?php |
379 | 541 | if (!isset($_COOKIE['IconColorAltitude']) || $_COOKIE['IconColorAltitude'] == 'false') { |
380 | 542 | ?> |
381 | 543 | <li><?php echo _("Aircraft icon color:"); ?> |
382 | - <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'; ?>"> |
|
544 | + <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
545 | + print $_COOKIE['IconColor']; |
|
546 | +} elseif (isset($globalAircraftIconColor)) { |
|
547 | + print $globalAircraftIconColor; |
|
548 | +} else { |
|
549 | + print '1a3151'; |
|
550 | +} |
|
551 | +?>"> |
|
383 | 552 | </li> |
384 | 553 | <?php |
385 | 554 | } |
@@ -390,7 +559,14 @@ discard block |
||
390 | 559 | if (extension_loaded('gd') && function_exists('gd_info')) { |
391 | 560 | ?> |
392 | 561 | <li><?php echo _("Marine icon color:"); ?> |
393 | - <input type="color" name="marinecolor" id="html5colorpicker" onchange="iconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) print $_COOKIE['MarineIconColor']; elseif (isset($globalMarineIconColor)) print $globalMarineIconColor; else print '1a3151'; ?>"> |
|
562 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="iconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
563 | + print $_COOKIE['MarineIconColor']; |
|
564 | +} elseif (isset($globalMarineIconColor)) { |
|
565 | + print $globalMarineIconColor; |
|
566 | +} else { |
|
567 | + print '1a3151'; |
|
568 | +} |
|
569 | +?>"> |
|
394 | 570 | </li> |
395 | 571 | <?php |
396 | 572 | } |
@@ -398,23 +574,57 @@ discard block |
||
398 | 574 | ?> |
399 | 575 | <li><?php echo _("Show airport icon at zoom level:"); ?> |
400 | 576 | <div class="range"> |
401 | - <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'; ?>"> |
|
402 | - <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) print $_COOKIE['AirportZoom']; elseif (isset($globalAirportZoom)) print $globalAirportZoom; else print '7'; ?></output> |
|
577 | + <input type="range" min="0" max="19" step="1" name="airportzoom" onchange="range.value=value;airportDisplayZoom(airportzoom.value);" value="<?php if (isset($_COOKIE['AirportZoom'])) { |
|
578 | + print $_COOKIE['AirportZoom']; |
|
579 | +} elseif (isset($globalAirportZoom)) { |
|
580 | + print $globalAirportZoom; |
|
581 | +} else { |
|
582 | + print '7'; |
|
583 | +} |
|
584 | +?>"> |
|
585 | + <output id="range"><?php if (isset($_COOKIE['AirportZoom'])) { |
|
586 | + print $_COOKIE['AirportZoom']; |
|
587 | +} elseif (isset($globalAirportZoom)) { |
|
588 | + print $globalAirportZoom; |
|
589 | +} else { |
|
590 | + print '7'; |
|
591 | +} |
|
592 | +?></output> |
|
403 | 593 | </div> |
404 | 594 | </li> |
405 | 595 | <?php |
406 | 596 | } elseif (isset($_COOKIE['MapFormat']) || $_COOKIE['MapFOrmat'] == '3d') { |
407 | 597 | ?> |
408 | - <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> |
|
598 | + <li><input type="checkbox" name="aircraftcolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['IconColorForce']) && $_COOKIE['IconColorForce'] == 'true') { |
|
599 | + print 'checked'; |
|
600 | +} |
|
601 | +?> ><?php echo _("Force Aircraft color"); ?></li> |
|
409 | 602 | <li><?php echo _("Aircraft icon color:"); ?> |
410 | - <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'; ?>"> |
|
603 | + <input type="color" name="aircraftcolor" id="html5colorpicker" onchange="iconColor(aircraftcolor.value);" value="#<?php if (isset($_COOKIE['IconColor'])) { |
|
604 | + print $_COOKIE['IconColor']; |
|
605 | +} elseif (isset($globalAircraftIconColor)) { |
|
606 | + print $globalAircraftIconColor; |
|
607 | +} else { |
|
608 | + print 'ff0000'; |
|
609 | +} |
|
610 | +?>"> |
|
411 | 611 | </li> |
412 | 612 | <?php |
413 | 613 | if (isset($globalMarine) && $globalMarine === TRUE) { |
414 | 614 | ?> |
415 | - <li><input type="checkbox" name="marinecolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') print 'checked'; ?> ><?php echo _("Force Marine color"); ?></li> |
|
615 | + <li><input type="checkbox" name="marinecolorforce" value="1" onclick="iconColorForce(this)" <?php if (isset($_COOKIE['MarineIconColorForce']) && $_COOKIE['MarineIconColorForce'] == 'true') { |
|
616 | + print 'checked'; |
|
617 | +} |
|
618 | +?> ><?php echo _("Force Marine color"); ?></li> |
|
416 | 619 | <li><?php echo _("Marine icon color:"); ?> |
417 | - <input type="color" name="marinecolor" id="html5colorpicker" onchange="iconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) print $_COOKIE['MarineIconColor']; elseif (isset($globalMarineIconColor)) print $globalMarineIconColor; else print 'ff0000'; ?>"> |
|
620 | + <input type="color" name="marinecolor" id="html5colorpicker" onchange="iconColor(marinecolor.value);" value="#<?php if (isset($_COOKIE['MarineIconColor'])) { |
|
621 | + print $_COOKIE['MarineIconColor']; |
|
622 | +} elseif (isset($globalMarineIconColor)) { |
|
623 | + print $globalMarineIconColor; |
|
624 | +} else { |
|
625 | + print 'ff0000'; |
|
626 | +} |
|
627 | +?>"> |
|
418 | 628 | </li> |
419 | 629 | <?php |
420 | 630 | } |
@@ -422,22 +632,46 @@ discard block |
||
422 | 632 | ?> |
423 | 633 | <li><?php echo _("Distance unit:"); ?> |
424 | 634 | <select class="selectpicker" onchange="unitdistance(this);"> |
425 | - <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) echo ' selected'; ?>>km</option> |
|
426 | - <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) echo ' selected'; ?>>nm</option> |
|
427 | - <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) echo ' selected'; ?>>mi</option> |
|
635 | + <option value="km"<?php if ((!isset($_COOKIE['unitdistance']) && (!isset($globalUnitDistance) || (isset($globalUnitDistance) && $globalUnitDistance == 'km'))) || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'km')) { |
|
636 | + echo ' selected'; |
|
637 | +} |
|
638 | +?>>km</option> |
|
639 | + <option value="nm"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'nm') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'nm')) { |
|
640 | + echo ' selected'; |
|
641 | +} |
|
642 | +?>>nm</option> |
|
643 | + <option value="mi"<?php if ((!isset($_COOKIE['unitdistance']) && isset($globalUnitDistance) && $globalUnitDistance == 'mi') || (isset($_COOKIE['unitdistance']) && $_COOKIE['unitdistance'] == 'mi')) { |
|
644 | + echo ' selected'; |
|
645 | +} |
|
646 | +?>>mi</option> |
|
428 | 647 | </select> |
429 | 648 | </li> |
430 | 649 | <li><?php echo _("Altitude unit:"); ?> |
431 | 650 | <select class="selectpicker" onchange="unitaltitude(this);"> |
432 | - <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) echo ' selected'; ?>>m</option> |
|
433 | - <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) echo ' selected'; ?>>feet</option> |
|
651 | + <option value="m"<?php if ((!isset($_COOKIE['unitaltitude']) && (!isset($globalUnitAltitude) || (isset($globalUnitAltitude) && $globalUnitAltitude == 'm'))) || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'm')) { |
|
652 | + echo ' selected'; |
|
653 | +} |
|
654 | +?>>m</option> |
|
655 | + <option value="feet"<?php if ((!isset($_COOKIE['unitaltitude']) && isset($globalUnitAltitude) && $globalUnitAltitude == 'feet') || (isset($_COOKIE['unitaltitude']) && $_COOKIE['unitaltitude'] == 'feet')) { |
|
656 | + echo ' selected'; |
|
657 | +} |
|
658 | +?>>feet</option> |
|
434 | 659 | </select> |
435 | 660 | </li> |
436 | 661 | <li><?php echo _("Speed unit:"); ?> |
437 | 662 | <select class="selectpicker" onchange="unitspeed(this);"> |
438 | - <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> |
|
439 | - <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) echo ' selected'; ?>>mph</option> |
|
440 | - <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) echo ' selected'; ?>>knots</option> |
|
663 | + <option value="kmh"<?php if ((!isset($_COOKIE['unitspeed']) && (!isset($globalUnitSpeed) || (isset($globalUnitSpeed) && $globalUnitSpeed == 'kmh'))) || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'kmh')) { |
|
664 | + echo ' selected'; |
|
665 | +} |
|
666 | +?>>km/h</option> |
|
667 | + <option value="mph"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) { |
|
668 | + echo ' selected'; |
|
669 | +} |
|
670 | +?>>mph</option> |
|
671 | + <option value="knots"<?php if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) { |
|
672 | + echo ' selected'; |
|
673 | +} |
|
674 | +?>>knots</option> |
|
441 | 675 | </select> |
442 | 676 | </li> |
443 | 677 | |
@@ -452,9 +686,18 @@ discard block |
||
452 | 686 | <?php |
453 | 687 | if (((isset($globalVATSIM) && $globalVATSIM) || isset($globalIVAO) && $globalIVAO || isset($globalphpVMS) && $globalphpVMS) && (!isset($globalMapVAchoose) || $globalMapVAchoose)) { |
454 | 688 | ?> |
455 | - <?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 } ?> |
|
456 | - <?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 } ?> |
|
457 | - <?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 } ?> |
|
689 | + <?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'])) { |
|
690 | + print 'checked'; |
|
691 | +} |
|
692 | +?> ><?php echo _("Display VATSIM data"); ?></li><?php } ?> |
|
693 | + <?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'])) { |
|
694 | + print 'checked'; |
|
695 | +} |
|
696 | +?> ><?php echo _("Display IVAO data"); ?></li><?php } ?> |
|
697 | + <?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'])) { |
|
698 | + print 'checked'; |
|
699 | +} |
|
700 | +?> ><?php echo _("Display phpVMS data"); ?></li><?php } ?> |
|
458 | 701 | <?php |
459 | 702 | } |
460 | 703 | ?> |
@@ -462,10 +705,16 @@ discard block |
||
462 | 705 | if (!(isset($globalVATSIM) && $globalVATSIM) && !(isset($globalIVAO) && $globalIVAO) && !(isset($globalphpVMS) && $globalphpVMS) && isset($globalSBS1) && $globalSBS1 && isset($globalAPRS) && $globalAPRS && (!isset($globalMapchoose) || $globalMapchoose)) { |
463 | 706 | ?> |
464 | 707 | <?php if (isset($globalSBS1) && $globalSBS1) { ?> |
465 | - <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> |
|
708 | + <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'])) { |
|
709 | + print 'checked'; |
|
710 | +} |
|
711 | +?> ><?php echo _("Display ADS-B data"); ?></label></div></li> |
|
466 | 712 | <?php } ?> |
467 | 713 | <?php if (isset($globalAPRS) && $globalAPRS) { ?> |
468 | - <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> |
|
714 | + <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'])) { |
|
715 | + print 'checked'; |
|
716 | +} |
|
717 | +?> ><?php echo _("Display APRS data"); ?></label></div></li> |
|
469 | 718 | <?php } ?> |
470 | 719 | <?php |
471 | 720 | } |
@@ -482,7 +731,9 @@ discard block |
||
482 | 731 | } |
483 | 732 | foreach($allairlinenames as $airline) { |
484 | 733 | $airline_name = $airline['airline_name']; |
485 | - if (strlen($airline_name) > 30) $airline_name = substr($airline_name,0,30).'...'; |
|
734 | + if (strlen($airline_name) > 30) { |
|
735 | + $airline_name = substr($airline_name,0,30).'...'; |
|
736 | + } |
|
486 | 737 | if (isset($_COOKIE['filter_Airlines']) && in_array($airline['airline_icao'],explode(',',$_COOKIE['filter_Airlines']))) { |
487 | 738 | echo '<option value="'.$airline['airline_icao'].'" selected>'.$airline_name.'</option>'; |
488 | 739 | } else { |
@@ -500,7 +751,10 @@ discard block |
||
500 | 751 | <li><?php echo _("Display alliance:"); ?> |
501 | 752 | <br/> |
502 | 753 | <select class="selectpicker" onchange="alliance(this);" id="display_alliance"> |
503 | - <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
754 | + <option value="all"<?php if (!isset($_COOKIE['filter_alliance']) || $_COOKIE['filter_alliance'] == 'all' || $_COOKIE['filter_alliance'] == '') { |
|
755 | + echo ' selected'; |
|
756 | +} |
|
757 | +?>><?php echo _("All"); ?></option> |
|
504 | 758 | <?php |
505 | 759 | foreach($allalliancenames as $alliance) { |
506 | 760 | $alliance_name = $alliance['alliance']; |
@@ -541,10 +795,22 @@ discard block |
||
541 | 795 | ?> |
542 | 796 | <li><?php echo _("Display airlines of type:"); ?><br/> |
543 | 797 | <select class="selectpicker" onchange="airlinestype(this);"> |
544 | - <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') echo ' selected'; ?>><?php echo _("All"); ?></option> |
|
545 | - <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') echo ' selected'; ?>><?php echo _("Passenger"); ?></option> |
|
546 | - <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') echo ' selected'; ?>><?php echo _("Cargo"); ?></option> |
|
547 | - <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') echo ' selected'; ?>><?php echo _("Military"); ?></option> |
|
798 | + <option value="all"<?php if (!isset($_COOKIE['filter_airlinestype']) || $_COOKIE['filter_airlinestype'] == 'all' || $_COOKIE['filter_airlinestype'] == '') { |
|
799 | + echo ' selected'; |
|
800 | +} |
|
801 | +?>><?php echo _("All"); ?></option> |
|
802 | + <option value="passenger"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'passenger') { |
|
803 | + echo ' selected'; |
|
804 | +} |
|
805 | +?>><?php echo _("Passenger"); ?></option> |
|
806 | + <option value="cargo"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'cargo') { |
|
807 | + echo ' selected'; |
|
808 | +} |
|
809 | +?>><?php echo _("Cargo"); ?></option> |
|
810 | + <option value="military"<?php if (isset($_COOKIE['filter_airlinestype']) && $_COOKIE['filter_airlinestype'] == 'military') { |
|
811 | + echo ' selected'; |
|
812 | +} |
|
813 | +?>><?php echo _("Military"); ?></option> |
|
548 | 814 | </select> |
549 | 815 | </li> |
550 | 816 | <?php |
@@ -552,7 +818,10 @@ discard block |
||
552 | 818 | ?> |
553 | 819 | <li> |
554 | 820 | <?php echo _("Display flight with ident:"); ?> |
555 | - <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) print $_COOKIE['filter_ident']; ?>" /> |
|
821 | + <input type="text" name="identfilter" onchange="identfilter();" id="identfilter" value="<?php if (isset($_COOKIE['filter_ident'])) { |
|
822 | + print $_COOKIE['filter_ident']; |
|
823 | +} |
|
824 | +?>" /> |
|
556 | 825 | </li> |
557 | 826 | </ul> |
558 | 827 | </form> |
@@ -568,7 +837,10 @@ discard block |
||
568 | 837 | <h1 class="sidebar-header"><?php echo _("Satellites"); ?><span class="sidebar-close"><i class="fa fa-caret-left"></i></span></h1> |
569 | 838 | <form> |
570 | 839 | <ul> |
571 | - <li><div class="checkbox"><label><input type="checkbox" name="displayiss" value="1" onclick="clickDisplayISS(this)" <?php if (isset($_COOKIE['displayiss']) && $_COOKIE['displayiss'] == 'true') print 'checked'; ?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li> |
|
840 | + <li><div class="checkbox"><label><input type="checkbox" name="displayiss" value="1" onclick="clickDisplayISS(this)" <?php if (isset($_COOKIE['displayiss']) && $_COOKIE['displayiss'] == 'true') { |
|
841 | + print 'checked'; |
|
842 | +} |
|
843 | +?> ><?php echo _("Show ISS, Tiangong-1 and Tiangong-2 on map"); ?></label></div></li> |
|
572 | 844 | <li><?php echo _("Type:"); ?> |
573 | 845 | <select class="selectpicker" multiple onchange="sattypes(this);"> |
574 | 846 | <?php |
@@ -576,25 +848,45 @@ discard block |
||
576 | 848 | $types = $Satellite->get_tle_types(); |
577 | 849 | foreach ($types as $type) { |
578 | 850 | $type_name = $type['tle_type']; |
579 | - if ($type_name == 'musson') $type_name = 'Russian LEO Navigation'; |
|
580 | - else if ($type_name == 'nnss') $type_name = 'Navi Navigation Satellite System'; |
|
581 | - else if ($type_name == 'sbas') $type_name = 'Satellite-Based Augmentation System'; |
|
582 | - else if ($type_name == 'glo-ops') $type_name = 'Glonass Operational'; |
|
583 | - else if ($type_name == 'gps-ops') $type_name = 'GPS Operational'; |
|
584 | - else if ($type_name == 'argos') $type_name = 'ARGOS Data Collection System'; |
|
585 | - else if ($type_name == 'tdrss') $type_name = 'Tracking and Data Relay Satellite System'; |
|
586 | - else if ($type_name == 'sarsat') $type_name = 'Search & Rescue'; |
|
587 | - else if ($type_name == 'dmc') $type_name = 'Disaster Monitoring'; |
|
588 | - else if ($type_name == 'resource') $type_name = 'Earth Resources'; |
|
589 | - else if ($type_name == 'stations') $type_name = 'Space Stations'; |
|
590 | - else if ($type_name == 'geo') $type_name = 'Geostationary'; |
|
591 | - else if ($type_name == 'amateur') $type_name = 'Amateur Radio'; |
|
592 | - else if ($type_name == 'x-comm') $type_name = 'Experimental'; |
|
593 | - else if ($type_name == 'other-comm') $type_name = 'Other Comm'; |
|
594 | - else if ($type_name == 'science') $type_name = 'Space & Earth Science'; |
|
595 | - else if ($type_name == 'military') $type_name = 'Miscellaneous Military'; |
|
596 | - else if ($type_name == 'radar') $type_name = 'Radar Calibration'; |
|
597 | - else if ($type_name == 'tle-new') $type_name = 'Last 30 days launches'; |
|
851 | + if ($type_name == 'musson') { |
|
852 | + $type_name = 'Russian LEO Navigation'; |
|
853 | + } else if ($type_name == 'nnss') { |
|
854 | + $type_name = 'Navi Navigation Satellite System'; |
|
855 | + } else if ($type_name == 'sbas') { |
|
856 | + $type_name = 'Satellite-Based Augmentation System'; |
|
857 | + } else if ($type_name == 'glo-ops') { |
|
858 | + $type_name = 'Glonass Operational'; |
|
859 | + } else if ($type_name == 'gps-ops') { |
|
860 | + $type_name = 'GPS Operational'; |
|
861 | + } else if ($type_name == 'argos') { |
|
862 | + $type_name = 'ARGOS Data Collection System'; |
|
863 | + } else if ($type_name == 'tdrss') { |
|
864 | + $type_name = 'Tracking and Data Relay Satellite System'; |
|
865 | + } else if ($type_name == 'sarsat') { |
|
866 | + $type_name = 'Search & Rescue'; |
|
867 | + } else if ($type_name == 'dmc') { |
|
868 | + $type_name = 'Disaster Monitoring'; |
|
869 | + } else if ($type_name == 'resource') { |
|
870 | + $type_name = 'Earth Resources'; |
|
871 | + } else if ($type_name == 'stations') { |
|
872 | + $type_name = 'Space Stations'; |
|
873 | + } else if ($type_name == 'geo') { |
|
874 | + $type_name = 'Geostationary'; |
|
875 | + } else if ($type_name == 'amateur') { |
|
876 | + $type_name = 'Amateur Radio'; |
|
877 | + } else if ($type_name == 'x-comm') { |
|
878 | + $type_name = 'Experimental'; |
|
879 | + } else if ($type_name == 'other-comm') { |
|
880 | + $type_name = 'Other Comm'; |
|
881 | + } else if ($type_name == 'science') { |
|
882 | + $type_name = 'Space & Earth Science'; |
|
883 | + } else if ($type_name == 'military') { |
|
884 | + $type_name = 'Miscellaneous Military'; |
|
885 | + } else if ($type_name == 'radar') { |
|
886 | + $type_name = 'Radar Calibration'; |
|
887 | + } else if ($type_name == 'tle-new') { |
|
888 | + $type_name = 'Last 30 days launches'; |
|
889 | + } |
|
598 | 890 | |
599 | 891 | if (isset($_COOKIE['sattypes']) && in_array($type['tle_type'],explode(',',$_COOKIE['sattypes']))) { |
600 | 892 | print '<option value="'.$type['tle_type'].'" selected>'.$type_name.'</option>'; |