Jump to content
Nuclear

Timetable

Recommended Posts

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:

  1. Copy the Timetable folder to /core/modules
  2. Copy timetable.tpl to your skins folder
  3. 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).

post-790-087175100 1301796233_thumb.jpg

timetable 1.1.zip

  • Like 1

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Guest

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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>

Share this post


Link to post
Share on other sites

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>

Share this post


Link to post
Share on other sites

Let me install this and work with it. Give me about 15 - 20 minutes, and I'll return with a reply.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

I have tried this but it doesn't work wink.gif

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

Share this post


Link to post
Share on other sites

Anyone know how to iframe this? because the webpage isn't showing it properly.. it just over Laps it..ObsessBlue Template...

Share this post


Link to post
Share on other sites

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