Jump to content

Flight Booking System


reed0427

Recommended Posts

Saw a posting in the forum from a year ago about a new Flight Booking System. Emailed the creator but got no response. Has anybody tried it, and how happy are you with it? We like the idea of making pilots depart from the airport they last landed at, but the zip file we downloaded would be more helpful if it had install instructions with it. It say in the posting to create an SQL table. A what? I'm lost right there....

Link to comment
Share on other sites

When a pilot bids a flight from London to Paris, his next flight must originate in Paris. He can't jump to Dallas and fly from there.

When he brings up the Flight Schedules, only flights originating in Paris will appear. So he bids on a flight from Paris to New York. When he completes that trip, only flights from New York will appear.

The program must work for each pilot individually. If Pilot B flies to Amsterdam, then for him only flights from Amsterdam will be available next.

Seems to me like it's just a matter of filtering out all airports except the pilot's last destination. Does anyone have a program that does this already?

Link to comment
Share on other sites

  • Administrators

You could add a couple of lines within the schedule results template to filter out all the flights that do not orignate fromt he pilots last PIREP arrival location. It would not prevent them from flying other routes but it would prevent the other routes from easily being seen in the schedule.

In your schedule results.tpl file somewhere around line 17 (depending on what version you are using and what modifiacations have already been made). You are looking for;

<?php
foreach($allroutes as $route)
{

right after this make a couple of blank lines and add something like this;

<?php
foreach($allroutes as $route)
{
if (Auth::LoggedIn())
{
  $last = PIREPData::GetLastReports(Auth::$userinfo->pilotid);
  if($last->arricao != $route->depicao)
  {continue;}
}

This should skip any schedule that does not have the same departure airfield as the last arrival airfield from the pilot's last PIREP. If the user is not logged in, the code will just be skipped.

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Our pilots can either begin the next flight from where they landed or they can request a jumpseat ticket to the airport from which they want to depart from next. They have to wait for Admin approval of jumpseat/open seats since there are no virtual gate agents in MSFS or phpvms to determine the availability.

Link to comment
Share on other sites

  • 1 month later...

Our pilots can either begin the next flight from where they landed or they can request a jumpseat ticket to the airport from which they want to depart from next. They have to wait for Admin approval of jumpseat/open seats since there are no virtual gate agents in MSFS or phpvms to determine the availability.

Hey , that's what we are looking for , Would be great to share on how you did accomplish that ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...