Jump to content

Single pilot callsign


joeholden

Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

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>

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