joeholden Posted October 10, 2012 Report Share Posted October 10, 2012 Hello, we are running a va which allows codeshare flights, so we have had to input multiple airlines on phpvms, is it possible that your pilots can have a single callsign instead of that airlines callsign. Eg. the VA's callsign is VVG123 but Virgin callsign is VIR123. is it possible that the pilots can only register with the VVG callsign? many thanks, Joe Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted October 11, 2012 Moderators Report Share Posted October 11, 2012 Yes it's possible. You have to limit your pilots to choose the vvg at the registration point. Open registration_mainform.tpl and find the following: <dd> <select name="code" id="code"> <?php foreach($allairlines as $airline) { echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>'; } ?> </select> </dd> And change it to the following: <dd> <select name="code" id="code"> <?php foreach($allairlines as $airline) { if($airline->code == "VVG") { echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>'; } } ?> </select> </dd> Quote Link to comment Share on other sites More sharing options...
joeholden Posted October 11, 2012 Author Report Share Posted October 11, 2012 thank you, works a treat! 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.