Subversion Repositories taios

Rev

Rev 256 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
255 tom 1
<?php
2
 
3
require '../_taios.php';
4
 
5
$page = new Taios_Page('Forum Post', '../');
6
$page->drawHeader();
7
$page->drawMiddle();
8
 
9
$id = $page->getGetID();
10
$forumPost = $page->getForumPost($id);
11
write('<h4>' . $forumPost->title . '</h4>');
12
write('<p>' . $forumPost->description . '</p>');
13
write('<br />');
14
 
15
$ids = $page->findIDs('ForumPosts', 'WHERE ParentID = ' . $id . ' ORDER BY DatePosted DESC');
16
for ($i = 0; $i < count($ids); $i++)
17
{
18
    $forumPost = $page->getForumPost($ids[$i]);
19
write('<h4>' . $forumPost->title . '</h4>');
20
write('<p>' . $forumPost->description . '</p>');
21
write('<br />');
22
}
23
 
24
$page->drawFooter();
25
 
26
?>
27