[ Index ] |
|
Code source de Mantis 1.1.0rc3 |
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: tag_update_page.php,v 1.1.2.2 2007-10-18 15:33:22 nuclear_eclipse Exp $ 22 # -------------------------------------------------------- 23 24 require_once ( 'core.php' ); 25 26 $t_core_path = config_get( 'core_path' ); 27 28 require_once( $t_core_path . 'ajax_api.php' ); 29 require_once( $t_core_path . 'tag_api.php' ); 30 31 compress_enable(); 32 33 $f_tag_id = gpc_get_int( 'tag_id' ); 34 $t_tag_row = tag_get( $f_tag_id ); 35 36 if ( ! ( access_has_global_level( config_get( 'tag_edit_threshold' ) ) 37 || ( auth_get_current_user_id() == $t_tag_row['user_id'] ) 38 && access_has_global_level( config_get( 'tag_edit_own_threshold' ) ) ) ) 39 { 40 access_denied(); 41 } 42 43 html_page_top1( sprintf( lang_get( 'tag_update' ), $t_tag_row['name'] ) ); 44 html_page_top2(); 45 ?> 46 47 <br/> 48 <form method="post" action="tag_update.php"> 49 <table class="width100" cellspacing="1"> 50 51 <!-- Title --> 52 <tr> 53 <td class="form-title" colspan="2"> 54 <?php echo sprintf( lang_get( 'tag_update' ), $t_tag_row['name'] ) ?> 55 <input type="hidden" name="tag_id" value="<?php echo $f_tag_id ?>"/> 56 </td> 57 <td class="right" colspan="3"> 58 <?php print_bracket_link( 'tag_view_page.php?tag_id='.$f_tag_id, lang_get( 'tag_update_return' ) ); ?> 59 </td> 60 </tr> 61 62 <!-- Info --> 63 <tr class="row-category"> 64 <td width="15%"><?php echo lang_get( 'tag_id' ) ?></td> 65 <td width="25%"><?php echo lang_get( 'tag_name' ) ?></td> 66 <td width="20%"><?php echo lang_get( 'tag_creator' ) ?></td> 67 <td width="20%"><?php echo lang_get( 'tag_created' ) ?></td> 68 <td width="20%"><?php echo lang_get( 'tag_updated' ) ?></td> 69 </tr> 70 71 <tr <?php echo helper_alternate_class() ?>> 72 <td><?php echo $t_tag_row['id'] ?></td> 73 <td><input type="text" <?php echo helper_get_tab_index() ?> name="name" value="<?php echo $t_tag_row['name'] ?>"/></td> 74 <td><?php 75 if ( access_has_global_level( config_get( 'tag_edit_threshold' ) ) ) { 76 if ( ON == config_get( 'use_javascript' ) ) { 77 $t_username = prepare_user_name( $t_tag_row['user_id'] ); 78 echo ajax_click_to_edit( $t_username, 'user_id', 'entrypoint=user_combobox&user_id=' . $t_tag_row['user_id'] . '&access_level=' . config_get( 'tag_create_threshold' ) ); 79 } else { 80 echo '<select ', helper_get_tab_index(), ' name="user_id">'; 81 print_user_option_list( $t_tag_row['user_id'], ALL_PROJECTS, config_get( 'tag_create_threshold' ) ); 82 echo '</select>'; 83 } 84 } else { 85 echo user_get_name($t_tag_row['user_id']); 86 } 87 ?></td> 88 <td><?php echo print_date( config_get( 'normal_date_format' ), db_unixtimestamp( $t_tag_row['date_created'] ) ) ?> </td> 89 <td><?php echo print_date( config_get( 'normal_date_format' ), db_unixtimestamp( $t_tag_row['date_updated'] ) ) ?> </td> 90 </tr> 91 92 <!-- spacer --> 93 <tr class="spacer"> 94 <td colspan="5"></td> 95 </tr> 96 97 <!-- Description --> 98 <tr <?php echo helper_alternate_class() ?>> 99 <td class="category"><?php echo lang_get( 'tag_description' ) ?></td> 100 <td colspan="4"> 101 <textarea name="description" <?php echo helper_get_tab_index() ?> cols="80" rows="6"><?php echo string_textarea( $t_tag_row['description'] ) ?></textarea> 102 </td> 103 </tr> 104 105 <!-- Submit Button --> 106 <tr> 107 <td class="center" colspan="6"> 108 <input <?php echo helper_get_tab_index() ?> type="submit" class="button" value="<?php echo lang_get( 'tag_update_button' ) ?>" /> 109 </td> 110 </tr> 111 112 </table> 113 </form> 114 115 <?php 116 html_page_bottom1( __FILE__ ); 117 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 09:42:17 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |