2003-08-13 22:06:08 +00:00
< ? php
2008-08-05 22:43:14 +00:00
// This file is part of BOINC.
// http://boinc.berkeley.edu
// Copyright (C) 2008 University of California
//
// BOINC is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// BOINC is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
2003-08-13 22:06:08 +00:00
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
2011-02-09 22:11:34 +00:00
check_get_args ( array ());
2007-11-15 00:27:02 +00:00
$user = get_logged_in_user ( false );
2007-04-29 14:22:28 +00:00
2011-08-25 22:12:48 +00:00
page_head ( tra ( " Questions and answers " ));
2003-08-13 22:06:08 +00:00
2011-08-25 22:12:48 +00:00
echo " <p> " .
tra ( " Talk live via Skype with a volunteer, in any of several languages. Go to %1BOINC Online Help%2. " , " <a href= \" http://boinc.berkeley.edu/help.php \" > " , " </a> " ) .
" </p> " ;
2003-08-13 22:06:08 +00:00
2007-11-15 00:27:02 +00:00
show_forum_header ( $user );
2003-08-13 22:06:08 +00:00
2007-11-12 20:57:15 +00:00
$categories = BoincCategory :: enum ( " is_helpdesk=1 order by orderID " );
2007-11-15 00:27:02 +00:00
$first = true ;
2007-11-12 20:57:15 +00:00
foreach ( $categories as $category ) {
2007-11-15 00:27:02 +00:00
if ( $first ) {
$first = false ;
show_forum_title ( $category , null , null );
2007-11-22 01:52:27 +00:00
echo " <p> " ;
2008-09-27 10:33:43 +00:00
show_mark_as_read_button ( $user );
2011-02-10 22:45:39 +00:00
start_forum_table ( array (
tra ( " Topic " ),
2011-08-25 22:12:48 +00:00
tra ( " Questions " ),
2011-02-10 22:45:39 +00:00
tra ( " Last post " )
));
2007-11-15 00:27:02 +00:00
}
if ( strlen ( $category -> name )) {
echo "
< tr class = \ " subtitle \" >
< td class = \ " category \" colspan= \" 4 \" > " , $category -> name , " </td>
</ tr >
" ;
}
2005-02-13 21:33:02 +00:00
2007-11-22 01:52:27 +00:00
$forums = BoincForum :: enum ( " parent_type=0 and category= $category->id order by orderID " );
2011-02-09 23:42:05 +00:00
$i = 1 ;
2007-11-12 20:57:15 +00:00
foreach ( $forums as $forum ) {
2011-02-09 23:42:05 +00:00
$j = $i % 2 ;
$i ++ ;
2005-02-13 21:33:02 +00:00
echo "
2011-02-09 23:42:05 +00:00
< tr class = \ " row $j\ " >
2005-02-13 21:33:02 +00:00
< td >
2011-02-09 23:42:05 +00:00
< a href = \ " forum_forum.php?id= $forum->id\ " > $forum -> title </ a >
2010-11-03 21:48:39 +00:00
< br >< span class = \ " smalltext \" > " , $forum -> description , " </span>
2005-02-13 21:33:02 +00:00
</ td >
2010-11-03 21:48:39 +00:00
< td class = \ " numbers \" > " , $forum -> threads , " </td>
< td class = \ " lastpost \" > " , time_diff_str ( $forum -> timestamp , time ()), " </td>
2005-02-13 21:33:02 +00:00
</ 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 ();
2007-11-12 20:57:15 +00:00
$cvs_version_tracker [] = " \$ Id $ " ; //Generated automatically - do not edit
2003-11-30 21:05:57 +00:00
?>