Jump to content
Sava

Leave Of Absence v0.9

Recommended Posts

We probably have the same version if you got the new one. I was on skype with Sava when he released this and I grabbed it. I do have that comment as well in mine I just failed to post it. sorry about that. I was just sure about the 1 extra day thing on there.

I appreciate the reply Pro. Thanks man. I'll go fix that right quick before I forget.

Share this post


Link to post
Share on other sites

Hey guys, without looking at the code, I think I entered to account for the difference in time.
A huge part of the module is still legacy code from when I was still learning. I'll get the update done soon. (And send it for you to review Ray :P)

Share this post


Link to post
Share on other sites

I don;t know if it is a problem on my end but sava's loa repo is not opening. I am getting these errors on client side:

Deprecated: Non-static method LoAData::CheckPilotID() should not be called statically, assuming $this from incompatible context in /storage/ssd3/285/3946285/public_html/core/modules/LoA/LoA.php on line 66

Deprecated: Non-static method LoAData::AddLoa() should not be called statically, assuming $this from incompatible context in /storage/ssd3/285/3946285/public_html/core/modules/LoA/LoA.php on line 76

And these on the admin side:

Deprecated: Non-static method LoAData::GetAllRequests() should not be called statically, assuming $this from incompatible context in /storage/ssd3/285/3946285/public_html/admin/modules/LoA/LoA.php on line 35

Warning: fgetcsv() expects parameter 1 to be resource, boolean given in /storage/ssd3/285/3946285/public_html/admin/modules/LoA/LoA.php on line 83

Warning: fclose() expects parameter 1 to be resource, boolean given in /storage/ssd3/285/3946285/public_html/admin/modules/LoA/LoA.php on line 84

 

Share this post


Link to post
Share on other sites
On 22/7/2013 at 11:51 AM, OA01 said:

I found the solution myself. :)

Open //core/common/LoAData.class and locate the following:

 


public function GetAllRequests ()
{
 $table = TABLE_PREFIX;
 $sql   = "SELECT loa.pilotid,
   loa.start,
   loa.end,
   loa.reason,
   phpvms_pilots.pilotid,
   phpvms_pilots.firstname,
   phpvms_pilots.lastname
   FROM loa
   JOIN phpvms_pilots ON loa.pilotid = phpvms_pilots.pilotid";
 $ret = DB::get_results($sql);
 return $ret;
 

 

And replace it with this:

 


public function GetAllRequests ()
{
 $table = ".TABLE_PREFIX.";
 $sql   = "SELECT loa.pilotid,
   loa.start,
   loa.end,
   loa.reason,
   pilots.pilotid,
   pilots.firstname,
   pilots.lastname
   FROM loa
   JOIN pilots ON loa.pilotid = pilots.pilotid";
 $ret = DB::get_results($sql);
 return $ret;
Good afternoon. I tried to edit the file but it does not work. No data in the DB and in the admin panel (no error is shown) How to solve? thank you

 

Now the admin function works OK. :D

 

Share this post


Link to post
Share on other sites

Good Morning Lades & Gents,

I would really like to use this module as im running Classic VMS 5.5 (PHP version) but sadly none of the download links work :( could anyone provide me with a download link?

Looks like a fantastic addition to my site.

Kind Regards Harry.

Share this post


Link to post
Share on other sites
6 hours ago, harryh146 said:

Good Morning Lades & Gents,

I would really like to use this module as im running Classic VMS 5.5 (PHP version) but sadly none of the download links work :( could anyone provide me with a download link?

Looks like a fantastic addition to my site.

Kind Regards Harry.

I packaged mine for you. You will need to change the classes to match your css.

 

Download Here!

Share this post


Link to post
Share on other sites
On 7/1/2018 at 5:34 PM, flyalaska said:

I packaged mine for you. You will need to change the classes to match your css.

Hi FlyAlaska thank you very much for uploading that for me ! No worries re-doing my css sheet at the moment anyway, Thanks again ! Kind Regards Harry

Share this post


Link to post
Share on other sites
1 hour ago, harryh146 said:

Hi FlyAlaska thank you very much for uploading that for me ! No worries re-doing my css sheet at the moment anyway, Thanks again ! Kind Regards Harry 

The loa.sql file is missing, which you can download from here: https://github.com/carriercomm/phpvms_loa

Use the loa.sql file to create the table necessary for the module to work. You can do this by using phpmyadmin.

Share this post


Link to post
Share on other sites
On 7/3/2018 at 6:19 PM, gio1961 said:

The loa.sql file is missing, which you can download from here: https://github.com/carriercomm/phpvms_loa

Use the loa.sql file to create the table necessary for the module to work. You can do this by using phpmyadmin.

Thank you that table has now been added to my DB, however im having a few issues & none of the above answers or fix's look like any of the code i have, ill attach pictures so you can see.

I hope you can help me.

Kind Regards Harry 

2018_07_04_18_21_40_Leave_of_Absence_Req 2018_07_04_18_21_55_php_VMS_Admin_Panel_

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

×