EmiratesVA Posted March 19, 2012 Report Share Posted March 19, 2012 Okay. So I want my pilot IDs to be UAE and my flight numbers to be EK. For some reason the pilot ID and flight number has to be same. Please someone help me. Quote Link to comment Share on other sites More sharing options...
Aaron Posted March 19, 2012 Report Share Posted March 19, 2012 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. Quote Link to comment Share on other sites More sharing options...
Jeff Posted March 20, 2012 Report Share Posted March 20, 2012 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. Quote Link to comment Share on other sites More sharing options...
EmiratesVA Posted March 25, 2012 Author Report Share Posted March 25, 2012 Thank You very Much Quote Link to comment Share on other sites More sharing options...
Jeff Posted March 26, 2012 Report Share Posted March 26, 2012 You're welcome. 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.