Jump to content

REALScheduleLite beta 1.0 [DEPRECATED]


Recommended Posts

Hi Andy. The answer to question number 1 is to add pagination to your website. This one has been asked and answered a time or two already. Do a quick search for pagination and that should help you out some. AS for the second question, that is best left to someone other than me.

Have fun!

However, in response to question number 1, isn't there a way for the code to see FIRST of there is an airplane at the airport BEFORE writing the row with that airport. I mean whats the point for pilots to see the airports where there are no airplanes and thus nothing can be done?

Furthermore, any of you guys getting the thing where when you have 100 planes and 500 airports the page takes some time to load or is my provider slow?

Nout

Link to comment
Share on other sites

  • Administrators

However, in response to question number 1, isn't there a way for the code to see FIRST of there is an airplane at the airport BEFORE writing the row with that airport. I mean whats the point for pilots to see the airports where there are no airplanes and thus nothing can be done?

Furthermore, any of you guys getting the thing where when you have 100 planes and 500 airports the page takes some time to load or is my provider slow?

Nout

You can extend the code however you would like to fit your VA. I do not believe I will extend it any futher myself, there are too many option requests, of which many conflict with other requests to bring this to a fruitful end for everyone's enjoyment.

Link to comment
Share on other sites

Hi

I have just downloaded and installed the great Realscedualelite add-on and fixed all the errors. Now my question is that is it possible to use one aircraft in multiple routes or maybe when an airport is clicked for bidding another page opens and shows the aircraft list that can be chosen?

I appreciate it.

Thanks

Parkho

Link to comment
Share on other sites

Hi

I have just downloaded and installed the great Realscedualelite add-on and fixed all the errors. Now my question is that is it possible to use one aircraft in multiple routes or maybe when an airport is clicked for bidding another page opens and shows the aircraft list that can be chosen?

I appreciate it.

Thanks

Parkho

Thats a very different philosophy to that used in the current RealScheduleLite module. It would require a nearly complete rewrite of the code.

If you want one aircraft to fly multiple routes how will the system differentiate between the routes? you could add a letter to the flight number that does so. E.g 101A and 101B are different route loops but with the same aircraft.

once again, it requires a rewrite of the code. cannot be done with the current system that is in place.

Link to comment
Share on other sites

Thats a very different philosophy to that used in the current RealScheduleLite module. It would require a nearly complete rewrite of the code.

If you want one aircraft to fly multiple routes how will the system differentiate between the routes? you could add a letter to the flight number that does so. E.g 101A and 101B are different route loops but with the same aircraft.

once again, it requires a rewrite of the code. cannot be done with the current system that is in place.

Hi

I did try you suggestion of adding letters to the Flight # but still no lock. I can see the multiple routes clicking on aircraft registration # but basically can not see the 2 routes in listing for bidding!

Link to comment
Share on other sites

  • 1 month later...

Hello,

How can I extend the time of my database?

It takes too long all airports get and page opening properly. :angry:

or it's possible the airports where without aircraft is not called or not listing???

Regard

FWX001

Link to comment
Share on other sites

Hello,

How can I extend the time of my database?

It takes too long all airports get and page opening properly. :angry:

or it's possible the airports where without aircraft is not called or not listing???

Regard

FWX001

For now you can always do a quick search for pagination and add it. That will shorten your pages and load times.

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

This i am sure is a great add-on although not had the chance to try it as i am getting this error...

The template file "C:\xampp\htdocs\phpvms\/core/templates\realschedulelite/realschedulelite_index.tpl" doesn't exist in C:\xampp\htdocs\phpvms\core\classes\TemplateSet.class.php on line 248

Having read the forums i have downloaded the updated zip file and replaced the other files but with no luck any ideas?

Also being a newbie at phpvms i need all the help i can get :)

Cheers in advance.

Link to comment
Share on other sites

  • Administrators
The template file "C:\xampp\htdocs\phpvms\/core/templates\realschedulelite/realschedulelite_index.tpl" doesn't exist

The error is telling you where the problem lies. You do not have the files in the correct path. They need to be placed in your install just as they are structured in the download.

It is looking for the template file in the root/core/templates/realschedulelite folder and it is not there.

Link to comment
Share on other sites

Hi,

This i am sure is a great add-on although not had the chance to try it as i am getting this error...

