HOW TO show popup calendar in Search Availability widget?

Talk and help info about common issues

Moderators: ne_moj, zewa

administrator
Site Admin
Site Admin
Posts: 5938
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO show popup calendar in Search Availability widget?

Postby administrator » Dec 5th, '12, 18:59

By default showing popup calendar in Search Availability widget is turned off.

Search Availability Widget create an iframe on the site where you place it's code.
Popup calendar is a part of this iframe and it can be shown only inside this frame.
So.. to solve this problem you have to do following:

1. Open widgets/ipanel-left/main.js file, find there following definition

Code: Select all

myIframe.width = 215;
and increase the with according to your needs.

2. Open widgets/ipanel-left/index.php file, find there following definition

Code: Select all

Rooms::DrawSearchAvailabilityBlock(false, '', 8, 3, false, $host, '_parent', true);
and change first parameter to be TRUE:

Code: Select all

Rooms::DrawSearchAvailabilityBlock(true, '', 8, 3, false, $host, '_parent', true);


That's All! You now may see a popup calendar in your widget.

Return to “ApPHP Hotel Site {HOW TO}”