| @@ 90-96 (lines=7) @@ | ||
| 87 | print '</div>'; |
|
| 88 | if (isset($spotter_item['registration']) && $spotter_item['registration'] != '') print '<div><span>'._("Registration").'</span><a href="'.$globalURL.'/registration/'.$spotter_item['registration'].'" target="_blank">'.$spotter_item['registration'].'</a></div>'; |
|
| 89 | print '<div><span>'._("Speed").'</span>'; |
|
| 90 | if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) { |
|
| 91 | print round($spotter_item['ground_speed']*1.15078).' mph'; |
|
| 92 | } elseif ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) { |
|
| 93 | print $spotter_item['ground_speed'].' knots'; |
|
| 94 | } else { |
|
| 95 | print round($spotter_item['ground_speed']*1.852).' km/h'; |
|
| 96 | } |
|
| 97 | print '</div>'; |
|
| 98 | print '<div><span>'._("Coordinates").'</span>'.$spotter_item['latitude'].', '.$spotter_item['longitude'].'</div>'; |
|
| 99 | print '<div><span>'._("Heading").'</span>'.$spotter_item['heading'].'°</div>'; |
|
| @@ 426-432 (lines=7) @@ | ||
| 423 | print '<div class="title">Ground Speed</div>'; |
|
| 424 | print '<div>'; |
|
| 425 | if (isset($spotter_item['last_ground_speed']) && $spotter_item['last_ground_speed'] != '') { |
|
| 426 | if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) { |
|
| 427 | print round($spotter_item['last_ground_speed']*1.15078).' mph'; |
|
| 428 | } elseif ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) { |
|
| 429 | print $spotter_item['last_ground_speed'].' knots'; |
|
| 430 | } else { |
|
| 431 | print round($spotter_item['last_ground_speed']*1.852).' km/h'; |
|
| 432 | } |
|
| 433 | } else { |
|
| 434 | if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) { |
|
| 435 | print round($spotter_item['ground_speed']*1.15078).' mph'; |
|
| @@ 433-441 (lines=9) @@ | ||
| 430 | } else { |
|
| 431 | print round($spotter_item['last_ground_speed']*1.852).' km/h'; |
|
| 432 | } |
|
| 433 | } else { |
|
| 434 | if ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'mph') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'mph')) { |
|
| 435 | print round($spotter_item['ground_speed']*1.15078).' mph'; |
|
| 436 | } elseif ((!isset($_COOKIE['unitspeed']) && isset($globalUnitSpeed) && $globalUnitSpeed == 'knots') || (isset($_COOKIE['unitspeed']) && $_COOKIE['unitspeed'] == 'knots')) { |
|
| 437 | print $spotter_item['ground_speed'].' knots'; |
|
| 438 | } else { |
|
| 439 | print round($spotter_item['ground_speed']*1.852).' km/h'; |
|
| 440 | } |
|
| 441 | } |
|
| 442 | print '</div>'; |
|
| 443 | print '</div>'; |
|
| 444 | ||