Leave Of Absence v0.9

As I said, that shouldn’t matter and that type of error (line 248) is associated with .tpl files not being installed correctly. (Read here: )

I can’t help much without direct access to the files etc. but it is an issue on your side, as it is working well on many other VAs.

Also, make sure that you have downloaded the latest version from the GitHub.

My apologies,

I have made the folder name in the templates folder, LoA ,instead of loa. All fixed now.

Thanks for the great add on!

You are welcome!

I hope you will enjoy the addon!

Hi there,

Is there a way to automatically mark the pilot as on Leave when he/she submit a LoA form? Also, in addition to that, then exclude the pilots marked as on Leave from the automatic retire function?

Best Regards,

Jakes

Is there a way to automatically mark the pilot as on Leave when he/she submit a LoA form?

  • Nope, the way I have coded is that all the requests go to the admin panel for approval.

then exclude the pilots marked as on Leave from the automatic retire function?

-Nope, that would require changing of core files etc.

I don’t have much time these days to do any coding, but if I have time in the future, I will look into this.

Hi

i become the following failure when i request a LoA

Warning : mysql_query() [function.mysql-query]: Access denied for user ‘www-data’@‘localhost’ (using password: NO) in /www/htdocs/w00dac26/lausitzair/core/common/LoAData.class.php on line 23

Warning : mysql_query() [function.mysql-query]: A link to the server could not be established in /www/htdocs/w00dac26/lausitzair/core/common/LoAData.class.php on line 23

Warning : mysql_num_rows(): supplied argument is not a valid MySQL result resource in /www/htdocs/w00dac26/lausitzair/core/common/LoAData.class.php on line 24

but its working and stay in the adminpanel

And then i become this failure when i will delete the LoA

Warning : mysql_query() [function.mysql-query]: Access denied for user ‘www-data’@‘localhost’ (using password: NO) in /www/htdocs/w00dac26/lausitzair/core/common/LoAData.class.php on line 61

Warning : mysql_query() [function.mysql-query]: A link to the server could not be established in /www/htdocs/w00dac26/lausitzair/core/common/LoAData.class.php on line 61

Warning : mysql_affected_rows() [function.mysql-affected-rows]: A link to the server could not be established in /www/htdocs/w00dac26/lausitzair/core/common/LoAData.class.php on line 62

Warning : mysql_affected_rows() [function.mysql-affected-rows]: A link to the server could not be established in /www/htdocs/w00dac26/lausitzair/admin/modules/LoA/LoA.php on line 63

can anybody help me?

Thx

Are you sure that you have used the sql file to create the db structure needed?

yes in my phpmyadmin panel i have use the import

Sava what is Realistic Value to work for a LOA Policy 14 days or more?

I am not sure if I understand you.

You can specify the leave length in the core/modules/LoA/LoA.php file

1 Like

figured it out thanks

I have read few pilot operational manuals

in my case BAVVirtual and your own VA Air Serbia and some other but near all have the 30 days clause

1 Like

Glad it worked out.

Sava,

I really like this addon, not sure of your time frame on adding a small touch to this already great addon, but it would be nice to be able to Approve the LOA Request via a button and to send an email to the Pilot requesting the LOA, via the View page.

Thinking have an Approve button below the Information provided in the View page and when you click on that button it pulls a form up to enter your comments concerning the LOA Request approval and a send button to send that info to the requesting Pilot via email.

Thanks for your great addons. Greatly appreciated I am sure by all here.

I will try and add this as soon as I can.

I have updated the module to v1.0.

All of you who have the old version, it’s best to just reinstall everything.

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

  • Added version checker - Checks current version to the current one specified on the server.
  • Modified Date Choser - The date is now selected from a dropdown menu as opposed to being typed in.
  • Date Format Modified - The displayed data formats now use the phpVMS DATE_FORMAT variable and the times are now saved as a unix timestamp as opposed to a date string.
  • Direct Method Access Prohibited - Added checks to stop load loading of page if the form was not submitted.
  • Moved Emailing functions to a separate method in the class
  • Pilot Names in the Admin CP now pulled from the pilots table, not the LoA table. Names are no longer stored in the LoA table.
1 Like

I get these two errors:

In the LOA application itself (That pilots complete): Fatal error : Class ‘LoAData’ not found in /home/vforg/public_html/core/modules/LoA/LoA.php on line 66

Here is the code for Line 66: $pilotid_check = LoAData::CheckPilotID($data[‘pilotid’]);

On the Admins side: Fatal error : Class ‘LoAData’ not found in /home/vforg/public_html/admin/modules/LOA/LOA.php on line 35

Here is the code for line 35: $leaves = LoAData::GetAllRequests(array());

I have not changed anything, all I did was slide the folders into the respective areas and used the los.sql to set up the sql side.

1 Like

I just realized I haven’t added that file to the repository somehow.

I’ll add it tomorrow morning UTC when Im back on my PC.

Accept my apologies.

I just realized I haven’t added that file to the repository somehow.

I’ll add it tomorrow morning UTC when Im back on my PC.

Accept my apologies.

Was this added?

1 Like

I have the same error. Missing loaclass…

Just in case you forgot, I don’t see anything new in the files