Subversion Repositories taios

Rev

Rev 169 | Rev 247 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
169 tom 1
<?php
2
 
3
require '../_taios.php';
4
 
5
$page = new Taios_Page('Forums', '../');
6
$page->drawHeader();
7
$page->drawMiddle();
8
 
246 tom 9
$parentID = $_GET['parentID'];
10
if (empty($parentID))
11
{
12
    $parentID = -1;
13
}
169 tom 14
 
246 tom 15
$ids = $page->findIDs('ForumCategories', 'WHERE ParentID = ' . $parentID . ' ORDER BY Title ASC');
16
for ($i = 0; $i < count($ids); $i++)
17
{
18
    $forumCategory = $page->getForumCategory();
19
    write('<h4><a href="index.php?parentID=' . $forumCategory->parentID . '">' . $forumCategory->title . '</a></h4>');
20
    write('<p>' . $forumCategory->description . '</p>');
21
}
22
 
169 tom 23
$page->drawFooter();
24
 
25
?>
26