. /** * 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 (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 */ /** * MantisBT Core API's */ require_once( 'core.php' ); require_once( 'current_user_api.php' ); require_once( 'bug_api.php' ); require_once( 'date_api.php' ); require_once( 'icon_api.php' ); require_once( 'string_api.php' ); require_once( 'columns_api.php' ); require_once( 'config_filter_defaults_inc.php' ); auth_ensure_user_authenticated(); $f_search = gpc_get_string( FILTER_PROPERTY_FREE_TEXT, 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 = unserialize( $t_setting_arr[1] ); $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; $result = filter_get_bug_rows( $f_page_number, $t_per_page, $t_page_count, $t_bug_count ); $row_count = count( $result ); # pre-cache custom column data columns_plugin_cache_issue_data( $result ); # for export $t_show_flag = gpc_get_int( 'show_flag', 0 ); html_page_top1(); html_head_end(); html_body_begin(); ?>
|