Hello,
i am new to phpvms and i have 2 questions.
1. After input the following code, i can not see the sitebar at my site: www.airbrandenburg.de. I think, the problem is with the <div> Tags. I dont find the error.
here the code:
<H3>Live Departure / Arrival Board</H3>
<div class="box">
<table width="100%" cellspacing="0" cellpadding="4">
<tr class="title-row">
<th width="106">Airline</th>
<th width="60">Flight #</th>
<th width="66">Aircraft</th>
<th width="180">Origin</th>
<th width="180">Destination</th>
<th width="80">Status</th>
</tr>
<?php $rowCounter = 1; ?>
<?php
$results = ACARSData::GetACARSData();
if (count($results) > 0)
{
foreach($results as $row)
{
$font = "<font color=''>"; // Standard font color if nothing below is TRUE
if($row->phasedetail == 'Boarding') $font = "<font color='#2ba600'>"; //This should set the font color to red when Taxiing.
if($row->phasedetail == 'Landed') $font = "<font color='#FFBF00'>"; //This should set the font color to red when Taxiing.
if($row->phasedetail == 'En Route') $font = "<font color='#2A7F00'>"; //This should set the font color to green when Cruise.
if($row->phasedetail == 'Departed') $font = "<font color='#FF0000'>"; //This should set the font color to red when Taxiing.
if($row->phasedetail == 'Approach') $font = "<font color='#690d0d'>"; //This should set the font color to green when Cruise.
if($row->phasedetail == 'Arrived') $font = "<font color='#e13838'>"; //This should set the font color to red when Taxiing.
// You can add more checks here for whatever you wish
?>
<tr class="listingTable <?php if( ($rowCounter % 2) == 0 ){ echo ' evenCol'; } $rowCounter++; ?>">
<td align="center">
<?php
$code = substr($row->flightnum, 0,3);
?>
<img src="<?php echo fileurl('/lib/images/airlines/'.$code.'.png'); ?>" alt="<?php echo $airline->name;?>" />
</td>
<td align="center"><?php echo $row->flightnum;?></td>
<td align="center"><?php echo $row->aircraftname;?></td>
<td align="center"><?php echo $row->depname;?></td>
<td align="center"><?php echo $row->arrname;?></td>
<td align="center"><?php echo $font.$row->phasedetail;?></td>
</tr>
<?php
}
}
?>
</table>
<?php
if(!$results)
{
echo '<p align="center">No Online Flights Scheduled!</p>';
return;
}
?>
</div>
<script>
$("#toggle").click(function () {
$("#messages").slideToggle("slow");
});
</script>
</div>
2. I have a front menu with some items.
What can i do, that all visitors see this items but only logged in Pilots can use it. All other get a message to log in or register.
Thank you very much for your support
many greetings from Berlin
Stefan