$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(); ?> <table class="width100"><tr><td class="form-title"> <div class="center"> <?php echo string_display(config_get('window_title')) . ' - ' . string_display(project_get_name($t_project_id)); ?> </div> </td></tr></table>
/** * Output Bug Rows * * @param array array of bug objects */ function write_bug_rows($p_rows) { global $t_columns, $t_filter; $t_in_stickies = $t_filter && 'on' == $t_filter[FILTER_PROPERTY_STICKY]; # pre-cache custom column data columns_plugin_cache_issue_data($p_rows); # -- Loop over bug rows -- $t_rows = count($p_rows); for ($i = 0; $i < $t_rows; $i++) { $t_row = $p_rows[$i]; if (0 == $t_row->sticky && 0 == $i) { $t_in_stickies = false; } if (0 == $t_row->sticky && $t_in_stickies) { # demarcate stickies, if any have been shown ?> <tr> <td class="left" colspan="<?php echo count($t_columns); ?> " bgcolor="#999999"> </td> </tr> <?php $t_in_stickies = false; } # choose color based on status $status_label = html_get_status_css_class($t_row->status, auth_get_current_user_id(), $t_row->project_id); echo '<tr class="' . $status_label . '">'; $t_column_value_function = 'print_column_value'; foreach ($t_columns as $t_column) { helper_call_custom_function($t_column_value_function, array($t_column, $t_row)); } echo '</tr>'; } }
require_api('print_api.php'); auth_ensure_user_authenticated(); helper_begin_long_process(); $t_page_number = 1; $t_per_page = -1; $t_bug_count = null; $t_page_count = null; $t_nl = csv_get_newline(); $t_sep = csv_get_separator(); # Get bug rows according to the current filter $t_rows = filter_get_bug_rows($t_page_number, $t_per_page, $t_page_count, $t_bug_count); if ($t_rows === false) { print_header_redirect('view_all_set.php?type=0'); } # pre-cache custom column data columns_plugin_cache_issue_data($t_rows); $t_filename = csv_get_default_filename(); # Send headers to browser to activate mime loading # Make sure that IE can download the attachments under https. header('Pragma: public'); header('Content-Type: text/csv; name=' . urlencode(file_clean_name($t_filename))); header('Content-Transfer-Encoding: BASE64;'); # Added Quotes (") around file name. header('Content-Disposition: attachment; filename="' . urlencode(file_clean_name($t_filename)) . '"'); # Get columns to be exported $t_columns = csv_get_columns(); # export BOM if (config_get('csv_add_bom') == ON) { echo ""; } # export the titles
$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 custom column data columns_plugin_cache_issue_data($t_result, $t_columns); # for export $t_show_flag = gpc_get_int('show_flag', 0); html_page_top(); ?> <br> <table class="width100"><tr><td class="form-title"> <div class="center"> <?php echo string_display(config_get('window_title')) . ' - ' . string_display(project_get_name($t_project_id)); ?> </div> </td></tr></table> <br />