[ Index ]
 

Code source de Mantis 1.1.0rc3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/ -> history_inc.php (source)

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


Généré le : Thu Nov 29 09:42:17 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics