Jeff Posted July 18, 2011 Report Share Posted July 18, 2011 I'm trying to show the airport name in the schedule_results.tpl but for some reason I cannot get it to show up. I've tried this: <font size="3"> <strong>Departure: </strong><?php echo $route->depname ?><br /> and this: <font size="3"> <strong>Departure: </strong><?php echo $schedule->depname ?><br /> and neither of them are showing anything. Is there something I missed, or can't it be shown? I can get the ICAO to show up, but not the name. Quote Link to comment Share on other sites More sharing options...
stuartpb Posted July 18, 2011 Report Share Posted July 18, 2011 Departure <?php $departname = OperationsData::getAirportInfo($route->depicao);?> <td><?php echo $route->depicao;?> <?php echo $departname->name;?></td> Arrival <?php $arrivename = OperationsData::getAirportInfo($route->arricao);?> <td><?php echo $route->arricao;?> <?php echo $arrivename->name;?></td> Hope that helps Quote Link to comment Share on other sites More sharing options...
Jeff Posted July 18, 2011 Author Report Share Posted July 18, 2011 Thank you Stuart. Not sure why it had to be done that way, but it worked like a charm. Good day sir. Quote Link to comment Share on other sites More sharing options...
stuartpb Posted July 18, 2011 Report Share Posted July 18, 2011 No worries, glad to have helped. The data pulled in the schedules page doesn't include the airport name, only the ICAO. So I had to pull the airport names from the airports table, relative to the airport ICAO's on the schedule. Quote Link to comment Share on other sites More sharing options...
Colonia Posted July 23, 2011 Report Share Posted July 23, 2011 Hey, I've added this, too. Thanx also from me, Stuart 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.