[ Index ]
 

Code source de Mantis 1.1.0rc3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/ -> bug_view_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: bug_view_inc.php,v 1.16.2.1 2007-10-13 22:33:00 giallu Exp $
  22      # --------------------------------------------------------
  23  ?>
  24  <?php
  25      # This include file prints out the bug information
  26      # $f_bug_id MUST be specified before the file is included
  27  ?>
  28  <?php
  29      $t_core_path = config_get( 'core_path' );
  30  
  31      require_once( $t_core_path.'bug_api.php' );
  32      require_once( $t_core_path.'date_api.php' );
  33  ?>
  34  <?php
  35      $t_bug = bug_prepare_display( bug_get( $f_bug_id, true ) );
  36  ?>
  37  
  38  <table class="width100" cellspacing="1">
  39  
  40  <!-- Title -->
  41  <tr>
  42      <td class="form-title" colspan="6">
  43          <?php echo lang_get( 'viewing_bug_simple_details_title' ) ?>
  44      </td>
  45  </tr>
  46  
  47  
  48  <!-- Labels -->
  49  <tr class="row-category">
  50      <td width="15%">
  51          <?php echo lang_get( 'id' ) ?>
  52      </td>
  53      <td width="20%">
  54          <?php echo lang_get( 'category' ) ?>
  55      </td>
  56      <td width="15%">
  57          <?php echo lang_get( 'severity' ) ?>
  58      </td>
  59      <td width="20%">
  60          <?php echo lang_get( 'reproducibility' ) ?>
  61      </td>
  62      <td width="15%">
  63          <?php echo lang_get( 'date_submitted' ) ?>
  64      </td>
  65      <td width="15%">
  66          <?php echo lang_get( 'last_update' ) ?>
  67      </td>
  68  </tr>
  69  
  70  
  71  <tr <?php echo helper_alternate_class() ?>>
  72  
  73      <!-- Bug ID -->
  74      <td>
  75          <?php echo bug_format_id( $f_bug_id ) ?>
  76      </td>
  77  
  78      <!-- Category -->
  79      <td>
  80          <?php echo $t_bug->category ?>
  81      </td>
  82  
  83      <!-- Severity -->
  84      <td>
  85          <?php echo get_enum_element( 'severity', $t_bug->severity ) ?>
  86      </td>
  87  
  88      <!-- Reproducibility -->
  89      <td>
  90          <?php echo get_enum_element( 'reproducibility', $t_bug->reproducibility ) ?>
  91      </td>
  92  
  93      <!-- Date Submitted -->
  94      <td>
  95          <?php print_date( config_get( 'normal_date_format' ), $t_bug->date_submitted ) ?>
  96      </td>
  97  
  98      <!-- Date Updated -->
  99      <td>
 100          <?php print_date( config_get( 'normal_date_format' ), $t_bug->last_updated ) ?>
 101      </td>
 102  
 103  </tr>
 104  
 105  
 106  <!-- spacer -->
 107  <tr class="spacer">
 108      <td colspan="6"></td>
 109  </tr>
 110  
 111  
 112  <tr <?php echo helper_alternate_class() ?>>
 113  
 114      <!-- Reporter -->
 115      <td class="category">
 116          <?php echo lang_get( 'reporter' ) ?>
 117      </td>
 118      <td>
 119          <?php print_user_with_subject( $t_bug->reporter_id, $f_bug_id ) ?>
 120      </td>
 121  
 122      <!-- View Status -->
 123      <td class="category">
 124          <?php echo lang_get( 'view_status' ) ?>
 125      </td>
 126      <td>
 127          <?php echo get_enum_element( 'project_view_state', $t_bug->view_state ) ?>
 128      </td>
 129  
 130      <!-- spacer -->
 131      <td colspan="2">&nbsp;</td>
 132  
 133  </tr>
 134  
 135  
 136  <!-- Handler -->
 137  <tr <?php echo helper_alternate_class() ?>>
 138      <td class="category">
 139          <?php echo lang_get( 'assigned_to' ) ?>
 140      </td>
 141      <td colspan="5">
 142          <?php print_user_with_subject( $t_bug->handler_id, $f_bug_id ) ?>
 143      </td>
 144  </tr>
 145  
 146  <tr <?php echo helper_alternate_class() ?>>
 147  
 148      <!-- Priority -->
 149      <td class="category">
 150          <?php echo lang_get( 'priority' ) ?>
 151      </td>
 152      <td>
 153          <?php echo get_enum_element( 'priority', $t_bug->priority ) ?>
 154      </td>
 155  
 156      <!-- Resolution -->
 157      <td class="category">
 158          <?php echo lang_get( 'resolution' ) ?>
 159      </td>
 160      <td>
 161          <?php echo get_enum_element( 'resolution', $t_bug->resolution ) ?>
 162      </td>
 163  
 164      <!-- spacer -->
 165      <td colspan="2">&nbsp;</td>
 166  </tr>
 167  
 168  
 169  <tr <?php echo helper_alternate_class() ?>>
 170  
 171      <!-- Status -->
 172      <td class="category">
 173          <?php echo lang_get( 'status' ) ?>
 174      </td>
 175      <td bgcolor="<?php echo get_status_color( $t_bug->status ) ?>">
 176          <?php echo get_enum_element( 'status', $t_bug->status ) ?>
 177      </td>
 178  
 179      <!-- Duplicate ID -->
 180      <td class="category">
 181          <?php
 182              if ( ! config_get( 'enable_relationship' ) ) {
 183                  echo lang_get( 'duplicate_id' );
 184              } # MASC RELATIONSHIP
 185          ?>&nbsp;
 186      </td>
 187      <td>
 188          <?php
 189              if ( !config_get( 'enable_relationship' ) ) {
 190                  print_duplicate_id( $t_bug->duplicate_id );
 191              } # MASC RELATIONSHIP
 192          ?>&nbsp;
 193      </td>
 194  
 195      <!-- spacer -->
 196      <td colspan="2">&nbsp;</td>
 197  
 198  </tr>
 199  
 200  
 201  <!-- spacer giallu-->
 202  <tr class="spacer">
 203      <td colspan="6"></td>
 204  </tr>
 205  
 206  
 207  <!-- Summary -->
 208  <tr <?php echo helper_alternate_class() ?>>
 209      <td class="category">
 210          <?php echo lang_get( 'summary' ) ?>
 211      </td>
 212      <td colspan="5">
 213          <?php echo bug_format_summary( $f_bug_id, SUMMARY_FIELD ) ?>
 214      </td>
 215  </tr>
 216  
 217  
 218  <!-- Description -->
 219  <tr <?php echo helper_alternate_class() ?>>
 220      <td class="category">
 221          <?php echo lang_get( 'description' ) ?>
 222      </td>
 223      <td colspan="5">
 224          <?php echo $t_bug->description ?>
 225      </td>
 226  </tr>
 227  
 228  
 229  <!-- Additional Information -->
 230  <tr <?php echo helper_alternate_class() ?>>
 231      <td class="category">
 232          <?php echo lang_get( 'additional_information' ) ?>
 233      </td>
 234      <td colspan="5">
 235          <?php echo $t_bug->additional_information ?>
 236      </td>
 237  </tr>
 238  
 239  
 240  </table>


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