3 * Project Members Information
5 * Portions Copyright 1999-2001 (c) VA Linux Systems
6 * The rest Copyright 2002-2004 (c) GForge Team
11 * This file is part of GForge.
13 * GForge is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * GForge is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with GForge; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 require_once('../env.inc.php');
30 require_once $gfwww.'include/pre.php';
32 $group_id = getIntFromGet("group_id");
33 $form_grp = getIntFromGet("form_grp");
35 if (!$group_id && $form_grp) {
36 $group_id = $form_grp;
39 site_project_header(array('title'=>_('Project Member List'),'group'=>$group_id,'toptab'=>'memberlist'));
41 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>');
44 $query = "SELECT users.*,user_group.admin_flags,role.role_name AS role
46 LEFT JOIN role ON user_group.role_id=role.role_id
47 WHERE users.user_id=user_group.user_id
48 AND user_group.group_id='$group_id'
50 ORDER BY users.user_name ";
54 $title_arr[]=_('Developer');
55 $title_arr[]=_('Username');
56 $title_arr[]=_('Role/Position');
57 if($GLOBALS['sys_use_people']) {
58 $title_arr[]=_('Skills');
61 echo $GLOBALS['HTML']->listTableTop ($title_arr);
63 $res_memb = db_query($query);
65 while ( $row_memb=db_fetch_array($res_memb) ) {
66 echo '<tr '.$HTML->boxGetAltRowStyle($i++).'>';
67 if ( trim($row_memb['admin_flags'])=='A' ) {
68 echo ' <td><strong>'.$row_memb['realname'].'</strong></td>';
70 echo ' <td>'.$row_memb['realname'].'</td>';
73 echo '<td align="center">'.util_make_link_u ($row_memb['user_name'],$row_memb['user_id'],$row_memb['user_name']).'</td>
74 <td align="center">'.$row_memb['role'].'</td>';
75 if($GLOBALS['sys_use_people']) {
76 echo '<td align="center">'.util_make_link ('/people/viewprofile.php?user_id='.$row_memb['user_id'],_('View')).'</td>';
81 echo $GLOBALS['HTML']->listTableBottom();
83 site_project_footer(array());