Jump to content

Schedules and different airlines [Solved]


Recommended Posts

Posted

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.

Posted

I have knowledge of html.

Yet no knowledge of php, except for reading and changing some things.

So I guess I need a couple of schedule.tpl and then in code somewhere an where statement.

  • Moderators
Posted

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.

  • 2 weeks later...
Posted

I understand that.

Yet, I wonder how I could do a select statement, like select * from database where airline is xxxx.

Like I said, I am not a developer.

I am only a designer. With good knowledge of html/css.

Posted

Thank you.

But I miss something I guess.

The AS folder is empty.

What should I put in there?

/core/templates\/AS/AS_Select.tpl" doesn't exist in \core\classes\TemplateSet.class.php on line 248

Posted

Thanks. It works.

I only need to create something like I have done for my regular schedules, and I am a happy person.

Would be nice to get blocks of flights. block cat1 block cat 2. but that is something for the future.

BTW watch the postman, he is bringing Kudos. :)

Posted

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

  • Moderators
Posted

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.

Posted

Wow.

You are really gifted with your knowledge.

And I say for the how many time? Thank you.

More kudos are on the way. So I guess you need to extend the cellar.

How did you know that the name was

$aip1->name.

and not this as in the other code

arrname.

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