[ Index ]
 

Code source de Mantis 1.1.0rc3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/ -> manage_custom_field_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: manage_custom_field_page.php,v 1.19.2.1 2007-10-13 22:33:28 giallu Exp $
  22      # --------------------------------------------------------
  23  
  24      require_once ( 'core.php' );
  25  
  26      $t_core_path = config_get( 'core_path' );
  27  
  28      require_once( $t_core_path.'custom_field_api.php' );
  29  
  30      auth_reauthenticate();
  31  
  32      access_ensure_global_level( config_get( 'manage_custom_fields_threshold' ) );
  33  
  34      html_page_top1( lang_get( 'manage_custom_field_link' ) );
  35      html_page_top2();
  36  
  37      print_manage_menu( 'manage_custom_field_page.php' );
  38  ?>
  39      <br />
  40  
  41  <!-- List of custom field -->
  42  <table class="width100" cellspacing="1">
  43      <tr>
  44          <td class="form-title" colspan="6">
  45                  <?php echo lang_get( 'custom_fields_setup' ) ?>
  46          </td>
  47      </tr>
  48      <tr>
  49          <td class="category" width="12%">
  50              <?php echo lang_get( 'custom_field_name' ) ?>
  51          </td>
  52          <td class="category" width="12%">
  53              <?php echo lang_get( 'custom_field_project_count' ) ?>
  54          </td>
  55          <td class="category" width="12%">
  56              <?php echo lang_get( 'custom_field_type' ) ?>
  57          </td>
  58          <td class="category" width="40%">
  59              <?php echo lang_get( 'custom_field_possible_values' ) ?>
  60          </td>
  61          <td class="category" width="12%">
  62              <?php echo lang_get( 'custom_field_default_value' ) ?>
  63          </td>
  64          <td class="category" width="12%">
  65              <?php echo lang_get( 'custom_field_advanced' ) ?>
  66          </td>
  67      </tr>
  68      <?php
  69          $t_custom_fields = custom_field_get_ids();
  70          foreach( $t_custom_fields as $t_field_id )
  71          {
  72              $t_desc = custom_field_get_definition( $t_field_id );
  73      ?>
  74          <tr <?php echo helper_alternate_class() ?>>
  75              <td>
  76                  <a href="manage_custom_field_edit_page.php?field_id=<?php echo $t_field_id ?>"><?php echo string_display( $t_desc['name'] ) ?></a>
  77              </td>
  78              <td>
  79                  <?php echo count( custom_field_get_project_ids( $t_field_id ) ) ?>
  80              </td>
  81              <td>
  82                  <?php echo get_enum_element( 'custom_field_type', $t_desc['type'] ) ?>
  83              </td>
  84              <td>
  85                  <?php echo string_display( $t_desc['possible_values'] ) ?>
  86              </td>
  87              <td>
  88                  <?php echo string_display( $t_desc['default_value'] ) ?>
  89              </td>
  90              <td align="center">
  91                  <?php echo trans_bool( $t_desc['advanced'] ) ?>
  92              </td>
  93          </tr>
  94      <?php
  95          } # Create Form END
  96      ?>
  97  </table>
  98  
  99  <br />
 100  
 101  <form method="post" action="manage_custom_field_create.php">
 102          <input type="text" name="name" size="32" maxlength="64" />
 103          <input type="submit" class="button" value="<?php echo lang_get( 'add_custom_field_button' ) ?>" />
 104  </form>
 105  
 106  <br />
 107  
 108  <?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