Jump to content

Schedule Search (Airline, Aircraft, Arrival, Departure)


simpilot

Recommended Posts

  • 2 months later...
  • Administrators

Good morning,

is there an option to show only airports with schedules in the arrival and depicao field?

We have some airports in our db with no schedules, just for some charter flights, I don't want that these airports where shown in the airport search to keep it clear.

bye

Ced

There is no option for this. You could add some code into the data class to find the appropriate airports and filter the rest out.

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

We have some inactive aircraft marked with "X" in the reg field and unmarked in the admin fleet-list, but these aircraft are still in the schedule search box. How can we remove them without deleting the whole ac from the database?

In the loop do:

if($schedule->registration == 'X'){
continue;
}

Double check the $schedule variable is correct first.

Link to comment
Share on other sites

  • 8 months later...
  • 3 months later...
  • 3 weeks later...
  • 8 months later...
  • 3 weeks later...
  • 1 month later...

This module need a lot of help to be brought back to life. I get no routes found too but, when i fix the static errors, I no longer get no routes found. as a matter of fact I get nothing, Page goes blank. :wacko: I think this module was built on php4 and we are knocking on the door of php7 now. I am on php5.6.25 i believe and this module won't run right at all. I am working on it as we speak.

**EDIT**

I stand corrected. It was built on

php 5.3.4

Edited by TAV1702
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • Administrators

I guess I'm late to the game.... :(

Had this working perfectly on version 2.x. Install on version 5.5 and got "No routes found." - along with a few errors. Fixed the errors, but still getting "No routes found.".

Hoping David (simpilot) or someone else has time to look at it and hopefully provide a fix.

TIA!

Link to comment
Share on other sites

  • Administrators

Thanks web541 - that was fast! You rock! :)

All search combinations work except when trying to search by aircraft type. Either only by aircraft type or adding the aircraft type to any other search. Searching by aircraft type in /schedules works but not in /FrontSchedules. No entries in error_log.

You mention better solutions. Please list - payware and freeware if available.

Edited by ProAvia
Link to comment
Share on other sites

57 minutes ago, ProAvia said:

Thanks web541 - that was fast! You rock! :)

All search combinations work except when trying to search by aircraft type. Either only by aircraft type or adding the aircraft type to any other search. Searching by aircraft type in /schedules works but not in /FrontSchedules. No entries in error_log.

You mention better solutions. Please list - payware and freeware if available.

Can you give me an example of how the search fails by aircraft type? It seems to be working on my end.

EDIT: hang on, let me check this out, might've found the error.

 

Other well known "better solutions"

Payware: http://php-mods.eu/phpvms.php?module=real-booking-system

Freeware: https://github.com/parkho/FlightBookingSystem.V1.1

Then there's mine (freeware), but I don't really offer much support on it, it's get it working or leave it for the moment [so the two above are suggested].

But I would like to fix this module for those out there who want this as a base to adapt their system to.

Edited by web541
  • Like 1
Link to comment
Share on other sites

  • Administrators

Finally had time to test this again - too many "honey-do's" this week in preparation for the holidays.

I tried your original files again and it worked this time. No other changes were made. Then tried with your updated FrontSchedulesData.class.php and that also works.

Is there an easy way to add pagination to this? Say, after every 12 schedules listed.

Thanks!!

Edited by ProAvia
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
5 hours ago, Tummi said:

 

is there any ability do make for the Airports an form where you can type in the Icao like when i create a schedule?

 

In your core/templates/airport_search .tpl/.php file, find this

        <tr>
            <td>Select A Departure Airfield</td>
            <td>
                <select class="search" name="depicao">
                    <option value="">All</option>
                    <?php
                        foreach ($airports as $airport)
                            {echo '<option value="'.$airport->icao.'">'.$airport->icao.' - '.$airport->name.'</option>';}
                    ?>
                </select>
            </td>
        </tr>
        <tr>
            <td>Select An Arrival Airfield</td>
            <td>
                <select class="search" name="arricao">
                    <option value="">All</option>
                    <?php
                        foreach ($airports as $airport)
                            {echo '<option value="'.$airport->icao.'">'.$airport->icao.' - '.$airport->name.'</option>';}
                    ?>
                </select>
            </td>
        </tr>

Replace it with this

        <tr>
            <td>Select A Departure Airfield</td>
            <td>
            	<input type="text" name="depicao" value="" placeholder="Input ICAO Code" />
            </td>
        </tr>
        <tr>
            <td>Select An Arrival Airfield</td>
            <td>
				<input type="text" name="arricao" value="" placeholder="Input ICAO Code" />
            </td>
        </tr>

Or you can try and integrate this yourself http://select2.github.io/examples.html

Edited by web541
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...