The template file "C:\xampp\htdocs\phpvms\/core/templates\realschedulelite/realschedulelite_index.tpl" doesn't exist in C:\xampp\htdocs\phpvms\core\classes\TemplateSet.class.php on line 248

Having read the forums i have downloaded the updated zip file and replaced the other files but with no luck any ideas?

Also being a newbie at phpvms i need all the help i can get :)

Cheers in advance.

Well that was an easy fix see i told you i was very new to all this LMAO

I just put the folder in the templates folder and what a suprise it worked I am now kicking myself.

Thanks for the help

I am sure there will be more stupid questions to follow.

Thanks again

Link to comment
Share on other sites

  • 2 weeks later...

Hey simpilot. The addon is working great for me. I have a question.

Basically it has to do with restricting flights as per ranking. Some of my fleet is only flyable at a certain rank.

Say I am at JFK, and there are two flights departing. One of them is a 747 to Amsterdam, the other an A320 to Chicago. With my rank I am officially only allowed to fly with A320s.

But the module shows "Add to bid". Would it be possible for the system to not only look at your current location but also your ranks and at what rank certain aircrafts are allowed to be flown?

So basically it would only show the link "Add to bid" if you ARE at that airport and if your rank allows you to fly the aircraft in question.

I tried the following without success:

<style>
table.green, table.green td {
	border: 1px solid #008020;
               background-color: #D8FFCC;
     }
</style> 
<?php
//simpilotgroup addon module for phpVMS virtual airline system
//
//simpilotgroup addon modules are licenced under the following license:
//Creative Commons Attribution Non-commercial Share Alike (by-nc-sa)
//To view full license text visit http://creativecommons.org/licenses/by-nc-sa/3.0/
//
//@author David Clark (simpilot)
//@copyright Copyright (c) 2009-2010, David Clark
//@license http://creativecommons.org/licenses/by-nc-sa/3.0/

echo '<br /><h3>Available Flights At '.$name->name.'</h3>';
?>
<br />
<table width="100%" border="1px" class="green" cellspacing="0px">
   <tr>
       <th colspan="2">Airport Information</th>
   </tr>
   <tr>
       <td>ICAO:</td>
       <td><?php echo $name->icao; ?></td>
   </tr>
   <tr>
       <td>Country:</td>
       <td><?php echo $name->country; ?></td>
   </tr>
   <tr>
       <td>Latitude:</td>
       <td><?php echo $name->lat; ?></td>
   </tr>
   <tr>
       <td>Longitude:</td>
       <td><?php echo $name->lng; ?></td>
   </tr>
   <tr>
       <td>Flight Aware Charts Link: (USA Airfields Only)</td>
       <td><a href="http://flightaware.com/resources/airport/<?php echo $name->icao; ?>/procedures" target="_blank"><u><?php echo $name->icao; ?></u></a></td>
   </tr>
</table>
<hr />
<?php
echo '<table width="100%" border="1px" class="green" cellspacing="0px">';
echo '<tr>';
echo '<th>Flight</th>';
echo '<th>Aircraft</th>';
echo '<th>Registration</th>';
echo '<th>Next Destination</th>';
echo '<th width="10%">Distance</th>';
echo '<th>Departure Time</th>';
if(Auth::LoggedIn() == true)
{
   echo '<th>Add Bid</th>';
}
echo '</tr>';
if(!$aircrafts)
{
   echo '<tr><td colspan="6">The Airline Has No Aircraft</td></tr>';
}
else
{
   foreach ($aircrafts as $aircraft)
   {
       $location = RealScheduleLiteData::get_aircraft_location($aircraft->id);
       if(!$location)
       {
           $location = RealScheduleLiteData::get_aircraft_start($aircraft->id);
           $airfield = $location->depicao;
       }
       else
       {
           $airfield = $location->arricao;
       }
       if ($airfield == $name->icao)
       {
           $flight = RealScheduleLiteData::get_next_flight($aircraft->id, $airfield);
           $airfield = OperationsData::getAirportInfo($flight->arricao);
           echo '<tr>';
           echo '<td>'.$flight->code.''.$flight->flightnum.'</td>';
           echo '<td>'.$aircraft->fullname.'</td>';
           echo '<td><a href="'.SITE_URL.'/index.php/RealScheduleLite/get_aircraft?id='.$aircraft->id.'" >'.$aircraft->registration.'</a></td>';
           echo '<td>'.$airfield->icao.' - '.$airfield->name.' - '.$airfield->country.'</td>';
           echo '<td>'.round($flight->distance).' nm</td>';
           echo '<td>'.$flight->deptime.'</td>';


    if($route->aircraftlevel < Auth::$userinfo->ranklevel)
		{
			//If pilot is logged in check their location
			//If the pilot is at this airport allow them to bid on flights
			if(Auth::LoggedIn() == true)
			{
			    $location = RealScheduleLiteData::get_pilot_location(Auth::$userinfo->pilotid);
			    if($location->arricao == $name->icao)
			    {
				echo '<td><a id="'.$flight->id.'" class="addbid"
					    href="'.actionurl('/schedules/addbid').'">Add to Bid</a></td>';
			    }
			    else
			    {
				echo '<td>You are not at this airport</td>';
			    }
			}
		}
		else
		{
			echo '<td>Rank Requirement not Met</td>';
	         }
    }

           echo '</tr>';
   }
}
echo '</table>';
echo '<form><input class="mail" type="button" value="Go Back To Listing" onClick="history.go(-1);return true;"> </form>';
?>

