Fleet Table

Hi,

yes around 80 Pireps are logged. The fleet module is working when I don’t try to filter only the enabled aircraft. If I add the filter for the enabled aircraft, the script stops working.

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.

How do i resize the table to fit my website’s width? I checked the .tpl file and fleet.php file and honsetly i didn’t find anything about size of the table :S

Please Help.

I will really appreciate it

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?

Now there was a module about here somewhere that showed how many sectors an aircraft has flown and where is currently is if thats any good to you, ill post the files.

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.

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.

If someone asks for aid, sorry guys. I’m also just an average programmer :wink:

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.

1 Like

Nm Was a Blonde comment. Sorry.

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?

Hi,

Can i show in my Fleet Table All aircraft of my fleet insert in phpVMS Admin CP??

Thanks

How can i show the needed ranks ???

How can i show the needed ranks ???

I would also like to implement this feature too, if anyone can help

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.

1 Like

For the ranks:

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

I have this working great. However, I would like to make an addition. would it be possible to add some code, so if i make the aircraft unavailable in the fleet admin, to show a ‘under maintenance’ label in the fleet page?

I have made a small amendment to this script, you can see here

but would appreciate some help to get an answer to the latest question

When u want an external bigger aircraft pic to an choosen format like this http://ts666.kicks-ass.net/phpvms/index.php/fleet . U must write in the fleet table:

<td><img src=“<?php echo $aircraft->imagelink; ?>” height=“80” width=“80”></td>

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.

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

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