include ("includes/header.php"); ?> $preview=$_POST['preview']; $property_id=$_REQUEST['property_id']; if ($preview==1) $result=mysql_query(" SELECT * FROM properties WHERE property_id=$property_id "); else $result=mysql_query(" SELECT * FROM properties WHERE property_id=$property_id AND status>10 "); $num=mysql_numrows($result); if ($num<1 && $preview=='') echo ""; $user_id=mysql_result($result,0,"user_id"); $country=mysql_result($result,0,"country"); $city=mysql_result($result,0,"city"); $saletype=mysql_result($result,0,"saletype"); $property=mysql_result($result,0,"property"); $feature=mysql_result($result,0,"feature"); $size=mysql_result($result,0,"size"); $level=mysql_result($result,0,"level"); $price=mysql_result($result,0,"price"); $price_type=mysql_result($result,0,"price_type"); $currency=mysql_result($result,0,"currency"); $parking=mysql_result($result,0,"parking"); $garden=mysql_result($result,0,"garden"); $terrace=mysql_result($result,0,"terrace"); $balcony=mysql_result($result,0,"balcony"); $concierge=mysql_result($result,0,"concierge"); $gym=mysql_result($result,0,"gym"); $custom1=mysql_result($result,0,"custom1"); $custom2=mysql_result($result,0,"custom2"); $custom3=mysql_result($result,0,"custom3"); $custom4=mysql_result($result,0,"custom4"); $custom5=mysql_result($result,0,"custom5"); $custom6=mysql_result($result,0,"custom6"); $title=mysql_result($result,0,"title"); $description=mysql_result($result,0,"description"); $default_pic=mysql_result($result,0,"pic"); $lat=mysql_result($result,0,"lat"); $lng=mysql_result($result,0,"lng"); $zoom=mysql_result($result,0,"zoom"); $marker=mysql_result($result,0,"map_marker"); $price_display=number_format ($price, 0, '.', ','); $currency_symbol=$currencies[$currency]; if ($currency_symbol=="") $currency_display=$currency; if ($preview=='1') echo "
";
if ($price>0)
echo "$currency_symbol $price_display $currency_display $price_type
"; echo "$feature $property "; if ($size>0) echo "Size: $size sqm"; if (strlen($level)>0) echo ", level: $level "; else echo " "; if ($parking==1) echo "- Parking "; if ($garden==1) echo "- Garden "; if ($terrace==1) echo "- Terrace "; if ($balcony==1) echo "- Balcony "; if ($concierge==1) echo "- Concierge "; if ($gym==1) echo "- Gym "; if (strlen($level)>0) echo "- Level: $level "; if (strlen($custom1)>0) echo "- $custom1 "; if (strlen($custom2)>0) echo "- $custom2 "; if (strlen($custom3)>0) echo "- $custom3 "; if (strlen($custom4)>0) echo "- $custom4 "; if (strlen($custom5)>0) echo "- $custom5 "; if (strlen($custom6)>0) echo "- $custom6 "; echo " Print Listing "; echo ""; $action=$_REQUEST['action']; if ($action=="email_friend") { $friend_email=$_POST['friend_email']; $your_email=$_POST['your_email']; $to_address=$friend_email; $from_address=$your_email; $from_name=$site_title; $subject=$site_title." Property Information Request"; $body = FRIEND_TEXT1." http://$domain/property-$property_id.php Friend's email: $your_email ".FRIEND_TEXT2; //Only send if both addresses verify $result=VerifyEmail($friend_email); $verify=0; if($result[0]) $verify++; $result=VerifyEmail($your_email); if($result[0]) $verify++; if ($verify>1) { // consider the email headers to avoid junk filters $headers = "MIME-Version: 1.0\r\n" ."Content-Type: text/plain; charset=utf-8\r\n" ."Content-Transfer-Encoding: 8bit\r\n" ."From: =?UTF-8?B?". base64_encode($from_name) ."?= <$from_address>\r\n" ."X-Mailer: PHP/". phpversion(); mail($to_address, $subject, $body, $headers, "-f $from_address"); echo " "; } else echo " "; } echo " |