Holiday Rentals
Sorry we currently have no properties.";
}
else{
while($row = mysql_fetch_array($result)){
$result1 = substr($row['Property_Area'], 0, 2);
if ($result1 == "--") {
$result1 = "Dalyan - ";
}
else {
$result1 = "";
}
$result2 = str_replace('-', '', $row['Property_Area']);
if ($result2 == "Arikbasi") {
$result2 = "Arıkbaşı";
}
if ($result2 == "Candir") {
$result2 = "Çandır";
}
if ($result2 == "Marmarli") {
$result2 = "Marmarlı";
}
if ($result2 == "Ataturk Bulvari") {
$result2 = "Atatürk Bulvarı";
}
if ($result2 == "Gulpinar") {
$result2 = "Gülpınar";
}
if ($result2 == "Osmanagalar") {
$result2 = "Osmanağalar";
}
if ($result2 == "Gocek") {
$result2 = "Göcek";
}
if ($result2 == "Sarigerme") {
$result2 = "Sarıgerme";
}
if ($result2 == "Koycegiz") {
$result2 = "Köyceğiz";
}
if ($result2 == "Maras") {
$result2 = "Maraş";
}
if ($result2 == "Okcular") {
$result2 = "Okçular";
}
else {
$result2 = $result2;
}
echo "";
echo "";
echo "";
}
}
?>
".$result1.$result2."
"; $imagelink = $row['Reference_No']; $propertylink = rtrim($row['Property_Name']); $propertylink = str_replace(' ', '-', $propertylink); $string = $row['Property_Description']; list($shortdesc) = explode("\n",wordwrap($string,370)); if ($row['Disclaimer'] == "") { $disclaimer = ""; } else { $disclaimer = "*"; } if ($row['Property_Status'] == "For Rent") { $valuation = $row['Valuation']; if ($valuation == "") { } else { $valuation = "(".$row['Valuation'].")"; } $price = number_format($row['Property_Price']); $biri = $row['birim']; $status = "Price: ".$price.$disclaimer.$biri." "; } else { $status = $row['Property_Status']; } $date = $row['Date']; echo "";
if(strtotime($date)>strtotime("-30 days")){
$search_dir = "properties/".$row['Reference_No'];
$images = glob("$search_dir/*.[jJ][pP][gG]");
sort($images);
if (count($images) > 0) { // make sure at least one image exists
echo " ";
}
}
echo "";
echo "";
echo "
";
echo "".$row['Property_Name']."
"; echo "".$row['Property_Summary']."
";
if(!empty($row['Plot_Size'])) {echo "Plot Size: ".$row['Plot_Size']; }
echo "
";
echo "";
if(!empty($row['Number_of_Bedrooms'])) {echo "Bedrooms: ".$row['Number_of_Bedrooms']; }
echo "
";
echo "";
if(!empty($row['Number_of_Bathrooms'])) {echo "Bathrooms: ".$row['Number_of_Bathrooms']; }
echo "
";
echo "".$shortdesc."...
"; echo "".$status."
";
echo "Reference No: ".$row['Reference_No']."
";
echo "