2003-08-13 22:06:08 +00:00
|
|
|
<?php
|
|
|
|
|
2004-02-02 23:34:39 +00:00
|
|
|
require_once('../inc/forum.inc');
|
|
|
|
require_once('../inc/util.inc');
|
|
|
|
require_once('../inc/time.inc');
|
2003-08-13 22:06:08 +00:00
|
|
|
|
2004-12-27 03:42:11 +00:00
|
|
|
db_init();
|
|
|
|
|
2005-02-23 00:42:14 +00:00
|
|
|
page_head("Questions and answers");
|
2003-08-13 22:06:08 +00:00
|
|
|
|
2003-12-09 06:46:50 +00:00
|
|
|
echo "
|
|
|
|
<p>
|
2004-05-30 21:47:11 +00:00
|
|
|
Do a <a href=forum_text_search_form.php>keyword search</a> of messages.
|
2005-01-18 19:56:18 +00:00
|
|
|
<p>
|
2003-12-09 06:46:50 +00:00
|
|
|
";
|
2003-08-13 22:06:08 +00:00
|
|
|
|
2003-12-08 01:19:49 +00:00
|
|
|
start_forum_table(array("Topic", "# Questions", "Last post"));
|
2003-08-13 22:06:08 +00:00
|
|
|
|
|
|
|
$categories = getHelpDeskCategories();
|
2003-08-14 00:56:20 +00:00
|
|
|
while ($category = mysql_fetch_object($categories)) {
|
2005-02-13 21:33:02 +00:00
|
|
|
echo "
|
|
|
|
<tr class=subtitle>
|
|
|
|
<td class=category colspan=4>", $category->name, "</td>
|
|
|
|
</tr>
|
|
|
|
";
|
|
|
|
|
|
|
|
$forums = getForums($category->id);
|
|
|
|
while ($forum = mysql_fetch_object($forums)) {
|
|
|
|
echo "
|
2005-01-18 19:56:18 +00:00
|
|
|
<tr class=row1>
|
2005-02-13 21:33:02 +00:00
|
|
|
<td>
|
|
|
|
<b><a href=forum_forum.php?id=$forum->id>$forum->title</a></b>
|
|
|
|
<br>", $forum->description, "
|
|
|
|
</td>
|
|
|
|
<td>", $forum->threads, "</td>
|
|
|
|
<td>", time_diff_str($forum->timestamp, time()), "</td>
|
|
|
|
</tr>
|
|
|
|
";
|
|
|
|
}
|
2003-08-13 22:06:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
echo "
|
2005-02-13 21:33:02 +00:00
|
|
|
</table>
|
2003-08-13 22:06:08 +00:00
|
|
|
</p>
|
|
|
|
";
|
|
|
|
|
2003-08-15 01:01:00 +00:00
|
|
|
page_tail();
|
2003-11-30 21:05:57 +00:00
|
|
|
?>
|