Jump to content
Parkho

PilotManager V2.2

Your opinion  

25 members have voted

  1. 1. What do you think about this module?

    • Perfect
      12
    • Very Good
      5
    • Good
      5
    • So So!
      3
    • Not A Chance
      0
    • Very Bad
      0
    • Worst Module Ever
      0


Recommended Posts

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.

Share this post


Link to post
Share on other sites

Parkho, please don't take what I said as any disrespect, as that was not my intention. I thoroughly enjoy your modules. My apologies if I came across as disrespectful. As it's all good, and the module is working. :)

Share this post


Link to post
Share on other sites

New install and getting the below message: Also is there a way to have your original screen, it is more condensed and gives a better status of pilots.

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/prs.------.com/httpdocs/admin/templates/pm/pilot_manager.php on line 5

Share this post


Link to post
Share on other sites

PM is showing the following error: $days = Config::Get('PILOT_INACTIVE_TIME'); ?>

Pilot status is now showing correct. A plot made a flight today 6-24 however status shows "No Reports Over Days".

Days set to inactive is @45 days.

Also can a warning email be sent automatically?

Share this post


Link to post
Share on other sites

Have you altered or changed codes in pilot_information.php? Seems like you're missing an open <?php tag.

At this time the warning email in PM is manual. I will look into it in the next update.

Share this post


Link to post
Share on other sites

I found the issue, there is a error in the original file, I verified it with Github.

The pilot days code is in error. currently: it is

```

<?php>

$days = Config::Get('PILOT_INACTIVE_TIME');

?>

```

SHOULD BE:

```

<?php

$days = Config::Get('PILOT_INACTIVE_TIME');

?>

```

-------------------------------------------------------

Is there a way to get the icons that you used originally? It is easier to have a quick look and a admin can see the status (yellow and red colors) very quickly. Hopefully you can have the automatic emails soon. Currently is there any notification available to an admin that a pilot needs a warning or has goon inactive?

Thanks

Edited by DesComm

Share this post


Link to post
Share on other sites

Thanks. Noted and fixed. You're more than welcome to add to the module if you want but as we have this conversation, this version is in "AS IS" status.

Share this post


Link to post
Share on other sites

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:

dash.png

Cheers

Edited by parkho

Share this post


Link to post
Share on other sites

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

15cms08.png

Edited by sotofigueroa26

Share this post


Link to post
Share on other sites

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:

dash.png

Cheers

Hello,

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

Share this post


Link to post
Share on other sites

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

15cms08.png

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

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

sent1.png

Edited by Parkho

Share this post


Link to post
Share on other sites

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:

sent2.png

Share this post


Link to post
Share on other sites

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

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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