Jump to content

Timetable


Nuclear

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
Link to comment
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.

Link to comment
Share on other sites

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.

Link to comment
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.

Link to comment
Share on other sites

  • 2 weeks later...

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>

Link to comment
Share on other sites

  • 2 months later...

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.

Link to comment
Share on other sites

  • 6 months later...
  • 4 months later...
  • 2 months later...

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.

Link to comment
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.

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...
  • 3 weeks later...

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