.
/**
* Bugs to display / print / export can be selected with the checkboxes
* A printing Options link allows to choose the fields to export
* Export :
* - the bugs displayed in print_all_bug_page.php are saved in a .doc or .xls file
* - the IE icons allows to see or directly print the same result
*
* @package MantisBT
* @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
* @copyright Copyright 2002 MantisBT Team - mantisbt-dev@lists.sourceforge.net
* @link http://www.mantisbt.org
*
* @uses core.php
* @uses authentication_api.php
* @uses config_api.php
* @uses constant_inc.php
* @uses filter_api.php
* @uses filter_constants_inc.php
* @uses gpc_api.php
* @uses helper_api.php
* @uses html_api.php
* @uses lang_api.php
* @uses print_api.php
* @uses project_api.php
* @uses string_api.php
* @uses utility_api.php
*/
require_once( 'core.php' );
require_api( 'authentication_api.php' );
require_api( 'config_api.php' );
require_api( 'constant_inc.php' );
require_api( 'filter_api.php' );
require_api( 'filter_constants_inc.php' );
require_api( 'gpc_api.php' );
require_api( 'helper_api.php' );
require_api( 'html_api.php' );
require_api( 'lang_api.php' );
require_api( 'print_api.php' );
require_api( 'project_api.php' );
require_api( 'string_api.php' );
require_api( 'utility_api.php' );
auth_ensure_user_authenticated();
$f_search = gpc_get_string( FILTER_PROPERTY_SEARCH, false ); # @todo need a better default
$f_offset = gpc_get_int( 'offset', 0 );
$t_cookie_value_id = gpc_get_cookie( config_get( 'view_all_cookie' ), '' );
$t_cookie_value = filter_db_get_filter( $t_cookie_value_id );
$f_highlight_changed = 0;
$f_sort = null;
$f_dir = null;
$t_project_id = 0;
$t_columns = helper_get_columns_to_view( COLUMNS_TARGET_PRINT_PAGE );
$t_num_of_columns = count( $t_columns );
# check to see if the cookie exists
if( !is_blank( $t_cookie_value ) ) {
# check to see if new cookie is needed
if( !filter_is_cookie_valid() ) {
print_header_redirect( 'view_all_set.php?type=0&print=1' );
}
$t_setting_arr = explode( '#', $t_cookie_value, 2 );
$t_filter_cookie_arr = json_decode( $t_setting_arr[1], true );
$f_highlight_changed = $t_filter_cookie_arr[FILTER_PROPERTY_HIGHLIGHT_CHANGED];
$f_sort = $t_filter_cookie_arr[FILTER_PROPERTY_SORT_FIELD_NAME];
$f_dir = $t_filter_cookie_arr[FILTER_PROPERTY_SORT_DIRECTION];
$t_project_id = helper_get_current_project();
}
# This replaces the actual search that used to be here
$f_page_number = gpc_get_int( 'page_number', 1 );
$t_per_page = -1;
$t_bug_count = null;
$t_page_count = null;
$t_result = filter_get_bug_rows( $f_page_number, $t_per_page, $t_page_count, $t_bug_count );
$t_row_count = count( $t_result );
# pre-cache column data
bug_cache_columns_data( $t_result, $t_columns );
# for export
$t_show_flag = gpc_get_int( 'show_flag', 0 );
html_page_top();
?>
|