From 8439ed9ba5b36fa382e32ea883a0877d6ec536c0 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Thu, 9 Jun 2011 16:56:39 -0700 Subject: Finished added prices. Added more buttons to the headers. Fixed the categories. --- htdocs/categories.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'htdocs/categories.php') diff --git a/htdocs/categories.php b/htdocs/categories.php index a3e8ba2..86e5f9a 100644 --- a/htdocs/categories.php +++ b/htdocs/categories.php @@ -56,12 +56,17 @@ function displayEvents($category) { if ($posts->valid()) { foreach ($posts as $id => $post) { + $title = $post->getName(); + if ($post->getPrice() != 0) { + $title .= ' - $' . $post->getPrice(); + } + printf("

%s

" . "
%s" . " %s
", - $id, $post->getName(), $post->getLocation(), $post->getAge()); + $id, $title, $post->getLocation(), $post->getAge()); } } else { -- cgit v1.2.3