Strider Posted November 2, 2013 Report Posted November 2, 2013 This module lists all your aircraft under its own airline that operates it. It is great for VA's that have multiple airlines under the one name. Download: https://github.com/S...hive/master.zip Demo: http://malaysiava.or...ex.php/Aircraft I expanded the module it now includes a better way to insert the aircraft code into the module in the admin side, and it now allows you to list the aircraft that are under your codeshare agreement. It lists them in a seperate page. This is version 1.1. Thanks to all who helped me with this module. You can modify this module as much as you like, but please retain the copyright at the bottom of the pages. You will have to edit the aircraft.tpl file. It uses tabs, they should work, you can change the tabs that are used to ones you would like. 2 Quote
Txmmy83 Posted November 10, 2013 Report Posted November 10, 2013 didnt figured out yet how to customize this have a question how can I setup the tabs and links and where can I config that it use my va code instead of MH on Aircraft Create strange my version shows v1.0 downloaded today best regards and thanks in advance Thomas Quote
Strider Posted November 11, 2013 Author Report Posted November 11, 2013 Edit the tpl file. odd, about the version, I am pretty sure I had put the version in the footer. The tabs should be fairly straight forward, just look at the way they are setup and just add other divs, using the same as the last. You can get your own tabs too. just search for them on google, and you can get the code. Quote
Txmmy83 Posted November 11, 2013 Report Posted November 11, 2013 <?php if(!$aircrafts) { echo '<span style="color:red;">No aircraft in your database</span>'; } else {?> <ul class="tabs"> <li><a href="#">Vola Italia</a></li> <li><a href="#">Tab 2</a></li> <li><a href="#">Tab 3</a></li> </ul> <!-- tab "panes" --> <div class="panes"> <div><table class="tablesorter"> <tr> <th>Aircraft</th> <th>Image</th> <th>View</th> </tr> <?php foreach($aircrafts as $aircraft) { if($aircraft->airline == "VA") { ?> <tr> <td><?php echo $aircraft->aircraft;?></td> <td> <?php if(!$aircraft->image){ echo "No Image Available."; } else {?> <img src="<?php echo SITE_URL?>/lib/images/aircraft/thumbs/<?php echo $aircraft->image;?>" alt="<?php echo $aircraft->airline;?>"/><?php }?></td> <td><a href="<?php echo SITE_URL?>/index.php/Aircraft/Aircraftview/<?php echo $aircraft->aircraftid;?>"><span class="btn">View more</span></a></td> </tr> <?php } } ?> </table></div> what I havent figured out yet is how to link the tabs with the links OK just figured out how it works Quote
poole3003 Posted June 2, 2014 Report Posted June 2, 2014 how do i change the airline as it set to MH i have been threw all the files and changed it already but it nbot showing up its still MH Quote
Strider Posted June 2, 2014 Author Report Posted June 2, 2014 in the tpl, just change the class names to what you want. Quote
poole3003 Posted June 2, 2014 Report Posted June 2, 2014 i have but it still states that it is MH lol and in the hubs module when i select a hub like EGCC then i get a little cross in corner with EGCC in a little box next to it should that be for airport logo's Quote
Strider Posted June 3, 2014 Author Report Posted June 3, 2014 What is the link to your site. It sounds like you have either not uploaded the file, or you just need to clean your cache, and reload the page. Quote
poole3003 Posted June 3, 2014 Report Posted June 3, 2014 its ok i got rid of the mod but the link is etihadvirtualairaways.co.uk i hve a little problem on site with exam admin centre Quote
mitcheinfo Posted June 14, 2014 Report Posted June 14, 2014 As I can add this module departure and arrival Quote
Strider Posted June 14, 2014 Author Report Posted June 14, 2014 I am unsure what you mean. This just shows a list of aircraft you have in your VA by airline. Quote
mitcheinfo Posted June 17, 2014 Report Posted June 17, 2014 I would like to add departure and destination example: Aircraft: ATR72-500 Registration: EC-A18 Weight: 22788 Range: 1528nm Cruis: 509ft Passengers: 68 Cargo: 7787kg Dep: LEBL DEST LEMD Quote
Strider Posted June 17, 2014 Author Report Posted June 17, 2014 I am working on trying to get that working. Quote
poole3003 Posted August 4, 2014 Report Posted August 4, 2014 dude i need your help with this mate please email me on michael.hartingtonpoole@gmail.com 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.