summaryrefslogtreecommitdiff
path: root/htdocs/categories.php
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-06-09 16:56:39 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-06-09 16:56:39 -0700
commit8439ed9ba5b36fa382e32ea883a0877d6ec536c0 (patch)
treecb49279c74804503d42c543e4a2c244695d5ce8a /htdocs/categories.php
parent0b1deccfe6cbe7fca0a6abd03abb18cafca59c60 (diff)
Finished added prices. Added more buttons to the headers. Fixed the categories.
Diffstat (limited to 'htdocs/categories.php')
-rw-r--r--htdocs/categories.php7
1 files changed, 6 insertions, 1 deletions
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("<div class=\"post\"><p><a href=\"". $GLOBALS['CONFIG']['urlroot']
. "/postings/%s.html\">%s</a></p>"
. "<div class=\"desc\"><span class=\"location\">%s</span>"
. " <span class=\"age\">%s</span></div></div>",
- $id, $post->getName(), $post->getLocation(), $post->getAge());
+ $id, $title, $post->getLocation(), $post->getAge());
}
} else {