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
27 require_once('../env.inc.php');
28 require_once $gfwww.'include/pre.php';
30 $group_id = getIntFromGet("group_id");
31 $form_grp = getIntFromGet("form_grp");
33 if (!$group_id && $form_grp) {
34 $group_id = $form_grp;
37 site_project_header(array('title'=>_('Project Member List'),'group'=>$group_id,'toptab'=>'memberlist'));
39 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>');
42 $query = "SELECT users.*,user_group.admin_flags,role.role_name AS role
44 LEFT JOIN role ON user_group.role_id=role.role_id
45 WHERE users.user_id=user_group.user_id
46 AND user_group.group_id=$1
48 ORDER BY users.user_name ";
52 $title_arr[]=_('Developer');
53 $title_arr[]=_('Username');
54 $title_arr[]=_('Role/Position');
55 if($GLOBALS['sys_use_people']) {
56 $title_arr[]=_('Skills');
59 echo $GLOBALS['HTML']->listTableTop ($title_arr);
61 $res_memb = db_query_params($query, array($group_id));
63 while ( $row_memb=db_fetch_array($res_memb) ) {
64 echo '<tr '.$HTML->boxGetAltRowStyle($i++).'>';
65 if ( trim($row_memb['admin_flags'])=='A' ) {
66 echo ' <td><strong>'.$row_memb['realname'].'</strong></td>';
68 echo ' <td>'.$row_memb['realname'].'</td>';
71 echo '<td align="center">'.util_make_link_u ($row_memb['user_name'],$row_memb['user_id'],$row_memb['user_name']).'</td>
72 <td align="center">'.$row_memb['role'].'</td>';
73 if($GLOBALS['sys_use_people']) {
74 echo '<td align="center">'.util_make_link ('/people/viewprofile.php?user_id='.$row_memb['user_id'],_('View')).'</td>';
79 echo $GLOBALS['HTML']->listTableBottom();
81 site_project_footer(array());