<?php
	# Mantis - a php based bugtracking system
	# Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
	# Copyright (C) 2002 - 2004  Mantis Team   - mantisbt-dev@lists.sourceforge.net
	# This program is distributed under the terms and conditions of the GPL
	# See the README and LICENSE files for details

	# --------------------------------------------------------
	# $Id: $
	# --------------------------------------------------------

	# ======================================================================
	# Author: Marcello Scata' <marcelloscata at users.sourceforge.net> ITALY
	# ======================================================================

	require_once( 'core.php' );

	$t_core_path = config_get( 'core_path' );

	auth_ensure_user_authenticated();

	compress_enable();

	html_page_top1();
	html_page_top2();

	$t_access_levels = explode_enum_string( config_get( 'access_levels_enum_string' ) );

	echo '<br><br><div align="center">' . "\n";
	echo '<table class="hide" border="0" cellspacing="3" cellpadding="0">' . "\n";

	$t_flag = false;
	foreach( $t_access_levels as $t_access_level ) {
		list( $t_access_level_id, $t_access_level_label ) = explode_enum_arr( $t_access_level );
		if( $t_access_level_id >= ADMINISTRATOR )
			continue;
		$t_access_level_label = get_enum_element( 'access_levels', $t_access_level_id );

		if( !$t_flag) echo '<tr>';
		echo '<td valign="top" width="50%">' . "\n";
		echo '<table class="width100" cellspacing="1"><tr><td class="form-title" style="text-align:center">' . strtoupper( $t_access_level_label );
		if( $t_access_level_id == current_user_get_access_level() ) echo ' (' . lang_get( 'myself' ) . ')';
		echo '</td></tr>';
		echo '<td style="text-align:center"><img src="adm_status_automa_img.php?access=' . $t_access_level_id . '" vspace=20></td></tr>';
		echo '</table>' . "\n";
		echo '</td>' . "\n";
		if( $t_flag) echo '</tr>' . "\n";
		$t_flag = !$t_flag;
	}
	echo '</table></div>' . "\n";

	html_page_bottom1( __FILE__ );
?>