Jump to content

Schedules and different airlines [Solved]


aarbee

Recommended Posts

I wonder what happens if you have 100 flights in a airline. I guess that will be represented in a long list.

I also saw that if I added a second airliner, that the flights of that airline will be attached to the same list.

so one list of 200 records for 2 airliners. I guess the pilots will loose the overview.

Is there a way to create more pages? Like

  • schedule for airline one
  • schedule2 for airline two
  • etc

I also wonder if I could make seperate blocks or pages per category of planes.

Link to comment
Share on other sites

  • Moderators

Well to start off, you need to set up a module with tpl files. if you have let's say 2 airlines you'll need schedule_results.tpl and another tpl to show to your pilots at first when they open the booking page with airline selection. Then pass the value of selected airline to a function to filter out the schedules.

Link to comment
Share on other sites

  • 2 weeks later...

I only wonder why not all info got through.

Instead of the Aircraftname in the standard Schedules, I am getting a number 1 (I guess the recordnumber).

I cannot see the Registrationnumber or depname

Example:

I do not see
<?php echo ''.$route->depname.''?>
I do see
<?php echo ''.$route->depicao.''?>

Link to comment
Share on other sites

  • Moderators

I only wonder why not all info got through.

Instead of the Aircraftname in the standard Schedules, I am getting a number 1 (I guess the recordnumber).

I cannot see the Registrationnumber or depname

Example:

I do not see
<?php echo ''.$route->depname.''?>
I do see
<?php echo ''.$route->depicao.''?>

That's because the DB has raw data (ex. 1 would be aircraft ID in the aircraft table). If you want to show like A/C registration or departure airport name then you'll have to use other functions that meant to do that for you.

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...