Nuclear Posted April 3, 2011 Report Posted April 3, 2011 Here's something I created for my VA and I thought it might be useful for others. It displays your flight schedule as a timetable. Installation: Copy the Timetable folder to /core/modules Copy timetable.tpl to your skins folder Create a link: <a href="<?php echo url('/timetable'); ?>">Timetable</a> Note that much of the table style is hard-coded, so if you don't like the way it looks, you're SOL (just kidding, you just need to edit the timetable.tpl to your liking). timetable 1.1.zip 1 Quote
Industrialshadow Posted April 3, 2011 Report Posted April 3, 2011 Thanks great addon. But look here. This is a Problem http://sflogistik.dhl-aircargo.de/index.php/timetable And whre can i change the Name of the Table to our Airline Name? Thanks Quote
Tom Posted April 3, 2011 Report Posted April 3, 2011 I think this is what this is: http://forum.phpvms.net/topic/3185-timetable-10/ Quote
Nuclear Posted April 3, 2011 Author Report Posted April 3, 2011 Yes, Tom. Looking at Simpilot's add-on, it's very similar. I wrote this completely unaware of his contribution at the time, if that's what you're implying. Quote
Nuclear Posted April 3, 2011 Author Report Posted April 3, 2011 Thanks great addon. But look here. This is a Problem http://sflogistik.dhl-aircargo.de/index.php/timetable And whre can i change the Name of the Table to our Airline Name? Thanks Yes, putting it on your front page is problematic, since it tends to be fairly long. I suggest you create a link, this will render it in it's own page. Quote
Industrialshadow Posted April 3, 2011 Report Posted April 3, 2011 ok can you help me to make this? im not a profi .. Thanks Quote
Guest Posted April 5, 2011 Report Posted April 5, 2011 Warning: Invalid argument supplied for foreach() in /home/traveltr/public_html/lib/skins/troposphere/timetable.tpl on line 33 It also displays the header of the table below the footer of my website. Quote
Nuclear Posted April 5, 2011 Author Report Posted April 5, 2011 Dresdenair and twincessna, sorry about that. I apparently uploaded the wrong version of timetable.tpl in the original zip file. I've updated the download in the original post. The only changes are to timetable.tpl. Let me know if this works now, thanks. Quote
Txmmy83 Posted April 13, 2011 Report Posted April 13, 2011 have to look if I can read out the Aircrafts Icao and Days than this would be perfect Quote
Jeff Posted April 14, 2011 Report Posted April 14, 2011 You can add this to it to show those (I believe this is correct...not tested) <td><font color=#FFFFFF>Aircraft</td><td><font color=#FFFFFF>Frequency</td> Then add this... <td>'.$aircraft->icao.'</td><td>'.$route->daysofweek.'</td> Quote
Tomgis34 Posted April 17, 2011 Report Posted April 17, 2011 How put a link in table ? I would like to put link to Flight briefing. Thanks. Quote
Jeff Posted April 17, 2011 Report Posted April 17, 2011 How put a link in table ? I would like to put link to Flight briefing. Thanks. <a href="<?php echo url('/schedules/brief/'.$route->id);?>">Pilot Brief</a> Quote
Tomgis34 Posted April 17, 2011 Report Posted April 17, 2011 <a href="<?php echo url('/schedules/brief/'.$route->id);?>">Pilot Brief</a> I have tried this but it doesn't work Quote
Jeff Posted April 17, 2011 Report Posted April 17, 2011 Let me install this and work with it. Give me about 15 - 20 minutes, and I'll return with a reply. Quote
Jeff Posted April 17, 2011 Report Posted April 17, 2011 I've tried several configurations to get that to show up, but kept receiving a Warning: message, so I am not sure what is needed to get the Brief Page to show. Sorry, but I tried. Quote
Blu-Express VA Posted June 24, 2011 Report Posted June 24, 2011 Hi how to add a rule then after 2 colums go head? Because i use brillianceV1 and the timetable go out of the line of page.. Thnx Quote
Jeff Posted June 24, 2011 Report Posted June 24, 2011 Hi how to add a rule then after 2 colums go head? Because i use brillianceV1 and the timetable go out of the line of page.. Thnx Replace (line 61) if ($currtable<4) //start new child only with if ($currtable<3) //start new child only that should do it. Quote
AlexCohrs Posted January 3, 2012 Report Posted January 3, 2012 Hi Nuclear, that's indeed a cool addition, thank you for sharing. How can I give a credit to you on my page? All: As being new to phpVMS, I am really surprised about this awesome and helpful community. It's great fun! Alex Quote
february272 Posted May 25, 2012 Report Posted May 25, 2012 can i change time when i checked in timetable? thanks Quote
onelifexv Posted August 1, 2012 Report Posted August 1, 2012 You can add this to it to show those (I believe this is correct...not tested) <td><font color=#FFFFFF>Aircraft</td><td><font color=#FFFFFF>Frequency</td> Then add this... <td>'.$aircraft->icao.'</td><td>'.$route->daysofweek.'</td> The .$aircraft-<icao. isn't pulling up any data for me. Quote
onelifexv Posted August 1, 2012 Report Posted August 1, 2012 I have tried this but it doesn't work <td><a href="http://www.YOURWEBSITE.COM/index.php/schedules/brief/'.$route->id.'">'.$route->flightnum.'</a></td> This should work. This makes the flightnumber itself a link to the routes. Not using the php echo for the current URL and actually hardcoding it in seems to work just fine. Obviously, make sure you change 'YOURWEBSITE.COM' to your actual url. You'll need to change it in two places, since the call is different whether it's the first line for that depicao or not. Quote
Curshad Posted August 21, 2012 Report Posted August 21, 2012 Anyone know how to iframe this? because the webpage isn't showing it properly.. it just over Laps it..ObsessBlue Template... Quote
AndrewOne77 Posted August 25, 2012 Report Posted August 25, 2012 Works Great! Thanks for sharing! Quote
Stealthbird97 Posted November 9, 2012 Report Posted November 9, 2012 Any way of making it show a different table for each airline on your phpvms. 1 Quote
loplo Posted November 28, 2012 Report Posted November 28, 2012 The .$aircraft-<icao. isn't pulling up any data for me. Same here. Is there a workaround? Quote
loplo Posted December 6, 2012 Report Posted December 6, 2012 Anyone!? tried $aircraft->registration. and still no joy. 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.