Timetable 1.0

Timetable 1.0

Module to create a timetable type listing of your phpVMS powered VA schedules.

Developed by:

simpilot

Developed on:

phpVMS 2.1.934

php 5.2.11

mysql 5.0.51

apache 2.2.11

Install:

-Download the attached package.

-unzip the package and place the files as structured in your root phpVMS install.

Create a link for your pilots to get to the Timetable

<a href="<?php echo url('/Timetable'); ?>">Timetable</a>

Thats It!

Example

Released under the following license:

Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

[Timetable_1.0.zip](< base_url >/applications/core/interface/file/attachment.php?id=322)

Awsome! It works! Thanks!

Absolutely wonderful work Sim. Just did a little tweak to show 3 columns instead of 4 because the days of the week were bunching up.

If anyone wants to know what to change to get less columns, just look for this in your timetable_index.tpl

<?php $count = 1; while($count <= 4) { ?>

and change to this

<?php $count = 1; while($count <= 3) { ?>

Hello thank you for helping! the form of routes and Timetable

I disturb you once again you guys all know how to add the admin in the id list of pilots for pilots already turned this table but appears and then disappears because it is easier to identify each pilot

Thanks Simpilot,

Makes a great addidtion to a great program!

Regards

Adam

AUZ

Dave, aren’t you getting tired of me telling you that you are awesome?! Thanks again for making great stuff for phpvms!

Sim, I’m having a hard time getting the Arrival Airport to show the ICAO and Airport name. I have tried:

<td>'.$schedule->arricao.' - '.$field->name.'</td>';

and doesn’t come up right. What am I doing wrong here?

Absolutely wonderful work Sim. Just did a little tweak to show 3 columns instead of 4 because the days of the week were bunching up.

Thank you. I’d been trying to do that.

Sim, I’m having a hard time getting the Arrival Airport to show the ICAO and Airport name. I have tried:

'.$schedule->arricao.' - '.$field->name.'';

and doesn’t come up right. What am I doing wrong here?

The data is not there, the tpl only calls the field name for the departure field once for each departure field. You can use the coding on line 49 of timetable_index.tpl as guide to get the field name you are looking for.

Is there a possibilaty to sort the flights after Departure times? When yes how I do this?

Install:

just wondering what i have done rong i have followed the instuction and got this error being a nooby i need help thanks

Notice: The template file β€œ/home4/torontov/public_html//core/templates/timetable/timetable_index.tpl” doesn’t exist in /home4/torontov/public_html/core/classes/TemplateSet.class.php on line 248

@bravo27 - check your folders to see if the structure is correct and that the files are actually there. That error is telling you that the system can not find the file that is supposed to be there.

@bravo27 - check your folders to see if the structure is correct and that the files are actually there. That error is telling you that the system can not find the file that is supposed to be there.

thank you for helping me out so fast You are right one file was out

Good, i’m glad you got it working

Thanks!

Good, i’m glad you got it working

just one other question if you dont mind,i noticed in your example you have borders around the template and i dont have any to separate the info your template looks a lot better then what i have any idea what i have not done.here is my website www.toronto-virtual-atc.com it will be under theoperation tab then timetable thanks

Not sure what you mean exactly, looks like you have a table border. It is all html and css at that point, the script is only supplied with a basic markup, it needs to be adapted to your site.

Not sure what you mean exactly, looks like you have a table border. It is all html and css at that point, the script is only supplied with a basic markup, it needs to be adapted to your site.

ok thank you and thanks for your time again,have a great day

Hi, i had the problem with days of week too long and also with hours the format is 12:00 EST, all of my pages are in spanish.

The solution for this detail was add a little command like this:

$departure = $schedule->depicao;

echo β€˜<tr>’;

echo β€˜<td><center>’.$schedule->arricao.β€˜</center></td>’;

echo β€˜<td><center>’.$schedule->flightnum.β€˜</center></td>’;

$aircraft = OperationsData::getAircraftInfo($schedule->aircraft);

echo β€˜<td><center>’.$aircraft->icao.β€˜</center></td>’;

$idmaximo1 = Util::GetDaysCompact($schedule->daysofweek);

$cadena1 = $idmaximo1;

$trozo1 = substr($cadena1, 0,2);

echo β€˜<td><strong><center>’.$trozo1.β€˜</center></strong></td>’;

$idmaximo = $schedule->deptime;

$cadena = $idmaximo;

$trozo = substr($cadena, 0,5);

echo β€˜<td><center>’.$trozo.β€˜</center></td>’;

echo β€˜</tr>’;

$total++;

In the code ($cadena1, 0,2) you can modify number 2 in order if you like to show the first two letters or alter to 3 in order to show 3 letters

The same is with $schedule->deptime if you have 12:00 EST you can use thsi code if not just use the original code.

Regards and i hope to help somebody.

Can I sort the times from early to late?