PilotManager_V2.0

Hi All,

The Pilot Manager V2.0 is now ready for download at github.

Change Log:

  1. Images removed and changed to buttons.

  2. blank email, and edit buttons have been added.

  3. The edit button will open a table where you can edit the pilot at the same page.

  4. Email confirmation page has been added.

Update:

  1. Pagination added.

Screenshots:





looks great only thing i would need is a pagnation now the list is so long its not good for the eyes annymore :slight_smile:

i adapted the file a bid but now something is wrong with pilots who have not send anny file could you help on this ?

What’s wrong?

its now showing date like folowing in the emails

You are required to submit one PIREP 30 days. Your last PIREP was sent Your last flight was 15647 day(s) ago.You have -15617 days left until you are marked as retired

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

Sincerely

I think you have used the date function and that counts the days from Jan 1st, 1970. Try using the following to calculate the days:

<?php echo $pilot->lastpirep ;?>

let me look at this .

also could you make somethign for pagnation?

I used a pagination for one of my add on which I got from Google search, I can offer you that if you want.

would be great now its a verry long list

Pagination added to the module. Please merge the new files and pilot_manager.tpl.

pagnation is not working

Not working???

Where did you upload the .js files?

there where no js files in the download :slight_smile:

now there is seems like github was not ready with the download when you posted the new version :slight_smile: working fine now

Okay good!

Can you make an amendment to the code of the pilot_manager.tpl to fix a small format problem in future releases.

<td align="center"><?php echo $pilot->firstname.' '.$pilot->lastname ;?></td>

to

<td align="center"><?php echo $pilot->firstname.' '.$pilot->lastname ;?></td>

Also in your Rar File, you still have the images folder called Images when in the code it is images. so that is another change.

Also none of the

<?php echo $pilot->firstname.' '.$pilot->lastname ;?>

works in the works in the email template files.

they all work just fine. Have you installed every part correctly?

Also I didn’t get what to amend!!

Well, there is no spacing between the first names and last names of pilots.

I sent you the code that is incorrect and what to change it with. You just missed out a space.

Also the Previous, Next buttons links are incorrect. You have the images links going to the images directory not the Images directory.

<img src="http://connectvirtualgroup.co.uk/lib/images/last.png" class="last">

when it should be

<img src="http://connectvirtualgroup.co.uk/lib/Images/last.png" class="last">

as thats how you have set up the directories. When you release the next version, just remove the capital letter from the Images folder in the RAR.

I also see on some images you have it linking to your site not the local site.

<img src="http://parkho.ir/phpvms/admin/lib/images/Warning.png">

Please provide the images and change the image source in the code so they are on the local site instead.

Noted and fixed. Thanks

Parkho,

Not sure how difficult it would be, but I had an idea that many may like. I personally like the whole pilot manager and I think this would be a great addition.

Anyways, I think it would be good to keep a history for all emails sent to pilots. I guess what would have to be done is create a database, and when an email is sent to a pilot it saves that email in the database. Now to access the history of emails for any given pilot you would just click on the pilot ID and it pulls a drop down list of all emails for that given pilot. Whether it be a warning, welcome or custom email.

My thought on this is this. Pilot doesn’t fly by a specific time per the Operation Procedure, you send out a warning email to that pilot and it is then saved into the database. After say 7 days still no pirep submitted you can pull that pilot’s email up get a reference date to put into a custom email letting that person know that they were notified on say 01/01/12 that they haven’t submitted their first pirep and they are being removed or listed as retired, banned, etc. from the roster. This way the CEO or the Hub Managers have something to go by.

Thoughts?