<?php
include("Db.php");
include("URLs.php");
include("classes/ListLocations.php");
include("classes/Sanitize.php");
include("classes/BreadCrumbs.php");
$locationType = Sanitize::clean($_GET['locationType']);
$id = Sanitize::clean($_GET['id']);
$catID = Sanitize::clean($_GET['catID']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Untitled 2</title>
</head>
<body>
<?php
$locationList = new ListLocations($locationType, $id);
if(isset($locationList->postAnAddAvailable)) { echo "<br/><a href='addPosting.php?cityID=$id&catID=$catID'>Making A Posting</a>"; }
if($locationType == 'Category') { echo "<br/>" . BreadCrumbs::getCityNameFromCityID($id); };
if($locationType == 'City') { echo "<br/>" . BreadCrumbs::getCityNameFromCityID($id); };
?>
</body>
</html>