Blame Identity/Models/Html/Mantis/1.1.2-1.fc9/core/columns_api.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
	#------------------------------
4c79b5
	#   $Revision: 2643 $
4c79b5
	#     $Author: al $    
4c79b5
	#       $Date: 2009-06-18 19:06:27 -0400 (Thu, 18 Jun 2009) $  
4c79b5
	#------------------------------
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_selection( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '   ';
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_edit( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '   ';
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'id' );
4c79b5
			print_view_bug_sort_link( lang_get( 'id' ), 'id', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'id' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_project_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'project_id' );
4c79b5
			print_view_bug_sort_link( lang_get( 'email_project' ), 'project_id', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'email_project' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_duplicate_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'duplicate_id' );
4c79b5
			print_view_bug_sort_link( lang_get( 'duplicate_id' ), 'duplicate_id', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'duplicate_id' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_reporter_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'reporter_id' );
4c79b5
			print_view_bug_sort_link( lang_get( 'reporter' ), 'reporter_id', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'reporter' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_handler_id( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'handler_id' );
4c79b5
			print_view_bug_sort_link( lang_get( 'assigned_to' ), 'handler_id', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'assigned_to' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_priority( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'priority' );
4c79b5
			print_view_bug_sort_link( lang_get( 'priority_abbreviation' ), 'priority', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'priority' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_reproducibility( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'reproducibility' );
4c79b5
			print_view_bug_sort_link( lang_get( 'reproducibility' ), 'reproducibility', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'reproducibility' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_projection( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'projection' );
4c79b5
			print_view_bug_sort_link( lang_get( 'projection' ), 'projection', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'projection' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_eta( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'eta' );
4c79b5
			print_view_bug_sort_link( lang_get( 'eta' ), 'eta', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'eta' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_resolution( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'resolution' );
4c79b5
			print_view_bug_sort_link( lang_get( 'resolution' ), 'resolution', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'resolution' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_fixed_in_version( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'fixed_in_version' );
4c79b5
			print_view_bug_sort_link( lang_get( 'fixed_in_version' ), 'fixed_in_version', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'fixed_in_version' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_target_version( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'target_version' );
4c79b5
			print_view_bug_sort_link( lang_get( 'target_version' ), 'target_version', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'target_version' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_view_state( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'view_state' );
4c79b5
			print_view_bug_sort_link( lang_get( 'view_status' ), 'view_state', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'view_status' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_os( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'os' );
4c79b5
			print_view_bug_sort_link( lang_get( 'os' ), 'os', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'os' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_os_build( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'os_build' );
4c79b5
			print_view_bug_sort_link( lang_get( 'os_version' ), 'os_build', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'os_version' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_platform( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'platform' );
4c79b5
			print_view_bug_sort_link( lang_get( 'platform' ), 'platform', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'platform' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_version( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'version' );
4c79b5
			print_view_bug_sort_link( lang_get( 'product_version' ), 'version', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'product_version' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_date_submitted( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'date_submitted' );
4c79b5
			print_view_bug_sort_link( lang_get( 'date_submitted' ), 'date_submitted', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'date_submitted' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_attachment( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			global $t_icon_path;
4c79b5
4c79b5
			$t_show_attachments = config_get( 'show_attachment_indicator' );
4c79b5
4c79b5
			if ( ON == $t_show_attachments ) {
4c79b5
				echo "\t";
4c79b5
				echo '';
4c79b5
				echo "\n";
4c79b5
			}
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_category( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'category' );
4c79b5
			print_view_bug_sort_link( lang_get( 'category' ), 'category', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'category' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_sponsorship_total( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		$t_enable_sponsorship = config_get( 'enable_sponsorship' );
4c79b5
4c79b5
		if ( ON == $t_enable_sponsorship ) {
4c79b5
			if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
				echo "\t";
4c79b5
				print_sort_icon( $p_dir, $p_sort, 'sponsorship_total' );
4c79b5
				print_view_bug_sort_link( sponsorship_get_currency(), 'sponsorship_total', $p_sort, $p_dir, $p_columns_target );
4c79b5
				echo "\n";
4c79b5
			} else {
4c79b5
				echo sponsorship_get_currency();
4c79b5
			}
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_severity( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'severity' );
4c79b5
			print_view_bug_sort_link( lang_get( 'severity' ), 'severity', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'severity' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_status( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'status' );
4c79b5
			print_view_bug_sort_link( lang_get( 'status' ), 'status', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo  lang_get( 'status' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_last_updated( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'last_updated' );
4c79b5
			print_view_bug_sort_link( lang_get( 'updated' ), 'last_updated', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'updated' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_summary( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			print_sort_icon( $p_dir, $p_sort, 'summary' );
4c79b5
			print_view_bug_sort_link( lang_get( 'summary' ), 'summary', $p_sort, $p_dir, $p_columns_target );
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo lang_get( 'summary' );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_title_bugnotes_count( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo ' # ';
4c79b5
		} else {
4c79b5
			echo '#';
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_selection( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			global $t_checkboxes_exist, $t_update_bug_threshold;
4c79b5
4c79b5
			echo '';
4c79b5
			if ( access_has_bug_level( $t_update_bug_threshold, $p_row['id'] ) ) {
4c79b5
				$t_checkboxes_exist = true;
4c79b5
				printf( "<input type=\"checkbox\" name=\"bug_arr[]\" value=\"%d\" />" , $p_row['id'] );
4c79b5
			} else {
4c79b5
				echo " ";
4c79b5
			}
4c79b5
			echo '';
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_edit( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			global $t_icon_path, $t_update_bug_threshold;
4c79b5
4c79b5
			echo '';
4c79b5
			if ( !bug_is_readonly( $p_row['id'] )
4c79b5
		  		&& access_has_bug_level( $t_update_bug_threshold, $p_row['id'] ) ) {
4c79b5
				echo '';
4c79b5
				echo '
4c79b5
				echo '" alt="' . lang_get( 'update_bug_button' ) . '"';
4c79b5
				echo ' title="' . lang_get( 'update_bug_button' ) . '" />';
4c79b5
			} else {
4c79b5
				echo ' ';
4c79b5
			}
4c79b5
			echo '';
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_priority( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '';
4c79b5
			if ( ON == config_get( 'show_priority_text' ) ) {
4c79b5
				print_formatted_priority_string( $p_row['status'], $p_row['priority'] );
4c79b5
			} else {
4c79b5
				print_status_icon( $p_row['priority'] );
4c79b5
			}
4c79b5
			echo '';
4c79b5
		} else {
4c79b5
			echo get_enum_element( 'priority', $p_row['priority'] );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_id( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		echo '';
4c79b5
		print_bug_link( $p_row['id'], false );
4c79b5
		echo '';
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_sponsorship_total( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		$t_enable_sponsorship = config_get( 'enable_sponsorship' );
4c79b5
4c79b5
		if ( $t_enable_sponsorship == ON ) {
4c79b5
			echo "\t";
4c79b5
			if ( $p_row['sponsorship_total'] > 0 ) {
4c79b5
				$t_sponsorship_amount = sponsorship_format_amount( $p_row['sponsorship_total'] );
4c79b5
				echo string_no_break( $t_sponsorship_amount );
4c79b5
			}
4c79b5
			echo "\n";
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_bugnotes_count( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		global $t_filter;
4c79b5
4c79b5
		# grab the bugnote count
4c79b5
		$t_bugnote_stats = bug_get_bugnote_stats( $p_row['id'] );
4c79b5
		if ( NULL !== $t_bugnote_stats ) {
4c79b5
			$bugnote_count = $t_bugnote_stats['count'];
4c79b5
			$v_bugnote_updated = $t_bugnote_stats['last_modified'];
4c79b5
		} else {
4c79b5
			$bugnote_count = 0;
4c79b5
		}
4c79b5
4c79b5
		echo '';
4c79b5
		if ( $bugnote_count > 0 ) {
4c79b5
			$t_bugnote_link = '
4c79b5
				. '&nbn=' . $bugnote_count . '#bugnotes">'
4c79b5
				. $bugnote_count . '';
4c79b5
4c79b5
			if ( $v_bugnote_updated > strtotime( '-'.$t_filter['highlight_changed'].' hours' ) ) {
4c79b5
				printf( '%s', $t_bugnote_link );
4c79b5
			} else {
4c79b5
				echo $t_bugnote_link;
4c79b5
			}
4c79b5
		} else {
4c79b5
			echo ' ';
4c79b5
		}
4c79b5
		echo '';
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_attachment( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		global $t_icon_path;
4c79b5
4c79b5
		$t_show_attachments = config_get( 'show_attachment_indicator' );
4c79b5
4c79b5
		# Check for attachments
4c79b5
		$t_attachment_count = 0;
4c79b5
		if ( ( ON == $t_show_attachments )
4c79b5
		  && ( file_can_view_bug_attachments( $p_row['id'] ) ) ) {
4c79b5
			$t_attachment_count = file_bug_attachment_count( $p_row['id'] );
4c79b5
		}
4c79b5
4c79b5
		if ( ON == $t_show_attachments ) {
4c79b5
			echo "\t";
4c79b5
			if ( 0 < $t_attachment_count ) {
4c79b5
				echo '';
4c79b5
				echo '
4c79b5
				echo ' alt="' . lang_get( 'attachment_alt' ) . '"';
4c79b5
				echo ' title="' . $t_attachment_count . ' ' . lang_get( 'attachments' ) . '"';
4c79b5
				echo ' />';
4c79b5
				echo '';
4c79b5
			} else {
4c79b5
				echo '   ';
4c79b5
			}
4c79b5
			echo "\n";
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_category( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		global $t_sort, $t_dir;
4c79b5
4c79b5
		# grab the project name
4c79b5
		$t_project_name = project_get_field( $p_row['project_id'], 'name' );
4c79b5
4c79b5
		echo '';
4c79b5
4c79b5
		# type project name if viewing 'all projects' or if issue is in a subproject
4c79b5
		if ( ON == config_get( 'show_bug_project_links' )
4c79b5
		  && helper_get_current_project() != $p_row['project_id'] ) {
4c79b5
			echo '<small>[';
4c79b5
			print_view_bug_sort_link( $t_project_name, 'project_id', $t_sort, $t_dir, $p_columns_target );
4c79b5
			echo ']</small>
';
4c79b5
		}
4c79b5
4c79b5
		echo string_display( $p_row['category'] );
4c79b5
		echo '';
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_severity( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		echo '';
4c79b5
		print_formatted_severity_string( $p_row['status'], $p_row['severity'] );
4c79b5
		echo '';
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_eta( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			echo '', get_enum_element( 'eta', $p_row['eta'] ), '';
4c79b5
		} else {
4c79b5
			echo get_enum_element( 'eta', $p_row['eta'] );
4c79b5
		}
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_resolution( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		echo '', get_enum_element( 'resolution', $p_row['resolution'] ), '';
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_status( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		echo '';
4c79b5
		printf( '%s'
4c79b5
			, get_enum_element( 'resolution', $p_row['resolution'] )
4c79b5
			, get_enum_element( 'status', $p_row['status'] )
4c79b5
		);
4c79b5
4c79b5
		# print username instead of status
4c79b5
		if ( ( ON == config_get( 'show_assigned_names' ) )
4c79b5
		  && ( $p_row['handler_id'] > 0 ) 
4c79b5
		  && ( access_has_bug_level( config_get( 'view_handler_threshold' ), $p_row['id'] ) ) ) {
4c79b5
			printf( ' (%s)', prepare_user_name( $p_row['handler_id'] ) );
4c79b5
		}
4c79b5
		echo '';
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_handler_id( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		echo '';
4c79b5
		if ( ( $p_row['handler_id'] > 0 ) && ( access_has_bug_level( config_get( 'view_handler_threshold' ), $p_row['id'] ) ) ) {
4c79b5
			echo prepare_user_name( $p_row['handler_id'] );
4c79b5
		}
4c79b5
		echo '';
4c79b5
	}
4c79b5
	
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_reporter_id( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		echo '';
4c79b5
		echo prepare_user_name( $p_row['reporter_id'] );
4c79b5
		echo '';
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_last_updated( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		global $t_filter;
4c79b5
4c79b5
		$t_last_updated = date( config_get( 'short_date_format' ), $p_row['last_updated'] );
4c79b5
4c79b5
		echo '';
4c79b5
		if ( $p_row['last_updated'] > strtotime( '-'.$t_filter['highlight_changed'].' hours' ) ) {
4c79b5
			printf( '%s', $t_last_updated );
4c79b5
		} else {
4c79b5
			echo $t_last_updated;
4c79b5
		}
4c79b5
		echo '';
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_date_submitted( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		$t_date_submitted = date( config_get( 'short_date_format' ), $p_row['date_submitted'] );
4c79b5
4c79b5
		echo '', $t_date_submitted, '';
4c79b5
	}
4c79b5
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_summary( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		global $t_icon_path;
4c79b5
4c79b5
		if ( $p_columns_target == COLUMNS_TARGET_CSV_PAGE ) {
4c79b5
			$t_summary = string_attribute( $p_row['summary'] );
4c79b5
		} else {
4c79b5
			$t_summary = string_display_line_links( $p_row['summary'] );
4c79b5
		}
4c79b5
4c79b5
		echo '', $t_summary;
4c79b5
		if ( VS_PRIVATE == $p_row['view_state'] ) {
4c79b5
			printf( ' (%s)'
4c79b5
				, $t_icon_path . 'protected.gif'
4c79b5
				, lang_get( 'private' )
4c79b5
				, lang_get( 'private' )
4c79b5
			);
4c79b5
		}
4c79b5
		echo '';
4c79b5
	}
4c79b5
	
4c79b5
	# --------------------
4c79b5
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
4c79b5
	function print_column_target_version( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
4c79b5
		echo '';
4c79b5
		if ( access_has_bug_level( config_get( 'roadmap_view_threshold' ), $p_row['id'] ) ) {
4c79b5
			echo $p_row['target_version'];
4c79b5
		}
4c79b5
		echo '';
4c79b5
	}
4c79b5
?>