Guest lorathon Posted August 9, 2011 Report Share Posted August 9, 2011 The select drop down width is based on the largest option. I would just have the airport ICAO or Name. You could also style the select for a specific width. Quote Link to comment Share on other sites More sharing options...
truemo9 Posted August 9, 2011 Author Report Share Posted August 9, 2011 Is big cos it has my current location in i dont want tht in it, so redo the code without the current location, also is there any chance when i click a dep, it auto searches in the arrival bar of the destinations flying from the dep.. Quote Link to comment Share on other sites More sharing options...
Jeff Posted August 9, 2011 Report Share Posted August 9, 2011 Hang on a second, let me see what I can do for you. Quote Link to comment Share on other sites More sharing options...
Jeff Posted August 9, 2011 Report Share Posted August 9, 2011 There you go. That should do it. Does it still say YOUR CURRENT LOCATION, or did it change back to ALL? Also, when you choose the Departure Airport, you don't have to choose the Arrival. You can leave it alone and when you click Search it will show all flights out of that airport, and vice-versa. Quote Link to comment Share on other sites More sharing options...
truemo9 Posted August 9, 2011 Author Report Share Posted August 9, 2011 Oh ok, thanks and ye i see all (EGSS) (Current Location) so its all good now Thanks Jeff Quote Link to comment Share on other sites More sharing options...
Jeff Posted August 9, 2011 Report Share Posted August 9, 2011 Not a problem. Glad I could help. (Thanks Mr. Kobus) Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted August 9, 2011 Report Share Posted August 9, 2011 NP Quote Link to comment Share on other sites More sharing options...
Jeff Posted August 9, 2011 Report Share Posted August 9, 2011 Anyone interested: If you'd like to just show the airport names instead of the ICAO and Name, here is the edited code: <form action="<?php echo url('/Schedules');?>" method="post" enctype="multipart/form-data"> <table align="left" border="0" width="100%"> <tr> <td width="20px"><b>Dep:</b></font></td> <td> <select class="search" name="depicao"> <option value="">All</option> <?php if (Auth::LoggedIn()) { $report = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, PIREP_ACCEPTED); if($report) { echo '<option value="'.$report->arricao.'">All ('.$report->arricao.')</option>'; } else { echo '<option value="'.Auth::$userinfo->hub.'">All ('.Auth::$userinfo->hub.')</option>'; } } $airports = OperationsData::getAllAirports(); foreach ($airports as $airport) { echo '<option value="'.$airport->icao.'">'.$airport->name.'</option>'; }?> </select> </td> </tr> <td width="20px"><b>Arr:</b></font></td> <td> <select class="search" name="arricao"> <option value="">All</option> <?php foreach ($airports as $airport) { echo '<option value="'.$airport->icao.'">'.$airport->name.'</option>'; } ?> </select> </td> </tr> <tr> <td> <input type="hidden" name="action" value="findflight" /> <input title="Click here to search for flights" type="submit" name="submit" value="Search" /> </td> </tr> </table> </form> Quote Link to comment Share on other sites More sharing options...
truemo9 Posted August 9, 2011 Author Report Share Posted August 9, 2011 Ok, one more problem, on I.E The schedule has deformed along with the airline stats. Help, this is a browser problem.. Quote Link to comment Share on other sites More sharing options...
Jeff Posted August 9, 2011 Report Share Posted August 9, 2011 It is showing correctly in my IE browser. Firefox Internet Explorer Quote Link to comment Share on other sites More sharing options...
truemo9 Posted August 9, 2011 Author Report Share Posted August 9, 2011 hm it might be that i got an old version of IE, but i mostly use Google Chrome Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.