$value ){ $value=trim($value); if(!empty($value)) { $search[$term] = $value; } } $page = empty($_GET['page_no']) ? 1 : intval( $_GET['page_no'], 10 ); $no_results = array_key_exists('no_results', $_GET) && ( $_GET['no_results'] == '20' || $_GET['no_results'] == '50' ) ? intval($_GET['no_results'],10) : 10; $properties=property_listings($page, array('search' => $search, 'no_results' => $no_results )); //, 'facilities' => $_GET['facilities'] $pages=no_property_listings_pages(array('search' => $search, 'no_results' => $no_results )); //, 'facilities' => $_GET['facilities'] $unit_types=property_unit_types('Residential'); $ad_types=property_ad_types(); $agents=property_agents(); //$facilities=property_facilities(); require_once( get_template_directory() . '/header.php' ); ?>
Oryx World Property Listings
1 ? '< Previous' : '< Previous' ; $next = $page < $pages ? 'Next >' : 'Next >' ; $pagenumbers = ''; if($pages === 0) { $pagenumbers .= '1'; } $pn = $page - 5; if($pn < 1 ) { $pn = 1; } $max_pn = $page + 5; if($max_pn > $pages ) { $mpn = $pages; } for (; $pn <= $max_pn ; $pn++) { if ($page == $pn) { $pagenumbers .= ''.$pn.''; } else { $pagenumbers .= ''.$pn.''; } } echo '
'.$prev .'
Page:
'.$next .'
'; ?>
Listings Per Page:
$property) { ?>
Property_Ref_No); ?>
Price, 0, '.', ','); ?> AED

Ref: Property_Ref_No; ?>
Category: Unit_Type; ?>
Location: Community; ?>
Sub-Location: Property_Name; ?>
Price: Price, 0, '.', ','); ?> AED
Size: Unit_Builtup_Area, 2, '.', ',').' '.$property->Unit_Measure; ?>
Agent: Listing_Agent; ?>
Tel: Listing_Agent_Phone ); ?>
  • x Bedrooms; ?>
  • x No_of_Bathroom; ?>
  • x Parking; ?>

'.PHP_EOL; } else { echo '
'.PHP_EOL; } $listCount++; } if($listCount === 0) { echo '
No Properties Found
'; }?>
1 ? '< Previous' : '< Previous' ; $next = $page < $pages ? 'Next >' : 'Next >' ; $pagenumbers = ''; if($pages === 0) { $pagenumbers .= '1'; } $pn = $page - 5; if($pn < 1 ) { $pn = 1; } $max_pn = $page + 5; if($max_pn > $pages ) { $mpn = $pages; } for (; $pn <= $max_pn ; $pn++) { if ($page == $pn) { $pagenumbers .= ''.$pn.''; } else { $pagenumbers .= ''.$pn.''; } } echo '
'.$prev .'
'.$next .'
'; ?>