1<?php 2# MantisBT - A PHP based bugtracking system 3 4# MantisBT is free software: you can redistribute it and/or modify 5# it under the terms of the GNU General Public License as published by 6# the Free Software Foundation, either version 2 of the License, or 7# (at your option) any later version. 8# 9# MantisBT is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License 15# along with MantisBT. If not, see <http://www.gnu.org/licenses/>. 16 17/** 18 * Edit Project Categories 19 * 20 * @package MantisBT 21 * @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 22 * @copyright Copyright 2002 MantisBT Team - mantisbt-dev@lists.sourceforge.net 23 * @link http://www.mantisbt.org 24 * 25 * @uses core.php 26 * @uses access_api.php 27 * @uses authentication_api.php 28 * @uses category_api.php 29 * @uses config_api.php 30 * @uses form_api.php 31 * @uses gpc_api.php 32 * @uses helper_api.php 33 * @uses html_api.php 34 * @uses lang_api.php 35 * @uses print_api.php 36 * @uses string_api.php 37 */ 38 39require_once( 'core.php' ); 40require_api( 'access_api.php' ); 41require_api( 'authentication_api.php' ); 42require_api( 'category_api.php' ); 43require_api( 'config_api.php' ); 44require_api( 'form_api.php' ); 45require_api( 'gpc_api.php' ); 46require_api( 'helper_api.php' ); 47require_api( 'html_api.php' ); 48require_api( 'lang_api.php' ); 49require_api( 'print_api.php' ); 50require_api( 'string_api.php' ); 51 52auth_reauthenticate(); 53 54$f_category_id = gpc_get_int( 'id' ); 55$f_project_id = gpc_get_int( 'project_id' ); 56 57$t_row = category_get_row( $f_category_id ); 58$t_assigned_to = (int)$t_row['user_id']; 59$t_project_id = (int)$t_row['project_id']; 60$t_name = $t_row['name']; 61 62access_ensure_project_level( config_get( 'manage_project_threshold' ), $t_project_id ); 63 64layout_page_header(); 65 66layout_page_begin( 'manage_overview_page.php' ); 67 68print_manage_menu( 'manage_proj_cat_edit_page.php' ); 69?> 70 71<div class="col-md-12 col-xs-12"> 72 <div class="space-10"></div> 73 <div id="manage-proj-category-update-div" class="form-container"> 74 <form id="manage-proj-category-update-form" method="post" action="manage_proj_cat_update.php"> 75 <div class="widget-box widget-color-blue2"> 76 <div class="widget-header widget-header-small"> 77 <h4 class="widget-title lighter"> 78 <?php print_icon( 'fa-sitemap', 'ace-icon' ); ?> 79 <?php echo lang_get('edit_project_category_title') ?> 80 </h4> 81 </div> 82 <div class="widget-body"> 83 <div class="widget-main no-padding"> 84 <div class="table-responsive"> 85 <table class="table table-bordered table-condensed table-striped"> 86 <fieldset> 87 <?php echo form_security_field( 'manage_proj_cat_update' ) ?> 88 <input type="hidden" name="category_id" value="<?php echo string_attribute( $f_category_id ) ?>" /> 89 <tr> 90 <td class="category"> 91 <?php echo lang_get( 'category' ) ?> 92 </td> 93 <td> 94 <input type="text" id="proj-category-name" name="name" class="input-sm" size="32" maxlength="128" value="<?php echo string_attribute( $t_name ) ?>" /> 95 </td> 96 </tr> 97 <tr> 98 <td class="category"> 99 <?php echo lang_get( 'assigned_to' ) ?> 100 </td> 101 <td> 102 <select id="proj-category-assigned-to" name="assigned_to" class="input-sm"> 103 <option value="0"></option> 104 <?php print_assign_to_option_list( $t_assigned_to, $t_project_id ) ?> 105 </select> 106 </td> 107 </tr> 108 </fieldset> 109 </table> 110 </div> 111 </div> 112 </div> 113 <div class="widget-toolbox padding-8 clearfix"> 114 <input type="submit" class="btn btn-primary btn-white btn-round" value="<?php echo lang_get( 'update_category_button' ) ?>" /> 115 </div> 116 </div> 117 </form> 118 </div> 119</div> 120<?php 121 122layout_page_end(); 123