[ Index ]
 

Code source de Mantis 1.1.0rc3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/ -> bugnote_add_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: bugnote_add_inc.php,v 1.34.2.1 2007-10-13 22:33:05 giallu Exp $
  22      # --------------------------------------------------------
  23  ?>
  24  <?php if ( ( !bug_is_readonly( $f_bug_id ) ) &&
  25          ( access_has_bug_level( config_get( 'add_bugnote_threshold' ), $f_bug_id ) ) ) { ?>
  26  <?php # Bugnote Add Form BEGIN ?>
  27  <a name="addbugnote"></a> <br />
  28  
  29  <?php
  30      collapse_open( 'bugnote_add' );
  31  ?>
  32  <form name="bugnoteadd" method="post" action="bugnote_add.php">
  33  <input type="hidden" name="bug_id" value="<?php echo $f_bug_id ?>" />
  34  <table class="width100" cellspacing="1">
  35  <tr>
  36      <td class="form-title" colspan="2">
  37  <?php
  38      collapse_icon( 'bugnote_add' );
  39      echo lang_get( 'add_bugnote_title' ) ?>
  40      </td>
  41  </tr>
  42  <tr class="row-2">
  43      <td class="category" width="25%">
  44          <?php echo lang_get( 'bugnote' ) ?>
  45      </td>
  46      <td width="75%">
  47          <textarea name="bugnote_text" cols="80" rows="10"></textarea>
  48      </td>
  49  </tr>
  50  <?php if ( access_has_bug_level( config_get( 'private_bugnote_threshold' ), $f_bug_id ) ) { ?>
  51  <tr class="row-1">
  52      <td class="category">
  53          <?php echo lang_get( 'view_status' ) ?>
  54      </td>
  55      <td>
  56  <?php
  57          $t_default_bugnote_view_status = config_get( 'default_bugnote_view_status' );
  58          if ( access_has_bug_level( config_get( 'set_view_status_threshold' ), $f_bug_id ) ) {
  59  ?>
  60              <input type="checkbox" name="private" <?php check_checked( $t_default_bugnote_view_status, VS_PRIVATE ); ?> />
  61  <?php
  62              echo lang_get( 'private' );
  63          } else {
  64              echo get_enum_element( 'project_view_state', $t_default_bugnote_view_status );
  65          }
  66  ?>
  67      </td>
  68  </tr>
  69  <?php } ?>
  70  
  71  <?php if ( config_get('time_tracking_enabled') ) { ?>
  72  <?php if ( access_has_bug_level( config_get( 'time_tracking_edit_threshold' ), $f_bug_id ) ) { ?>
  73  <tr <?php echo helper_alternate_class() ?>>
  74      <td class="category">
  75          <?php echo lang_get( 'time_tracking' ) ?>
  76      </td>
  77      <td>
  78          <?php if ( config_get('time_tracking_stopwatch') && ON == config_get( 'use_javascript' )) { ?>
  79          <script type="text/javascript" language="JavaScript" src="javascript/time_tracking_stopwatch.js"></script>
  80          <input type="text" name="time_tracking" size="5" value="00:00" />
  81          <input type="button" name="time_tracking_ssbutton" value="Start" onclick="time_tracking_swstartstop()" />
  82          <input type="button" name="time_tracking_reset" value="R" onclick="time_tracking_swreset()" />
  83          <?php } else { ?>
  84          <input type="text" name="time_tracking" size="5" value="00:00" />
  85          <?php } ?>
  86      </td>
  87  </tr>
  88  <?php } ?>
  89  <?php } ?>
  90  
  91  <tr>
  92      <td class="center" colspan="2">
  93          <input type="submit" class="button" value="<?php echo lang_get( 'add_bugnote_button' ) ?>" />
  94      </td>
  95  </tr>
  96  </table>
  97  </form>
  98  </div>
  99  <?php
 100      collapse_closed( 'bugnote_add' );
 101  ?>
 102  <table class="width100" cellspacing="1">
 103  <tr>
 104      <td class="form-title" colspan="2">
 105      <?php    collapse_icon( 'bugnote_add' );
 106          echo lang_get( 'add_bugnote_title' ) ?>
 107      </td>
 108  </tr>
 109  </table>
 110  <?php 
 111      collapse_end( 'bugnote_add' );
 112  ?>
 113  
 114  <?php # Bugnote Add Form END ?>
 115  <?php } ?>


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