mirror of https://github.com/BOINC/boinc.git
44 lines
988 B
PHP
44 lines
988 B
PHP
<?php
|
|
|
|
require_once('../include/template.inc');
|
|
require_once('forum.inc');
|
|
require_once('../util.inc');
|
|
|
|
doHeader('Help Desk', 'forum.css');
|
|
|
|
show_forum_title(NULL, NULL, true);
|
|
|
|
echo "<p style=\"text-align:center\">";
|
|
|
|
start_forum_table(array("Help Desk", "Questions", "Last Answer Posted"), array(NULL, 60, 160));
|
|
|
|
$categories = getHelpDeskCategories();
|
|
while ($category = mysql_fetch_object($categories)) {
|
|
echo "
|
|
<tr class=\"subtitle\">
|
|
<td colspan=\"4\">", $category->name, "</td>
|
|
</tr>
|
|
";
|
|
|
|
$forums = getForums($category->id);
|
|
while ($forum = mysql_fetch_object($forums)) {
|
|
echo "
|
|
<tr style=\"font-size:8pt; text-align:right\">
|
|
<td style=\"text-align:left\">
|
|
<span style=\"font-size:10pt; font-weight:bold\"><a href=\"forum.php?id=", $forum->id, "\">", $forum->title, "</a></span>
|
|
<br>", $forum->description, "
|
|
</td>
|
|
<td>", $forum->threads, "</td>
|
|
<td>", pretty_time_str($forum->timestamp), "</td>
|
|
</tr>
|
|
";
|
|
}
|
|
}
|
|
|
|
echo "
|
|
</table>
|
|
</p>
|
|
";
|
|
|
|
doFooter();
|
|
?>
|