PAL0001 Posted October 29, 2012 Report Share Posted October 29, 2012 Hi, Is there any way to have separate codes for Schedules and the main VA code? Because flights for my VA (Philippine Airlines) have the code PR (which I want to replicate) but the abbreviation for the airline is PAL (which I want to replicate). Thanks in advance Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted October 31, 2012 Moderators Report Share Posted October 31, 2012 If I understood your question correctly, you want your pilots to have a pilot id like "PR002" and your flight routes are like "PAL123". For this you can add an airline in admin center with code "PR" and name "Philippine Airlines" and restrict your pilots to only use the "PR" airline at registration stage. For "PAL" all you need to do is to add your schedules with "PAL" airlines and that should do it. For restricting your pilots at registration stage open registration_mainform.tpl and find the following: <dt>Select Airline: *</dt> <dd> <select name="code" id="code"> <?php foreach($allairlines as $airline) { echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>'; } ?> </select> </dd> Then change it to the following: <dt>Select Airline: *</dt> <dd> <select name="code" id="code"> <?php foreach($allairlines as $airline) { if($airline->code == "PR") { echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>'; } } ?> </select> </dd> 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.