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

?>
<h3>Pending Sceneries</h3>
<table width="70%" border="1" cellpadding="1" cellspacing="0" align="center">
<tr>
<td width="10%" align="center"><b>ICAO</b></td>
<td width="20%" align="center"><b>FS Version</b></td>
<td width="15%" align="center"><b>Type</b></td>
<td width="15%" align="center"><b>Freeware/Payware</b></td>
<td width="15%">&nbsp;</td>
</tr>
<?php
if(!$pending)
              {echo '<tr><td colspan="5"><center>There are no any pending scenery available!</center></td></tr>';}
            else
            {
             foreach($pending as $pending)
{ ?>
<tr>
<td><?php echo $pending->icao; ?></td>
<td><?php echo $pending->fsvers; ?></td>
<td><?php if($pending->type == '1'){echo 'Airport';}
if($pending->type == '2'){echo 'AFCAD';}
if($pending->type == '3'){echo 'Other';}
?></td>
<td><?php if($pending->payfree == '1'){echo 'Freeware';}
if($pending->payfree == '2'){echo 'Payware';}
?></td>
<td><a href="<?php echo SITE_URL; ?>/admin/index.php/Scenery/detailspend/<?php echo $pending->id; ?>">Click Here</a></td>
</tr>
<?php } } ?>
</table>
<br />