|
|
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 |
# --------------------------------------------------------
|
|
|
4c79b5 |
# $Id: manage_config_work_threshold_page.php,v 1.14.2.1 2007-10-13 22:33:24 giallu Exp $
|
|
|
4c79b5 |
# --------------------------------------------------------
|
|
|
4c79b5 |
|
|
|
4c79b5 |
require_once( 'core.php' );
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_core_path = config_get( 'core_path' );
|
|
|
4c79b5 |
require_once( $t_core_path . 'email_api.php' );
|
|
|
4c79b5 |
|
|
|
4c79b5 |
auth_reauthenticate();
|
|
|
4c79b5 |
|
|
|
4c79b5 |
html_page_top1( lang_get( 'manage_threshold_config' ) );
|
|
|
4c79b5 |
html_page_top2();
|
|
|
4c79b5 |
|
|
|
4c79b5 |
print_manage_menu( 'adm_permissions_report.php' );
|
|
|
4c79b5 |
print_manage_config_menu( 'manage_config_work_threshold_page.php' );
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_user = auth_get_current_user_id();
|
|
|
4c79b5 |
$t_project_id = helper_get_current_project();
|
|
|
4c79b5 |
$t_access = user_get_access_level( $t_user, $t_project_id );
|
|
|
4c79b5 |
$t_show_submit = false;
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_access_levels = get_enum_to_array( config_get( 'access_levels_enum_string' ) );
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_overrides = array();
|
|
|
4c79b5 |
function set_overrides( $p_config ) {
|
|
|
4c79b5 |
global $t_overrides;
|
|
|
4c79b5 |
if ( ! in_array( $p_config, $t_overrides ) ) {
|
|
|
4c79b5 |
$t_overrides[] = $p_config;
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
function get_section_begin( $p_section_name ) {
|
|
|
4c79b5 |
global $t_access_levels;
|
|
|
4c79b5 |
|
|
|
4c79b5 |
echo '';
|
|
|
4c79b5 |
echo '' . strtoupper( $p_section_name ) . '' . "\n";
|
|
|
4c79b5 |
echo '' . lang_get( 'perm_rpt_capability' ) . '';
|
|
|
4c79b5 |
echo '' . lang_get( 'access_levels' ) . '';
|
|
|
4c79b5 |
echo ' ' . lang_get( 'alter_level' ) . ' ';
|
|
|
4c79b5 |
foreach( $t_access_levels as $t_access_level => $t_access_label ) {
|
|
|
4c79b5 |
echo ' ' . get_enum_to_string( lang_get( 'access_levels_enum_string' ), $t_access_level ) . ' ';
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
echo '' . "\n";
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
function get_capability_row( $p_caption, $p_threshold, $p_all_projects_only=false ) {
|
|
|
4c79b5 |
global $t_user, $t_project_id, $t_show_submit, $t_access_levels, $t_colour_project, $t_colour_global;
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_file = config_get_global( $p_threshold );
|
|
|
4c79b5 |
if ( ! is_array( $t_file ) ) {
|
|
|
4c79b5 |
$t_file_exp = array();
|
|
|
4c79b5 |
foreach( $t_access_levels as $t_access_level => $t_label ) {
|
|
|
4c79b5 |
if ( $t_access_level >= $t_file ) {
|
|
|
4c79b5 |
$t_file_exp[] = $t_access_level;
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
$t_file_exp = $t_file;
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_global = config_get( $p_threshold, null, null, ALL_PROJECTS );
|
|
|
4c79b5 |
if ( ! is_array( $t_global ) ) {
|
|
|
4c79b5 |
$t_global_exp = array();
|
|
|
4c79b5 |
foreach( $t_access_levels as $t_access_level => $t_label ) {
|
|
|
4c79b5 |
if ( $t_access_level >= $t_global ) {
|
|
|
4c79b5 |
$t_global_exp[] = $t_access_level;
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
$t_global_exp = $t_global;
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_project = config_get( $p_threshold );
|
|
|
4c79b5 |
if ( ! is_array( $t_project ) ) {
|
|
|
4c79b5 |
$t_project_exp = array();
|
|
|
4c79b5 |
foreach( $t_access_levels as $t_access_level => $t_label ) {
|
|
|
4c79b5 |
if ( $t_access_level >= $t_project ) {
|
|
|
4c79b5 |
$t_project_exp[] = $t_access_level;
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
$t_project_exp = $t_project;
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_can_change = access_has_project_level( config_get_access( $p_threshold ), $t_project_id, $t_user )
|
|
|
4c79b5 |
&& ( ( ALL_PROJECTS == $t_project_id ) || ! $p_all_projects_only );
|
|
|
4c79b5 |
|
|
|
4c79b5 |
echo '' . string_display( $p_caption ) . '';
|
|
|
4c79b5 |
foreach( $t_access_levels as $t_access_level => $t_access_label ) {
|
|
|
4c79b5 |
$t_file = in_array( $t_access_level, $t_file_exp );
|
|
|
4c79b5 |
$t_global = in_array( $t_access_level, $t_global_exp );
|
|
|
4c79b5 |
$t_project = in_array( $t_access_level, $t_project_exp ) ;
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_colour = '';
|
|
|
4c79b5 |
if ( $t_global != $t_file ) {
|
|
|
4c79b5 |
$t_colour = ' bgcolor="' . $t_colour_global . '" '; # all projects override
|
|
|
4c79b5 |
if ( $t_can_change ) {
|
|
|
4c79b5 |
set_overrides( $p_threshold );
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
if ( $t_project != $t_global ) {
|
|
|
4c79b5 |
$t_colour = ' bgcolor="' . $t_colour_project . '" '; # project overrides
|
|
|
4c79b5 |
if ( $t_can_change ) {
|
|
|
4c79b5 |
set_overrides( $p_threshold );
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
if ( $t_can_change ) {
|
|
|
4c79b5 |
$t_checked = $t_project ? "CHECKED" : "";
|
|
|
4c79b5 |
$t_value = "<input type=\"checkbox\" name=\"flag_thres_" . $p_threshold . "[]\" value=\"$t_access_level\" $t_checked />";
|
|
|
4c79b5 |
$t_show_submit = true;
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
if ( $t_project ) {
|
|
|
4c79b5 |
$t_value = '';
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
$t_value = ' ';
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
echo '' . $t_value . '';
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
if ( $t_can_change ) {
|
|
|
4c79b5 |
echo ' <select name="access_' . $p_threshold . '">';
|
|
|
4c79b5 |
print_enum_string_option_list( 'access_levels', config_get_access( $p_threshold ) );
|
|
|
4c79b5 |
echo '</select> ';
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
echo '' . get_enum_to_string( lang_get( 'access_levels_enum_string' ), config_get_access( $p_threshold ) ) . ' ';
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
echo '' . "\n";
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
function get_capability_boolean( $p_caption, $p_threshold, $p_all_projects_only=false ) {
|
|
|
4c79b5 |
global $t_user, $t_project_id, $t_show_submit, $t_access_levels, $t_colour_project, $t_colour_global;
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_file = config_get_global( $p_threshold );
|
|
|
4c79b5 |
$t_global = config_get( $p_threshold, null, null, ALL_PROJECTS );
|
|
|
4c79b5 |
$t_project = config_get( $p_threshold );
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_can_change = access_has_project_level( config_get_access( $p_threshold ), $t_project_id, $t_user )
|
|
|
4c79b5 |
&& ( ( ALL_PROJECTS == $t_project_id ) || ! $p_all_projects_only );
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_colour = '';
|
|
|
4c79b5 |
if ( $t_global != $t_file ) {
|
|
|
4c79b5 |
$t_colour = ' bgcolor="' . $t_colour_global . '" '; # all projects override
|
|
|
4c79b5 |
if ( $t_can_change ) {
|
|
|
4c79b5 |
set_overrides( $p_threshold );
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
if ( $t_project != $t_global ) {
|
|
|
4c79b5 |
$t_colour = ' bgcolor="' . $t_colour_project . '" '; # project overrides
|
|
|
4c79b5 |
if ( $t_can_change ) {
|
|
|
4c79b5 |
set_overrides( $p_threshold );
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
echo '' . string_display( $p_caption ) . '';
|
|
|
4c79b5 |
if ( $t_can_change ) {
|
|
|
4c79b5 |
$t_checked = ( ON == config_get( $p_threshold ) ) ? "CHECKED" : "";
|
|
|
4c79b5 |
$t_value = "<input type=\"checkbox\" name=\"flag_" . $p_threshold . "\" value=\"1\" $t_checked />";
|
|
|
4c79b5 |
$t_show_submit = true;
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
if ( ON == config_get( $p_threshold ) ) {
|
|
|
4c79b5 |
$t_value = '';
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
$t_value = ' ';
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
echo '<td' . $t_colour . '>' . $t_value . '';
|
|
|
4c79b5 |
|
|
|
4c79b5 |
if ( $t_can_change ) {
|
|
|
4c79b5 |
echo '<select name="access_' . $p_threshold . '">';
|
|
|
4c79b5 |
print_enum_string_option_list( 'access_levels', config_get_access( $p_threshold ) );
|
|
|
4c79b5 |
echo '</select> ';
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
echo '' . get_enum_to_string( lang_get( 'access_levels_enum_string' ), config_get_access( $p_threshold ) ) . ' ';
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
echo '' . "\n";
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
function get_capability_enum( $p_caption, $p_threshold, $p_enum, $p_all_projects_only=false ) {
|
|
|
4c79b5 |
global $t_user, $t_project_id, $t_show_submit, $t_access_levels, $t_colour_project, $t_colour_global;
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_file = config_get_global( $p_threshold );
|
|
|
4c79b5 |
$t_global = config_get( $p_threshold, null, null, ALL_PROJECTS );
|
|
|
4c79b5 |
$t_project = config_get( $p_threshold );
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_can_change = access_has_project_level( config_get_access( $p_threshold ), $t_project_id, $t_user )
|
|
|
4c79b5 |
&& ( ( ALL_PROJECTS == $t_project_id ) || ! $p_all_projects_only );
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_colour = '';
|
|
|
4c79b5 |
if ( $t_global != $t_file ) {
|
|
|
4c79b5 |
$t_colour = ' bgcolor="' . $t_colour_global . '" '; # all projects override
|
|
|
4c79b5 |
if ( $t_can_change ) {
|
|
|
4c79b5 |
set_overrides( $p_threshold );
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
if ( $t_project != $t_global ) {
|
|
|
4c79b5 |
$t_colour = ' bgcolor="' . $t_colour_project . '" '; # project overrides
|
|
|
4c79b5 |
if ( $t_can_change ) {
|
|
|
4c79b5 |
set_overrides( $p_threshold );
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
echo '' . string_display( $p_caption ) . '';
|
|
|
4c79b5 |
if ( $t_can_change ) {
|
|
|
4c79b5 |
echo '<select name="flag_' . $p_threshold . '">';
|
|
|
4c79b5 |
print_enum_string_option_list( $p_enum, config_get( $p_threshold ) );
|
|
|
4c79b5 |
echo '</select>';
|
|
|
4c79b5 |
$t_show_submit = true;
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
$t_value = get_enum_to_string( lang_get( $p_enum . '_enum_string' ), config_get( $p_threshold ) ) . ' ';
|
|
|
4c79b5 |
echo '' . $t_value . '';
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
if ( $t_can_change ) {
|
|
|
4c79b5 |
echo '<select name="access_' . $p_threshold . '">';
|
|
|
4c79b5 |
print_enum_string_option_list( 'access_levels', config_get_access( $p_threshold ) );
|
|
|
4c79b5 |
echo '</select> ';
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
echo '' . get_enum_to_string( lang_get( 'access_levels_enum_string' ), config_get_access( $p_threshold ) ) . ' ';
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
echo '' . "\n";
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
function get_section_end() {
|
|
|
4c79b5 |
echo ' ' . "\n";
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
$t_colour_project = config_get( 'colour_project');
|
|
|
4c79b5 |
$t_colour_global = config_get( 'colour_global');
|
|
|
4c79b5 |
|
|
|
4c79b5 |
echo "
\n";
|
|
|
4c79b5 |
|
|
|
4c79b5 |
if ( ALL_PROJECTS == $t_project_id ) {
|
|
|
4c79b5 |
$t_project_title = lang_get( 'config_all_projects' );
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
$t_project_title = sprintf( lang_get( 'config_project' ) , string_display( project_get_name( $t_project_id ) ) );
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
echo '' . $t_project_title . ' ' . "\n";
|
|
|
4c79b5 |
echo '' . lang_get( 'colour_coding' ) . ' ';
|
|
|
4c79b5 |
if ( ALL_PROJECTS <> $t_project_id ) {
|
|
|
4c79b5 |
echo '' . lang_get( 'colour_project' ) .' ';
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
echo '' . lang_get( 'colour_global' ) . '';
|
|
|
4c79b5 |
|
|
|
4c79b5 |
echo "<form name=\"mail_config_action\" method=\"post\" action=\"manage_config_work_threshold_set.php\">\n";
|
|
|
4c79b5 |
|
|
|
4c79b5 |
# Issues
|
|
|
4c79b5 |
get_section_begin( lang_get( 'issues' ) );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'report_issue' ), 'report_bug_threshold' );
|
|
|
4c79b5 |
get_capability_enum( lang_get( 'submit_status' ), 'bug_submit_status', 'status' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'update_issue' ), 'update_bug_threshold' );
|
|
|
4c79b5 |
get_capability_boolean( lang_get( 'allow_close_immediate' ), 'allow_close_immediately' );
|
|
|
4c79b5 |
get_capability_boolean( lang_get( 'allow_reporter_close' ), 'allow_reporter_close' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'monitor_issue' ), 'monitor_bug_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'handle_issue' ), 'handle_bug_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'assign_issue' ), 'update_bug_assign_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'move_issue' ), 'move_bug_threshold', true );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'delete_issue' ), 'delete_bug_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'reopen_issue' ), 'reopen_bug_threshold' );
|
|
|
4c79b5 |
get_capability_boolean( lang_get( 'allow_reporter_reopen' ), 'allow_reporter_reopen' );
|
|
|
4c79b5 |
get_capability_enum( lang_get( 'reopen_status' ), 'bug_reopen_status', 'status' );
|
|
|
4c79b5 |
get_capability_enum( lang_get( 'reopen_resolution' ), 'bug_reopen_resolution', 'resolution' );
|
|
|
4c79b5 |
get_capability_enum( lang_get( 'resolved_status' ), 'bug_resolved_status_threshold', 'status' );
|
|
|
4c79b5 |
get_capability_enum( lang_get( 'readonly_status' ), 'bug_readonly_status_threshold', 'status' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'update_readonly_issues' ), 'update_readonly_bug_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'update_issue_status' ), 'update_bug_status_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'view_private_issues' ), 'private_bug_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'set_view_status' ), 'set_view_status_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'update_view_status' ), 'change_view_status_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'show_list_of_users_monitoring_issue' ), 'show_monitor_list_threshold' );
|
|
|
4c79b5 |
get_capability_boolean( lang_get( 'set_status_assigned' ), 'auto_set_status_to_assigned' );
|
|
|
4c79b5 |
get_capability_enum( lang_get( 'assigned_status' ), 'bug_assigned_status', 'status' );
|
|
|
4c79b5 |
get_capability_boolean( lang_get( 'limit_access' ), 'limit_reporters', true );
|
|
|
4c79b5 |
get_section_end();
|
|
|
4c79b5 |
|
|
|
4c79b5 |
# Notes
|
|
|
4c79b5 |
get_section_begin( lang_get( 'notes' ) );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'add_notes' ), 'add_bugnote_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'update_notes' ), 'update_bugnote_threshold' );
|
|
|
4c79b5 |
get_capability_boolean( lang_get( 'allow_user_edit' ), 'bugnote_allow_user_edit_delete' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'delete_note' ), 'delete_bugnote_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'view_private_notes' ), 'private_bugnote_threshold' );
|
|
|
4c79b5 |
get_section_end();
|
|
|
4c79b5 |
|
|
|
4c79b5 |
# Others
|
|
|
4c79b5 |
get_section_begin( lang_get('others' ) );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'view' ) . ' ' . lang_get( 'changelog_link' ), 'view_changelog_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'view' ) . ' ' . lang_get( 'assigned_to' ), 'view_handler_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'view' ) . ' ' . lang_get( 'bug_history' ), 'view_history_threshold' );
|
|
|
4c79b5 |
get_capability_row( lang_get( 'send_reminders' ), 'bug_reminder_threshold' );
|
|
|
4c79b5 |
get_section_end();
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
if ( $t_show_submit ) {
|
|
|
4c79b5 |
echo "<input type=\"submit\" class=\"button\" value=\"" . lang_get( 'change_configuration' ) . "\" />\n";
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
echo "</form>\n";
|
|
|
4c79b5 |
|
|
|
4c79b5 |
if ( $t_show_submit && ( 0 < count( $t_overrides ) ) ) {
|
|
|
4c79b5 |
echo "<form name=\"threshold_config_action\" method=\"post\" action=\"manage_config_revert.php\">\n";
|
|
|
4c79b5 |
echo "<input name=\"revert\" type=\"hidden\" value=\"" . implode( ',', $t_overrides ) . "\"></input>";
|
|
|
4c79b5 |
echo "<input name=\"project\" type=\"hidden\" value=\"$t_project_id\"></input>";
|
|
|
4c79b5 |
echo "<input name=\"return\" type=\"hidden\" value=\"" . $_SERVER['PHP_SELF'] ."\"></input>";
|
|
|
4c79b5 |
echo "
|
|
|
4c79b5 |
if ( ALL_PROJECTS == $t_project_id ) {
|
|
|
4c79b5 |
echo lang_get( 'revert_to_system' );
|
|
|
4c79b5 |
} else {
|
|
|
4c79b5 |
echo lang_get( 'revert_to_all_project' );
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
echo "\" />\n";
|
|
|
4c79b5 |
echo "</form>\n";
|
|
|
4c79b5 |
}
|
|
|
4c79b5 |
|
|
|
4c79b5 |
html_page_bottom1( __FILE__ );
|
|
|
4c79b5 |
?>
|