Exemplo n.º 1
0
 public function send_blank()
 {
     $this->set('title', 'Pilot Manager');
     $email = $this->post->blank;
     $subject = $this->post->subject;
     $message = $this->post->message;
     $pilotinfo = PManagerData::getpilotbyemail($email);
     $pilot = $pilotinfo->pilotid;
     Template::Set('pilot', PManagerData::getpilotbyemail($email));
     Template::Set('subject', $subject);
     Template::Set('email', $email);
     Template::Set('message', $message);
     if ($subject == '') {
         $this->set('title', 'Pilot Manager');
         $this->set('message', 'You must enter a subject!');
         $this->render('core_error.tpl');
         $this->set('email', $email);
         $this->show('/pm/blank_email.php');
         return;
     }
     if ($message == '') {
         $this->set('title', 'Pilot Manager');
         $this->set('message', 'You must enter a message!');
         $this->render('core_error.tpl');
         $this->set('email', $email);
         $this->show('/pm/blank_email.php');
         return;
     }
     Util::SendEmail($email, $subject, $message);
     PManagerData::blanksent($pilot, $message);
     $this->show('/pm/email_confirm.php');
 }
Exemplo n.º 2
0
}
</style>
<table align="center" border="1" width="100%" cellpadding="0" cellspacing="0" >
		<tr>
			<td><b>Name</b></td>
			<td><b>Last Pirep</b></td>
			<td><b>Last Email Sent</b></td>
			<td align="center"><b>Warning</b></td>
			<td align="center"><b>Welcome</b></td>
			<td align="center"><b>General</b></td>
			<td align="center"><b>Send Email</b></td>
		</tr>
<?php 
foreach ($pilots as $pilot) {
    $pid = $pilot->pilotid;
    $param = PManagerData::param($pid);
    $ptme = strtotime($pilot->lastpirep);
    $dtme = strtotime($param->datesent);
    $chk = date("Y", $dtme);
    ?>
		<tr>
			<td><?php 
    echo $pilot->firstname . ' ' . $pilot->lastname;
    ?>
</td>
			<td>
			<?php 
    if ($pilot->lastpirep == 0) {
        echo ' <font color="red">None</font> ';
    } else {
        echo date("Y-m-d", $ptme);
Exemplo n.º 3
0
<?php

$pilotid = $pilot->pilotid;
$pirp = PManagerData::getpirep($pilotid);
$pir = $pirp->submitdate;
?>
<p>Dear <?php 
echo $pilot->firstname . ' ' . $pilot->lastname;
?>
,</p>
<p>You are required to submit one PIREP every day.  
<?php 
if (!$pir) {
    echo 'You have not filed any PIREPS Yet!';
} else {
    echo 'Your last PIREP was sent on.' . $pir;
}
?>
</p>
<p>Please be advised if you do not send a report within the next 2 days your account will be deleted.</p>
<p>Sincerely</p>
<p><?php 
echo SITE_NAME;
?>
 - Staff</p>
Exemplo n.º 4
0
<h3><?php 
echo $title;
?>
</h3>

<?php 
$plts = PManagerData::pilots();
foreach ($plts as $plt) {
    $id = $plt->pilotid;
    $check = PManagerData::checkpilot($id);
    if (!$check) {
        $pid = $plt->pilotid;
        $pfname = $plt->firstname;
        $plname = $plt->lastname;
        PManagerData::createpilot($pid, $pfname, $plname);
    }
}
?>

<link type="text/css" rel="stylesheet" href="http://onlinehtmltools.com/tab-generator/skins/skin6/top.css"></script>
<div style="border-radius: 10px;" class="FlightInformation">
 <ul style="text-align:center;">
  <li style="border-radius: 10px;" class="tab_selected"><a style="text-decoration: none;" href="#pi">Pilot Information</a></li>
  <li style="border-radius: 10px;"><a style="text-decoration: none;" href="#se">Send Email</a></li>
  <li style="border-radius: 10px;"><a style="text-decoration: none;" href="#dp">Edit Pilots</a></li>
 </ul>
 <div style="height: 100%; border-radius: 10px;" class="content_holder">
  <div id="pi"><?php 
Template::show('pm/pilot_information.php');
?>
</div>