Integration (Additional functions)
In additional functions, we have various displaying hotel logo, hotel main picture and 3 versions to display featured hotels chosen to promote your own website.
Functions to display hotel logo and main picture
Hotel logo :

Hotel logo can be shown by copying  the code provided. Hotel number (h) is assigned for each hotel and can be change. Please find for example as below.

This sample is for h=677122
<img src="http://th.r24.org/R24pic.php?h=677122&i=logo">

This sample is for h=620115
<img src="http://th.r24.org/R24pic.php?h=620115&i=logo">

Hotel main picture and thumbnails :

Hotel main picture and thumbnails can be shown by copying the code provided. Please find for example as below.

This sample is for h=677122

<img src="http://th.r24.org/R24pic.php?h=677122&i=main">


The default size is 300x200 pixel.
This sample is for h=620115

<img src="http://th.th66.com/R24pic.php?i=icon&h=620115">


The default thumbnail size is 90x60 pixel.

<img src="http://th.th66.com/R24pic.php?i=icon&h=620115&x=120&y= 80">


The optional thumbnail size of 120x80 pixel.
Hotel location map :

Hotel location map can be shown by copying the code provided. Please find for example as below.
Note: This only work if your host has PHP and url-include enabled.
Otherwise use the XML functions to retrieve coordinates and use Google maps directly.

This sample is for h=677122

<img src="<? @include("http://th.th66.com/R24map.php?h=677122") ?>">
where partnerID is your registered agent domain name.


The default size is 200x200 pixel.
This sample is for h=620115

<img src="<? @include
("http://th.th66.com/R24map.php
?h=620115&x=160&y=80&z=14") ?>">


map size is 160x80 pixel.

Parameters h (hotel number) is required.
x, y are optional map sizes (default is 200x200)
z is an optional map zoom level (default is 12)
Functions Hotel Hot Deal
R24 provide hotel hot deal by region. Please find for example as below.

<a href="http://www.r24db.com/xml/R24hotelpromotion.php?p=PARTNER&r=bangkok" target="_blank">
<img alt="" style="border:0" src="http://www.r24db.com/html/imgpromote/bangkokpromotion.jpg"></a>

The default size is 200x200 pixel.
Functions to display banner
R24 provide banner by region. Please find for example as below.

<a href="http://www.r24db.com/xml/R24hotelpromotion.php?p=PARTNER&r=bangkok" target="_blank">
<img alt="" style="border:0" src="http://www.r24db.com/html/imgbanner/R24- bangkok-banner300x250.jpg"></a>

The default size is 300x250 pixel.
Functions to display featured hotels
There are 3 versions of featured hotels in each region of Thailand for your prompt use as per providing code for your appropriate.
Vertical version :

PHP statement is
echo file_get_contents ("http://www.r24db.com/xml/R24dbfeature.php?r=krabi&l=4&p=PARTNER");

p = PARTNER-ID (e.a. your domain name), r = region, l = number of icons

Horizontal version :

PHP statement: is
echo file_get_contents ("http://www.r24db.com/xml/R24dbfeatureH.php?r=krabi&l=5&p=PARTNER");

Featured & recommended hotels in Krabi by PARTNER
Aonang Mountain View Hotel Aonang Mountain View
Ao Nang
from THB 1692
Baan Dinlamun Resort Baan Dinlamun Resort
Ao Nang, Nopparattar
from THB 3500
The Beacha Club The Beacha Club
Phi Phi Island, Loh
from THB 1980

Scrolling version :

<iframe id="R24frame" name="R24frame" src="http://www.r24db.com/xml/R24dbroller.php?r=phuket&p=PARTNER" frameborder="0" style="border:0; margin:0; height:145px; width:100%"></iframe>

Featured Hotels
675005
Aonang Mountain View
Ao Nang
from THB 1692
675031
Baan Dinlamun Resort
Ao Nang, Nopparattara
from THB 3500
krabi hotels