Jump to content

Styling the phasedetails for acars map?


ShredMountains

Recommended Posts

Hello!!

So im working on trying to spruce up the information for my acars map, this is the code im trying to get to work its just showing nothing, so its outputting blank info. Any idea on why it would return nothing, maybe I'm not calling the right info from the acars? Or something like that?

<td><!--<div id="something"><span class="badge badge-theme"><%=flight.phasedetail%></span></div>-->
 <?php
 if($flight->phasedetail=="Boarding")
   { echo '<div id="boarding"><span class="badge badge-theme">Boarding</span></div>'; }
 elseif($flight->phasedetail == "Taxiing to Runway")
   { echo '<div id="taxiingtorunway"><span class="badge badge-theme">Taxiing to Runway</span></div>'; }
 elseif($flight->phasedetail == "Taking Off")
   { echo '<div id="takingoff"><span class="badge badge-theme">Taking Off</span></div>'; }
 elseif($flight->phasedetail == "Climbing")
   { echo '<div id="climbing"><span class="badge badge-theme">Climbing</span></div>'; }
 elseif($flight->phasedetail == "Cruise")
   { echo '<div id="cruise"><span class="badge badge-theme">Cruise</span></div>'; }
 elseif($flight->phasedetail == "Arrived")
   { echo '<div id="arrived"><span class="badge badge-theme">Arrived</span></div>'; }
 elseif($flight->phasedetail == "Descending")
   { echo '<div id="descending"><span class="badge badge-theme">Descending</span></div>'; }
 elseif($flight->phasedetail == "Level Flight")
   { echo '<div id="levelflight"><span class="badge badge-theme">Level Flight</span></div>'; }
 elseif($flight->phasedetail == "On Approach")
   { echo '<div id="onapproach"><span class="badge badge-theme">On Approach</span></div>'; }
 elseif($flight->phasedetail == "Taxiing to Gate")
   { echo '<div id="taxiingtogate"><span class="badge badge-theme">Taxiing to Gate</span></div>'; }
 elseif($flight->phasedetail == "Arrived")
   { echo '<div id="arrived"><span class="badge badge-theme">Arrived</span></div>'; }?>
</td>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...