| [ Index ] |
PHP Cross Reference of MantisBT |
[Summary view] [Print] [Text view]
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 * @package MantisBT 19 * @copyright Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net 20 * @link http://www.mantisbt.org 21 * 22 * @uses core.php 23 * @uses access_api.php 24 * @uses authentication_api.php 25 * @uses compress_api.php 26 * @uses config_api.php 27 * @uses constant_inc.php 28 * @uses form_api.php 29 * @uses gpc_api.php 30 * @uses helper_api.php 31 * @uses html_api.php 32 * @uses lang_api.php 33 * @uses prepare_api.php 34 * @uses print_api.php 35 * @uses string_api.php 36 * @uses tag_api.php 37 * @uses user_api.php 38 */ 39 40 /** 41 * MantisBT Core API's 42 */ 43 require_once ( 'core.php' ); 44 require_api( 'access_api.php' ); 45 require_api( 'authentication_api.php' ); 46 require_api( 'compress_api.php' ); 47 require_api( 'config_api.php' ); 48 require_api( 'constant_inc.php' ); 49 require_api( 'form_api.php' ); 50 require_api( 'gpc_api.php' ); 51 require_api( 'helper_api.php' ); 52 require_api( 'html_api.php' ); 53 require_api( 'lang_api.php' ); 54 require_api( 'prepare_api.php' ); 55 require_api( 'print_api.php' ); 56 require_api( 'string_api.php' ); 57 require_api( 'tag_api.php' ); 58 require_api( 'user_api.php' ); 59 60 compress_enable(); 61 62 $f_tag_id = gpc_get_int( 'tag_id' ); 63 $t_tag_row = tag_get( $f_tag_id ); 64 65 $t_name = string_display_line( $t_tag_row['name'] ); 66 $t_description = string_display( $t_tag_row['description'] ); 67 68 if ( !( access_has_global_level( config_get( 'tag_edit_threshold' ) ) 69 || ( auth_get_current_user_id() == $t_tag_row['user_id'] ) 70 && access_has_global_level( config_get( 'tag_edit_own_threshold' ) ) ) ) 71 { 72 access_denied(); 73 } 74 75 html_page_top( sprintf( lang_get( 'tag_update' ), $t_name ) ); 76 ?> 77 <div class="form-container"> 78 <form method="post" action="tag_update.php"> 79 <fieldset> 80 <legend><span><?php echo sprintf( lang_get( 'tag_update' ), $t_name ) ?></span></legend> 81 <div class="section-link"><?php print_bracket_link( 'tag_view_page.php?tag_id='.$f_tag_id, lang_get( 'tag_update_return' ) ); ?></div> 82 <input type="hidden" name="tag_id" value="<?php echo $f_tag_id ?>"/> 83 <?php echo form_security_field( 'tag_update' ) ?> 84 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 85 <span class="display-label"><span><?php echo lang_get( 'tag_id' ) ?></span></span> 86 <span class="display-value"><span><?php echo $t_tag_row['id'] ?></span></span> 87 <span class="label-style"></span> 88 </div> 89 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 90 <label for="tag-name"><span><?php echo lang_get( 'tag_name' ) ?></span></label> 91 <span class="input"><input type="text" <?php echo helper_get_tab_index() ?> id="tag-name" name="name" value="<?php echo $t_name ?>"/></span> 92 <span class="label-style"></span> 93 </div> 94 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 95 <?php 96 if ( access_has_global_level( config_get( 'tag_edit_threshold' ) ) ) { 97 echo '<label for="tag-user-id"><span>', lang_get( 'tag_creator' ), '</span></label>'; 98 echo '<span class="select"><select ', helper_get_tab_index(), ' id="tag-user-id" name="user_id">'; 99 print_user_option_list( $t_tag_row['user_id'], ALL_PROJECTS, config_get( 'tag_create_threshold' ) ); 100 echo '</select></span>'; 101 } else { ?> 102 <span class="display-label"><span><?php echo lang_get( 'tag_creator' ); ?></span></span> 103 <span class="display-value"><span><?php echo string_display_line( user_get_name($t_tag_row['user_id']) ); ?></span></span><?php 104 } ?> 105 <span class="label-style"></span> 106 </div> 107 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 108 <span class="display-label"><span><?php echo lang_get( 'tag_created' ) ?></span></span> 109 <span class="display-value"><span><?php echo date( config_get( 'normal_date_format' ), $t_tag_row['date_created'] ) ?></span></span> 110 <span class="label-style"></span> 111 </div> 112 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 113 <span class="display-label"><span><?php echo lang_get( 'tag_updated' ) ?></span></span> 114 <span class="display-value"><span><?php echo date( config_get( 'normal_date_format' ), $t_tag_row['date_updated'] ) ?></span></span> 115 <span class="label-style"></span> 116 </div> 117 <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> 118 <label for="tag-description"><span><?php echo lang_get( 'tag_description' ) ?></span></label> 119 <span class="textarea"><textarea id="tag-description" name="description" <?php echo helper_get_tab_index() ?> cols="80" rows="6"><?php echo string_textarea( $t_description ) ?></textarea></span> 120 <span class="label-style"></span> 121 </div> 122 <span class="submit-button"><input <?php echo helper_get_tab_index() ?> type="submit" class="button" value="<?php echo lang_get( 'tag_update_button' ) ?>" /></span> 123 </fieldset> 124 </form> 125 </div> 126 127 <?php 128 html_page_bottom();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |