markusr Posted October 20, 2010 Report Posted October 20, 2010 Yes, they are enabled. Schedules are existant, but without dep/arr airport. They were delted in the database directly, so that you can book an aircraft, but not a specific route. and the fleet: Quote
Administrators simpilot Posted October 20, 2010 Administrators Report Posted October 20, 2010 Are there any PIREPS filed? The sql command is trying to count info from them as well? Quote
markusr Posted October 20, 2010 Report Posted October 20, 2010 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. Quote
TAV1702 Posted January 18, 2011 Report Posted January 18, 2011 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. Quote
Thomas Rozanov Posted February 24, 2011 Report Posted February 24, 2011 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 Quote
Guest lorathon Posted February 24, 2011 Report Posted February 24, 2011 Should be able to add a size to the <table> tag <table width="50%"> I am not using this so not sure how it is wet up but you code also use css to change width. Quote
Jeff Posted April 4, 2011 Report Posted April 4, 2011 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? Quote
Moderators mark1million Posted April 4, 2011 Moderators Report Posted April 4, 2011 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. Quote
Jeff Posted April 4, 2011 Report Posted April 4, 2011 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. Quote
BBuchanan Posted April 17, 2011 Report Posted April 17, 2011 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 ;-) 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 Quote
ukmil Posted June 14, 2011 Report Posted June 14, 2011 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? Quote
Blu-Express VA Posted June 22, 2011 Report Posted June 22, 2011 Hi, Can i show in my Fleet Table All aircraft of my fleet insert in phpVMS Admin CP?? Thanks Quote
Tylor Eddy Posted June 23, 2011 Report Posted June 23, 2011 How can i show the needed ranks ??? I would also like to implement this feature too, if anyone can help Quote
stuartpb Posted June 23, 2011 Report Posted June 23, 2011 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 Quote
Tylor Eddy Posted June 23, 2011 Report Posted June 23, 2011 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 Quote
ukmil Posted June 23, 2011 Report Posted June 23, 2011 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? Quote
ukmil Posted June 26, 2011 Report Posted June 26, 2011 I have made a small amendment to this script, you can see here http://forum.phpvms.net/topic/5391-aircraft-enabled/page__gopid__36273#entry36273 but would appreciate some help to get an answer to the latest question Quote
Nighthawk Posted July 7, 2011 Report Posted July 7, 2011 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> Quote
TAV1702 Posted July 21, 2011 Report Posted July 21, 2011 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. Quote
Strider Posted July 21, 2011 Report Posted July 21, 2011 Maybe because that is how long the actual flight took, just from take off to landing, the rest was just taxi time. Quote
stuartpb Posted July 21, 2011 Report Posted July 21, 2011 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). Quote
TAV1702 Posted July 22, 2011 Report Posted July 22, 2011 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. Quote
bigrossco Posted November 2, 2011 Report Posted November 2, 2011 hi I get error Warning: Invalid argument supplied for foreach() /core/templates/fleet_table.tpl on line 21 seems to be to do with <?php foreach ($fleet as $aircraft) Quote
bigrossco Posted November 3, 2011 Report Posted November 3, 2011 update i have now got this to work HOWEVER, it only shows 3 of my aircraft when I do have ALOT more than just 3 enabled Quote
bigrossco Posted November 3, 2011 Report Posted November 3, 2011 have now managed to get this to work Quote
ukmil Posted November 28, 2011 Report Posted November 28, 2011 I have been tweaking my Fleet page, and now have it so it splits the aircraft into groups, and lists the unavailable ones at the bottom, as under maint Quote
steve Posted December 7, 2011 Report Posted December 7, 2011 UKMIL, would you mind sharing how you grouped by type? Thanks Steve Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.