Jump to content

Schedule Search (Airline, Aircraft, Arrival, Departure)


simpilot
 Share

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

 

Link to comment
Share on other sites

  • 11 months later...

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

×
×
  • Create New...