[ 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: news_edit_page.php,v 1.41.2.1 2007-10-13 22:34:03 giallu Exp $ 22 # -------------------------------------------------------- 23 ?> 24 <?php 25 require_once ( 'core.php' ); 26 27 $t_core_path = config_get( 'core_path' ); 28 29 require_once( $t_core_path.'news_api.php' ); 30 require_once( $t_core_path.'string_api.php' ); 31 ?> 32 <?php 33 $f_news_id = gpc_get_int( 'news_id' ); 34 $f_action = gpc_get_string( 'action', '' ); 35 36 # If deleting item redirect to delete script 37 if ( 'delete' == $f_action ) { 38 print_header_redirect( 'news_delete.php?news_id='.$f_news_id ); 39 } 40 41 # Retrieve news item data and prefix with v_ 42 $row = news_get_row( $f_news_id ); 43 if ( $row ) { 44 extract( $row, EXTR_PREFIX_ALL, 'v' ); 45 } 46 47 access_ensure_project_level( config_get( 'manage_news_threshold' ), $v_project_id ); 48 49 $v_headline = string_attribute( $v_headline ); 50 $v_body = string_textarea( $v_body ); 51 ?> 52 <?php html_page_top1( lang_get( 'edit_news_title' ) ) ?> 53 <?php html_page_top2() ?> 54 55 <?php # Edit News Form BEGIN ?> 56 <br /> 57 <div align="center"> 58 <form method="post" action="news_update.php"> 59 <table class="width75" cellspacing="1"> 60 <tr> 61 <td class="form-title"> 62 <input type="hidden" name="news_id" value="<?php echo $v_id ?>" /> 63 <?php echo lang_get( 'headline' ) ?> 64 </td> 65 <td class="right"> 66 <?php print_bracket_link( 'news_menu_page.php', lang_get( 'go_back' ) ) ?> 67 </td> 68 </tr> 69 <tr class="row-1"> 70 <td class="category" width="25%"> 71 <span class="required">*</span><?php echo lang_get( 'headline' ) ?> 72 </td> 73 <td width="75%"> 74 <input type="text" name="headline" size="64" maxlength="64" value="<?php echo $v_headline ?>" /> 75 </td> 76 </tr> 77 <tr class="row-2"> 78 <td class="category"> 79 <span class="required">*</span><?php echo lang_get( 'body' ) ?> 80 </td> 81 <td> 82 <textarea name="body" cols="60" rows="10"><?php echo $v_body ?></textarea> 83 </td> 84 </tr> 85 <tr class="row-1"> 86 <td class="category"> 87 <?php echo lang_get( 'post_to' ) ?> 88 </td> 89 <td> 90 <select name="project_id"> 91 <?php 92 $t_sitewide = false; 93 if ( access_has_project_level( ADMINISTRATOR ) ) { 94 $t_sitewide = true; 95 } 96 print_project_option_list( $v_project_id, $t_sitewide ); 97 ?> 98 </select> 99 </td> 100 </tr> 101 <tr class="row-2"> 102 <td class="category"> 103 <?php echo lang_get( 'announcement' ) ?><br /> 104 <span class="small"><?php echo lang_get( 'stays_on_top' ) ?></span> 105 </td> 106 <td> 107 <input type="checkbox" name="announcement" <?php check_checked( $v_announcement, 1 ); ?> /> 108 </td> 109 </tr> 110 <tr class="row-1"> 111 <td class="category" width="25%"> 112 <?php echo lang_get( 'view_status' ) ?> 113 </td> 114 <td width="75%"> 115 <select name="view_state"> 116 <?php print_enum_string_option_list( 'view_state', $v_view_state ) ?> 117 </select> 118 </td> 119 </tr> 120 <tr> 121 <td> 122 <span class="required">* <?php echo lang_get( 'required' ) ?></span> 123 </td> 124 <td class="center"> 125 <input type="submit" class="button" value="<?php echo lang_get( 'update_news_button' ) ?>" /> 126 </td> 127 </tr> 128 </table> 129 </form> 130 </div> 131 <?php # Edit News Form END ?> 132 133 <?php html_page_bottom1( __FILE__ ) ?>
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 |
![]() |