Jump to content
simpilot

Schedule Search (Airline, Aircraft, Arrival, Departure)

Recommended Posts

Module creates a schedule search form that includes the ability to choose the airline, aircraft type, arrival field, and departure field. You can choose one or all of the parameters to find what you are looking for in your schedule database.

To install

Download and unzip

Place the files in the proper paths as structured in the download

No new sql tables or anything needed.

Point your browser to mysite/index.php/FrontSchedules and start searching.

Enjoy!

Code hosted on Github - Link In Signature.

  • Like 18

Share this post


Link to post
Share on other sites

This is exactly what I wanted SimPilot, I would like to thank you again for your work. It's much appreciated :)

+1 Rep for your effort!

  • Like 1

Share this post


Link to post
Share on other sites

Any Demo or anything i want to see what its like first :) no offence your addons are always quality i just want to see if i would find it helpfull

Share this post


Link to post
Share on other sites

Any Demo or anything i want to see what its like first :) no offence your addons are always quality i just want to see if i would find it helpfull

Here is it on my site. I haven't put it on my index yet.

Demo

Share this post


Link to post
Share on other sites

Hi simpilot,

thank you once again for a very nice add-on ;-).

I'd just like to know, if you can add the value daysofweek. Would be some kind of this, wouldn't it?

<select class="search" name="daysofweek">
                   <option value="">All days</option>
                   <?php
                       foreach ($daysofweek as $days)
                           {echo '<option value="'.$days->name.'">'.$days->name.'</option>';}
                   ?>
               </select>

But this doesn't work for me. Any possibility to get it work? I guess it's something in here "$days->name".

Regards

Share this post


Link to post
Share on other sites
Guest N402KC

Ok well i added it on my homepage and all it shows is All for the dropdown. Is there anymore code i need to add?

Share this post


Link to post
Share on other sites

How are you calling it?

$this->show('template');

or

MainController::Run('FrontSchedules');

I think it sounds like you are calling it through the template function which would miss all the data coming out of the module call.

Share this post


Link to post
Share on other sites
Guest N402KC

How are you calling it?

$this->show('template');

or

MainController::Run('FrontSchedules');

I think it sounds like you are calling it through the template function which would miss all the data coming out of the module call.

Ok i ran MainController::Run('FrontSchedules'); and i get this error

Warning: Missing argument 2 for MainController::Run(), called in /home/brian/public_html/lib/skins/patriot/footer.tpl on line 10 and defined in /home/brian/public_html/core/classes/MainController.class.php on line 337

seen at http://flypatriot.com/

Share this post


Link to post
Share on other sites
Guest N402KC

<?php MainController::Run('FrontSchedules', 'index'); ?>

Can i pay you to code custom modules. Your a damn smart genius. Your like nabeel. you know everything to coding lol.

Share this post


Link to post
Share on other sites

Can i pay you to code custom modules. Your a damn smart genius. Your like nabeel. you know everything to coding lol.

Just a hobby, but i always am taking requests for new modules. No gaurentees, but the ones that make sense to me usually get done. B)

Share this post


Link to post
Share on other sites
Guest N402KC

Recompiled Apache Complete. PHP Version 5.2.13, phpVMS Works fine. No errors or nothing. So i guess phpVMS Needs to be re coded for PHP 5.3

Share this post


Link to post
Share on other sites

Could please upload it again or anyone who has it, can they please upload it. Thanks alot.

I re-attached it to the original post in this thread. B)

Share this post


Link to post
Share on other sites

Dave,

How could we search for a specific flight number or a group of flight numbers? For example to type 12** and see all flights that have number from 1200 and above? Or type S*** and see all flights starting from S.

Share this post


Link to post
Share on other sites

Thank you for this great addon but i have faulty on my site, i don have no aircrafts, and it doesnt find me no flights at all...thanks for helping.-..

regards

P.S.

; i got it whats the problem, in your codes there are aircrafts, and in my which is old is equioment ;) so any chance to help me solve and get this right? thanky...

Share this post


Link to post
Share on other sites

Thank you for this great addon but i have faulty on my site, i don have no aircrafts, and it doesnt find me no flights at all...thanks for helping.-..

regards

P.S.

; i got it whats the problem, in your codes there are aircrafts, and in my which is old is equioment ;) so any chance to help me solve and get this right? thanky...

um... I am not sure what you mean, but if you have no aircraft in the system you can not set up any schedules, and with no schedules, there is nothing to search.

Share this post


Link to post
Share on other sites

Dave i think he is saying that your search parameters in your module for aircraft are $aircrafts wheras in his i think its the dataclass its defined as $equipment.

I have the same issue (on the obsessblue skins) I think i posted this problem previously.

yes here. i posted the two different templates for comparison.

Link

  • Like 1

Share this post


Link to post
Share on other sites
Guest Stormchaser

Apologize for sounding newbie, but having a little trouble getting it to pull the data. Was able to get the tpl working though. Changed the link on profile_main.tpl for it to link from "View schedules". It works but no data. Am able to pull down airlines and airports in selection. But even if I leave all selections "All" always get no routes found. First week setting up site. Bought "PHP Mysql for dummies" but still a little lost.

Share this post


Link to post
Share on other sites

Thios is not working for me...it shows airline, and doesnt show aircrafts, and shows airports but wwhen choose 2 airports doesnt show flights...

I have old phpvms script, not updated, is there any change in code names for aircrfats like equiplment or something or such things,....anyone can help? Im tzired to search flight on old form...pls

Thank you

Share this post


Link to post
Share on other sites
Guest Stormchaser

I was looking at it closely. I think there is an error in airport_search.tpl. Got foreach($aircrafts... when in database its aircraft name of table. Dont know if this is the prob. Tried going back and changing it to match up with all three files but still not working. Really need this addon since setting up VA for multiple airlines.

Share this post


Link to post
Share on other sites
Guest Stormchaser

FIXED my problem why not showing routes for all u guys having trb. Need to go into FrontSchedulesData.class under /core/common and change or delete all "phpvms_" to match ur table name in mysql. I had no "phpvms_" prefix in my DB, so deleting that prefix did the trick. MAN IM HAPPY. Really need this addon for my VA. Hope this help for all u guys having trb.

Share this post


Link to post
Share on other sites

Thing works my man ;) Your my hero...just how to make that search results appear under search form, so i can allways be on same side??? And can search again with no reason to hit bck button...

bye

Share this post


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