If I replace the if($route->aircraftlevel < Auth::$userinfo->ranklevel) with if($route->aircraftlevel > Auth::$userinfo->ranklevel) then everywhere it writes "Rank Requirement not Met" instead of "Add to Bid".

At the moment my whole fleet can be flown at any rank except for the aircraft with registration ZE-B01. My rank is lower than the minimum for the aircraft. After it works I will make all the aircraft at their respective minimum ranks

Regards,

Nout

Did Simpilot find a way to fix this, or did he forget!

What .tl file was that extract from.

Regards

Stealth

Link to comment
Share on other sites

  • Administrators

Well does it disable the standard Bidding thing because no flights show in that now

The module does not affect the native schedule system at all. The only thing that may affect it is if you have changed some of the settings in your local.config.php file in regards to bidding on flights.

Link to comment
Share on other sites

Yeah it is too bad you abandoned it on others making so many requests. I think if it only showed airports with aircraft or had pagination, it would be 100% perfect. Then it would be up to individuals to customize to their liking. I personally like how the module works. It was a great thought and a great module came out of a great thought. ;)

Link to comment
Share on other sites

  • Moderators

Yeah it is too bad you abandoned it on others making so many requests. I think if it only showed airports with aircraft or had pagination, it would be 100% perfect. Then it would be up to individuals to customize to their liking. I personally like how the module works. It was a great thought and a great module came out of a great thought. ;)

The main problem i had was it took for ever to load up the page but that was all the calls to the database, it was heavy on calls which slowed things down.

Link to comment
Share on other sites

Hey Sim !

Jay here from Pontchartrain VA. We may have corresponded a couple of years ago. I have lost my forum files from then so I can not be sure. Anyway Nabeel has been busting his but to try an help me with scheduling my VA. He has done a great job, but there are still issues. I will serve 57 cities with 187, DC-3, on 96 loop routes, that generate over 1,000 daily flights. He asked in his last email to me, that I ask around the forum for some help that might be out there. I have posted a help wanted message on two different locations on the forum. I have a lot of views but no reply’s as of yet.

I am in great hope that what I have found here will do the trick. The problem we are having is that when a piece of equipment departs on a route it may not complete the circuit for two or three days. When that same equipment goes back into service it follows the same route but may depart at a different time. This makes it almost impossible to schedule flights on the schedule format sent to me by Nabell, because the days of the week and flight numbers may not match up again for three to four weeks. It would take me pages to describe how and why this works, so I would be much better to send you the entire data base, where things would be self explanatory.

All routes are done in triplicate and repeat every 8 hours. That way crews always fly out around the same time of day. My routes provide for crew and equipment layovers in an attempt to mimic compliance with real world FCC regs. Anyway your loop route concept may solve this big problem. I am not opposed to paying for and or trading services/abilities that will help me get up and running. I would like to show what I have. My routes are divided into two sections. First the actual route. And second what the equipment and crew on those routes do. At the very least I would like for you to take a look at what I have cratered to get some feed back. Please, if you are interested in taking a look let me know how I can get the data to you.

Best Regards

Jay

Link to comment
Share on other sites

My first try to paginate the realschedulelite_airport_details.tpl

http://www.scandifly.de/va/index.php/RealScheduleLite/get_airport?icao=ENGM

