Jump to content

Recommended Posts

Posted

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
Posted

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.

Posted

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.

Posted

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.

  • 2 weeks later...
Posted

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>

Posted

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>

Posted

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

  • 2 months later...
Posted

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.

  • 6 months later...
Posted

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

  • 4 months later...
  • 2 months later...
Posted

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.

Posted

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.

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