HOW TO show occupancy calendar on Front-End?

Talk and help info about common issues

Moderator: alexandrleonenko

Site Admin
Site Admin
Posts: 6191
Joined: Jan 7th, '09, 23:18

HOW TO show occupancy calendar on Front-End?

Postby administrator » Apr 26th, '12, 16:22

This is a very simple operation.

1. Copy admin/modules/mod_booking_rooms_occupancy.php file to pages/ folder.

2. Remove or comment following IF, ELSE command at the top and bottom of the page:

Code: Select all

//if($objLogin->IsLoggedInAsAdmin() &&
//   (Modules::IsModuleInstalled('booking') && (ModulesSettings::Get("booking", "is_active") == "yes"))
// ){

Code: Select all

//   draw_title_bar(_ADMIN);
//   draw_important_message(_NOT_AUTHORIZED);

3. In code of the file replace $http_request_vars = array('admin'); with $http_request_vars = array('page');

That's all!

Now you may call this page via browser, by typing:

Return to “ApPHP Hotel Site {HOW TO}”