<?php
///////////////////////////////////////////////
///   SceneryDatabase v2.1 by php-mods.eu   ///
///            Author php-mods.eu           ///
///           Packed at 29/08/2012          ///
///     Copyright (c) 2012, php-mods.eu     ///
///////////////////////////////////////////////

?>
<h3>Scenery Details</h3>
<table width="50%" border="0" cellpadding="1" cellspacing="0" align="center">
<tr><td colspan="2" align="center"><?php if($details->photo == ''){ ?><img src="<?php echo SITE_URL; ?>/core/templates/scenery/images/no-image.jpg" /><?php }
else { ?><img src="<?php echo $details->photo; ?>" width="450" height="282" /> <?php } ?></td></tr>
<tr>
<td width="20%">ICAO:</td>
<td width="30%"><?php echo $details->icao; ?></td>
</tr>
<tr>
<td>Country:</td>
<td><?php echo $details->country; ?></td>
</tr>
<tr>
<td>Scenery Version:</td>
<td><?php echo $details->fsvers; ?></td>
</tr>
<tr>
<td>Scenery Type:</td>
<td><?php if($details->type == '1'){echo 'Airport';}
if($details->type == '2'){echo 'AFCAD';}
if($details->type == '3'){echo 'Other';}
?></td>
</tr>
<tr>
<td>Freeware/Payware:</td>
<td><?php if($details->payfree == '1'){echo 'Freeware';}
if($details->payfree == '2'){echo 'Payware';}
?></td>
</tr>
<tr>
<td>Description:</td>
<td><?php echo $details->description; ?></td>
</tr>
<tr>
<td>Author:</td>
<td><?php echo $details->author; ?></td>
</tr>
<tr>
<td>Uploaded:</td>
<td><?php echo $details->uploaded; ?></td>
<tr>
<td>Uploaded by:</td>
<td><?php echo PilotData::getPilotData($details->uploadedby)->firstname; ?> <?php echo PilotData::getPilotData($details->uploadedby)->lastname; ?></td>
</tr>
<tr>
<td>Scenery Link:</td>
<td><a href="<?php echo $details->link; ?>" target="_blank"><?php echo $details->link; ?></a></td>
</tr>
</table>
<br />
<table width="60%" border="0" align="center">
<tr>
<td width="20%"><form method="post" action="<?php echo SITE_URL; ?>/admin/index.php/scenery/SceneryDelete/<?php echo $details->id; ?>">
<input type="submit" name="submit" value="Delete Scenery" />
</form></td>
<td width="20%"><form method="post" action="<?php echo SITE_URL; ?>/admin/index.php/scenery/SceneryEditForm/<?php echo $details->id; ?>">
<input type="submit" name="submit" value="Edit Scenery" />
</form></td>
<td width="20%"><form method="post" action="<?php echo SITE_URL; ?>/admin/index.php/scenery/AcceptScenery/<?php echo $details->id; ?>">
<input type="submit" name="submit" value="Accept Scenery" />
</form></td>
</tr>
</table><br />