3 * Project Members Information
5 * Portions Copyright 1999-2001 (c) VA Linux Systems
6 * The rest Copyright 2002-2004 (c) GForge Team
9 * This file is part of GForge.
11 * GForge is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * GForge is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with GForge; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 require_once('../env.inc.php');
27 require_once $gfwww.'include/pre.php';
29 $group_id = getIntFromGet("group_id");
30 $form_grp = getIntFromGet("form_grp");
32 if (!$group_id && $form_grp) {
33 $group_id = $form_grp;
36 site_project_header(array('title'=>_('Project Member List'),'group'=>$group_id,'toptab'=>'memberlist'));
38 echo '<h1>' . _('Project Member List') . '</h1>';
40 echo '<p>' . _('If you would like to contribute to this project by becoming a developer, contact one of the project admins, designated in bold text below.') . '</p>';
43 $title_arr[]=_('Member');
44 $title_arr[]=_('Username');
45 $title_arr[]=_('Role/Position');
46 if($GLOBALS['sys_use_people']) {
47 $title_arr[]=_('Skills');
50 echo $GLOBALS['HTML']->listTableTop ($title_arr);
53 $res_memb = db_query_params("SELECT users.*,user_group.admin_flags,role.role_name AS role
55 LEFT JOIN role ON user_group.role_id=role.role_id
56 WHERE users.user_id=user_group.user_id
57 AND user_group.group_id=$1
59 ORDER BY users.user_name ", array($group_id));
61 while ( $row_memb=db_fetch_array($res_memb) ) {
62 echo '<tr '.$HTML->boxGetAltRowStyle($i++).'>';
63 if ( trim($row_memb['admin_flags'])=='A' ) {
64 echo ' <td><strong>'.$row_memb['realname'].'</strong></td>';
66 echo ' <td>'.$row_memb['realname'].'</td>';
69 echo '<td align="center">'.util_make_link_u ($row_memb['user_name'],$row_memb['user_id'],$row_memb['user_name']).'</td>
70 <td align="center">'.$row_memb['role'].'</td>';
71 if($GLOBALS['sys_use_people']) {
72 echo '<td align="center">'.util_make_link ('/people/viewprofile.php?user_id='.$row_memb['user_id'],_('View')).'</td>';
77 echo $GLOBALS['HTML']->listTableBottom();
79 site_project_footer(array());