Jump to content

How to show aircraft in ACARS map page [SOLVED]


Recommended Posts

Posted

Want to add the aircraft being flown in the Live ACARS map page.

ACARS.PHP says variable     <%=flight.aircraftname%>            Gives the full name

So I added that in ACARS.PHP:

So I have

    <tr>
        <td><b>Pilot</b></td>
        <td><b>Flight Number</b></td>
        <td><b>Departure</b></td>
        <td><b>Arrival</b></td>
        <td><b>Aircraft</b></td>
        <td><b>Status</b></td>
        <td><b>Altitude</b></td>
        <td><b>Speed</b></td>
        <td><b>Distance/Time Remain</b></td>
    </tr>
for the table &

<script type="text/html" id="acars_map_row">
<tr class="<%=flight.trclass%>">
<td><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a></td>
<td><?php echo "CF"?><%=flight.flightnum%></td>
<td><%=flight.depicao%></td>
<td><%=flight.arricao%></td>
<td><<%=flight.aircraftname%></td>
<td><%=flight.phasedetail%></td>
<td><%=flight.alt%></td>
<td><%=flight.gs%></td>
<td><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%></td>
</tr>

acars1.JPG

All other variables show except aircraft name!

Using kAcars 1.0.1.5 & PHPVMS 5.5.2

Thanks in advance

 

Posted (edited)
16 minutes ago, CFVA said:

Want to add the aircraft being flown in the Live ACARS map page.

ACARS.PHP says variable     <%=flight.aircraftname%>            Gives the full name

So I added that in ACARS.PHP:

So I have

    <tr>
        <td><b>Pilot</b></td>
        <td><b>Flight Number</b></td>
        <td><b>Departure</b></td>
        <td><b>Arrival</b></td>
        <td><b>Aircraft</b></td>
        <td><b>Status</b></td>
        <td><b>Altitude</b></td>
        <td><b>Speed</b></td>
        <td><b>Distance/Time Remain</b></td>
    </tr>
for the table &

<script type="text/html" id="acars_map_row">
<tr class="<%=flight.trclass%>">
<td><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a></td>
<td><?php echo "CF"?><%=flight.flightnum%></td>
<td><%=flight.depicao%></td>
<td><%=flight.arricao%></td>
<td><<%=flight.aircraftname%></td>
<td><%=flight.phasedetail%></td>
<td><%=flight.alt%></td>
<td><%=flight.gs%></td>
<td><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%></td>
</tr>

acars1.JPG

All other variables show except aircraft name!

Using kAcars 1.0.1.5 & PHPVMS 5.5.2

Thanks in advance

 

Try changing this code from

<td><<%=flight.aircraftname%></td>

 

to <td><%=flight.aircraftname%></td>

there is "<" more

 

Edited by gio1961

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...