Leave Of Absence v0.9

Leave of Absence v1.0 (Updated April 13th 2013)

Note: Update v0.9 - > v1.0 (view changelog: https://github.com/savamarkovic/phpvms_loa#changelog )

about:

phpVMS addon for pilots to submit a LoA request that is stored in a database and an option for staff to view, delete and edit all the LoA requests through the admin panel.

The addon checks if the requested leave lenght is longer than the specified number of days. It uses the date of submission as a start date.

When the LoA requests are submitted, both the users and the admin will get an email.

Developed by:

Sava Markovic

http://www.airserbiavirtual.com

Developed on:

phpVMS v2.1.934 stable

php 5.3.1

mysql 5.0.5

apache 2.2.14

License:

Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

Installation :

All installation instructions and update info can be found here:

https://github.com/savamarkovic/phpvms_loa#loa-module-v10

Screenshots

http://i.imgur.com/LYeU0.jpg

http://i.imgur.com/V55qI.jpg

http://i.imgur.com/nq92W.jpg

http://i.imgur.com/yX9vy.jpg

Download :

The addon can be found and downloaded here: https://github.com/s…ovic/phpvms_loa

Enjoy!

i just tried to enter this date 05-08-2012

and in the admin i get folowing 0000-00-00 so i think thats a small bug to fix :slight_smile: and then also the email send out to the user with the loa

Reserved for updates or other info.

Wow, very nice idea. I will test it and send you my feedback, thanks!

Amazing, works like a charm. Thank you for your contribution. It is definitively useful!

Thank you for the kind words, Magicflyer. I am just trying to give back to the community. Enjoy!

it this changed from the one i have?

Yes, please download the latest version. It includes emailing to admins and I have fixed some potential security risks.

Just some information. I didn’t get any time to work with the addon on fixing the date format issues lately due to other things but I will try and do it as soon as I can.

I encourage all of you to try the addon and leave feedback! Also, all suggestions for further addons can be left here:

hI Sava,

i have this error “There is already a LoA request with your Pilot ID”. when i submit a new Absence Request

but i dont have any request

Are you sure that there isn’t a request? The addon comes with one request already in there to show the functionality.Check the actual table in phpmyadmin. I have tried out the addon on my test site and it works perfectly.

Also, check the Hub Transfer thread, I have updated it.

hi,

yes yes i’m sure , my phpmyadmin table is empty , look the photo attach

P.S

MANY THANKS FOR THE HUB TRANSFER

post-2342-0-23420000-1344544182.png

Edit:

Go to core/common/LoAData.class.php

Change the first method so it is like this:

public function CheckPilotID ($pilotid)
{
$query = "SELECT * FROM loa WHERE pilotid ='$pilotid'";
$sql = mysql_query($query);
$count = mysql_num_rows($sql); //this is added
return $count; //$sql changed to $count
}

That should fix the issue.

now work perfectly many thanks

1 Like

Sorry for the issues.

no problem sir

Hi there, I have this error after installing this mod:

Notice : The template file “/home/jdsarcco/public_html/uvsaaf//core/templates/loa/loa_index.tpl” doesn’t exist in /home/jdsarcco/public_html/uvsaaf/core/classes/TemplateSet.class.php on line 248

well, the problem is the double forward slash in the URL before the first CORE, but I dont know where to fix it?

Cheers

That is not the problem. You haven’t installed the templates correctly. Please make sure that you have the loa_index.tpl file inside core/templates/loa.

That is not the problem. You haven’t installed the templates correctly. Please make sure that you have the loa_index.tpl file inside core/templates/loa.

Hi, I have double checked it, and all are in the locations as instructed. I also have a similar error with the admin page

If you look at the error url it have something to do with the path to the tpl file. It have two forward slashes instead of only one.

“/home/jdsarcco/public_html/uvsaaf // core/templates/loa/loa_index.tpl”