2003-07-18 21:38:51 +00:00
|
|
|
<?php
|
|
|
|
|
2003-08-13 22:08:12 +00:00
|
|
|
require_once('forum.inc');
|
|
|
|
require_once('../util.inc');
|
2003-12-04 22:42:51 +00:00
|
|
|
require_once('../time.inc');
|
2003-07-18 21:38:51 +00:00
|
|
|
|
2003-11-30 21:05:57 +00:00
|
|
|
page_head('Message boards', NULL, NULL);
|
2003-07-18 21:38:51 +00:00
|
|
|
|
2003-08-13 22:08:12 +00:00
|
|
|
show_forum_title(NULL, NULL, false);
|
2003-07-18 21:38:51 +00:00
|
|
|
|
2003-12-09 06:46:50 +00:00
|
|
|
echo "<p>
|
|
|
|
If you have a question or problem, please use the
|
|
|
|
<a href=help_desk.php>Questions/problems</a>
|
|
|
|
are instead of the Message boards.</p>
|
|
|
|
<p>
|
|
|
|
Do a <a href=text_search_form.php>keyword search</a>
|
|
|
|
of messages.
|
2003-11-30 21:05:57 +00:00
|
|
|
";
|
2003-07-18 21:38:51 +00:00
|
|
|
|
2003-11-30 21:05:57 +00:00
|
|
|
start_forum_table(array("Topic", "Threads", "Posts", "Last post"));
|
2003-08-13 22:08:12 +00:00
|
|
|
show_forums();
|
|
|
|
end_table();
|
2003-08-15 01:01:00 +00:00
|
|
|
page_tail();
|
2003-08-13 22:08:12 +00:00
|
|
|
|
|
|
|
function show_forums() {
|
|
|
|
$categories = getCategories();
|
2003-08-14 00:56:20 +00:00
|
|
|
while ($category = mysql_fetch_object($categories)) {
|
2003-08-13 22:08:12 +00:00
|
|
|
echo "
|
2003-11-30 21:05:57 +00:00
|
|
|
<tr class=subtitle>
|
|
|
|
<td class=category colspan=4>", $category->name, "</td>
|
2003-08-13 22:08:12 +00:00
|
|
|
</tr>
|
|
|
|
";
|
2003-08-15 01:01:00 +00:00
|
|
|
|
2003-08-14 00:56:20 +00:00
|
|
|
$forums = getForums($category->id);
|
|
|
|
while ($forum = mysql_fetch_object($forums)) {
|
2003-12-04 22:42:51 +00:00
|
|
|
$x = time_diff_str($forum->timestamp, time());
|
2003-08-13 22:08:12 +00:00
|
|
|
echo "
|
2003-11-30 21:05:57 +00:00
|
|
|
<tr class=row1 style=\"font-size:8pt; text-align:right\">
|
|
|
|
<td class=indent style=\"text-align:left\">
|
|
|
|
<span style=\"font-size:10pt; font-weight:bold\">
|
|
|
|
<a href=\"forum.php?id=", $forum->id, "\">", $forum->title,
|
|
|
|
"</a></span>
|
2003-08-13 22:08:12 +00:00
|
|
|
<br>", $forum->description, "
|
|
|
|
</td>
|
|
|
|
<td>", $forum->threads, "</td>
|
|
|
|
<td>", $forum->posts, "</td>
|
2003-12-04 22:42:51 +00:00
|
|
|
<td>", $x, "</td>
|
2003-08-13 22:08:12 +00:00
|
|
|
</tr>
|
|
|
|
";
|
|
|
|
}
|
|
|
|
}
|
2003-08-15 01:01:00 +00:00
|
|
|
}
|
2003-11-30 21:05:57 +00:00
|
|
|
?>
|