(root)/admin/all-forum-categories.php @ 269 - Rev 522
Rev 261 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
<?php
require '../_taios.php';
$page = new Taios_Page
('Manage All Forum Categories', '../');
$page->drawHeader();
$page->drawMiddle();
$page->checkLoggedIn();
if ($page->isUserAdmin($page->getLoggedInUser()))
{
write
('<p class="bold">Use this to manage all the forum categories on the Tim32 Website.</p><br />');
write
('<table>');
write
('<tr>');
write
('<td class="bold">ID</td>');
write
('<td class="bold">Parent</td>');
write
('<td class="bold">Title</td>');
write
('<td class="bold">Description</td>');
write
('</tr>');
$ids = $page->findIDs('ForumCategories');
for ($i = 0; $i < count($ids); $i++)
{
$cat = $page->getForumCategory($ids[$i]);
write
('<tr>');
write
('<td><a href="../forums/index.php?parentID=' . $cat->ID . '">' . $cat->ID . '</a></td>');
if (!$cat->parent)
{
write
('<td style="color: #444444;">No Parent</td>');
}
else
{
write
('<td>' . htmlentities($cat->parent->title, ENT_QUOTES) . '</td>');
}
write
('<td>' . htmlentities($cat->title, ENT_QUOTES) . '</td>');
write
('<td>' . htmlentities($cat->description, ENT_QUOTES) . '</td>');
write
('</tr>');
}
write
('</table>');
}
else
{
$page->drawError('You do not have permission to access this page.');
}
$page->drawFooter();
?>