[ 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_reminder_page.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_reminder_page.php,v 1.23.2.1 2007-10-13 22:32:50 giallu Exp $
  22      # --------------------------------------------------------
  23  ?>
  24  <?php
  25      require_once ( 'core.php' );
  26  
  27      $t_core_path = config_get( 'core_path' );
  28  
  29      require_once( $t_core_path.'bug_api.php' );
  30  ?>
  31  <?php
  32      $f_bug_id = gpc_get_int( 'bug_id' );
  33  
  34      if ( bug_is_readonly( $f_bug_id ) ) {
  35          error_parameters( $f_bug_id );
  36          trigger_error( ERROR_BUG_READ_ONLY_ACTION_DENIED, ERROR );
  37      }
  38  
  39      access_ensure_bug_level( config_get( 'bug_reminder_threshold' ), $f_bug_id );
  40  
  41      $t_bug = bug_get( $f_bug_id, true );
  42      if( $t_bug->project_id != helper_get_current_project() ) {
  43          # in case the current project is not the same project of the bug we are viewing...
  44          # ... override the current project. This to avoid problems with categories and handlers lists etc.
  45          $g_project_override = $t_bug->project_id;
  46      }
  47  
  48  ?>
  49  <?php html_page_top1( bug_format_summary( $f_bug_id, SUMMARY_CAPTION ) ) ?>
  50  <?php html_page_top2() ?>
  51  
  52  <?php # Send reminder Form BEGIN ?>
  53  <br />
  54  <div align="center">
  55  <table class="width75" cellspacing="1">
  56  <form method="post" action="bug_reminder.php">
  57  <input type="hidden" name="bug_id" value="<?php echo $f_bug_id ?>">
  58  <tr>
  59      <td class="form-title" colspan="2">
  60          <?php echo lang_get( 'bug_reminder' ) ?>
  61      </td>
  62  </tr>
  63  <tr>
  64      <td class="category">
  65          <?php echo lang_get( 'to' ) ?>
  66      </td>
  67      <td class="category">
  68          <?php echo lang_get( 'reminder' ) ?>
  69      </td>
  70  </tr>
  71  <tr <?php echo helper_alternate_class() ?>>
  72      <td>
  73          <select name="to[]" multiple="multiple" size="10">
  74              <?php echo print_project_user_option_list( bug_get_field( $f_bug_id, 'project_id' ) ) ?>
  75          </select>
  76      </td>
  77      <td class="center">
  78          <textarea name="body" cols="65" rows="10"></textarea>
  79      </td>
  80  </tr>
  81  <tr>
  82      <td class="center" colspan="2">
  83          <input type="submit" class="button" value="<?php echo lang_get( 'bug_send_button' ) ?>">
  84      </td>
  85  </tr>
  86  </form>
  87  </table>
  88  <br />
  89  <table class="width75" cellspacing="1">
  90  <tr>
  91      <td>
  92          <?php
  93              echo lang_get( 'reminder_explain' ) . ' ';
  94              if ( ON == config_get( 'reminder_recipents_monitor_bug' ) ) {
  95                  echo lang_get( 'reminder_monitor' ) . ' ';
  96              }
  97              if ( ON == config_get( 'store_reminders' ) ) {
  98                  echo lang_get( 'reminder_store' );
  99              }
 100          ?>
 101      </td>
 102  </tr>
 103  </table>
 104  </div>
 105  
 106  <br />
 107  <?php include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'bug_view_inc.php' ) ?>
 108  <?php include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'bugnote_view_inc.php' ) ?>
 109  
 110  <?php html_page_bottom1( __FILE__ ) ?>


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