[insert_php]
//VARS
$path = ‘https://secure.phobs.net/booking.php’;
$company_id = ‘?company_id=7dd9b6528053493fbe01a46d7d124eb5’;
$hotel = ’11a532c6c63ee8acec44aexxxxxxxxxx ‘;
$object = ”; //Same as $hotel_id
$date = ”;
$check_in_day = ’19’;
$check_in_month = ‘3’;
$check_in_year = ‘2016’;
$check_out_day = ’21’;
$check_out_month = ‘3’;
$check_out_year = ‘2016’;
$nights = ‘2’;
$lang = ‘hr’;
$partners_access = ”;
$package = ”;
$rate = ”;
$booking = ”;
$unit_id = ”;

//COMPANY
if($_GET[‘company_id’]) $company_id = ‘?company_id=’.$_GET[‘company_id’];

//HOTEL – OBJECT ()
if($_GET[‘hotel’]) $hotel = ‘&hotel=’.$_GET[‘hotel’];
if($_GET[‘object’]) $object = ‘&object=’.$_GET[‘object’];

//DATE
if($_GET[‘check_in_day’]) $check_in_day = ‘&check_in_day=’.$_GET[‘check_in_day’];
if($_GET[‘check_in_month’]) $check_in_month = ‘&check_in_month=’.$_GET[‘check_in_month’];
if($_GET[‘check_in_year’]) $check_in_year = ‘&check_in_year=’.$_GET[‘check_in_year’];
if($_GET[‘check_out_day’]) $check_out_day = ‘&check_out_day=’.$_GET[‘check_out_day’];
if($_GET[‘check_out_month’]) $check_out_month = ‘&check_out_month=’.$_GET[‘check_out_month’];
if($_GET[‘check_out_year’]) $check_out_year = ‘&check_out_year=’.$_GET[‘check_out_year’];
if($_GET[‘date’]) $date = ‘&date=’.$_GET[‘date’];

//LANG
if($_GET[‘lang’]) $lang = ‘&lang=’.$_GET[‘lang’];

//NIGHTS
if($_GET[‘nights’]) $nights = ‘&nights=’.$_GET[‘nights’];

//PACKAGE
if($_GET[‘package’]) $package = ‘&package=’.$_GET[‘package’];

//RATE
if($_GET[‘rate’]) $rate = ‘&rate=’.$_GET[‘rate’];

//PROMO CODE
if($_GET[‘partners_access’]) $partners_access = ‘&partners_access=’.$_GET[‘partners_access’];

//DISTRIBUTION CHANNEL ID
if($_GET[‘distribution_channel_id’]) $distribution_channel_id = ‘&distribution_channel_id=’.$_GET[‘distribution_channel_id’];

//CURRENCY
if($_GET[‘currency’]) $currency = ‘&currency=’.$_GET[‘currency’];

//UNIT ID
if($_GET[‘unit_id’]) $unit_id = ‘&unit_id=’.$_GET[‘unit_id’];

//PROPERTY TYPE
if($_GET[‘property_type’]) $property_type = ‘&property_type=’.$_GET[‘property_type’];

//MODIFY/CANCEL RESERVATION
if ($_GET[‘view_cancel’] == ‘1’) {
$booking = $path.$company_id.$lang.’&view_cancel=1′;
} else {
//FINAL
$booking = $path.$company_id.$hotel.$object.$date.$nights.$lang.$partners_access.$distribution_channel_id.$package.$rate.$currency.$unit_id.$check_in_day.$check_in_month.$check_in_year.$check_out_day.$check_out_month.$check_out_year.$property_type;
}
[/insert_php]

Online Booking



My Hotel

Online Booking – iframe example


Visual display of booking steps will be adjusted by PHOBS support team so it can completely look like the integral part of your website.

Please wait!
Loading booking information

[insert_php]
$str = “Hello world!”;
echo $str;
[/insert_php]


 

Podijeli ovo