joeholden Posted May 28, 2014 Report Share Posted May 28, 2014 Hi Guys! I'm trying to implement on our 'View pilot profiles' the pilots last flight, and their next flight. Here's what I have so far, but the problem is, no information is displayed when on the site. Last Flight</h2> <table width="100%" border="0"> <tr> <th class="profile" align="left" width="20%" scope="row">Flight Number</th> <td class="profile" width="30%"><a href="<?php echo url('/pireps/view/'.$report->pirepid);?>"><?php echo $report->code . $report->flightnum; ?></a></td> </tr> <tr> <th class="profile" align="left" width="20%" scope="row">Departure</th> <td class="profile" width="30%"><?php echo $report->depicao; ?></td> </tr> <tr> <th class="profile" align="left" width="20%" scope="row">Destination</th> <td class="profile" width="30%"><?php echo $report->arricao; ?></td> </tr> <tr> <th class="profile" align="left" width="20%" scope="row">Aircraft Type</th> <td class="profile" width="30%"><?php echo $report->aircraft; ?></td> </tr> <tr> <th class="profile" align="left" width="20%" scope="row">Duration</th> <td class="profile" width="30%"><?php echo $report->flighttime; ?></td> </tr> </table> </div><!-- end two column --> <div class="profile_twocolumn" style="margin-top:20px;"> <h2>Next Flight</h2> <table width="100%" border="0"> <tr> <th class="profile" align="left" width="20%" scope="row">Flight Number</th> <td class="profile" width="30%"><a href="<?php echo url('/pireps/view/'.$report->pirepid);?>"><?php echo $report->code . $report->flightnum; ?></a></td> </tr> <tr> <th class="profile" align="left" width="20%" scope="row">Departure</th> <td class="profile" width="30%"><?php echo $bid->depicao; ?></td> </tr> <tr> <th class="profile" align="left" width="20%" scope="row">Destination</th> <td class="profile" width="30%"><?php echo $bid->arricao; ?></td> </tr> <tr> <th class="profile" align="left" width="20%" scope="row">Aircraft Type</th> <td class="profile" width="30%"><?php echo $bid->aircraft; ?></td> </tr> <tr> <th class="profile" align="left" width="20%" scope="row">Departure Time</th> <td class="profile" width="30%"><?php echo $bid->deptime;?></td> </tr> </table> Any help would be appreciated! Regards, Joe Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted May 29, 2014 Members Report Share Posted May 29, 2014 First how do you wich flight Is the last one because i do not see any query and the same goes for the next flight Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted May 29, 2014 Administrators Report Share Posted May 29, 2014 Looks like you are using the last PIREP for both flights. You will need to use the pilots bids, if there are any for the next flight, unless you are using some type of dispatch system. As Vangelis posted, you will also need to fill these variables, preferably in the controller, if you are not doing so already. Quote Link to comment Share on other sites More sharing options...
Jakubovsky Posted January 13, 2015 Report Share Posted January 13, 2015 you find answer? 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.