2 # MantisBT - A PHP based bugtracking system
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.
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.
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/>.
19 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
20 * @copyright Copyright (C) 2002 - 2010 MantisBT Team - mantisbt-dev@lists.sourceforge.net
21 * @link http://www.mantisbt.org
24 * @uses access_api.php
26 * @uses config_api.php
27 * @uses constant_inc.php
31 * @uses helper_api.php
37 require_once( 'core.php' );
38 require_api( 'access_api.php' );
39 require_api( 'bug_api.php' );
40 require_api( 'config_api.php' );
41 require_api( 'constant_inc.php' );
42 require_api( 'error_api.php' );
43 require_api( 'form_api.php' );
44 require_api( 'gpc_api.php' );
45 require_api( 'helper_api.php' );
46 require_api( 'html_api.php' );
47 require_api( 'lang_api.php' );
48 require_api( 'print_api.php' );
50 $f_bug_id = gpc_get_int( 'bug_id' );
52 $t_bug = bug_get( $f_bug_id, true );
53 if( $t_bug->project_id
!= helper_get_current_project() ) {
54 # in case the current project is not the same project of the bug we are viewing...
55 # ... override the current project. This to avoid problems with categories and handlers lists etc.
56 $g_project_override = $t_bug->project_id
;
59 if ( bug_is_readonly( $f_bug_id ) ) {
60 error_parameters( $f_bug_id );
61 trigger_error( ERROR_BUG_READ_ONLY_ACTION_DENIED
, ERROR
);
64 access_ensure_bug_level( config_get( 'bug_reminder_threshold' ), $f_bug_id );
66 html_page_top( bug_format_summary( $f_bug_id, SUMMARY_CAPTION
) );
69 <?php
# Send reminder Form BEGIN ?>
72 <form method
="post" action
="bug_reminder.php">
73 <?php
echo form_security_field( 'bug_reminder' ) ?
>
74 <input type
="hidden" name
="bug_id" value
="<?php echo $f_bug_id ?>" />
75 <table
class="width75" cellspacing
="1">
77 <td
class="form-title" colspan
="2">
78 <?php
echo lang_get( 'bug_reminder' ) ?
>
83 <?php
echo lang_get( 'to' ) ?
>
86 <?php
echo lang_get( 'reminder' ) ?
>
89 <tr
<?php
echo helper_alternate_class() ?
>>
91 <select name
="to[]" multiple
="multiple" size
="10">
93 $t_project_id = bug_get_field( $f_bug_id, 'project_id' );
94 $t_access_level = config_get( 'reminder_receive_threshold' );
95 $t_selected_user_id = 0;
96 print_user_option_list( $t_selected_user_id, $t_project_id, $t_access_level );
101 <textarea name
="body" cols
="65" rows
="10"></textarea
>
105 <td
class="center" colspan
="2">
106 <input type
="submit" class="button" value
="<?php echo lang_get( 'bug_send_button' ) ?>" />
112 <table
class="width75" cellspacing
="1">
116 echo lang_get( 'reminder_explain' ) . ' ';
117 if ( ON
== config_get( 'reminder_recipients_monitor_bug' ) ) {
118 echo lang_get( 'reminder_monitor' ) . ' ';
120 if ( ON
== config_get( 'store_reminders' ) ) {
121 echo lang_get( 'reminder_store' );
131 define ( 'BUG_VIEW_INC_ALLOW', true );
132 $_GET['id'] = $f_bug_id;
133 $tpl_fields_config_option = 'bug_view_page_fields';
134 $tpl_show_page_header = false;
135 $tpl_force_readonly = true;
136 $tpl_mantis_dir = dirname( __FILE__
) . DIRECTORY_SEPARATOR
;
137 $tpl_file = __FILE__
;
139 include( dirname( __FILE__
) . DIRECTORY_SEPARATOR
. 'bug_view_inc.php' );