diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-06-09 16:56:39 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net ; true> | 2011-06-09 16:56:39 -0700 |
commit | 8439ed9ba5b36fa382e32ea883a0877d6ec536c0 (patch) | |
tree | cb49279c74804503d42c543e4a2c244695d5ce8a /htdocs/index.php | |
parent | 0b1deccfe6cbe7fca0a6abd03abb18cafca59c60 (diff) |
Finished added prices. Added more buttons to the headers. Fixed the categories.
Diffstat (limited to 'htdocs/index.php')
-rw-r--r-- | htdocs/index.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/htdocs/index.php b/htdocs/index.php index 148cfd6..b09c4bf 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -22,12 +22,17 @@ $posts->query(); 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 { |