1<?php 2// This file is part of BOINC. 3// http://boinc.berkeley.edu 4// Copyright (C) 2008 University of California 5// 6// BOINC is free software; you can redistribute it and/or modify it 7// under the terms of the GNU Lesser General Public License 8// as published by the Free Software Foundation, 9// either version 3 of the License, or (at your option) any later version. 10// 11// BOINC is distributed in the hope that it will be useful, 12// but WITHOUT ANY WARRANTY; without even the implied warranty of 13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14// See the GNU Lesser General Public License for more details. 15// 16// You should have received a copy of the GNU Lesser General Public License 17// along with BOINC. If not, see <http://www.gnu.org/licenses/>. 18 19require_once('../inc/forum.inc'); 20require_once('../inc/util.inc'); 21require_once('../inc/time.inc'); 22 23if (DISABLE_FORUMS) error_page("Forums are disabled"); 24 25check_get_args(array()); 26 27$user = get_logged_in_user(false); 28 29page_head(tra("Questions and answers")); 30 31echo "<p>". 32 tra("Talk live via Skype with a volunteer, in any of several languages. Go to %1BOINC Online Help%2.", "<a href=\"https://boinc.berkeley.edu/help.php\">", "</a>"). 33 "</p>"; 34 35show_forum_header($user); 36 37$categories = BoincCategory::enum("is_helpdesk=1 order by orderID"); 38$first = true; 39foreach ($categories as $category) { 40 if ($first) { 41 $first = false; 42 show_forum_title($category, null, null); 43 echo "<p>"; 44 show_mark_as_read_button($user); 45 start_table('table-striped'); 46 row_heading_array(array( 47 tra("Topic"), 48 tra("Questions"), 49 tra("Last post") 50 )); 51 } 52 if (strlen($category->name)) { 53 echo " 54 <tr> 55 <td colspan=\"4\">", $category->name, "</td> 56 </tr> 57 "; 58 } 59 60 $forums = BoincForum::enum("parent_type=0 and category=$category->id order by orderID"); 61 foreach ($forums as $forum) { 62 echo " 63 <tr> 64 <td> 65 <a href=\"forum_forum.php?id=$forum->id\">$forum->title</a> 66 <br><small>", $forum->description, "</small> 67 </td> 68 <td>", $forum->threads, "</td> 69 <td>", time_diff_str($forum->timestamp, time()), "</td> 70 </tr> 71 "; 72 } 73} 74 75echo " 76 </table> 77</p> 78"; 79 80page_tail(); 81 82$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit 83?> 84