Rental Search

Search for a Rental Propery




 
$rm, 'json' => 1, 'company' => 'itsimple', 'code' => 'yanFwb2F6ZDt', 'CID' => '4690', 'con' => 'L', 'ptr' => 'r', 'onlysold' => 0, 'sub' => $suburb, 'sur' => $sur_status, 'rprl' => $pricemin, 'rprh' => $pricemax, 'bel' => $bedmin, 'beh' => $bedmax, 'pg' => $pg )); $output = curl_exec($ch); //print_r($output); $res = json_decode($output); $pagecount=count($res->Pagination); $resultcount=$res->TotalMatching; foreach($res->Pagination as $item){ //show paging if($pagecount!=0){ // PAGINATION if ($pagecount != 1) { for($pcount = 0; $pcount < count($item); $pcount++){ $pUrl = '?rm='.$rm.'&pg='.$item->PageNumber.'&suburb='.$suburb.'&surrounding='.$sur_status.'&pricemin='.$pricemin.'&pricemax='.$pricemax.'&bedmin='.$bedmix.'&bedmax='.$bedmax; if($item->PageURL==""){ echo '
'; echo 'Page: ['.$item->PageNumber.']';} else { echo ' ['.$item->PageNumber.'] '; if($resultcount==1) { echo '1 result.'; } else { echo 'Total: '. $resultcount.' results '; } } // end if } // end else echo '
'; } } } if($resultcount!=0){ foreach($res->Listings as $item) { echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; echo '

' . $item->AddressText . ', ' . $item->Suburb . ', ' . $item->PostCode . '

'; echo '
'; if($item->BedroomsCount) { echo '
' . $item->BedroomsCount . '
'; } if($item->BathroomsCount) { echo '
' . $item->BathroomsCount . '
'; } if($item->TotalParkingCount) { echo '
' . $item->TotalParkingCount . '
'; } echo '
'; echo '
'; echo '
Type:
' . $item->PropertyTypeText . '
'; // date_default_timezone_set('Australia/Melbourne'); // $date = date('m/d/Y', time()); echo '
Available:
' . $item->AvailableDate . '
'; echo '
Price:
' . $item->SaleLeaseText . '
'; echo '

' . substr($item->Description, 0, 180) . '

'; echo '
View More Details
'; echo '
'; echo '
'; } } else{ echo "No result, please try again."; } } ?>