Jump to content

TB1

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by TB1

  1. I found a fix but thanks anyway
  2. Hey guys. I just wanted to share with you a small bit of code that I am using. This will format your total earnings in your pilot's signatures as a monetary amount. An example of this is in my forum signature. Should you wish to use it, the code needs to be placed in line 977 of the PilotData.class.php file. Overwrite anything that's already there but I would advise you make a backup. Hope someone finds this useful! if(Config::Get('SIGNATURE_SHOW_EARNINGS') == true) { $output[] = 'Total Earnings: ' . FinanceData::FormatMoney($pilot->totalpay); }
  3. Hi guys, This is my code for a live flight board on my frontpage. Can anyone suggest an addition to the code which would mean that when a pilot bids on a flight, it will appear on the flight board as 'In Flight'. Thanks! <div class="row-fluid"> <div class="span12"> <div class="box"> <table width="100%" border="0" bordercolor="#FFFFFF"> <h3><center>Latest Flights</h3> </div> <?php $count = 5; $pireps = PIREPData::getRecentReportsByCount($count); ?> <style type="text/css"> table th { text-align: center; color:black; font-weight:bold;} table td { text-align: center; } </style> <thead> <tr> <style type="text/css"> { text-align: center; } </style> <th>Flight Number</th> <th>Pilot</th> <th>Departure</th> <th>Arrival</th> <th>Flight Duration</th> <th>Aircraft</th> <th>Date & Time Submitted (GMT) <th>Flight Status</th> </tr> </font> <tbody> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); if($pirep->accepted == '0') $status = 'REJECTED'; if($pirep->accepted == '1') $status = 'ACCEPTED'; else $status = 'PENDING'; /*$aircraft = OperationsData::getAircraftInfo($pirep->aircraft);*/ } ?> <tr> <td class="small"><a href="<?php echo SITE_URL?>/index.php/pireps/view/<?php echo '' . $pirep->pirepid . ''; ?>"><?php echo $pirep->code.$pirep->flightnum; ?></a></td> <td class="small"><a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo '' . $pilotinfo->pilotid . ''; ?>"><?php echo $pilotinfo->firstname.' '.$pilotinfo->lastname; ?></td> <td class="small"><?php echo $pirep->depicao; ?></td> <td class="small"><?php echo $pirep->arricao; ?></td> <td class="small"><?php echo $pirep->flighttime; ?></td> <td class="small"><?php echo $pirep->aircraft; ?></td> <td class="small"><?php echo date(DATE_FORMAT, $pirep->submitdate); ?> at <?php echo date('H:i', $pirep->submitdate);?></td> <td class="small"><?php if($pirep->accepted == PIREP_ACCEPTED) echo '<font color="green">Arrived</font>'; elseif($pirep->accepted == PIREP_REJECTED) echo '<font color="red">Rejected</font>'; elseif($pirep->accepted == PIREP_PENDING) echo '<font color="orange">Awaiting Information</font>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo '<font color="blue">In Flight</font>'; ?> </td> </tr> <?php } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?> </tbody> </div> </table>
  4. Hey guys, Does anyone have some code which displays the last location of a pilot based on PIREP data which can be used with the rest of the signature data. I'm assuming once I have the code it will go in PilotData.class but please correct me if I'm wrong. Thanks!
  5. Nice skin. Only problem is my QuickFacts don't seem to be updating. Link to my site: http://hawaiianairwayspireps.comoj.com/phpvms/index.php/
  6. Hey guys, I'm just joining the forums whilst installing PHPVMS for my VA. I am having some trouble when logging a PIREP. When I select my airline, the system only lets me use Honolulu as my departing airport, whilst the arrival airport drop down menu has all the airports on PHPVMS available for selection. How can I set up PHPVMS so that all of the airports on the database can be selected as the departing airport? Thank you very much in advance!
×
×
  • Create New...