CFVA Posted February 11, 2020 Report Share Posted February 11, 2020 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> All other variables show except aircraft name! Using kAcars 1.0.1.5 & PHPVMS 5.5.2 Thanks in advance Quote Link to comment Share on other sites More sharing options...
gio1961 Posted February 11, 2020 Report Share Posted February 11, 2020 (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> 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 February 11, 2020 by gio1961 Quote Link to comment Share on other sites More sharing options...
CFVA Posted February 11, 2020 Author Report Share Posted February 11, 2020 Thank you so much. I hadn't even noticed the extra < in the line. Works great now Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.