In the pilot roster a table in which the last location (current location) is indicated should appear.
In addition I have in the pilots_list.tpl following code:
<table width="789" class="tablesorter" id="tabledlist">
<thead>
<tr bgcolor="#336699">
<th>Pilot ID</th>
<th width="25%">Name</th>
<th width="10%">Rank</th>
<th width="16%">Flights</th>
<th width="23%">Hours</th>
<th>Location</th>
</tr>
</thead>
<?php foreach($roster as $pilot) { ?>
<tr align="left" valign="middle" bgcolor="#DFF4FF">
<td width="9%" align="right" nowrap>
<img src="<?php echo Countries::getCountryImage($pilot->location);?>"
alt="<?php echo Countries::getCountryName($pilot->location);?>" />
<a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo $pilot->pilotid?>">
<?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a>
</td>
<td nowrap="nowrap">
<left><?php echo $pilot->firstname.' '.$pilot->lastname?></center>
</td>
<center><td align="center"><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td></center>
<center><td><?php echo $pilot->totalflights?></td></center>
<center><td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td></center>
<td colspan="2"><center>
<?php
$last_location = PIREPData::getLastReports($pilot->pilotid, 1, PIREP_ACCEPTED);
echo "This pilot's last location is: {$last_location->arricao}";
?>
</tbody>
</table>
Then I get the error message in the browser:
Parse error: syntax error, unexpected $end in /kunden/265414_32756/html/phpvms/core/templates/pilots_list.tpl on line 45
Where is the mistake?
Greetings
Thomas