.
/**
* @package MantisBT
* @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
* @copyright Copyright (C) 2002 - 2014 MantisBT Team - mantisbt-dev@lists.sourceforge.net
* @link http://www.mantisbt.org
*/
/**
* requires current_user_api
*/
require_once( 'current_user_api.php' );
/**
* requires bug_api
*/
require_once( 'bug_api.php' );
/**
* requires string_api
*/
require_once( 'string_api.php' );
/**
* requires date_api
*/
require_once( 'date_api.php' );
/**
* requires icon_api
*/
require_once( 'icon_api.php' );
/**
* requires columns_api
*/
require_once( 'columns_api.php' );
$t_filter = current_user_get_bug_filter();
# NOTE: this check might be better placed in current_user_get_bug_filter()
if( $t_filter === false ) {
$t_filter = filter_get_default();
}
list( $t_sort, ) = explode( ',', $t_filter['sort'] );
list( $t_dir, ) = explode( ',', $t_filter['dir'] );
$g_checkboxes_exist = false;
$t_icon_path = config_get( 'icon_path' );
# Improve performance by caching category data in one pass
if( helper_get_current_project() > 0 ) {
category_get_all_rows( helper_get_current_project() );
} else {
$t_categories = array();
foreach( $rows as $t_row ) {
$t_categories[] = $t_row->category_id;
}
category_cache_array_rows( array_unique( $t_categories ) );
}
$t_columns = helper_get_columns_to_view( COLUMNS_TARGET_VIEW_PAGE );
$col_count = count( $t_columns );
$t_filter_position = config_get( 'filter_position' );
# -- ====================== FILTER FORM ========================= --
if( ( $t_filter_position & FILTER_POSITION_TOP ) == FILTER_POSITION_TOP ) {
filter_draw_selection_area( $f_page_number );
}
# -- ====================== end of FILTER FORM ================== --
# -- ====================== BUG LIST ============================ --
$t_status_legend_position = config_get( 'status_legend_position' );
if( $t_status_legend_position == STATUS_LEGEND_POSITION_TOP || $t_status_legend_position == STATUS_LEGEND_POSITION_BOTH ) {
html_status_legend();
}
/** @todo (thraxisp) this may want a browser check ( MS IE >= 5.0, Mozilla >= 1.0, Safari >=1.2, ...) */
if( ( ON == config_get( 'dhtml_filters' ) ) && ( ON == config_get( 'use_javascript' ) ) ){
?>