| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
1 <?php 2 # MantisBT - A PHP based bugtracking system 3 4 # MantisBT is free software: you can redistribute it and/or modify 5 # it under the terms of the GNU General Public License as published by 6 # the Free Software Foundation, either version 2 of the License, or 7 # (at your option) any later version. 8 # 9 # MantisBT is distributed in the hope that it will be useful, 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 # GNU General Public License for more details. 13 # 14 # You should have received a copy of the GNU General Public License 15 # along with MantisBT. If not, see <http://www.gnu.org/licenses/>. 16 17 /** 18 * This include file prints out the bug history 19 * $f_bug_id must already be defined 20 * 21 * @package MantisBT 22 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 23 * @copyright Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net 24 * @link http://www.mantisbt.org 25 * 26 * @uses access_api.php 27 * @uses collapse_api.php 28 * @uses config_api.php 29 * @uses helper_api.php 30 * @uses history_api.php 31 * @uses lang_api.php 32 * @uses print_api.php 33 * @uses string_api.php 34 */ 35 36 if ( !defined( 'HISTORY_INC_ALLOW' ) ) { 37 return; 38 } 39 40 require_api( 'access_api.php' ); 41 require_api( 'collapse_api.php' ); 42 require_api( 'config_api.php' ); 43 require_api( 'helper_api.php' ); 44 require_api( 'history_api.php' ); 45 require_api( 'lang_api.php' ); 46 require_api( 'print_api.php' ); 47 require_api( 'string_api.php' ); 48 49 $t_access_level_needed = config_get( 'view_history_threshold' ); 50 if ( !access_has_bug_level( $t_access_level_needed, $f_bug_id ) ) { 51 return; 52 } 53 ?> 54 55 <a id="history"></a><br /> 56 57 <?php 58 collapse_open( 'history' ); 59 $t_history = history_get_events_array( $f_bug_id ); 60 ?> 61 <table class="width100" cellspacing="0"> 62 <tr> 63 <td class="form-title" colspan="4"> 64 <?php 65 collapse_icon( 'history' ); 66 echo lang_get( 'bug_history' ) ?> 67 </td> 68 </tr> 69 <tr class="row-category-history"> 70 <td class="small-caption"> 71 <?php echo lang_get( 'date_modified' ) ?> 72 </td> 73 <td class="small-caption"> 74 <?php echo lang_get( 'username' ) ?> 75 </td> 76 <td class="small-caption"> 77 <?php echo lang_get( 'field' ) ?> 78 </td> 79 <td class="small-caption"> 80 <?php echo lang_get( 'change' ) ?> 81 </td> 82 </tr> 83 <?php 84 foreach ( $t_history as $t_item ) { 85 ?> 86 <tr <?php echo helper_alternate_class() ?>> 87 <td class="small-caption"> 88 <?php echo $t_item['date'] ?> 89 </td> 90 <td class="small-caption"> 91 <?php print_user( $t_item['userid'] ) ?> 92 </td> 93 <td class="small-caption"> 94 <?php echo string_display( $t_item['note'] ) ?> 95 </td> 96 <td class="small-caption"> 97 <?php echo ( $t_item['raw'] ? string_display_line_links( $t_item['change'] ) : $t_item['change'] ) ?> 98 </td> 99 </tr> 100 <?php 101 } # end for loop 102 ?> 103 </table> 104 <?php 105 collapse_closed( 'history' ); 106 ?> 107 <table class="width100" cellspacing="0"> 108 <tr> 109 <td class="form-title" colspan="4"> 110 <?php collapse_icon( 'history' ); 111 echo lang_get( 'bug_history' ) ?> 112 </td> 113 </tr> 114 </table> 115 116 <?php 117 collapse_end( 'history' );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |