escape($place); } if(isset($_GET['page'])) { $page = htmlspecialchars($_GET['page']); } if(empty($page)) { $page = '1'; } if($place == '3051') { $location = "$domain/nearest-cottages.htm?attraction=3915"; header("HTTP/1.1 301 Moved Permanently"); header("Location: $location"); exit(); } if(!$attraction = $db->get_row("SELECT ID,Name,Town,County,Country,subregion,AttractionType,Latitude,Longitude,OurURL FROM attractions WHERE ID = '$place' LIMIT 1")) { $location = "$domain/index.htm"; header("HTTP/1.1 301 Moved Permanently"); header("Location: $location"); exit(); } $Country = $attraction->Country; $County = $attraction->County; $subregion = $attraction->subregion; $Name = $attraction->Name; $firstTown = $attraction->Town; $Town = preg_replace('/[^a-zA-Z0-9\- ]+/', '', $firstTown); $id = $attraction->ID; $lng = $attraction->Longitude; $lat = $attraction->Latitude; $Limit = 10; $miles = 300; $SearchResult=$db->get_results("SELECT BEid,SourceID,ID,Name,Town,County,Country,MaxSleep,PetsWelcome,LowPrice,Image,Source,Latitude,Longitude, Facilities,(((acos(sin(($lat*pi()/180)) * sin((Latitude*pi()/180)) + cos(($lat*pi()/180)) * cos((Latitude*pi()/180)) * cos((($lng - Longitude)*pi()/180))))*180/pi())*60*1.1515) as distance FROM accommodation WHERE AccommodationType = 'Self Catering' HAVING distance <= $miles ORDER BY distance ASC LIMIT 30"); $NumberOfResults=count($SearchResult); $NumberOfPages=ceil($NumberOfResults/$Limit); if($NumberOfPages < $page) { $location = "$domain/nearest-cottages.htm?attraction=$id"; header("HTTP/1.1 301 Moved Permanently"); header("Location: $location"); exit(); } $miles = 300; $query = $db->get_results("SELECT BEid,SourceID,ID,Name,Town,County,Country,MaxSleep,PetsWelcome,LowPrice,Image,Source,Latitude,Longitude, Facilities,(((acos(sin(($lat*pi()/180)) * sin((Latitude*pi()/180)) + cos(($lat*pi()/180)) * cos((Latitude*pi()/180)) * cos((($lng - Longitude)*pi()/180))))*180/pi())*60*1.1515) as distance FROM accommodation WHERE AccommodationType = 'Self Catering' HAVING distance <= $miles ORDER BY distance ASC LIMIT " . ($page-1)*$Limit . ",$Limit"); function create_breadcrumb($breadcrumb_titles,$breadcrumb_urls) { $ParentIDString = ltrim($breadcrumb_titles, "@@"); $ParentIDPieces = explode("@@", $ParentIDString, -1); $ParentNameString = ltrim($breadcrumb_urls, "@@"); $ParentNamePieces = explode("@@", $ParentNameString, -1); $breadcrumb_array = array_combine($ParentNamePieces,$ParentIDPieces); return $breadcrumb_array; } include_once("DisplayResultAttractionType.php"); ?> Self Catering Cottages near <?php echo $attraction->Name; ?>, <?php if($attraction->County == 'Cumbria') { echo 'Lake District'; } elseif($attraction->County == 'Greater London') { echo 'London'; } else { echo $attraction->County; } ?> Travel Guide<?php if($page > 1) { $cleanpage = htmlspecialchars($page); echo ", page $cleanpage"; } ?> , plus historic attractions to visit near Name; ?> - we're passionate about history!"> " /> , plus historic attractions to visit near Name; ?> - we're passionate about history!"> 1) { $prev = $page - 1; ?> 1) { ?> Country == 'Isle of Man') { $countrypage = '/counties/man/index.htm'; } elseif ($content->Country == 'Channel Islands') { $countrypage = '/counties/channel/index.htm'; }} //$Country = $SearchResult[0]->Country; ?>

Self Catering Cottages near Name; ?>, County == 'Cumbria') { echo 'Lake District'; } elseif($attraction->County == 'Greater London') { echo 'London'; } else { echo $attraction->County; } ?>

OurURL <> '') { ?>About Name); ?>About Name; ?>

