Jump to content

Pop up news modification?


avdesigns

Recommended Posts

Hello

Is there a way to change the popupnews mod to look like this?

HOME.jpg

also Is there a way to get them blue borders as I illustrated in the image above?

<h3>Latest Arrivals</h3>
<p><?php
$count = 5;
$pireps = PIREPData::getRecentReportsByCount($count);
?>
<table width="600px">
<tr>
<td class="tableheader">Flight No.</td>
<td class="tableheader">Pilot</td>
<td class="tableheader">Departure</td>
<td class="tableheader">Arrival</td>
<td class="tableheader">Duration</td>
<td class="tableheader">Aircraft</td>
<?php
if(count($pireps) > 0)
{
foreach ($pireps as $pirep)
{
{
 $pilotinfo = PilotData::getPilotData($pirep->pilotid);
 $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid);
}
?>

<tr>
 <td class="tablearrivals" ><?php echo $pirep->code.$pirep->flightnum; ?></td>
 <td class="tablearrivals" ><?php echo $pilotinfo->firstname.' '.$pilotinfo->lastname; ?></td>
 <td class="tablearrivals" ><?php echo $pirep->depicao; ?></td>
 <td class="tablearrivals" ><?php echo $pirep->arricao; ?></td>
 <td class="tablearrivals" ><?php echo $pirep->flighttime; ?></td>
 <td class="tablearrivals" ><?php echo $pirep->aircraft; ?></td>


</tr>
 <?php
}}
else
{
 echo '<tr><td align="center"><b>There are no recent flights!</b></td></tr>';
}
?>
 </tbody>
 </table>

</p>
<table width="300" border="0" align="left">
<tr>
<td></td>
<td class="tableheader">New Pilots</td>
<td></td>
</tr>
<?php
$pilotinfo = PilotData::getallpilots();
foreach($pilotinfo as $pilot)
{
?>
<tr>
<td width="40" class="tableflag"><img src="<?php echo Countries::getCountryImage($pilot->location);?>"></td>
<td width="190" class="table"><?php echo $pilot->code.$pilot->pilotid.' - '.$pilot->firstname.' '.$pilot->lastname ;?></td>
<td width="80" class="table"><?php echo $pilot->hub ;?></td>
</tr><?php
}
?>
</table>
<table width="300" border="0" align="right">
<tr>
<td></td>
<td class="tableheader">Latest News</td>
<td></td>
</tr>
<tr>
<td class="table">Name</td>
<td class="table">Date</td>
<td class="table">Link</td>
</tr>
</table>

Thanks in advance!

Jacob

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...