<div>
<div>
<?php
//simpilotgroup addon module for phpVMS virtual airline system
//
//simpilotgroup addon modules are licenced under the following license:
//Creative Commons Attribution Non-commercial Share Alike (by-nc-sa)
//To view full license text visit http://creativecommons.org/licenses/by-nc-sa/3.0/
//
//@author David Clark (simpilot)
//@copyright Copyright (c) 2009-2010, David Clark
//@license http://creativecommons.org/licenses/by-nc-sa/3.0/

echo '<br /><h3>Available Flights At '.$name->name.'</h3>';
?>
<style type="text/css">
<!--
.Stil1 {color: #dd0000}
-->
</style>

<br />
<table width="720">
   <tr>
       <th colspan="2"><div align="left"><span class="Stil1">Airport Information</span></div></th>
   </tr>
   <tr>
       <td colspan="2"><hr></td>
   </tr>
   <tr>
     <td>Name:</td>
     <td><?php echo $name->name; ?></td>
   </tr>
   <tr>
       <td width="78">ICAO:</td>
       <td width="510"><?php echo $name->icao; ?></td>
   </tr>
   <tr>
       <td>Country:</td>
       <td><?php echo $name->country; ?></td>
   </tr>
   <tr>
       <td>Latitude:</td>
       <td><?php echo $name->lat; ?></td>
   </tr>
   <tr>
       <td>Longitude:</td>
       <td><?php echo $name->lng; ?></td>
   </tr>
</table>

<p>
 <?php
echo '<table width="720" id="tabledlist" class="tablesorter">';
echo '<thead><tr>';
echo '<th>Flight</th>';
echo '<th>Aircraft</th>';
echo '<th>Reg #</th>';
echo '<th>Next Destination</th>';
echo '<th>Distance</th>';
echo '<th>Departure</th>';
if(Auth::LoggedIn() == true)
{
   echo '<th>Add Bid</th>';
}
echo '</tr>';
echo '</thead>';
echo '<tbody>';
if(!$aircrafts)
{
   echo '<tr><th>The Airline Has No Aircraft</th></tr>';
}
else
{
   foreach ($aircrafts as $aircraft)	
   {
       $location = RealScheduleLiteData::get_aircraft_location($aircraft->id);
       if(!$location)
       {
           $location = RealScheduleLiteData::get_aircraft_start($aircraft->id);
           $airfield = $location->depicao;
       }
       else
       {
           $airfield = $location->arricao;
       }
       if ($airfield == $name->icao)
       {
           $flight = RealScheduleLiteData::get_next_flight($aircraft->id, $airfield);
           $airfield = OperationsData::getAirportInfo($flight->arricao);

		echo '<tr>';
           echo '<td><a href="'.SITE_URL.'/index.php/schedules/details/'.$flight->id.'" >'.$flight->code.''.$flight->flightnum.'</td>';
           echo '<td>'.$aircraft->fullname.'</td>';
           echo '<td><a href="'.SITE_URL.'/index.php/RealScheduleLite/get_aircraft?id='.$aircraft->id.'" >'.$aircraft->registration.'</a></td>';
           echo '<td>'.$airfield->icao.' - '.$airfield->name.' - '.$airfield->country.'</td>';
           echo '<td>'.round($flight->distance).' nm</td>';
           echo '<td>'.$flight->deptime.'</td>';

           //If pilot is logged in check their location
           //If the pilot is at this airport allow them to bid on flights
           if(Auth::LoggedIn() == true)
           {
               $location = RealScheduleLiteData::get_pilot_location(Auth::$userinfo->pilotid);
               if($location->arricao == $name->icao)
               {
                   echo '<td><a id="'.$flight->id.'" class="addbid"
			href="'.actionurl('/schedules/addbid').'">Add to Bid</a></td>';
               }
               else
               {
                   echo '<td>You are not at this airport</td>';
               }
           }
           echo '</tr>';
       }
   }
}
echo '</tbody></table>';

echo '<form><input class="mail" type="button" value="Go Back To Listing" onClick="history.go(-1);return true;"> </form>';
?>
</p>
</div>
<div align="right" id="pager" class="pager">
       <form>
               <img src="<?php echo SITE_URL?>/lib/skins/brilliancev1/images/first.png" class="first"/>
               <img src="<?php echo SITE_URL?>/lib/skins/brilliancev1/images/prev.png" class="prev"/>
               <input align="middle" type="text" class="pagedisplay" size="5"/>
               <img src="<?php echo SITE_URL?>/lib/skins/brilliancev1/images/next.png" class="next"/>
               <img src="<?php echo SITE_URL?>/lib/skins/brilliancev1/images/last.png" class="last"/>
               <select class="pagesize">
                       <option value="10">10 per page</option>
                       <option value="25">25 per page</option>
                       <option value="50">50 per page</option>
                       <option value="100">100 per page</option>
					<option value="250">250 per page</option>
               </select>
       </form>

<script defer="defer">
       $(document).ready(function() 
   { 
       $("tabledlist")
               .tablesorter({widthFixed: true, widgets: ['zebra']})
               .tablesorterPager({container: $("#pager")}); 
   } 
       ); 
</script>
</div>

Link to comment
Share on other sites

  • Administrators

@Big Red - You can send me your data at admin<at>simpilotgroup.com

Does the aircraft ever end up back at the starting point? When/If it does does the schedule just repeat? Do you want the aircraft moving even if there is not a member to fly it on the route, adhereing to the time schedule?

Link to comment
Share on other sites

Hey Sim

And thanks I will send the data later this PM. It is almost 300 pages long so I will have to break it up and send it in many emails as my private email freaks out with that much data at once. On your questions you hit the nail on top of the head with regard to my problems. Yes is the simple answer to all you have asked. They do end up at the same place, (New Orleans and or Washington DC) sometimes days later. They do go back on the same route all AC do. However if they left at say 11pm on Sunday they may fly out at 3 pm or 7 am Thursday depending on the route. It takes weeks before they again fly out again at 11pm. I spend some time trying to make them all leave at the same time after return but what resulted was equipment ideal at MSY for 18 to 24 hours longer then required FCC PM time. Yes they also need to move without a pilot for two reasons. One the whole system would eventually grinding to a haul if they did not and two because this is a prototype for an education model to teach kids business function they have to generate revenue to make the business end of this work Nabeel and I have discussed this and moving the ac from place to place without a registered pilot seems workable and thus will generate the revenue as if there were a pilot. The problem is scheduling the ac the way the schedule works. Again I will send tonight with more comments. Thanks again for your help. It means a great deal to me.

Best

Jay

Link to comment
Share on other sites

  • 5 weeks later...
  • 3 weeks later...

Simpilot -

Great module. Got it working with minimal issues. I think it's a little odd that aircraft and pilots didn't just get a new field for current location (or maybe they did and I'm too much of a dolt to find it), but this is an excellent add-on. Don't discontinue development simply because everyone wants a particular feature that conflicts with something else. If people want something, they should a) try to figure it out or B) realize that their issue isn't the center of the universe. I want to thank you for your responses to the issues that _were_ bugs in the programming - they helped me get this embedded in my very young VA without much trouble at all.

