PilotManager V2.2

Will check it out this afternoon.

That worked. Thank you!

I still have the problem with the unseen names

On 12/10/2017 at 11:42 PM, Miggel said:

I still have the problem with the unseen names

Please specify the issue again.

On 1.12.2016 at 4:31 PM, DesComm said:

Emails are not filling in the data pilotid, firstname, lastname, etc. see code below We are running simpilot 5.5.2.

CODE:

<?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. Your last PIREP was sent on <?php echo $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>

Email sent:

Dear ,

You are required to submit one PIREP every 30 days. Your last PIREP was sent on .

Please be advised if you do not send a report within the next 15 days your account will be deleted.

Sincerely

American Flight Airways - Staff

Like this

On 12/18/2017 at 2:38 PM, Miggel said:

Like this

Would you like to give me your Admin and cpanel login info so that I can check it out for you?

don’t work for me, once installed my website just goes blank and nothing but once deleted again then website works… anyone knows how to fix?

6 minutes ago, stifler13371 said:

don’t work for me, once installed my website just goes blank and nothing but once deleted again then website works… anyone knows how to fix?

Check the browser console and look for error(s)

On 3/2/2016 at 7:05 PM, Longhaul444 said:

No it is not version 4.0. This is what myphp admin version is through my host provider:

  • Version information: 4.3.8, latest stable version: 4.5.5.1

 

That 4.0 version is what was on the file from your add-on:

– phpMyAdmin SQL Dump

– version 4.0.10.7

http://www.phpmyadmin.net

– Host: localhost:3306

– Generation Time: Dec 20, 2015 at 09:21 PM

– Server version: 5.5.45-cll-lve

– PHP Version: 5.4.31

I am using php v5.4. This is copied directly from your sql file after extracting it before it is uploaded into the server.

But I have it working with the corrections I made to the file, so it’s a moot point now.

I have same problem, but not sure what to do… any help?

Resolve

 

 

Hi guys, how can I change the code below. I have to display the days that are missing for pilots who have not made any flights since the registration date. Thank you

(Date Joined)
<td><?php echo date(“d-m-Y”, $jtme) ;?></td>

 

This is the code

<?php $totaldays = Config::Get(‘PILOT_INACTIVE_TIME’);
                       {

                ?>

<?php

if ($pilot->lastpirep == ‘0000-00-00 00:00:00’) {
echo ‘<image src=“/en/admin/lib/images/Warning.png”>’;
                        }

else {

 $datebefore1 = substr($pilot->lastpirep, 0, 10);
 
 
$datetoday2 = date(“Y-m-d”);

$datebefore3 = strtotime($datebefore1);

$datetoday4 = strtotime($datetoday2);

$newdate = $datetoday4-$datebefore3;

$lastpirep = floor($newdate/(60*60*24));

$daysleft = $totaldays-$lastpirep;

echo ‘’;

if ($lastpirep == 0) { echo ‘’; }

else if ($lastpirep == 1) { echo ‘’; }
else {

echo ‘’;

}

echo ‘<font color=“#eb0f48”>’;

if ($daysleft <= 0) { echo ‘<image src=“/en/admin/lib/images/OFF.png”><br>Pilot in pension’; }

else {
echo $daysleft . ‘</font>  days left to be marked as a retired pilot.’;

}
                     }

                        ?>
                                                               
                        <?php

  }

Hi, just installed this module but my ADMIN dahboard seems to have lost its structure. Can anyone help please https://prnt.sc/v8u4is