[ 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_proj_cat_edit_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_proj_cat_edit_page.php,v 1.32.2.1 2007-10-13 22:33:32 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.'category_api.php' );
  29  
  30      auth_reauthenticate();
  31  
  32      $f_project_id    = gpc_get_int( 'project_id' );
  33      $f_category        = gpc_get_string( 'category' );
  34  
  35      access_ensure_project_level( config_get( 'manage_project_threshold' ), $f_project_id );
  36  
  37      $t_row = category_get_row( $f_project_id, $f_category );
  38      $t_assigned_to = $t_row['user_id'];
  39      
  40      html_page_top1();
  41      html_page_top2();
  42  
  43      print_manage_menu( 'manage_proj_cat_edit_page.php' );
  44  ?>
  45  
  46  <br />
  47  <div align="center">
  48  <form method="post" action="manage_proj_cat_update.php">
  49  <table class="width50" cellspacing="1">
  50  <tr>
  51      <td class="form-title" colspan="2">
  52          <?php echo lang_get( 'edit_project_category_title' ) ?>
  53      </td>
  54  </tr>
  55  <tr <?php echo helper_alternate_class() ?>>
  56      <td class="category">
  57          <input type="hidden" name="project_id" value="<?php echo string_attribute( $f_project_id ) ?>" />
  58          <input type="hidden" name="category" value="<?php echo string_attribute( $f_category ) ?>" />
  59          <?php echo lang_get( 'category' ) ?>
  60      </td>
  61      <td>
  62          <input type="text" name="new_category" size="32" maxlength="64" value="<?php echo string_attribute( $f_category ) ?>" />
  63      </td>
  64  </tr>
  65  <tr <?php echo helper_alternate_class() ?>>
  66      <td class="category">
  67          <?php echo lang_get( 'assigned_to' ) ?>
  68      </td>
  69      <td>
  70          <select name="assigned_to">
  71              <option value="0"></option>
  72              <?php print_assign_to_option_list( $t_assigned_to, $f_project_id ) ?>
  73          </select>
  74      </td>
  75  </tr>
  76  <tr>
  77      <td>
  78          &nbsp;
  79      </td>
  80      <td>
  81          <input type="submit" class="button" value="<?php echo lang_get( 'update_category_button' ) ?>" />
  82      </td>
  83  </tr>
  84  </table>
  85  </form>
  86  </div>
  87  
  88  <br />
  89  
  90  <div class="border-center">
  91      <form method="post" action="manage_proj_cat_delete.php">
  92          <input type="hidden" name="project_id" value="<?php echo string_attribute( $f_project_id ) ?>" />
  93          <input type="hidden" name="category" value="<?php echo string_attribute( $f_category ) ?>" />
  94          <input type="submit" class="button" value="<?php echo lang_get( 'delete_category_button' ) ?>" />
  95      </form>
  96  </div>
  97  
  98  <?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