<?php
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);
include("Db.php");
include("URLs.php");
include("classes/ViewPosting.php");
include("classes/Sanitize.php");
$id = Sanitize::clean($_GET['id']);
$posting = new ViewPosting($id);
include("classes/BreadCrumbs.php");
?>
<!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><?php echo $posting->name; ?></title>
</head>
<body>
<?php
echo $posting->name;
echo $posting->description;
echo $posting->price;
echo $posting->specificLocation;
echo $posting->cityID;
echo $posting->userID;
echo $posting->category;
echo $posting->datePosted;
$posting->displayImages();
echo "<br/>" . BreadCrumbs::getCityLinkFromPosting($id);
echo "<br/>" . BreadCrumbs::getCatLinkFromPosting($id);
echo "<br/>" . BreadCrumbs::makePostFromPosting($id);
?>
<p><a href="sendMessage.php?postingID=<?php echo $id;?>">Send Message</a></p>
</body>
</html>