<td width="26%" class="title">Last Post</td> </tr> <?php //retrieve our categories foreach ($forum_index->retrieveCategories($rank) as $category) { echo '<tr><td class="groupname" colspan="5">' . $category['title'] . '</td></tr>'; foreach ($forum_index->retrieveSubForums($category['id']) as $s_forum) { if ($forum->canView($s_forum['id'], $rank)) { //retrieve the forum's statistics $statistics = $forum_index->retrieveFStatistics($s_forum['id']); //get appropriate icon for the section if ($s_forum['type'] > 3) { $icon = $s_forum['type'] == 4 ? '<img src="../img/forum/icons/mod.png" border="0" alt="">' : '<img src="../img/forum/icons/a_mod.png" border="0" alt="">'; } else { $icon = $forum->getIcon($s_forum['icon']); } ?> <tr class="border item"> <td class="icon lefttd"><a href="viewforum.php?forum=<?php echo $s_forum['id']; ?> "><?php echo $icon; ?> </a></td> <td class="frmname"> <span class="bigtitle"><a href="viewforum.php?forum=<?php echo $s_forum['id']; ?>
?> <br /><br /> <div id="picker"> <form method="post" action="jump.php"> <ul class="flat"> <!--<li><a href=""><img src="forums.ws_files/search_threads.gif"> Search threads</a></li>--> <li>Jump to Thread: <input size="8" name="qfc" /></li> <li><input class="b" name="jump" value="Go" type="submit" /></li> </ul> </form> </div> <div id="infopane"> <span class="title"><?php echo $forum->getIcon($forum_details[0]['icon']) . ' ' . $forum_details[0]['title'] . ' ' . $forum->getIcon($forum_details[0]['icon']); ?> </span> <div class="about"> <ul class="flat"> <!--<li><a href="#"><img src="../img/forum/code_of_conduct.gif" /> Code of Conduct</a></li>--> </ul> </div> </div> <!--<div id="nocontrols" class="phold"></div>--> <br> <div id="breadcrumb"> <a href="../index.php">Home</a> > <a href="index.php"><?php echo $data['wb_name'];
<input type="submit" value="Select" class="button"> </form> </div> '; } else { if ($forum->forumExists($_GET['id']) || $forum->forumExists($_POST['id'])) { if (!isset($_POST['id'])) { //forum details $f = $database->processQuery("SELECT `icon`,`title`,`type`,`description`,`parent`,`double_posting`,`pos` FROM `forums` WHERE `id` = ? LIMIT 1", array($_GET['id']), true); //save time $type = $f[0]['type']; $content = ' <form action="editforum.php" method="POST"> <table> <input type="hidden" name="id" value="' . $_GET['id'] . '"> <tr><td>Current Icon</td><td>' . $forum->getIcon($f[0]['icon']) . '</td></tr> <tr> <td>Icon <br/><b>(must re-choose)</b></td><td> <input type="radio" name="icon" value="1" /> <img src="../img/forum/icons/bug.gif" width="20" height="20"> <input type="radio" name="icon" value="2" /> <img src="../img/forum/icons/clan.gif" width="20" height="20"> <input type="radio" name="icon" value="3" /> <img src="../img/forum/icons/clan_recruitment.gif" width="20" height="20"> <input type="radio" name="icon" value="4" /> <img src="../img/forum/icons/compliments.gif" width="20" height="20"> <input type="radio" name="icon" value="5" /> <img src="../img/forum/icons/events.gif" width="20" height="20"> <input type="radio" name="icon" value="6" /> <img src="../img/forum/icons/forum_feedback.gif" width="20" height="20"> <input type="radio" name="icon" value="7" /> <img src="../img/forum/icons/forum_games.gif" width="20" height="20"> <input type="radio" name="icon" value="8" /> <img src="../img/forum/icons/future_updates.gif" width="20" height="20"> <input type="radio" name="icon" value="9" /> <img src="../img/forum/icons/general.gif" width="20" height="20"> <input type="radio" name="icon" value="10" /> <img src="../img/forum/icons/goalsandachievements.gif" width="20" height="20"> <input type="radio" name="icon" value="11" /> <img src="../img/forum/icons/Guides.gif" width="20" height="20"> <input type="radio" name="icon" value="12" /> <img src="../img/forum/icons/item_discussion.gif" width="20" height="20"><br/> <input type="radio" name="icon" value="13" /> <img src="../img/forum/icons/monsters.gif" width="20" height="20">
$content = ' <form action="editforum.php" method="POST"> <table> <input type="hidden" name="id" value="' . $_GET['id'] . '"> <tr> <td>Delete</td><td><a href="?id=' . $_GET['id'] . '?&delete=1">Delete this forum.</a></td> </tr> <tr> <td>Icon</td><td>'; //show all icons and automatically select the existing selecte done for ($i = 1; $i <= 31; $i++) { $content .= '<input type="radio" name="icon" value="' . $i . '" '; if ($i == $icon) { $content .= 'checked="checked"'; } $content .= ' /> ' . $forum->getIcon($i); } $content .= ' </td> </tr> <tr> <td>Type</td> <td> <select name="type" class="button"> <option value="1"'; if ($type == 1) { $content .= 'selected="selected"'; } $content .= '>Normal</option> <option value="2"'; if ($type == 2) {