. #------------------------------ # $Revision: 2643 $ # $Author: al $ # $Date: 2009-06-18 19:06:27 -0400 (Thu, 18 Jun 2009) $ #------------------------------ $t_core_path = config_get( 'core_path' ); require_once( $t_core_path . 'current_user_api.php' ); require_once( $t_core_path . 'bug_api.php' ); require_once( $t_core_path . 'string_api.php' ); require_once( $t_core_path . 'date_api.php' ); require_once( $t_core_path . 'icon_api.php' ); $t_filter = current_user_get_bug_filter(); if ( $t_filter === false ) { $t_filter = filter_get_default(); } $t_sort = $t_filter['sort']; $t_dir = $t_filter['dir']; $t_checkboxes_exist = false; $t_icon_path = config_get( 'icon_path' ); $t_update_bug_threshold = config_get( 'update_bug_threshold' ); $t_bug_resolved_status_threshold = config_get( 'bug_resolved_status_threshold' ); $t_hide_status_default = config_get( 'hide_status_default' ); $t_default_show_changed = config_get( 'default_show_changed' ); $c_filter['assigned'] = array( 'show_category' => Array ( '0' => META_FILTER_ANY ), 'show_severity' => Array ( '0' => META_FILTER_ANY ), 'show_status' => Array ( '0' => META_FILTER_ANY ), 'highlight_changed' => $t_default_show_changed, 'reporter_id' => Array ( '0' => META_FILTER_ANY ), 'handler_id' => Array ( '0' => $t_current_user_id ), 'show_resolution' => Array ( '0' => META_FILTER_ANY ), 'show_build' => Array ( '0' => META_FILTER_ANY ), 'show_version' => Array ( '0' => META_FILTER_ANY ), 'hide_status' => Array ( '0' => $t_bug_resolved_status_threshold ), 'user_monitor' => Array ( '0' => META_FILTER_ANY ) ); $url_link_parameters['assigned'] = 'handler_id=' . $t_current_user_id . '&hide_status=' . $t_bug_resolved_status_threshold; $c_filter['recent_mod'] = array( 'show_category' => Array ( '0' => META_FILTER_ANY ), 'show_severity' => Array ( '0' => META_FILTER_ANY ), 'show_status' => Array ( '0' => META_FILTER_ANY ), 'highlight_changed' => $t_default_show_changed, 'reporter_id' => Array ( '0' => META_FILTER_ANY ), 'handler_id' => Array ( '0' => META_FILTER_ANY ), 'show_resolution' => Array ( '0' => META_FILTER_ANY ), 'show_build' => Array ( '0' => META_FILTER_ANY ), 'show_version' => Array ( '0' => META_FILTER_ANY ), 'hide_status' => Array ( '0' => META_FILTER_NONE ), 'user_monitor' => Array ( '0' => META_FILTER_ANY ) ); $url_link_parameters['recent_mod'] = 'hide_status=none'; $c_filter['reported'] = array( 'show_category' => Array ( '0' => META_FILTER_ANY ), 'show_severity' => Array ( '0' => META_FILTER_ANY ), 'show_status' => Array ( '0' => META_FILTER_ANY ), 'highlight_changed' => $t_default_show_changed, 'reporter_id' => Array ( '0' => $t_current_user_id ), 'handler_id' => Array ( '0' => META_FILTER_ANY ), 'sort' => 'last_updated', 'show_resolution' => Array ( '0' => META_FILTER_ANY ), 'show_build' => Array ( '0' => META_FILTER_ANY ), 'show_version' => Array ( '0' => META_FILTER_ANY ), 'hide_status' => Array ( '0' => $t_hide_status_default ), 'user_monitor' => Array ( '0' => META_FILTER_ANY ) ); $url_link_parameters['reported'] = 'reporter_id=' . $t_current_user_id . '&hide_status=' . $t_hide_status_default; $c_filter['resolved'] = array( 'show_category' => Array ( '0' => META_FILTER_ANY ), 'show_severity' => Array ( '0' => META_FILTER_ANY ), 'show_status' => Array ( '0' => $t_bug_resolved_status_threshold ), 'highlight_changed' => $t_default_show_changed, 'reporter_id' => Array ( '0' => META_FILTER_ANY ), 'handler_id' => Array ( '0' => META_FILTER_ANY ), 'show_resolution' => Array ( '0' => META_FILTER_ANY ), 'show_build' => Array ( '0' => META_FILTER_ANY ), 'show_version' => Array ( '0' => META_FILTER_ANY ), 'hide_status' => Array ( '0' => $t_hide_status_default ), 'user_monitor' => Array ( '0' => META_FILTER_ANY ) ); $url_link_parameters['resolved'] = 'show_status=' . $t_bug_resolved_status_threshold . '&hide_status=' . $t_bug_resolved_status_threshold; $c_filter['unassigned'] = array( 'show_category' => Array ( '0' => META_FILTER_ANY ), 'show_severity' => Array ( '0' => META_FILTER_ANY ), 'show_status' => Array ( '0' => META_FILTER_ANY ), 'highlight_changed' => $t_default_show_changed, 'reporter_id' => Array ( '0' => META_FILTER_ANY ), 'handler_id' => Array ( '0' => META_FILTER_NONE ), 'show_resolution' => Array ( '0' => META_FILTER_ANY ), 'show_build' => Array ( '0' => META_FILTER_ANY ), 'show_version' => Array ( '0' => META_FILTER_ANY ), 'hide_status' => Array ( '0' => $t_hide_status_default ), 'user_monitor' => Array ( '0' => META_FILTER_ANY ) ); $url_link_parameters['unassigned'] = 'handler_id=[none]' . '&hide_status=' . $t_hide_status_default; $c_filter['monitored'] = array( 'show_category' => Array ( '0' => META_FILTER_ANY ), 'show_severity' => Array ( '0' => META_FILTER_ANY ), 'show_status' => Array ( '0' => META_FILTER_ANY ), 'highlight_changed' => $t_default_show_changed, 'reporter_id' => Array ( '0' => META_FILTER_ANY ), 'handler_id' => Array ( '0' => META_FILTER_ANY ), 'show_resolution' => Array ( '0' => META_FILTER_ANY ), 'show_build' => Array ( '0' => META_FILTER_ANY ), 'show_version' => Array ( '0' => META_FILTER_ANY ), 'hide_status' => Array ( '0' => $t_hide_status_default ), 'user_monitor' => Array ( '0' => $t_current_user_id ) ); $url_link_parameters['monitored'] = 'user_monitor=' . $t_current_user_id . '&hide_status=' . $t_hide_status_default; $c_filter['feedback'] = array( 'show_category' => Array ( '0' => META_FILTER_ANY ), 'show_severity' => Array ( '0' => META_FILTER_ANY ), 'show_status' => Array ( '0' => FEEDBACK ), 'highlight_changed' => $t_default_show_changed, 'reporter_id' => Array ( '0' => $t_current_user_id ), 'handler_id' => Array ( '0' => META_FILTER_ANY ), 'show_resolution' => Array ( '0' => META_FILTER_ANY ), 'show_build' => Array ( '0' => META_FILTER_ANY ), 'show_version' => Array ( '0' => META_FILTER_ANY ), 'hide_status' => Array ( '0' => $t_hide_status_default ), 'user_monitor' => Array ( '0' => META_FILTER_ANY ) ); $url_link_parameters['feedback'] = 'reporter_id=' . $t_current_user_id . '&show_status=' . FEEDBACK . '&hide_status=' . $t_hide_status_default; $c_filter['verify'] = array( 'show_category' => Array ( '0' => META_FILTER_ANY ), 'show_severity' => Array ( '0' => META_FILTER_ANY ), 'show_status' => Array ( '0' => $t_bug_resolved_status_threshold ), 'highlight_changed' => $t_default_show_changed, 'reporter_id' => Array ( '0' => $t_current_user_id ), 'handler_id' => Array ( '0' => META_FILTER_ANY ), 'show_resolution' => Array ( '0' => META_FILTER_ANY ), 'show_build' => Array ( '0' => META_FILTER_ANY ), 'show_version' => Array ( '0' => META_FILTER_ANY ), 'hide_status' => Array ( '0' => $t_hide_status_default ), 'user_monitor' => Array ( '0' => META_FILTER_ANY ) ); $url_link_parameters['verify'] = 'reporter_id=' . $t_current_user_id . '&show_status=' . $t_bug_resolved_status_threshold; $rows = filter_get_bug_rows ( $f_page_number, $t_per_page, $t_page_count, $t_bug_count, $c_filter[$t_box_title] ); $t_filter = array_merge( $c_filter[$t_box_title], $t_filter ); $box_title = lang_get( 'my_view_title_' . $t_box_title ); ?>
'; echo $box_title; echo ''; echo ' ['; echo ''; echo '^'; echo ']'; ?> 0 ) { $v_start = $t_filter['per_page'] * ($f_page_number-1) +1; $v_end = $v_start + sizeof( $rows ) -1; } else { $v_start = 0; $v_end = 0; } echo "($v_start - $v_end / $t_bug_count)"; ?>
'; if ( !bug_is_readonly( $v_id ) && access_has_bug_level( $t_update_bug_threshold, $v_id ) ) { echo '' . lang_get( 'update_bug_button' ) . ''; } if ( ON == config_get( 'show_priority_text' ) ) { print_formatted_priority_string( $v_status, $v_priority ); } else { print_status_icon( $v_priority ); } if ( 0 < $t_attachment_count ) { echo ''; echo '' . lang_get( 'attachment_alt' ) . ''; echo ''; } if ( VS_PRIVATE == $v_view_state ) { echo '' . lang_get( 'private' ) . ''; } ?>
strtotime( '-'.$t_filter['highlight_changed'].' hours' ) ) { echo ' - ' . $t_last_updated . ''; } else { echo ' - ' . $t_last_updated; } ?>