Jump to content

Mark J

Members
  • Posts

    39
  • Joined

  • Last visited

Everything posted by Mark J

  1. Alright thanks! Works great! Thanks for being patient too.. really new to this
  2. haha wow.. I feel like an idiot! I had a copy of the airportsearch.tpl file in the skins and even though i was editing the one in the templates on it messed it up. So not the Current Location is showing up, but is there a way to make it to where it's automatically selected? Because at the moment its just a choice.
  3. this is in the templates folder not the frontschedule module folder correct?
  4. im almost positive! i know im new at this but im pretty sure.. is there something else that could be wrong?
  5. heres the website. it is just acting like the simpilot addon.
  6. not working for me... heres my airport_search.tpl file <?php $lastreport = PIREPData::GetLastReports(Auth::$userinfo, 1); if(!$lastreport) {$location = Auth::$userinfo->hub; } else {$location = $lastreport->arricao;} ?> <?php //simpilotgroup addon module for phpVMS virtual airline system // //simpilotgroup addon modules are licenced under the following license: //Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) //To view full icense text visit http://creativecommons.org/licenses/by-nc-sa/3.0/ // //@author David Clark (simpilot) //@copyright Copyright (c) 2009-2010, David Clark //@license http://creativecommons.org/licenses/by-nc-sa/3.0/ ?> <h4>Schedule Search</h4> <form action="<?php echo url('/FrontSchedules');?>" method="post" enctype="multipart/form-data"> <table width="100%" cellpadding="10px"> <tr> <td>Select An Airline</td> <td> <select class="search" name="airline"> <option value="">All</option> <?php foreach ($airlines as $airline) {echo '<option value="'.$airline->code.'">'.$airline->name.'</option>';} ?> </select> </td> </tr> <tr> <td>Select An Aircraft Type</td> <td> <select class="search" name="aircraft"> <option value="">All</option> <?php foreach ($aircrafts as $aircraft) {echo '<option value="'.$aircraft->icao.'">'.$aircraft->icao.'</option>';} ?> </select> </td> </tr> <td>Select A Departure Airfield</td> <td> <select class="search" name="depicao"> <option value="">All</option> <?php $reports = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, PIREP_ACCEPTED); if(is_object($reports)) { echo '<option value="'.$reports->arricao.'">Your current location ('.$reports->arricao.')</option>'; } elseif(!$reports) { echo '<option value="'.Auth::$userinfo->hub.'">Your current location ('.Auth::$userinfo->hub.')</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> <tr> <td colspan="2"> <input type="hidden" name="action" value="findflight" /> <input type="submit" name="submit" value="Search For A Flight" /> </td> </tr> </table> </form> <br /> <a href="<?php echo url('Schedules'); ?>">View All Today's Flights</a>
  7. im having a problem. i have all of the a/c listed in the menu, but when i select on and search for a route, it says no routes found.. example here.
  8. never mind! got it to work! thanks for the help
  9. I deleted the things in the database, but they are still showing up in the search schedules.. any ideaS?
  10. Is there a way to delete airports?
  11. im interested!
  12. When i changed a pilots id from 116 to 103, the next pilot to join automatically got 117, i then changed 117 to 116. the next day a new pilot joined and he automatically got the PID of 118. is there anyway to fix this to where there are no blanks without changing everyone's PID?
×
×
  • Create New...