Jump to content

Latset Flight and Next Flight


Jakubovsky

Recommended Posts

Hello,

Trying find solution...

545268ebfde1103fd735b17270d7a77c.png

on profile_main.tpl in "Latset Flight" section code is:

<?php echo $report->aircraft; ?>

Its show me: number "18"

and second...

"Next Flight"

on profile_main.tpl code inserted to table is:

<td colspan="5" rowspan="2"><?php Template::Show('core_bids.tpl'); ?></td>

and core_bids.tpl is:

<style type="text/css">
.table_back {
background-color: #CCC;
}
</style>
<?php
if(!$bids)
{
echo '<p align="center">You have not bid on any flights</p>';
return;
}
?>
<table>
<thead>
<tr class="table_back">
<th width="25%"><div align="center"><strong>Flight</strong></div></th>
<th width="25%"><div align="center"><strong>Departure</strong></div></th>
<th width="25%"><div align="center"><strong>Arrival</strong></div></th>
<th width="25%"><div align="center"><strong>Aircraft</strong></div></th>
<th width="25%"><div align="center"><strong>Distance</strong></div></th>
</tr>
</thead>
<tbody>
<?php
foreach($bids as $bid)
{
?>
<tr id="bid<?php echo $bid->bidid ?>">
<td><div align="center"><?php echo $bid->code . $bid->flightnum; ?></div></td>
<td align="center"><div align="center"><?php echo $bid->depicao; ?></div></td>
<td align="center"><div align="center"><?php echo $bid->arricao; ?></div></td>
<td><div align="center"><?php echo $bid->aircraft; ?> (<?php echo $bid->registration?></div></td>
<td><div align="center"><?php echo $bid->distance;?></div></td>
</tr>
<?php
}
?>
</tbody>
</table>

Bids allredy BID...

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