Subversion Repositories taios

Rev

Rev 256 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

require '../_taios.php';

$page = new Taios_Page('Forum Post', '../');
$page->drawHeader();
$page->drawMiddle();

$id = $page->getGetID();
$forumPost = $page->getForumPost($id);
write('<h4>' . $forumPost->title . '</h4>');
write('<p>' . $forumPost->description . '</p>');
write('<br />');

$ids = $page->findIDs('ForumPosts', 'WHERE ParentID = ' . $id . ' ORDER BY DatePosted DESC');
for ($i = 0; $i < count($ids); $i++)
{
    $forumPost = $page->getForumPost($ids[$i]);
write('<h4>' . $forumPost->title . '</h4>');
write('<p>' . $forumPost->description . '</p>');
write('<br />');
}

$page->drawFooter();

?>