Booking

A brief explanation of what I want to do:

Currently, we are selling offer of adriatic.hr agency within our websites, we put adriatic.hr property listings on our pages
within iframe.
Example: http://www.makarskainfo.com/promajna/promajna-apartments.htm
This is a adriatic.hr offer for place Promajna, and it is put in our content item within
iframe (left wide column).

We still want to sell their offer, but in the same time we want to put our own offer trough our new
booking/listing property system that you made. When we have enough properties of our own,
we shall remove completely their offer.

However, since we cannot mix two booking systems at the same time on our pages, in the first phase,
we plan to sell our own offer (trough our new booking system) only from the right column as
"featured properties". So, our webpages will remain the same, it will have adriatic.hr offer as
now, but will additionally have "featured property" of our own in the right column.


Since both listings look the same, the user will not see the diference.
When he clicks on some of the featured properties, he will see our offer, and when he clicks on any other, he will se
adriatic.hr offer.

So, basically, what I want to do now, is only have a featured property module in the right side for
our new booking system, and ability to manipulate with featured properties, the way that I can put
any number of properties I want, and also diferent featured properties for diferent
categories.

For example, In category "Promajna" on this web page:

http://www.makarskainfo.com/promajna/promajna-apartments.htm

in the left column will stay adriatic.hr offer within iframe as now, while in the right column,
there will be featured properties from our offer (our booking system) from Promajna.

So, now, the only question is how to control new booking system from right module "featured properties"

I belive from your CMS, there should be separate php files for "property listing" and "featured property" code, see additional info down:

The new booking system property listing comes here within iframe. Example code will look like this:

""iframe style="position: relative" height="2250px" width="612px" frameborder="0"
src="http://www.vakance.hr/book/property.php?id=444" name="adr_frame">""

So when someone comes to this content item (url = http://www.vakance.hr/booking.htm ) he will see property 444 (within iframe)

To be able to put property listing in iframe in this content item, you need to remove footer, header, and right column in your CMS, so that only property listing remains,
aproximatelly 612 width and 2250 height.

So, the content of this content item (url = http://www.vakance.hr/booking.htm ) needs to be
controled by the "featured properties" module from the right side. Depending on featured property that user
clicks, there will be diferent content within iframe in this item.

How to achieve this ?

We already did it with module "Accommodation search" (in the upper part of right column). If you try search with this module (by date, or place), you will se that always "url = http://www.vakance.hr/accommodation/dalmatia-croatia.htm" appears as result.

Thi is because when particular date or place is selected, the module sends POST variables to url
http://www.vakance.hr/accommodation/dalmatia-croatia.htm, and based on this post variables,
content within iframe changes (you can see the code of module under "view source" in browser"

In this case, in content item (http://www.vakance.hr/accommodation/dalmatia-croatia.htm),
there is a php code included, which looks like this:

""php
defined( '_VALID_MOS' ) or die( 'Restricted access' ); //security reasons
if (mosGetParam ( $_POST, 'clid', '' ) != "") { extract($_POST);
} echo ""iframe
src="http://www.adriatic.hr/search_simple.php?clid='.$clid.'&cltype='.$cltype.'&cw='.$cw.'
&sd='.$sd.'&sm='.$sm.'&ed='.$ed.'&em='.$em.'&pno='.$pno.'&vsm='.$vsm.'&geo='.$geo.'&lang='.$langv.'&lang=en&pdist=1" style="position: relative;" name="adr_frame" frameborder="0"
height="2100" width="612">'; } ""

This file can be found in /public_html/includes/jumi on vakance server.

So, basically, the content of iframe in http://www.vakance.hr/accommodation/dalmatia-croatia.htm is controlled by POST variables sent from module from the right column.

The same way, I want to control content of http://www.vakance.hr/booking.htm by sending POST

variables from right column module "featured property". If user clicks featured house 444,

POST variable will be sent to http://www.vakance.hr/booking.htm, and property 444 will be shown in iframe.



Now, I will publish a separate "featured property" module for each category.

For example: in http://www.makarskainfo.com/promajna/promajna-apartments.htm

there will be "featured property" module published only for Promajna, in this module can be put

separate code only for properties from Promajna.

That means, I would have to be able to set somewhere in CMS featured properties only for Promajna,

and include this featured php code in module for Promajna. Later if I add another property in

Promajna (trough backend in CMS), it will appear in module. So basically, I need solution in

CMS and module so that I control this featured properties.

I am not sure if it is clear what I want :) please contact me for any questions. I think this all

sounds much more complicated then it really is.
 
Secure server   Vakance travel agency
 Croatian tourist board Croatian tourist agencies association