Again, awesome job, Simpilot!

  • Like 1
Link to comment
Share on other sites

I've installed this addon and I have to say I am really impressed with it Simpilot! With careful consideration to the flight schedules, I think this will work very well for me, and I appreciate the effort you've put into it. I've renamed the pages, skinned the index and airport info pages, and still have the aircraft and jumpseat booking pages to do:

realflight.JPG

realflight2.JPG

I've been messing around with the system, creating PIREPs and buying jumpseats, and it works a treat! I think if some of those who gave negative feedback took some time to consider what this addon does, and the effort put into it, then they would be a lot less critical. It does what it claims, and it does it very well!

Thanks,

Stuart

EDIT: Finished the skinning for now. I'll probably jazz it up some more with icons etc. I'm not entirely sure about the colours, but that's easy enough to change. Here's the last two pages:

This one took me ages to do, I built a table and divided it until I was happy with the cell placement, to get the look I wanted. I'm fairly happy with the outcome.

jumpseat1.JPG

plane.JPG

I've messed around adding a few bits to the pages, such as adding a link to the flight briefs, and a few other minor changes. Still working great too!

Link to comment
Share on other sites

I've just finished adding pagination and table column sorting to the realshedulelight addon, and also the final CSS alterations. If anyone is interested, I'll put together a description of how I done it. With the table sorting, you can easily find airports where aircraft are located, and also airports where jumpseats are available.

Here's a new screenshot of the addon now:

despatch.JPG

You can view it live here:

http://execair.org/index.php/despatch

Cheers,

Stuart

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