"; //$hidden_fields .= ""; $hidden_fields .= ""; // $hidden_fields .= ""; } else { return ""; } if ($checkin == "") { if ($gcheckin != "") { $checkin = $gcheckin; $checkin = date("Y-m-d", mktime(0, 0, 0, substr($checkin, 5, 2) + 0, substr($checkin, 8, 2) + 0, substr($checkin, 0, 4))); } else { $tomorrow = mktime(0, 0, 0, date("m"), date("d") + $config_abl["default_start_checkin"], date("Y")); $checkin = date("Y-m-d", $tomorrow); } } else { $checkin = date("Y-m-d", mktime(0, 0, 0, substr($checkin, 5, 2) + 0, substr($checkin, 8, 2) + 0, substr($checkin, 0, 4))); } if (strtotime($checkin) < strtotime(date("Y-m-d"))) { $tomorrow = mktime(0, 0, 0, date("m"), date("d") + $config_abl["default_start_checkin"], date("Y")); $checkin = date("Y-m-d", $tomorrow); } if ($nights == "") { if ($gnights != "") { $nights = $gnights; } else { $nights = $config_abl["default_nights"]; } } if ($rooms == "") { if ($grooms != "") { $rooms = $grooms; } else { $rooms = $config_abl["default_rooms"]; } } $org["checkin"] = $checkin; $org["rooms"] = $rooms; $org["nights"] = $nights; $bln = (int)substr($checkin, 5, 2); $thn = (int)substr($checkin, 0, 4); $dt = (int)substr($checkin, 8, 2); $output_ci = ""; $output_ci .= ""; $output_ci .= ""; $output_ni = ""; $output_ro = ""; $out = <<< EOT
Check In {$output_ci}  Nights {$output_ni}   Rooms {$output_ro} {$hidden_fields}
EOT; return $out; } $package = get_package_rate(); ?> Reservation | Puri Raja Hotel - Legian - Bali

Puri Raja Hotel – Legian – Bali

Puri Raja Hotel has a superb location right on the famous Legian Beach, Kuta

Reservation


=pvalidity1_start && '{$CID}'<=pvalidity1_end,'1', IF('{$CID}'>=pvalidity2_start && '{$CID}'<=pvalidity2_end,'2','0')) AS 'val' FROM ablpackage WHERE org_id=';{$org[id]};' AND (('{$CID}'>=pvalidity1_start && '{$CID}'<=pvalidity1_end) || ('{$CID}'>=pvalidity2_start && '{$CID}'<=pvalidity2_end) || ('{$CID}'>=pvalidity3_start && '{$CID}'<=pvalidity3_end) || ('{$CID}'>=pvalidity4_start && '{$CID}'<=pvalidity4_end) || ('{$CID}'>=pvalidity5_start && '{$CID}'<=pvalidity5_end) ) "; //echo $sql."
"; $result = open_mysql("abldata", $sql); open_mysql("close"); if (mysql_num_rows($result) > 0) { $out .= " Package Available

"; $main_rate = true; while ($linex = mysql_fetch_array($result, MYSQL_ASSOC)) { //if ($linex[val] != "0") { //$x = "pvalidity{$linex[val]}_end"; //$sql = "SELECT *,date_format(pvalidity_end,'%b %e, %Y') AS 'tgl' FROM ablpackage_rate WHERE pcode='{$linex[pcode]}' AND pvalidity_end='{$linex[$x]}' "; $sql = "SELECT *,date_format(pvalidity_end,'%b %e, %Y') AS 'tgl' FROM ablpackage_rate WHERE pcode='{$linex[pcode]}' AND '{$CID}'>=pvalidity_start AND '{$CID}'<=pvalidity_end "; $rst = open_mysql("abldata", $sql); open_mysql("close"); $R = mysql_fetch_array($rst, MYSQL_ASSOC); $url_detail = "/bali_special_package/package_list/{$linex[id]}.html" . (($affiliate_id) ? "?affiliate_id={$affiliate_id}" : ""); $out .= ""; $out .= "
"; $out .= "

" . stripslashes($linex[pname]) . "
"; $out .= "Valid until {$R[tgl]} and based on twin sharing per person

"; $url_book = "BOOK"; $rate_single = $R["pcur"] . " " . number_format($R["prate_single"]); $rate_double = $R["pcur"] . " " . number_format($R["prate_double"]); if ($R["prate_triple"] > 0) { $rate_triple = $R["pcur"] . " " . number_format($R["prate_triple"]); } else { $rate_triple = "NOT AVAILABLE"; } $out .= "
from {$rate_double}

\n"; //} } } ###################################################################### } return $out; } ?>