Jump to content
simpilot

Schedule Search (Airline, Aircraft, Arrival, Departure)

Recommended Posts

19 hours ago, web541 said:

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

Thank you very much, insertet it also in core/templates/schedulesearchform (or similiar written) and works perfectly

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×