Blame Identity/Models/Html/Mantis/1.1.2-1.fc9/bug_monitor_list_view_inc.php

d6e8d8
d6e8d8
# Mantis - a php based bugtracking system
d6e8d8
d6e8d8
# Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
d6e8d8
# Copyright (C) 2002 - 2007  Mantis Team   - mantisbt-dev@lists.sourceforge.net
d6e8d8
d6e8d8
# Mantis is free software: you can redistribute it and/or modify
d6e8d8
# it under the terms of the GNU General Public License as published by
d6e8d8
# the Free Software Foundation, either version 2 of the License, or
d6e8d8
# (at your option) any later version.
d6e8d8
#
d6e8d8
# Mantis is distributed in the hope that it will be useful,
d6e8d8
# but WITHOUT ANY WARRANTY; without even the implied warranty of
d6e8d8
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
d6e8d8
# GNU General Public License for more details.
d6e8d8
#
d6e8d8
# You should have received a copy of the GNU General Public License
d6e8d8
# along with Mantis.  If not, see <http://www.gnu.org/licenses/>.
d6e8d8
d6e8d8
	# --------------------------------------------------------
d6e8d8
	# $Id: bug_monitor_list_view_inc.php,v 1.16.2.1 2007-10-13 22:32:43 giallu Exp $
d6e8d8
	# --------------------------------------------------------
d6e8d8
?>
d6e8d8
d6e8d8
	# This include file prints out the list of users monitoring the current
d6e8d8
	# bug.	$f_bug_id must be set and be set to the bug id
d6e8d8
?>
d6e8d8
d6e8d8
d6e8d8
	$c_bug_id = db_prepare_int( $f_bug_id );
d6e8d8
	$t_bug_monitor_table = config_get( 'mantis_bug_monitor_table' );
d6e8d8
	$t_user_table = config_get( 'mantis_user_table' );
d6e8d8
d6e8d8
	# get the bugnote data
d6e8d8
	$query = "SELECT user_id, enabled
d6e8d8
			FROM $t_bug_monitor_table m, $t_user_table u
d6e8d8
			WHERE m.bug_id=$c_bug_id AND m.user_id = u.id
d6e8d8
			ORDER BY u.realname, u.username";
d6e8d8
	$result = db_query($query);
d6e8d8
	$num_users = db_num_rows($result);
d6e8d8
d6e8d8
	echo '
';
d6e8d8
?>
d6e8d8
d6e8d8
d6e8d8
	collapse_open( 'monitoring' );
d6e8d8
?>
d6e8d8
d6e8d8
d6e8d8
d6e8d8
	
d6e8d8
		
d6e8d8
	
d6e8d8
d6e8d8
d6e8d8
d6e8d8
	
d6e8d8
d6e8d8
	collapse_icon( 'monitoring' );
d6e8d8
 ?>
d6e8d8
		
d6e8d8
	
d6e8d8
d6e8d8
d6e8d8
	
d6e8d8
		
d6e8d8
	
d6e8d8
	
d6e8d8
d6e8d8
 		for ( $i = 0; $i < $num_users; $i++ ) {
d6e8d8
 			$row = db_fetch_array( $result );
d6e8d8
			echo ($i > 0) ? ', ' : '';
d6e8d8
			echo print_user( $row['user_id'] );
d6e8d8
 		}
d6e8d8
?>
d6e8d8
	
d6e8d8
d6e8d8
d6e8d8
d6e8d8
d6e8d8
	collapse_closed( 'monitoring' ); 
d6e8d8
?>
d6e8d8
d6e8d8
d6e8d8
	
d6e8d8
		
d6e8d8
	
d6e8d8
d6e8d8
d6e8d8
d6e8d8
	collapse_end( 'monitoring' );
d6e8d8
?>
d6e8d8
d6e8d8