Jump to content

gehatz

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by gehatz

  1. So far this is turning out to be very good. I like the suggestion of Alex. I would like to see a setting within this script which would allow you to filter the flights via airport. For example if I wanted to show departures and arrivals of my va out of a specific airport only, not all the va's flights.
  2. so sorry sir, i accidently copied the code from something else... here is the actual code of your script <table> <tr> <th>Name</th> <th>Flight #</th> <th>Departure</th> <th>Arrival</th> <th>Phase</th> </tr> <?php $results = ACARSData::GetACARSData(); if (count($results) > 0) { foreach($results as $row) { $font = "<font color=''>"; // Standard font color if nothing below is TRUE if($row->phasedetail == 'Taxiing') $font = "<font color='#FF0000'>"; //This should set the font color to red when Taxiing. if($row->phasedetail == 'Cruise') $font = "<font color='#00FF00'>"; //This should set the font color to green when Cruise. // You can add more checks here for whatever you wish ?> <tr> <td><?php echo $row->pilotname;?></td> <td><?php echo $row->flightnum;?></td> <td><?php echo $row->depicao;?></td> <td><?php echo $row->arricao;?></td> <td><?php echo $font.$row->phasedetail;?></font></td> </tr> <?php } } ?> </table>
  3. gehatz

    CargoB va Skin

    hey timodedeyne, i was just wondering if you are using two separate installations for these two VAs or just a sinble instalation with a different skin per airline. thanks
  4. So let me see if I understand this... there are designated dispatchers who can assign flights individualy to pilots. these flights have to be completed on the date of the flight?
  5. here it is: <?php $query = "SELECT * FROM phpvms_schedules ORDER BY deptime + 0 ASC"; $list = DB::get_results($query); echo '<h3>Upcoming Departures - Current Time is '.date('G:i').'</h3>'; echo '<table width="100%" border="1">'; echo '<tr><td><b>Flight Number</b></td><td><b>Departure</b></td><td><b>Arrival</b></td><td><b>Departure Time</b></td><td><b>Aircraft</b></td><td><b>Status</b></td></tr>'; $count = 0; foreach($list as $flight) { if(date('G:i') >= '23') {$time = '0';} else {$time = date('G:i');} if(($flight->deptime + 0) > $time) { if($count < 10) { $aircraft = OperationsData::getAircraftInfo($flight->aircraft); echo '<tr><td>'.$flight->flightnum.'</td><td>'.$flight->depicao.'</td><td>'.$flight->arricao.'</td><td>'.$flight->deptime.'</td><td>'.$aircraft->fullname.'</td>'; echo '<td>'; if(($flight->deptime - date('G:i')) <= 1) { echo 'Now Boarding'; } else { echo 'Scheduled Departure'; } echo '</td></tr>'; $count++; } } } echo '</table>'; echo '<h3>Upcoming Arrivals - Current Time is '.date('G:i').'</h3>'; echo '<table width="100%" border="0">'; echo '<tr><td><b>Flight Number</b></td><td><b>Departure</b></td><td><b>Arrival</b></td><td><b>Arrival Time</b></td><td><b>Aircraft</b></td><td><b>Status</b></td></tr>'; $count = 0; foreach($list as $flight) { if(date('G:i') >= '23') {$time = '0';} else {$time = date('G:i');} if(($flight->arrtime + 0) > $time) { if($count < 10) { $aircraft = OperationsData::getAircraftInfo($flight->aircraft); echo '<tr><td>'.$flight->flightnum.'</td><td>'.$flight->depicao.'</td><td>'.$flight->arricao.'</td><td>'.$flight->arrtime.'</td><td>'.$aircraft->fullname.'</td>'; echo '<td>'; if(($flight->arrtime - date('G:i')) <= 1) { echo 'Arriving Soon'; } else { echo 'On Time'; } echo '</td></tr>'; $count++; } } } echo '</table>'; ?>
  6. i've added the code above as a news item on my frontpage and granted there are no live flights i get this output: 0) { foreach($results as $row) { $font = ""; // Standard font color if nothing below is TRUE if($row->phasedetail == 'Taxiing') $font = ""; //This should set the font color to red when Taxiing. if($row->phasedetail == 'Cruise') $font = ""; //This should set the font color to green when Cruise. // You can add more checks here for whatever you wish ?> Name Flight # Departure Arrival Phase pilotname;?> flightnum;?> depicao;?> arricao;?> phasedetail;?> does this look right when there are no "live flights"? thanks
  7. Hey Lorathon, I was just thinking that your addon (already excellent) would benefit from a feature (or set of features) which allow a pilot to enter their departure (initial) airport and the arrival (terminal) airport. If there is no direct flight it should populate with an itinerary of interconnected flights which would start from the departure (init) airport and end at the arrival (terminal) airport. for example if i wanted to travel from LGAV to KIAD and there was no direct flight it should give me an itinerary of flights that are operational by the VA like LGAV (Athens, GRE) to KJFK KJFK to KIAD it will enhance the sence of realism in the VA as far as booking flights don't you think?
  8. I logged into the first link just fine and saw the flight duty feature under dispatch... I can't login to the second link though! Thanks for this addon by the way. It looks interesting, we just need to know more about what it does...
  9. hey simpilot, this is a great addon that i would love to get my hands on. what would it take for someone to get the full version of this addon?
×
×
  • Create New...