<style>
.left {
width: 200px;
float: left;
min-height: 300px;
padding: 15px 0 15px 5px;
}
.right {
margin-left: 210px;
}
</style>
<div class="left">
<?php Template::Show ('mail_menu.tpl'); ?>
</div>
<div class="right">
<center>
<table bgcolor="#000000" cellspacing="1" cellpadding="5" border="0">
<form method="post" action="<?php echo SITE_URL?>/index.php/Mail/send">
<input type="hidden" name="who_from" value="<?php echo Auth::$userinfo->pilotid ?>" />
<tr bgcolor="#cccccc">
<td>
<b>To:</b>
<select type="text" name="who_to">
<option value="">Select a pilot</option>
<?php if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))
{
?>
<option value="all">NOTAM (All Pilots)</option>
<?php
}
foreach($allpilots as $pilots)
{
echo '<option value="'.$pilots->pilotid.'">'.$pilots->firstname.' '.$pilots->lastname.' - '.PilotData::GetPilotCode($pilots->code, $pilots->pilotid).'</option>';
}
?>
</select>
</td>
<td><b>Subject:<input type="text" name="subject"></b></td>
</tr>
<tr bgcolor="#eeeeee">
<td colspan="2"><b>Message:</b><br /><br />
<textarea name="message" rows="10" cols="60"></textarea></td></tr>
<tr bgcolor="#cccccc">
<td colspan="2">
<input type="submit" value="Send AIRmail">
</td>
</tr>
</form>
</table>
</center>
</div>
<br />
<center><b><font size="1.5px">AIRmail © 2009 <a href="http://www.simpilotgroup.com">simpilotgroup.com</a></font></b></center>
<br />