diff options
author | Steve Dibb <beandog@gentoo.org> | 2010-02-11 20:17:46 -0700 |
---|---|---|
committer | Steve Dibb <beandog@gentoo.org> | 2010-02-11 20:17:46 -0700 |
commit | 32a7a5f8d8b36ae6acb6e566ff3d371b7a145c4b (patch) | |
tree | f9b8efa8def14998bc8f7a4fed123cc34c98f8db /categories.php | |
parent | Zero (diff) | |
download | znurt-org-frontend-32a7a5f8d8b36ae6acb6e566ff3d371b7a145c4b.tar.gz znurt-org-frontend-32a7a5f8d8b36ae6acb6e566ff3d371b7a145c4b.tar.bz2 znurt-org-frontend-32a7a5f8d8b36ae6acb6e566ff3d371b7a145c4b.zip |
initial commit
Diffstat (limited to 'categories.php')
-rw-r--r-- | categories.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/categories.php b/categories.php new file mode 100644 index 0000000..bb08275 --- /dev/null +++ b/categories.php @@ -0,0 +1,39 @@ +<? + require_once 'inc.header1.php'; + require_once 'inc.header2.php'; + require_once 'inc.header3.php'; + require_once 'inc.content1.php'; + + require_once 'class.db.category.php'; + + $sql = "SELECT name, description FROM category ORDER BY name;"; + $arr = $db->getAssoc($sql); + + $str = gettext('CATEGORIES'); + echo "<h4>$str</h4>\n"; + + echo "<div class='about'>\n"; + + echo "<hr class='pkg_rule' style='margin-bottom: 15px; margin-top: 15px;'/>\n"; + + echo "<table style='padding-bottom: 25px;' cellpadding='4' cellspacing='0'>\n"; + + $x = 0; + + foreach($arr as $category_name => $description) { + + $class = getRowClass($x++); + + echo "\t<tr class='$class'>\n"; + echo "\t\t<td valign='top'><a href='$base_uri$category_name'>$category_name</a></td>\n"; + echo "\t\t<td>$description</td>\n"; + echo "\t</tr>\n"; + + } + + echo "</table>\n"; + + echo "</div>\n"; + + require_once 'inc.content2.php'; +?>
\ No newline at end of file |