Jump to content

Recommended Posts

Posted

Hey Mark, i think its based off the code from the admin center, with the View Bids ;)

Changed it a bit to resemble the Air Malta one

<h3>Current Booked Flights</h3>
<?php /*echo '<pre>'; print_r($allbids); echo '</pre>';*/ 
if(!$allbids)
{
echo 'There are no bids!';
return;
}
?>
<table id="tabledlist" class="tablesorter">
<thead>
<tr>
<th>Route</th>
<th>Pilot</th>	
<th>Day Filed</th>
<th>Options</th>
</tr>
</thead>
<tbody>
<?php
foreach($allbids as $bid)
{?>
<tr id="row<?php echo $bid->bidid?>">
<td><?php echo $bid->code.$bid->flightnum."({$bid->depicao} - {$bid->arricao})"?></td>
<td><?php echo PilotData::GetPilotCode($bid->code, $bid->flightnum).' - '.$bid->firstname.' '.$bid->lastname; ?></td>
<td><?php echo $bid->dateadded; ?></td>
<td>
<button href="<?php echo url('/schedules/brief/'.$bid->routeid);?>">
		Brief</button>
	</td>
</tr>
<?php } ?>
</tbody>
</table>

  • Like 1

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