Jump to content
Parkho

PilotManager V2.2

Your opinion  

21 members have voted

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

    • Perfect
      10
    • Very Good
      5
    • Good
      4
    • So So!
      2
    • Not A Chance
      0
    • Very Bad
      0
    • Worst Module Ever
      0


Recommended Posts

Longhaul444    2

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    154

Well then I guess my server is outdated as it generated the sql when I exported it!!!

Share this post


Link to post
Share on other sites
Longhaul444    2

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
DesComm    0

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
DesComm    0

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
Parkho    154

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
DesComm    0

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
Parkho    154

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
Parkho    154

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
Parkho    154

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
Parkho    154

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
DesComm    0

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
Parkho    154

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
Parkho    154

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
TAV1702    908

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
Parkho    154

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
TAV1702    908

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
Parkho    154

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
TAV1702    908

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×