Jump to content

Recommended Posts

  • 2 months later...
Posted

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

  • Administrators
Posted

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.

  • 2 months later...
  • Administrators
Posted

Is it possible to also add hours to this search? ( <2, 2-3, 3-4, 4> ) ? Thanks!

There is no option for that as it is written. The native schedule search does have that option though, that may be a better fit for you.

  • Administrators
Posted

I see only by distance, not hours in the original files.

You are correct, it has everything but. Looks like it would have to be customized to get a search for flight time.

  • 2 weeks later...
Posted

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?

Posted

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.

Posted

I'm not familiar with the module. Find the file that lists the flights, i.e has 'foreach($schedules as $schedule){ ...' for example. It's called schedule_results.tpl by default, but do not know what it is called in the module.

  • 8 months later...
  • 3 months later...
  • 3 weeks later...
  • 8 months later...
  • 3 weeks later...
  • 1 month later...
Posted (edited)

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
  • 2 weeks later...
Posted

I just installed this on my website, but no matter what I search I still get No Results Found although if I go through the Default FlightSearch, I get the flights. What could be the possible issue and solution?

  • 2 weeks later...
  • Administrators
Posted

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!

Posted

I have updated this module to the latest phpvms version 5.5.x. Use it if you wish, but there are probably better solutions out there considering the age of the module.

If anyone does want to try it, let me know if it works and I'll make a pull request

Link

  • Like 1
  • Administrators
Posted (edited)

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
Posted (edited)
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
  • Administrators
Posted (edited)

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
Posted

Here is a whole discussion on pagination. Once you get it working it can be used in many places where you need pagination, schedules, pilot roster, etc... Took me awhile to figure it out.

 

 

  • Like 1
  • 1 month later...
  • 1 month later...
Posted (edited)
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

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