Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/02/21 in all areas

  1. UPDATE: I Believe I've figured it out. For anyone looking for guidance like me this is what i've come up with <?php if ($flight->phasedetail == "Preflight") { echo '<span class="label label-success">Boarding</span>'; } elseif ($flight->phasedetail == "Pushing Back") { echo '<span class="label label-warning">Pushing Back</span>'; } elseif($flight->phasedetail == "Taxiing to Runway"){ echo '<span class="label label-warning">Taxiing to Runway</span>'; } elseif($flight->phasedetail == "Taking Off"){ echo '<span class="label label-warning">Taking Off</span>'; } elseif($flight->phasedetail == "Climbing"){ echo '<span class="label label-warning">Climbing</span>'; }elseif ($flight->phasedetail == "Cruising") { echo '<span class="label label-warning">Cruising</span>'; } elseif ($flight->phasedetail == "Descending") { echo '<span class="label label-warning">Descending</span>'; } elseif ($flight->phasedetail == "Approaching") { echo '<span class="label label-danger">On Approach</span>'; } elseif ($flight->phasedetail == "Final Approach") { echo '<span class="label label-warning">On Final</span>'; } elseif($flight->phasedetail == "Landing"){ echo '<span class="label label-warning">Landing</span>'; } elseif ($flight->phasedetail == "Taxiing to Gate") { echo '<span class="label label-danger">Cleared into Gate</span>'; } elseif ($flight->phasedetail == "Arrived") { echo '<span class="label label-danger">Parked at Gate</span>'; } ?> </td>
    1 point
  2. Thanks for pointing out actually looking at the acars map file instead of just the acars.js file. I fixed it by removing the url portion of the script; iconUrl: url + "/lib/images/inair/" + heading + ".png", to iconUrl: "/lib/images/inair/" + heading + ".png", And it works great!
    1 point
×
×
  • Create New...