Blame Extras/Mantis/1.1.2-1.fc9/summary_jpgraph_page.php

4c79b5
4c79b5
# Mantis - a php based bugtracking system
4c79b5
4c79b5
# Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
4c79b5
# Copyright (C) 2002 - 2007  Mantis Team   - mantisbt-dev@lists.sourceforge.net
4c79b5
4c79b5
# Mantis is free software: you can redistribute it and/or modify
4c79b5
# it under the terms of the GNU General Public License as published by
4c79b5
# the Free Software Foundation, either version 2 of the License, or
4c79b5
# (at your option) any later version.
4c79b5
#
4c79b5
# Mantis is distributed in the hope that it will be useful,
4c79b5
# but WITHOUT ANY WARRANTY; without even the implied warranty of
4c79b5
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
4c79b5
# GNU General Public License for more details.
4c79b5
#
4c79b5
# You should have received a copy of the GNU General Public License
4c79b5
# along with Mantis.  If not, see <http://www.gnu.org/licenses/>.
4c79b5
4c79b5
	# Initial code for this addon cames from Duncan Lisset
4c79b5
	# Modified and "make mantis codeguidlines compatible" by Rufinus
4c79b5
4c79b5
	# --------------------------------------------------------
4c79b5
	# $Id: summary_jpgraph_page.php,v 1.24.22.1 2007-10-13 22:34:42 giallu Exp $
4c79b5
	# --------------------------------------------------------
4c79b5
4c79b5
	require_once( 'core.php' );
4c79b5
	access_ensure_project_level( config_get( 'view_summary_threshold' ) );
4c79b5
4c79b5
	html_page_top1();
4c79b5
	html_page_top2();
4c79b5
4c79b5
	print_summary_menu( 'summary_jpgraph_page.php' );
4c79b5
4c79b5
	$t_graphs = array( 'summary_graph_cumulative_bydate', 'summary_graph_bydeveloper', 'summary_graph_byreporter',
4c79b5
			'summary_graph_byseverity', 'summary_graph_bystatus', 'summary_graph_byresolution',
4c79b5
			'summary_graph_bycategory', 'summary_graph_bypriority' );
4c79b5
	$t_wide = config_get( 'graph_summary_graphs_per_row' );
4c79b5
	$t_width = config_get( 'graph_window_width' );
4c79b5
	$t_graph_width = (int) ( ( $t_width - 50 ) / $t_wide );
4c79b5
	
4c79b5
	token_delete( TOKEN_GRAPH );
4c79b5
4c79b5
?>
4c79b5
4c79b5

4c79b5
4c79b5
4c79b5
	
4c79b5
		
4c79b5
	
4c79b5
4c79b5
4c79b5
	for ( $t_pos = 0; $t_pos < count($t_graphs ); $t_pos++ ) {
4c79b5
		if ( 0 == ( $t_pos % $t_wide ) ) {
4c79b5
			print( "\n" );
4c79b5
		}
4c79b5
		echo '';
4c79b5
		printf("", $t_graphs[$t_pos], $t_graph_width );
4c79b5
		echo '';
4c79b5
		if ( ( $t_wide - 1 ) == ( $t_pos % $t_wide ) ) {
4c79b5
			print( "\n" );
4c79b5
		}
4c79b5
	}
4c79b5
?>
4c79b5
4c79b5
4c79b5