Jump to content

get dep and arr airprot in frontpage


alyousufi

Recommended Posts

Hi 

i am doing some thing for out virtual 

i am create a form to search a flight in frontpage 

but i need to know how can i show all dep or arr airport ? 

below is example code i create it in frontpage but nothing show , like airport to select 

  <div class="field col">
                                <label>From </label>
                                <div class="inputText">
									        <tr>
												<td>

                <select class="search" name="depicao">
                    <option value="">All Departure Airports</option>
                    <option value="BIKF">BIKF - Keflavik International Airport</option>
                  <option value="BLKF">BLKF - Keflavik International Airport</option>
                  <option value="EDDF ">EDDF  - Frankfurt Intl. Airport</option>
                  <option value="EDDM">EDDM - Franz Josef Strauss International Airport</option>
                  
                                </select>
            </td>
        </tr>

									                                </div>
                            </div>
                            <!-- End of Field -->

							
                            <!-- Start of Field -->
                            <div class="field col">
                                <label>To </label>
                                <div class="inputText">
                                   <tr>
            <td>

                <select class="search" name="arricao">
                    <option value="">All Arrival Airports</option>
                         <option value="BIKF">BIKF - Keflavik International Airport</option>
                  <option value="BLKF">BLKF - Keflavik International Airport</option>
                  <option value="EDDF ">EDDF  - Frankfurt Intl. Airport</option>
                  <option value="EDDM">EDDM - Franz Josef Strauss International Airport</option>
              </select>
            </td>
        </tr>
                                </div>
                            </div>
                            <!-- End of Field -->
                        </div>

                       

                               
                   <input>
<tr>
            <td colspan="2"> <center>
                <input type="hidden" name="action" value="findflight" />
                <input type="submit" name="submit" class="btnblue" value="Search Flight" /></center>
            </td>
        </tr>
                                    </div>

 

once i am click Search flight 

nothing is happen 

can anyone help me 

Link to comment
Share on other sites

9 hours ago, CarlosEduardo2409 said:

Two questions:

  1. Are you using any module to book the flight? Ex: Fltbook. Or are you using phpVMS default?
  2. I see that in your code does not have the <form>, in your code have?

Hi thank you for your responding 

actually i am using maybe the default module create by  * @author Nabeel Shahzad

and it has  <form> tag

 

do you have any idea that can help me in order make quick search for flight ? 

I have another page that already work for booking flight 

<tr>
        <td>Select Virtual Airline</td>
        <td><select class="search" name="airline">
                    <option value="">All Virtual Airline</option>
                    <?php
                        foreach ($airlines as $airline)
                            {echo '<option value="'.$airline->code.'">'.$airline->name.'</option>';}
                    ?>
                </select>
            </td>
        </tr>
        <tr>
            <td>Select Aircraft Type</td>

             <td>   <select class="search" name="aircraft">
                    <option value="">All Aircraft Type</option>
                    <?php
                        foreach ($aircrafts as $aircraft)
                            {echo '<option value="'.$aircraft->icao.'">'.$aircraft->icao.'</option>';}
                    ?>
                </select>
            </td>
        </tr>
        <tr>
            <td>Select Departure Airport</td><td>

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

                <select class="search" name="arricao">
                    <option value="">All Arrival Airports</option>
                    <?php
                        foreach ($airports as $airport)
                            {echo '<option value="'.$airport->icao.'">'.$airport->icao.' - '.$airport->name.'</option>';}
                    ?>
                </select>
            </td>
        </tr>
        <tr>
            <td colspan="2"> <center>
                <input type="hidden" name="action" value="findflight" />
                <input type="submit" name="submit" class="btnblue" value="Search Flight" /></center>
            </td>
        </tr>
    </table>

but if i copy dep code will not show the airport in frontage.  

Edited by alyousufi
Link to comment
Share on other sites

6 hours ago, shakamonkey88 said:

It's because you aren't calling anything from the database so your code above has no information to work/populate with.

friend can we talk in PM or via Email or whatever you want 

i have finish something . 

now when i choose dep and arr airport and click button it will transfer me to FrontSchedules page

but without showing any result like it need to repeat and will get the result but in different page 

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