get_using_id($_SESSION['user_id']);
//echo $_REQUEST['user_id'];
// Grab all the listings
list ($listings, $sort, $total, $start) = get_all_listings($_GET['sort'], $_REQUEST['user_id'], $_GET['start'], $limit_results, $_GET['order_by'], $user->user_level, $page, $search, $search_type);
$current_page = floor(($start - 1)/$limit_results) + 1;
// Make a duplicate query string so that it could be carried over to the next page.
$action = $_REQUEST['action'];
$keyword = $_REQUEST['keyword'];
$bedrooms = $_REQUEST['bedrooms'];
$bathrooms = $_REQUEST['bathrooms'];
$list_country = $_REQUEST['list_country'];
$list_province = $_REQUEST['list_province'];
$list_city = $_REQUEST['list_city'];
$list_area = $_REQUEST['list_area'];
$price_from = $_REQUEST['price_from'];
$price_to = $_REQUEST['price_to'];
$property_type = $_REQUEST['property_type'];
$search_query = "&action=$action&keyword=$keyword&list_country=$list_country&list_province=$list_province&list_city=$list_city&list_area=$list_area&price_from=$price_from&price_to=$price_to&property_type=$property_type&bedrooms=$bedrooms&bathrooms=$bathrooms";
echo span_results($limit_results, $total, $current_page, $start, $search_query, 5);
?>
| =divider()?> | ||||||||
| =$lang['reference']?> # =$listings[$i]['list_reference']?>
&action=more_details'> |
//($listings[$i]['list_status'] == 'NEW') ? $status_class = 'red' : $status_class = 'amber';
if ($listings[$i]['list_status'] == 'NEW')
{
$status_class = 'red';
}
else if ($listings[$i]['list_status'] == 'SOLD')
{
$status_class = 'blue_status';
}
else
{
$status_class = 'amber';
}
?>
=$listings[$i]['list_title']?> =$listings[$i]['list_status']?> if ( $listings[$i]['list_status'] == 'SOLD' ) { ?> =$lang['index_price']?>: =$lang['config_na']?> } else { ?> =$lang['index_price']?>: =$currency['dollar']?> =number_format($listings[$i]['list_price'],2)?> } ?> =$lang['province']?>: =$listings[$i]['list_province']?> =$lang['index_city']?>: =$listings[$i]['list_city']?> =$lang['index_property_type']?>: =$listings[$i]['list_property_type']?> =substr($listings[$i]['list_description'], 0, 250); ?> &action=more_details'>Read more... |
|
||||||