Jump to content

Pilot Id and Flight number help


EmiratesVA

Recommended Posts

I think u can "create another airline" for EK and upon registration put the airline field hidden and always set to UAE, and then when u make your routes just select the EK airline and then the flight number and your UAE pilots should still be able to file it. If you need help with the code let me know, I use the hidden airline field if u need I can paste it in and tell u where it goes, and another airline can simply be created in the admin panel somewhere.

Link to comment
Share on other sites

Rename your core/templates/registration_mainform.tpl to something else

Create a new file called registration_mainform.tpl

Place this code in the new registration_mainform.tpl

<h3>Registration</h3>
<p>Welcome to the registration form for <?php echo SITE_NAME; ?>. After you register, you will be notified by a staff member about your membership.</p>
<form method="post" action="<?php echo url('/registration');?>">
<dl>
<dt>First Name: <font color="#FF0000">*</font></dt>
<dd><input type="text" name="firstname" value="<?php echo Vars::POST('firstname');?>" />
 <?php
  if($firstname_error == true)
   echo '<p class="error">Please enter your first name</p>';
 ?>
</dd>

<dt>Last Name: <font color="#FF0000">*</font></dt>
<dd><input type="text" name="lastname" value="<?php echo Vars::POST('lastname');?>" />
 <?php
  if($lastname_error == true)
   echo '<p class="error">Please enter your last name</p>';
 ?>
</dd>

<dt>Email Address: <font color="#FF0000">*</font></dt>
<dd><input type="text" name="email" value="<?php echo Vars::POST('email');?>" />
 <?php
  if($email_error == true)
   echo '<p class="error">Please enter your email address</p>';
 ?>
</dd>

<input type="hidden" name="code" value="UAE" />

<dt>Hub: <font color="#FF0000">*</font></dt>
<dd>
 <select name="hub" id="hub">
 <?php
 foreach($allhubs as $hub)
 {
  echo '<option value="'.$hub->icao.'">'.$hub->icao.' - (' . $hub->name .')</option>';
 }
 ?>
 </select>
</dd>
<dt>Location: <font color="#FF0000">*</font></dt>
<dd><select name="location">
 <?php
  foreach($countries as $countryCode=>$countryName)
  {
   if(Vars::POST('location') == $countryCode)
 $sel = 'selected="selected"';
   else
 $sel = '';

   echo '<option value="'.$countryCode.'" '.$sel.'>'.$countryName.'</option>';
  }
 ?>
 </select>
 <?php
  if($location_error == true)
   echo '<p class="error">Please enter your location</p>';
 ?>
</dd>

<dt>Password: <font color="#FF0000">*</font></dt>
<dd><input id="password" type="password" name="password1" value="" /></dd>

<dt>Enter your password again: <font color="#FF0000">*</font></dt>
<dd><input type="password" name="password2" value="" />
 <?php
  if($password_error != '')
   echo '<p class="error">'.$password_error.'</p>';
 ?>
</dd>

<?php

//Put this in a seperate template. Shows the Custom Fields for registration
Template::Show('registration_customfields.tpl');

?>

<dt>reCaptcha</dt>
<dd>
 <?php
  echo recaptcha_get_html(Config::Get('RECAPTCHA_PUBLIC_KEY'), $captcha_error);
 ?>
</dd>

<dt></dt>
<dd><p>By clicking register, you're agreeing to the terms and conditions</p></dd>
<dt></dt>
<dd><input type="submit" name="submit" value="Register!" /></dd>
</dl>
</form>

Save the file.

Now all new registered members will all be UAE0001, UAE0002 ...etc.

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