Room Management with Custom Price Calendar is a simple way to custom your room price for special date like weekend price, holiday price, and other event.
You can also add/edit room and change the status of availabilty for each room.
This is just part of a feature that you can easily integrate for your book system like hotel, guest house, or just room rent.
Created: 11/12/2016. Latest Update: 16/02/2022
Crafted with love by Otakita

The basic framework for this program is use CodeIgniter that we have a lot of modification. But we hope you can easily understanding.
We will give short explanation below :
File calendar.otakita.js (public_html/asset/js/) is responsible for rendering the calendar. You can read the basic calendar tutorial in here.
We use data array for rendering data price and blocking in calendar. Format array data is like below :
Here the explanation :
For render calendar, first you can instance class Calendar() from calendar.otakita.js. You will need 3 parameters like array data like above, month data (format: mm), and year data (format(YYYY).
Specifically for month data, starting data is from 00 for Janurary to 11 for December.
Below is the example :
cal = new Calendar(json.dataEvent, json.month, json.year);
cal.generateHTML();
$("#calendarData").html(cal.getHTML());