Blog

jQuery Holiday Calendar was developed to be integrated in any framework written in PHP.

jQuery Holiday Calendar

jQuery Holiday Calendar

¬†jQuery Holiday Calendar was developed to be integrated in any framework written in PHP. It’s a sandbox software which allows your employees to book and manage their holidays through a easy-to-use interface. Because it was entirely built in jQuery, it is compatible with smart-phones such as Android and iOS (iphone, ipad, etc).

jQuer Holiday Calendar will be integrated to PronsPro Framework and jT CarFramework 2 Series which will be made available soon. Of course, we will build the administrator’s holiday manager and integrate it with its respective databases.

Demo

Curious to see how it looks like? Check it out our live demo below:

Click here to see it live

 

Documentation

Interested to see how it works? We wrote an initial documentation (for developers). The entire source code is well documented making it really simple to implement and integrate.

################################################################################
# Loading lightbox methods
################################################################################
cl_display_loading()
Display loading lightbox.

cl_hide_loading()
Hide loading lightbox.

cl_set_loading_title('string')
Sets the loading lightbox title.

cl_set_loading_message('string');
Sets the loading lightbox message.

cl_disable_loading_animation()
Hides the loading animation (gif).
################################################################################
# Foot message box methods
################################################################################
cl_footer_message( message, is_error )
Display a message on the foot message wrapper.
################################################################################
# Initialization process
################################################################################
:: auto_loader()
|_ get data from cl_auto_login.php. @param: sid
| |
__| |______________________________
| |
success fail
|_ set user data to var cl_user_data. |_ display login form.
|_ :: cl_load_booked_holiday_list()
______________| |_______________________________
| |
success fail: display login form.
|_ :: cl_load_national_holidays_list()
__| |___________________________________________
| |
success fail
|_ :: cl_load_ui() display login form. _|

################################################################################
# Login initialization process
################################################################################
:: cl_login_handler() - onsubmit
___| |________________________________________________
| |
success fail: do nothing.
|_ :: cl_load_booked_holiday_list()
___________| |_______________________________
| |
success fail: display login form.
|_ :: cl_load_national_holidays_list()
____| |___________________________________________________
| |
success fail
|_ :: cl_load_ui() display login form. _|
################################################################################
# Configuration
################################################################################
Configuration options can be set at cl-init.js with the following options:

cl_start_calendar_at_day = 1; // Start week at the following options:
// Saturday = 6 | Sunday = 0 | Monday = 1 (line:52)
cl_allow_book_saturday = true; // Allow saturday booking. TRUE | FALSE (line:55)
cl_allow_book_sunday = false; // Allow sunday booking. TRUE | FALSE (line:56)

################################################################################
# Server side handlers (PHP)
################################################################################
All requests are sent through POST request to PHP scripts which handles the
request and returns information or/and status to the interface.
The data sent to PHP and response data is documented by code-comment. The
following describes the functionalities of each PHP file:

:: cl_auto_login.php
Allows you to add login to users already authenticated by your framework doesn't
have to login again.

:: cl_book_new_holidays_handler.php
Handles save new holidays booked by user.

:: cl_booked_holidays_loader.php
Returns the current user's holidays list, including past dates.

:: cl_national_holidays.php
Returns a list of dates which cannot be booked (hence national holidays).
National holidays are not bound by year but, by date and month.

:: cl_remove_booked_date.php
Booked holidays can be cancelled by the use IF the date still not expired. This
script handles the removal process.

:: cl_validate_login_handler.php
If the cl_auto_login.php is not used, the login form is displayed so users can
authenticate. This script is used to validate the login information.

################################################################################
# Browser Support
################################################################################
IE 8+ and above (due JSON class). Alternativelly, you can use json2.js (download
at https://github.com/douglascrockford/JSON-js/) to support older browsers.

IE 8+
FireFox 28+
Chrome 33+
Safari 7+
Opera 22+
iOS Safari 4.0+
Opera Mini 5.0+
Android Browser 2.1+
Blackberry Browser 7.0+
IE Mobile 10+

OS: irrelevant

Leave a Comment

Your email address will not be published. Required fields are marked *

     

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>