Rev 247 |
Rev 252 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
<?php
require '../_taios.php';
$page = new Taios_Page
('Forums', '../');
$page->drawHeader();
$page->drawMiddle();
$parentID = $_GET['parentID'];
if (empty($parentID))
{
$parentID = -1;
}
$ids = $page->findIDs('ForumCategories', 'WHERE ParentID = ' . $parentID . ' ORDER BY Title ASC');
for ($i = 0; $i < count($ids); $i++)
{
$forumCategory = $page->getForumCategory($ids[$i]);
write
('<h4><a href="index.php?parentID=' . $forumCategory->parentID . '">' . $forumCategory->title . '</a></h4>');
write
('<p>' . $forumCategory->description . '</p>');
}
$page->drawFooter();
?>