Jump to content

How to put welcome area on frontpage, Mac


Recommended Posts

This what I used to show the newest pilots. You can alter it to show a welcome message.

CSS - goes in your skins css file.

.clean-welcome{
border:solid 1px #349534;
background:#C9FFCA;
color:#008000;
font-weight:bold;
padding:4px;
text-align:center;
}

Place the code below where you want to display the message

<div class="clean-welcome"> <?php $newpilot = PilotData::getLatestPilots(1); ?>
Welcome Alaska Adventures Newest Pilot:<?php foreach ($newpilot as $pilot)
{
echo $pilot->firstname.' '.$pilot->lastname.' ('.PilotData::getPilotCode($pilot->code, $pilot->pilotid).')';
}
?>
</div>

Link to post
Share on other sites
  • 3 months later...

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...