Jump to content

Recommended Posts

  • Administrators
Posted

Timetable 1.0

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

Developed by:

simpilot

www.simpilotgroup.com

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

  • Like 3
Posted

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) {
       ?>

Posted

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

Posted

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? :wacko:

  • Administrators
Posted

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? :wacko:

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.

  • 1 month later...
Posted

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

  • Administrators
Posted

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

Posted

@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

Posted

Good, i'm glad you got it working B)

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

  • Administrators
Posted

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.

Posted

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

Posted

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.

  • 3 weeks later...
  • 1 month later...
Posted

Hi David, first of all thank you very much for the phenomenal add on and all the help and input you're giving to the community. I've been reading almost all your post and starting to get some clues about PHP in general. I have a problem with this one and was wondering if you can please point me in the right direction.

I already know you're gonna say: Hey Will 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.

And it makes sense because it's true. Now, although I don't know anything about PHP, I'm pretty familiar with the FTP and I swear I did check 100 times if all the files are where they are supposed to be and they are. That being said what also can cause the issue. If it makes any difference I'm using Brilliance V1 as a skin and this is the error:

Notice: The template file "/home/content/w/i/m/wimatteo/html//core/templates/timetable/timetable_index.tpl" doesn't exist in /home/content/w/i/m/wimatteo/html/core/classes/TemplateSet.class.php on line 248

Thanks in advance for all your help.

Will

Posted

Hi Vansers and thank you very much for your response. I figured that one out last night late and now that module is working as well as all the other ones. By the way, we can never say thank you enough to SimPilot to provide us with all these goodies. I have only one problem left and it's always due to mu lack of knowledge when it comes down to php. Please look at the screen shot below:

Capture1.jpg

How do I get rid of the overlay ??

Thank you very much.

Will

Posted

Hi Vansers and thank you very much for your response. I figured that one out last night late and now that module is working as well as all the other ones. By the way, we can never say thank you enough to SimPilot to provide us with all these goodies. I have only one problem left and it's always due to mu lack of knowledge when it comes down to php. Please look at the screen shot below:

Capture1.jpg

How do I get rid of the overlay ??

Thank you very much.

Will

Nevermind !! I made it smaller to fit the template and solved it. SORRY !! Although I still don't know how to make it bigger but staying on top of the sidebar......

Thanks again SimPilot, your link is on the bottom of my site.

I know this is not the right place to post this, but I'm just gonna write a comment about it. All the dynamic content is in place, now I need to find somebody to help me skin it (even paying) because I have no clue where to start with CSS and all that stuff.

Cheers

Will

  • Like 1
  • Administrators
Posted

Thanks again SimPilot, your link is on the bottom of my site.

THANK YOU!!! - You are one of the few that has done that for me, although I have not ever pressed the issue the license has certain requirements, including not removing links to the author included in the distibution. I have only included items like this in two addons, AIRMail and POPUPNews but most folks have removed the links without permission, I have only had one person ever ask for permission. I DO LOOK FOR THESE LINKS when I am asked to support an addon. So... I say THANK YOU to you!

  • Like 1
Posted

Hi Dave,

I really appreciated your words but for me it's normal. I know the kind of effort needed and the time involved in this line of work. I have a lot respect for the guys that, after all the effort, decide to share their work for free. I think that most users of this kind of forums are very young and they don't realize or know the value of this, or perhaps they just take it for granted. Either way it's not fair. It's not a matter of money but instead of respect and consideration. Also I really liked your presentation at the beginning of the dedicated forum: Very clear, effective and so true.

I really love your modules and, although I'm not a pilot of Virtual ACA, I admire the work done there. I think it's one of the most clean and well designed website I've seen when it comes to Virtual Airlines. So you can rest assured that your link is not going anywhere and I was actually thinking about putting another one, a little more visible, on the Fly Star Alliance main site.

Thanks again for the kind words and keep up the excellent work, if nothing else for people like us that appreciate it a lot.

Cheers

Will

Posted

Hi

I am just wondering if it is possible to add pagination to this plugin as on the virtual airline that I help and assist with, it makes the page extra long and shows all 400 scheduled flights in the system on one page.

I did find this code, but I do not know what file to place it in:

<div id="pager" class="pager">

<form>

<img src="<?php echo fileurl('lib/images/first.png');?>" class="first"/>

<img src="<?php echo fileurl('lib/images/prev.png');?>" class="prev"/>

<input type="text" class="pagedisplay"/>

<img src="<?php echo fileurl('lib/images/next.png');?>" class="next"/>

<img src="<?php echo fileurl('lib/images/last.png');?>" class="last"/>

<select class="pagesize">

<option value="10">10 per page</option>

<option value="20">20 per page</option>

<option value="50">50 per page</option>

<option value="100">100 per page</option>

</select>

</form>

</div>

Thanks

Nick

  • Administrators
Posted

You will need to add paginaton functions into the data class, controller and the template but it can be done. Look for a thread on pagination in the support forum, there is a good one that many have used to paginate schedules and other list type pages. ;)

  • 3 months later...
Posted

I like this one very good, I think I will use this one for our site as well.

Virtual Norwegian Timetable

I have one problem though :rolleyes: It also displays routes that are set to inactive in the timetable. How can I get it to only display active routes?

(Routes from/to EKRN for example is not enabled so should not be visible)

  • Administrators
Posted

You should be able to add

if($schedule->enabled <> '1'){continue;}

on line 45 of the original timetable_index.tpl file and it should skip any schedule that is not enabled.

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