Blame Identity/Webenv/App/Mantis/1.1.2-1.fc9/project_page.php

f2e824
f2e824
# Mantis - a php based bugtracking system
f2e824
f2e824
# Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
f2e824
# Copyright (C) 2002 - 2007  Mantis Team   - mantisbt-dev@lists.sourceforge.net
f2e824
f2e824
# Mantis is free software: you can redistribute it and/or modify
f2e824
# it under the terms of the GNU General Public License as published by
f2e824
# the Free Software Foundation, either version 2 of the License, or
f2e824
# (at your option) any later version.
f2e824
#
f2e824
# Mantis is distributed in the hope that it will be useful,
f2e824
# but WITHOUT ANY WARRANTY; without even the implied warranty of
f2e824
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f2e824
# GNU General Public License for more details.
f2e824
#
f2e824
# You should have received a copy of the GNU General Public License
f2e824
# along with Mantis.  If not, see <http://www.gnu.org/licenses/>.
f2e824
f2e824
	#------------------------------
f2e824
	# $Revision: 2643 $
f2e824
	#   $Author: al $    
f2e824
	#     $Date: 2009-06-18 19:06:27 -0400 (Thu, 18 Jun 2009) $                                              
f2e824
	#------------------------------
f2e824
f2e824
	require_once( 'core.php' );
f2e824
f2e824
	$t_core_path = config_get( 'core_path' );
f2e824
f2e824
	require_once( $t_core_path . 'project_api.php' );
f2e824
	require_once( $t_core_path . 'last_visited_api.php' );
f2e824
	require_once( $t_core_path . 'print_api.php' );
f2e824
f2e824
	$f_project_id = gpc_get_int( 'project_id' );
f2e824
	$t_view_issues_url = "set_project.php?project_id=$f_project_id&ref=view_all_bug_page.php";
f2e824
f2e824
	if ( $f_project_id == ALL_PROJECTS ) {
f2e824
		$t_redirect_url = $t_view_issues_url;
f2e824
		print_header_redirect( $t_redirect_url );
f2e824
		exit;
f2e824
	}
f2e824
f2e824
	# Override the current page to make sure we get the appropriate project-specific configuration
f2e824
	$g_project_override = $f_project_id;
f2e824
f2e824
	$t_changelog_url = "changelog_page.php?project_id=$f_project_id";
f2e824
	$t_roadmap_url = "roadmap_page.php?project_id=$f_project_id";
f2e824
f2e824
	html_page_top1( project_get_field( $f_project_id, 'name' ) );
f2e824
f2e824
	html_page_top2();
f2e824
f2e824
	echo '

', string_display( project_get_field( $f_project_id, 'name' ) ), '

';
f2e824
f2e824
	echo '

';

f2e824
	
f2e824
	# View Issues
f2e824
	echo '', lang_get( 'view_bugs_link' ), '';
f2e824
	
f2e824
	# Changelog
f2e824
	echo ' | ', lang_get( 'changelog_link' ), '';
f2e824
	
f2e824
	# Roadmap
f2e824
	echo ' | ', lang_get( 'roadmap_link' ), '';
f2e824
	
f2e824
	# Documentation
f2e824
	if ( config_get( 'enable_project_documentation' ) == ON ) {
f2e824
		echo ' | ', lang_get( 'docs_link' ), '';
f2e824
	}
f2e824
f2e824
	# Wiki
f2e824
	if ( config_get( 'wiki_enable' ) == ON ) {
f2e824
		echo ' | ', lang_get( 'wiki' ), '';
f2e824
	}
f2e824
f2e824
	# Summary Page for Project
f2e824
	if ( access_has_project_level( config_get( 'view_summary_threshold' ), $f_project_id ) ) {
f2e824
		echo ' | ', lang_get( 'summary_link' ), '';
f2e824
	}
f2e824
f2e824
	# Manage Project Page
f2e824
	if ( access_has_project_level( config_get( 'manage_project_threshold' ), $f_project_id ) ) {
f2e824
		echo ' | ', lang_get( 'manage_link' ), '';
f2e824
	}
f2e824
f2e824
	echo '

';
f2e824
	
f2e824
	# @@@ Add status, view state, versions, sub-projects, parent projects, and news.
f2e824
	# @@@ Schema change: add home page, license,
f2e824
f2e824
	$t_description = project_get_field( $f_project_id, 'description' );
f2e824
f2e824
	if ( !is_blank( $t_description ) ) {
f2e824
f2e824
		echo '

', lang_get( 'description' ), '

';
f2e824
f2e824
		echo '

', string_display( $t_description ), '

';
f2e824
f2e824
	}
f2e824
f2e824
	$t_access_level_for_dev_team = config_get( 'development_team_threshold' );
f2e824
	$t_users = project_get_all_user_rows( $f_project_id, $t_access_level_for_dev_team );
f2e824
	$t_show_real_names = config_get( 'show_realname' ) == ON;
f2e824
f2e824
	if ( count( $t_users ) > 0 ) {
f2e824
f2e824
		echo '

', lang_get( 'development_team' ), '

';
f2e824
f2e824
		# @@@ sort users in DESC order by access level, then ASC by username/realname.
f2e824
		foreach ( $t_users as $t_user_data ) {
f2e824
f2e824
			$t_user_id = $t_user_data['id'];
f2e824
			
f2e824
			if ( $t_show_real_names && !is_blank( $t_user_data['realname'] ) ) {
f2e824
f2e824
				$t_user_name = $t_user_data['realname'];
f2e824
f2e824
			} else {
f2e824
f2e824
				$t_user_name = $t_user_data['username'];
f2e824
f2e824
			}
f2e824
f2e824
	 		echo $t_user_name, ' (', get_enum_element( 'access_levels', $t_user_data['access_level'] ), ')
';
f2e824
	 	}
f2e824
 	}
f2e824
f2e824
	html_page_bottom1( __FILE__ );
f2e824
?>