Jump to content

Manual PIREP


AUZ

Recommended Posts

Hello,

I was hoping someone could help with changing this code so the pilots dont need to use the dropdown box just to select our Airline which is the only one listed there anyway..

I am looking at the PIREP.php and pirep_new.tpl files

pirep_new.tpl at line 11

<dt>Select Airline:</dt>

<dd>

<select name="code" id="code">

<option value="">Select your airline</option>

<?php

foreach($allairlines as $airline)

{

$sel = ($_POST['code'] == $airline->code || $bid->code == $airline->code)?'selected':'';

echo '<option value="'.$airline->code.'" '.$sel.'>'.$airline->code.' - '.$airline->name.'</option>';

}

?>

</select>

Is there any way I can customise this code to give no option to select and have my Airline preselected instead ?

Any help would be mostly appreciated.

Regards

Adam

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