<?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 Main</h3>
<center>Welcome to <?php echo SITE_NAME; ?> Administration Panel for the Scenery Database!</center><br />
<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(!$scen)
              {echo '<tr><td colspan="5"><center>There are no any scenery available!</center></td></tr>';}
            else
            {
             foreach($scen as $scen)
{ ?>
<tr>
<td><?php echo $scen->icao; ?></td>
<td><?php echo $scen->fsvers; ?></td>
<td><?php if($scen->type == '1'){echo 'Airport';}
if($scen->type == '2'){echo 'AFCAD';}
if($scen->type == '3'){echo 'Other';}
?></td>
<td><?php if($scen->payfree == '1'){echo 'Freeware';}
if($scen->payfree == '2'){echo 'Payware';}
?></td>
<td><a href="<?php echo SITE_URL; ?>/admin/index.php/Scenery/details/<?php echo $scen->id; ?>">Click Here</a></td>
</tr>
<?php } } ?>
</table>
<br />