PilotManager V2.2

I have added functions to give the ADMIN some records in Dashboard area.

Install:

-Download and replace PManagerData.class.php from Github.

-Add the following lines to admin/dashboard.php

<?php $days = Config::Get('PILOT_INACTIVE_TIME');?>
<strong>Inavtive Pilots: </strong><?php echo count(PManagerData::InactivePilots());?>
<strong>Pilots With No Pireps In <?php echo $days;?> Days: </strong><?php echo count(PManagerData::PastDuePireps());?>
<strong>Pilots With No Pireps AT All: </strong><?php echo count(PManagerData::NoPireps());?>

Screenshot:

Cheers

hello good afternoon I have this problem does not record anything when sending the message to the drivers thanks for the help

phpVMS Version simpilot 5.5.2

I have added functions to give the ADMIN some records in Dashboard area.

Install:

-Download and replace PManagerData.class.php from Github.

-Add the following lines to admin/dashboard.php

<?php $days = Config::Get('PILOT_INACTIVE_TIME');?>

Inavtive Pilots: <?php echo count(PManagerData::InactivePilots());?>
Pilots With No Pireps In <?php echo $days;?> Days: <?php echo count(PManagerData::PastDuePireps());?>
Pilots With No Pireps AT All: <?php echo count(PManagerData::NoPireps());?>

Screenshot:

Cheers

Hello,

Can you please tell me where to add this inside the file, cause everytime im trying, im getting errors

hello good afternoon I have this problem does not record anything when sending the message to the drivers thanks for the help

phpVMS Version simpilot 5.5.2

I’m unable to view your attached image!!!

Hello,

Can you please tell me where to add this inside the file, cause everytime im trying, im getting errors

You need to open dashboard.php file inside your admin folder and add them there.

1 Like

Its a fantastic work, Thanks Man. Worked in my site

post-49528-0-49501700-1472413516.png

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

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

It Does!!!

I just made a small change in “email_warning.php” file you can download and replace it if you wish.

Change Log:

  • Warning email message to pilots who haven’t filed any PIREPS yet is changed.

Screenshot:

Hey Parkho, I can’t help but notice on your dev site, there is a place in the dashboard to edit email templates. However, in version 2.2 php version, there is not when Installed on my site. Is this on purpose? If not, I think we are missing the sidebar_pm.php maybe?

And one very tiny small issue, when I click Pilot manager in the admin panel, it literally opens every category drawer all the way down the admin page.

I attached an image with all the category drawers open. Pardon my non artistic graphical skills!

Thanks for another awesome module Parkho.

Ray

post-308-0-21228400-1481158845.jpg

Hi Ray, the reason the sidebar drawers open is the Javascript conflict of the module which I will fix in next version soon. Also, the sidebar pm is under development for next version and is not yet published. Thank you for your support of my modules. It definitely helps me keep up my work.

Ah ok sounds good man. I look forward to the update when it comes out. Keep up the good work man. It is much appreciated.

Take a look at my website please. I fixed the drawers issue but for the sidebar pm I still need to figure out how the user can add/edit warning/welcome messages since I want them to send the email with details.(eg pilot name current time etc.)

… since I want them to send the email with details.(eg pilot name current time etc.)

Well, we are on the same thinking wave pattern I see. I was kind of curious over that myself. The email system is what has plagued me with a module I am working on as well. I wish you luck in figuring that one out. I’m sure if you do it will be spot on.

how do i get your css to run? I installed itz like in the readme, but its not loading with your css

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

I have the same problem

On 8/18/2017 at 10:44 PM, Tummi said:

how do i get your css to run? I installed itz like in the readme, but its not loading with your css

Hi. The module comes with plain CSS as not all airlines layout are compatible with my CSS.

On 10/26/2017 at 3:57 PM, MichiGobeli said:

I have the same problem

I will check and let you know.

I get this error when a pilot registers.

Fatal error: Class 'PilotManagerData' not found in /home/flyaka/public\_html/core/modules/PilotManager/PilotManager.php on line 271

Any ideas?

On 11/15/2017 at 10:41 PM, flyalaska said:

I get this error when a pilot registers.

Fatal error: Class ‘PilotManagerData’ not found in /home/flyaka/public_html/core/modules/PilotManager/PilotManager.php on line 271

Any ideas?

Well that line is looking for the pilot’s last pirep and since new pilots have none, you’ll get this error. Open “PManagerData.class.php” in “common” folder. At line 67 is the following function:

public static function getpirep($pilotid) { $sql="SELECT \* FROM phpvms\_pireps WHERE pilotid = '$pilotid' ORDER BY submitdate DESC"; $check = DB::get\_row($sql); }

change it to the following:

public static function getpirep($pilotid) { $sql="SELECT \* FROM phpvms\_pireps WHERE pilotid = '$pilotid' ORDER BY submitdate DESC"; $check = DB::get\_row($sql); if($check) { return DB::get\_row($sql); } }

Try this and let me know if the issue is resolved. Thanks for noticing.