|
$file = "http://dawn-travel.net/progs/hotelrates/citylist.phtml?datefrom=$datefrom&dateto=$dateto";
$scriptfile = "http://dawn-travel.net/misc/functions.js";
if(ereg("wwwroot",$PATH_TRANSLATED)){
$scriptfile = "http://remote/dawn-travel/misc/functions.js";
$file = "http://remote/dawn-travel/progs/hotelrates/citylist.phtml?datefrom=$datefrom&dateto=$dateto";
}
echo "";
$fd = fopen ("$file", "r");
while (!feof ($fd)) {
$buffer = fgets($fd, 4096);
echo $buffer;
}
fclose ($fd);
?>
|
$city = urlencode($city);
$file = "http://dawn-travel.net/progs/hotelrates/xml.phtml?city=$city&datefrom=$datefrom&dateto=$dateto";
if(ereg("wwwroot",$PATH_TRANSLATED)){
$file = "http://remote/dawn-travel/progs/hotelrates/xml.phtml?city=$city&datefrom=$datefrom&dateto=$dateto";
}
$thesql="select to_days('$dateto') - to_days('$datefrom') as datediff, date_format('$datefrom','%d %b %Y') as displaydatefrom , date_format('$dateto','%d %b %Y') as displaydateto";
$result=mysql_query($thesql);
$diff = mysql_result($result,0,"datediff");
$diffphrase=($diff>1)?"$diff nights":"$diff night";
$displaydatefrom=mysql_result($result,0,"displaydatefrom");
$displaydateto=mysql_result($result,0,"displaydateto");
include( "rax.phtml");
# Create new RAX objectS
$rax = new RAX();
$rec = new RAX();
# Open the XML document
$rax->openfile($file);
# Select the individual record delimiter
$rax->record_delim = 'room';
# Start parsing the XML document
$rax->parse();
# Read the first record
$rec=$rax->readRecord();
if (!$rec){include("xml2.phtml");}
else {
$x=1;
?>
| Hotel Prices |
Print | Close
|
Rates in USD PER ROOM PER NIGHT including tax
between ="$displaydatefrom and $displaydateto";?>
Hotel rooms subject to availablity at time of booking
Click at the price to book, Or if you have any inquire press Contact us
|
$norecords = 0;
while ( $rec )
{$norecords=1;
$row = $rec->getRow();
$hotel=$row["hotel"];
$sfrom=$row["sfrom"];
$displaydatefrom=$row["displaydatefrom"];
$displaydateto = $row["displaydateto"];
$sto=$row["sto"];
$twin=number_format($row["twin"],2);
$single=number_format($row["single"],2);
$triple=number_format($row["triple"],2);
$quad=number_format($row["quad"],2);
$twinchild=number_format($row["twinchild"],2);
$cot=$row["cot"];
$bfst=$row["bfst"];
$bfst=($boarddes[$bfst])?($boarddes[$bfst]):("");
$bfst=MyFormat("",$bfst);
$pricenote=MyFormat("",$row["pricenote"]);
$country=$row["country"];
$city=$row["city"];
$category=str_repeat("* ",$row["category"]);
$location=MyFormat(" Location: ",$row["location"]);
$note=MyFormat(" Note: ",$row["note"]);
$currency=$row["currency"];
$class=MyFormat(" Rooms: ",$row["class"]);
$address=MyFormat("",$row["address"]);
$amenities=MyFormat(" ",$row["amenities"]);
$description=MyFormat(" ",$row["description"]);
$prefix=$row["prefix"];
$phone=$row["phone"];
$phone=($phone)?(" Phone: ". $prefix."-".$phone):("");
$fax=$row["fax"];
$fax=($phone)?("Fax: ". $prefix."-".$fax):("");
$thenote='';
if ($x==1 | $temphotel!=$hotel){
$temphotel=$hotel;
if ($x>1){echo "
| \n";}
echo "\n";
if ($x==1){echo "| Hotels in $country $city | ";}
$x++;
echo "|
$temphotel $category
$note $phone $fax $address $class $amenities $description | \n";
echo "\n| Single | Twin | Triple | Twin+Child | Valid From | Valid To |
Notes |
|
\n";
}
$thesentence="sentence=Please, I need to book in $temphotel newlineArrival Date : $displaydatefrom newlineDeparture Date : $displaydateto newlineSingle room(s) __ newlineTwin room(s) __newlineTriple room(s) __newline&case=2&dep=hotel-booking";
echo "
| $single |
$twin |
$triple |
$twinchild |
$displaydatefrom |
$displaydateto |
$pricenote $bfst |
BOOK
|
\n
";
$totalprice = "$" .$totalprice * $diff;
$totalprice=($thenote)?($thenote):("
$totalprice Valid Between $displaydatefrom and $displaydateto");
$rec = $rax->readRecord();
}
if (!$norecords){Echo "Sorry, there is no match for your query Please check city spelling again, or contact us by clicking at the link above";}
?>
|
}
?>
|