| [ 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) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 20 * @copyright Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net 21 * @link http://www.mantisbt.org 22 * 23 * @uses access_api.php 24 * @uses bug_api.php 25 * @uses collapse_api.php 26 * @uses config_api.php 27 * @uses constant_inc.php 28 * @uses event_api.php 29 * @uses form_api.php 30 * @uses helper_api.php 31 * @uses html_api.php 32 * @uses lang_api.php 33 */ 34 35 if ( !defined( 'BUGNOTE_ADD_INC_ALLOW' ) ) { 36 return; 37 } 38 39 require_api( 'access_api.php' ); 40 require_api( 'bug_api.php' ); 41 require_api( 'collapse_api.php' ); 42 require_api( 'config_api.php' ); 43 require_api( 'constant_inc.php' ); 44 require_api( 'event_api.php' ); 45 require_api( 'form_api.php' ); 46 require_api( 'helper_api.php' ); 47 require_api( 'html_api.php' ); 48 require_api( 'lang_api.php' ); 49 50 ?> 51 <?php if ( ( !bug_is_readonly( $f_bug_id ) ) && 52 ( access_has_bug_level( config_get( 'add_bugnote_threshold' ), $f_bug_id ) ) ) { ?> 53 <?php # Bugnote Add Form BEGIN ?> 54 <a id="addbugnote"></a> <br /> 55 56 <?php 57 collapse_open( 'bugnote_add' ); 58 ?> 59 <form name="bugnoteadd" method="post" action="bugnote_add.php"> 60 <?php echo form_security_field( 'bugnote_add' ) ?> 61 <input type="hidden" name="bug_id" value="<?php echo $f_bug_id ?>" /> 62 <table class="width100" cellspacing="1"> 63 <tr> 64 <td class="form-title" colspan="2"> 65 <?php 66 collapse_icon( 'bugnote_add' ); 67 echo lang_get( 'add_bugnote_title' ) ?> 68 </td> 69 </tr> 70 <tr class="row-2"> 71 <th class="category" width="25%"> 72 <?php echo lang_get( 'bugnote' ) ?> 73 </th> 74 <td width="75%"> 75 <textarea name="bugnote_text" cols="80" rows="10"></textarea> 76 </td> 77 </tr> 78 <?php if ( access_has_bug_level( config_get( 'set_view_status_threshold' ), $f_bug_id ) ) { ?> 79 <tr class="row-1"> 80 <th class="category"> 81 <?php echo lang_get( 'view_status' ) ?> 82 </th> 83 <td> 84 <?php 85 $t_default_bugnote_view_status = config_get( 'default_bugnote_view_status' ); 86 if ( access_has_bug_level( config_get( 'set_view_status_threshold' ), $f_bug_id ) ) { 87 ?> 88 <input type="checkbox" id="bugnote_add_view_status" name="private" <?php check_checked( $t_default_bugnote_view_status, VS_PRIVATE ); ?> /> 89 <label for="bugnote_add_view_status"><?php echo lang_get( 'private' ) ?></label> 90 <?php 91 } else { 92 echo get_enum_element( 'project_view_state', $t_default_bugnote_view_status ); 93 } 94 ?> 95 </td> 96 </tr> 97 <?php } ?> 98 99 <?php if ( config_get('time_tracking_enabled') ) { ?> 100 <?php if ( access_has_bug_level( config_get( 'time_tracking_edit_threshold' ), $f_bug_id ) ) { ?> 101 <tr <?php echo helper_alternate_class() ?>> 102 <th class="category"> 103 <?php echo lang_get( 'time_tracking' ) ?> 104 </th> 105 <td> 106 <?php if ( config_get( 'time_tracking_stopwatch' ) && config_get( 'use_javascript' ) ) { ?> 107 <input type="text" name="time_tracking" class="stopwatch_time" size="8" value="hh:mm:ss" /> 108 <input type="button" name="time_tracking_toggle" class="stopwatch_toggle" value="<?php echo lang_get( 'time_tracking_stopwatch_start' ) ?>" /> 109 <input type="button" name="time_tracking_reset" class="stopwatch_reset" value="<?php echo lang_get( 'time_tracking_stopwatch_reset' ) ?>" /> 110 <?php } else { ?> 111 <input type="text" name="time_tracking" size="5" value="hh:mm" /> 112 <?php } ?> 113 </td> 114 </tr> 115 <?php } ?> 116 <?php } ?> 117 118 <?php event_signal( 'EVENT_BUGNOTE_ADD_FORM', array( $f_bug_id ) ); ?> 119 <tr> 120 <td class="center" colspan="2"> 121 <input type="submit" class="button" value="<?php echo lang_get( 'add_bugnote_button' ) ?>" /> 122 </td> 123 </tr> 124 </table> 125 </form> 126 <?php 127 collapse_closed( 'bugnote_add' ); 128 ?> 129 <table class="width100" cellspacing="1"> 130 <tr> 131 <td class="form-title" colspan="2"> 132 <?php collapse_icon( 'bugnote_add' ); 133 echo lang_get( 'add_bugnote_title' ) ?> 134 </td> 135 </tr> 136 </table> 137 <?php 138 collapse_end( 'bugnote_add' ); 139 ?> 140 141 <?php # Bugnote Add Form END ?> 142 <?php 143 }
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 |