Jump to content

Fleet Table


AFVA | Mitchell

Recommended Posts

  • 2 months later...

HI

How can I show Fleet by airlines ?

I am kind of curious too if this can be done. I have been working on a little project and bumped in to this issue. Since i have two airlines running off of the same website, it lists all of the aircraft as belonging to 1 airline instead of listing them seperate. This feature would be real handy. I may need to go back and read the posts again to see if it was solved or not. I apologize if it has been answered already.

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

I am trying to get the output for Total Routes that a certain aircraft is actually scheduled for by using this:

<td><?php echo $aircraft->totalschedules; ?></td>

I have also tried this:

<td><?php echo $aircraft->schedules; ?></td>

But neither seems to work. Can someone please show the correct function to show the count for scheduled flights for the particular aircraft?

Link to comment
Share on other sites

I just need to know how many total flights that are available (scheduled) to a specific aircraft. (Ex. if you have scheduled 350 flights to and from EDDF using an Airbus A320 then I need to know how to pull the info to show Total Routes Available: 350) using the Aircraft's Registration ID.

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

since the "Table-View" for my fleet did not look as I expected, I wrote another template.

Maybe someone can get use of it.

fleet_table.jpg

If someone asks for aid, sorry guys. I'm also just an average programmer ;-)

I will help as much as I can.

Overwrite existing file in /core/templates

Regards and Happy landings.

I just noticed that no one said thanks to this person for uploading his template for us to use or modify. Thank you bud.

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

I have used this on my site, and it is working great, but, if I make a certain aircraft INACTIVE, it still shows on the fleet. would it be possible to either hide the inactive ones, or split the list into two? so the active ones show in one table, and the inactive in another?

Link to comment
Share on other sites

  • 2 weeks later...

For the ranks:

<img src="http://yourdomain.com/lib/images/ranks/<?php echo $aircraft->ranklevel; ?>.jpg"/>

You need to put the above into a table cell on the fleet table page.

Make sure the path to the image is correct for your server and also you have used the correct image format (png,jpg etc)

I named the rank images as numerical values, 1 to 9. Lowest rank is 1, highest is 9. The numerical ranklevel and image name need to match up for this to work.

  • Like 1
Link to comment
Share on other sites

For the ranks:

<img src="http://yourdomain.com/lib/images/ranks/<?php echo $aircraft->ranklevel; ?>.jpg"/>

You need to put the above into a table cell on the fleet table page.

Make sure the path to the image is correct for your server and also you have used the correct image format (png,jpg etc)

I named the rank images as numerical values, 1 to 9. Lowest rank is 1, highest is 9. The numerical ranklevel and image name need to match up for this to work.

Thanks very much for this Stuart, works wonderfully :)

+1 rep for your great help :)

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

So here I sit messing around on my test site and I filed a pirep. I just noticed that I filed the pirep as an hour and twenty minutes ( 1.20 ) This info shows up according when I accepted the pirep, and in the profile main. However, when viewing the Fleet Table, it indicates that the aircraft that was used in the pirep has only been flown for 1.12 one hour and twelve minutes.

I have this on a live site since this mod came out and never noticed it before.

Link to comment
Share on other sites

Maybe because that is how long the actual flight took, just from take off to landing, the rest was just taxi time.

I don't think that would be it as the time recorded is for off the blocks time (parking brake off at departure gate to parking brake on at arrival gate).

Link to comment
Share on other sites

I forgot to add that it was a manual file. No acars. So it would have to take what I put in as flight time and the admin center as well as profile and the database did. But for one reason or the other it shows the plane 8 minutes short on flight time.

Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...
  • 2 weeks later...

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