'txtLang','name'=>'txtLang'); $translator->getLanguagesSelectBox($selectbox); session_start(); $e = $_GET["e"]; $s = $_GET["s"]; if($_SESSION['sess_user_login_id'] > 0 ){ $myuserid=$_SESSION['sess_user_login_id']; if($myuserid != ""){ $myLeoUserinfo = get_LeoUserinfo($myuserid); $myrealname = $myLeoUserinfo{'realname'}; $mytype = $myLeoUserinfo{'type'}; $myemail = $myLeoUserinfo{'email'}; $myphone = $myLeoUserinfo{'phone'}; $mycell = $myLeoUserinfo{'cell'}; } }else{ } if($myemail == ''){ $myemail = $e; } if(isset($_GET["a"]) && $_GET["a"] > 0 ){ $myLeoTeamUserinfo = get_LeoTeamUserinfo($_GET["a"]); $myfirstname = $myLeoTeamUserinfo{'firstname'}; $mycellphone = $myLeoTeamUserinfo{'cellphone'}; }else{ $myfirstname = 'Leo'; $mycellphone = '416.836.6826'; } if(sizeof($_POST) > 0 || sizeof($_GET) > 0) { // true if form has been submitted if($_GET["pid"]>0 || $_POST["pid"]>0){ $pid = $_GET["pid"]; $row = GetCREAPropertyInfoByPID($pid); $MLS = $row['MLS']; $Paddress = $row['Address_StreetAddress']; $AskingPrice = $row['Price']; $AskingPriceString = number_format($AskingPrice); $ContactDate = $row['ListingLastUpdated']; $RealDOM_tmp = strtotime(date("Y-M-d")) - (strtotime($ContactDate)); $RealDOM = floor($RealDOM_tmp/3600/24)+1; $Bedrooms = $row['Building_BedroomsTotal']; $Washrooms = $row['Building_BathroomTotal']; $Province = $row['Address_Province']; $City = $row['Address_City']; $PostalCode = $row['Address_PostalCode']; $PLatitude = $row['PLatitude']; $PLongitude = $row['PLongitude']; $PtypeA = $row['Building_ConstructionStyleAttachment']; $PtypeB = $row['Building_Type']; $OwnershipType = $row['OwnershipType']; $Fulldescription = $row['PublicRemarks']; $Fulldescription = preg_replace("/\([^)]+\)/","",$Fulldescription); $Fulldescription = preg_replace("/\'/","~q~",$Fulldescription); $Fulldescription = preg_replace("/\"/","~qq~",$Fulldescription); //str_replace(array( '(', ')' ), '', $Fulldescription); $FulldescriptionShort = substr($Fulldescription, 0, 300); $FulldescriptionShort .= "... More"; $theimages = array(); if(preg_match("/^164[4-9]/", $pid) || preg_match("/^165[5-6]/", $pid) ){ $image_server = "www.wisedeal.ca"; }elseif(preg_match("/^164[2-3]/", $pid) || preg_match("/^165[7-9]/", $pid)) { $image_server = "www.i4cc.ca"; }elseif(preg_match("/^166000/", $pid)) { $image_server = "104.222.123.207"; }else{ $image_server = "www.leozhang.ca"; } //$last3string = substr($MLS, -3); $img1 = "http://".$image_server."/images/crea/".$pid."_1.jpg"; $img2 = "http://".$image_server."/images/crea/".$pid."_2.jpg"; $img3 = "http://".$image_server."/images/crea/".$pid."_3.jpg"; $img4 = "http://".$image_server."/images/crea/".$pid."_4.jpg"; $img5 = "http://".$image_server."/images/crea/".$pid."_5.jpg"; $img6 = "http://".$image_server."/images/crea/".$pid."_6.jpg"; $img7 = "http://".$image_server."/images/crea/".$pid."_7.jpg"; $img8 = "http://".$image_server."/images/crea/".$pid."_8.jpg"; $img9 = "http://".$image_server."/images/crea/".$pid."_9.jpg"; $img10 = "http://".$image_server."/images/crea/".$pid."_10.jpg"; $img11 = "http://".$image_server."/images/crea/".$pid."_11.jpg"; $img12 = "http://".$image_server."/images/crea/".$pid."_12.jpg"; array_push($theimages, $img1); array_push($theimages, $img2); array_push($theimages, $img3); array_push($theimages, $img4); array_push($theimages, $img5); array_push($theimages, $img6); array_push($theimages, $img7); array_push($theimages, $img8); array_push($theimages, $img9); array_push($theimages, $img10); array_push($theimages, $img11); array_push($theimages, $img12); $countImages = count($theimages); $MainImage = $theimages[0]; if($_GET["e"] && $_GET["s"]){ $query = 'update leo_clients set '. "emailok = 'Alert'". " where email = '".$e."'"; $result = MYSQL_QUERY($query); $to = 'simonzl@gmail.com'; $subject = $_GET["s"].' '.$e.' has responded eAlert! => '.$MLS; $body = $e.' has responded eAlert! => '.$MLS; if (mail($to, $subject, $body)) { //echo("

Message successfully sent!

"); } else { //echo("

Message delivery failed...

"); } }else if($_GET["s"]){ $to = 'info@leozhang.ca'; $subject = $_GET["s"].' has responded Ad! => '.$MLS; $body = $_GET["s"].' has responded Ad! => '.$MLS; if (mail($to, $subject, $body)) { //echo("

Message successfully sent!

"); } else { //echo("

Message delivery failed...

"); } }else if($_GET["e"]){ $to = 'simonzl@gmail.com'; $subject = $_GET["e"].' has responded Ad! => '.$MLS; $body = $_GET["e"].' has responded Ad! => '.$MLS; if (mail($to, $subject, $body)) { //echo("

Message successfully sent!

"); } else { //echo("

Message delivery failed...

"); } }else{ // Do nothing ... } }else{ $themsg = "对不起,此物业已经售出! SOLD! 好的房子不会停留超过1周的,所以请您第一时间安排看房! 谢谢! 请点击这里回首页 搜索最新的物业! LEO"; echo 'Property Detail'; echo $themsg; echo " "; echo $mls; echo ''; exit; } } ?> <? echo $Paddress.', '.$City.', '.$Province.', '.$PtypeA.' '.$PtypeB; ?>买房宝 智德置业 多伦多 地产 Leo Zhang & Team www.LeoZhang.ca Real Estate Agent 007

,,

叫价: $more_vert

房屋编号ID: 新上市:

全部信息关闭
  • place物业位置

    城市: 地区:

  • business房屋类型

    类型: ,

    产权:

  • visibility房间情况

    卧室: 洗手间:
    地下室: 房龄: 大小:
    朝向: 管理费: $

  • info其他信息

    房屋状态: 最快交接日期:

  • place物业位置

    城市: 地区:
    附近的路口:

  • business房屋类型

    类型: ,

  • visibility房间情况

    卧室: 洗手间:
    地下室: 房龄: 大小:
    朝向: 管理费: $

  • info其他信息

    房屋状态: 最快交接日期:

'; echo $qrString; ?>