'') { ?>

    ACCOMMODATION MAP Accommodation map

ID; $myid = str_replace('/','_',$ID); $imagefile = ($_SERVER['DOCUMENT_ROOT'] ."/images/accommodation/cottages/" .$myid .".jpg"); if(file_exists($imagefile)) { ?><?php $Name = $cottage->Name;  if($cottage->Source == 'HC') { echo ID"; } else { echo $Name; } ?>, Town; ?>" class="hotelimage img-responsive" style="max-height:205px;max-width:288px"><?php $Name = $cottage->Name;  if($cottage->Source == 'HC') { echo ID"; } else { echo $Name; } ?>, Town; ?>" class="hotelimage img-responsive b-lazy" style="max-height:205px;max-width:288px"><?php $Name = $cottage->Name;  if($cottage->Source == 'HC') { echo ID"; } else { echo $Name; } ?>, Town; ?>" border="1" class="hotelimage img-responsive b-lazy" style="max-height:205px;max-width:288px">

Source == 'HC') { echo '#'; echo $cottage->ID; } else { echo $cottage->Name; } ?>

Address1)) { echo $cottage->Address1; } else { echo $cottage->Town; } ?> - '3647') { $miles = $cottage->distance; echo round($miles,1); ?> miles from Name; } else { ?>near Hadrian's Wall

Sleeps: MaxSleep; ?>
From: LowPrice; if(!empty($cottage->HighPrice) && ($cottage->HighPrice <> '0.00')) { ?> - HighPrice; } ?> PetsWelcome == 'Y') { ?>
Pet Friendly: Y
Pets: NFacilities; $SundayString = preg_match("/Day;Sun/i", "$facilities"); $SaturdayString = preg_match("/Day;Sat/i", "$facilities"); $FridayString = preg_match("/Day;Fri/i", "$facilities"); if(!empty($SaturdayString)) { $Changeover = 'Saturday'; } elseif(!empty($FridayString)) { $Changeover = 'Friday'; } elseif(!empty($SundayString)) { $Changeover = 'Sunday'; } else { $Changeover = 'check cottage details'; } if($Changeover <> '') { ?>
Changeover:

No self catering are nearby. Browse all self catering cottages >>


Map is approximate and should only be used to get a rough idea of the location of cottages near . Please see individual cottage details for more precise location information.

Attraction search
in
Attractions
escape($Name); $AttractionTown = $db->escape($Town); if($placeslat <> '' AND $placeslon <> '') { $miles = 200; $getattractions = $db->get_results("SELECT ID,Name,OurURL,AttractionType,(((acos(sin(($placeslat*pi()/180)) * sin((Latitude*pi()/180)) + cos(($placeslat*pi()/180)) * cos((Latitude*pi()/180)) * cos((($placeslon - Longitude)*pi()/180))))*180/pi())*60*1.1515) as howfar FROM attractions WHERE Name <> '$AttractionName' AND Publication_Date <= '$current_date' AND (AttractionType != 'Town' AND AttractionType != 'Village') AND status = 'Live' HAVING howfar <= $miles ORDER BY howfar ASC LIMIT 7"); $gettowns = $db->get_results("SELECT ID,Name,OurURL,AttractionType,(((acos(sin(($placeslat*pi()/180)) * sin((Latitude*pi()/180)) + cos(($placeslat*pi()/180)) * cos((Latitude*pi()/180)) * cos((($placeslon - Longitude)*pi()/180))))*180/pi())*60*1.1515) as distance FROM attractions WHERE Publication_Date <= '$current_date' AND (AttractionType = 'Town' OR AttractionType = 'Village') AND Name <> '$AttractionTown' AND status = 'Live' HAVING distance <= $miles ORDER BY distance ASC LIMIT 7"); if($getattractions <> '') { ?>
Nearest attractions
howfar; $shortdistance = round($distanceto,1); ?>

OurURL <> '') { ?>Name); ?>Name; ?>
miles - (AttractionType); echo $DisplayAttractionType; ?>)

'') { ?>
Tourism - Towns & Villages

OurURL <> '') { ?>Name); ?>Name; ?> (distance; echo round($far,1); ?> miles)

get_results("SELECT ID,County,Country,subregion,Latitude,Longitude,Photo1,Photo1_Caption,OurURL,Name, AttractionType, AttractionType2,Summary,Summary2,Body,Town,Address1,Address2,Address3, PostCode, ScotlandCounty,WalesCounty,LondonRegion, AttractionSubType, Directions,Website,Email,Organization,GalleryURL,OSRef, HeritageRating, HeritageHighlight,MainPhoto,PhotoCredit,opening_times,Pass,OurVisit,OurPhotos,underground_station,underground_zone,underground_miles,underground_id,status,Title,MetaDescription,leftnav,rightnav FROM attractions WHERE County = '$County' AND (AttractionType = 'Town' OR AttractionType = 'Village') AND ID <> '$id' AND status = 'Live' ORDER BY Name ASC LIMIT 6")) { echo ("

Top $County Destinations
"); foreach ($nearbycounty as $navcounty) { echo ("ID\" class=\"form-text-link\">$navcounty->Name
"); } ?>