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 * Bug action group additional actions 19 * 20 * @package MantisBT 21 * @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 22 * @copyright Copyright 2002 MantisBT Team - mantisbt-dev@lists.sourceforge.net 23 * @link http://www.mantisbt.org 24 * 25 * @uses core.php 26 * @uses authentication_api.php 27 * @uses bug_group_action_api.php 28 * @uses form_api.php 29 * @uses gpc_api.php 30 * @uses print_api.php 31 * @uses string_api.php 32 * @uses utility_api.php 33 */ 34 35if( !defined( 'BUG_ACTIONGROUP_INC_ALLOW' ) ) { 36 return; 37} 38 39# This variable is defined in parent script 40global $t_event_params; 41 42require_api( 'authentication_api.php' ); 43require_api( 'bug_group_action_api.php' ); 44require_api( 'form_api.php' ); 45require_api( 'gpc_api.php' ); 46require_api( 'print_api.php' ); 47require_api( 'string_api.php' ); 48require_api( 'utility_api.php' ); 49 50$t_external_action = mb_strtolower( mb_substr( $f_action, mb_strlen( $t_external_action_prefix ) ) ); 51$t_form_fields_page = 'bug_actiongroup_' . $t_external_action . '_inc.php'; 52$t_form_name = 'bug_actiongroup_' . $t_external_action; 53 54bug_group_action_init( $t_external_action ); 55 56bug_group_action_print_top(); 57?> 58 59<div class="col-md-12 col-xs-12"> 60 61<div id="action-group-div" class="form-container" > 62<form method="post" action="bug_actiongroup_ext.php"> 63 <?php echo form_security_field( $t_form_name ); ?> 64 <input type="hidden" name="action" value="<?php echo string_attribute( $t_external_action ) ?>" /> 65 <div class="widget-box widget-color-blue2"> 66 <div class="widget-header widget-header-small"> 67 <h4 class="widget-title lighter"> 68 <?php bug_group_action_print_title( $t_external_action ); ?> 69 </h4> 70 </div> 71 <div class="widget-body"> 72 <div class="widget-main no-padding"> 73 <div class="table-responsive"> 74 <table class="table table-bordered table-condensed table-striped"> 75 <tbody> 76<?php 77 bug_group_action_print_hidden_fields( $f_bug_arr ); 78 bug_group_action_print_action_fields( $t_external_action ); 79 80 # signal plugin event for additional fields 81 event_signal( 'EVENT_BUG_ACTIONGROUP_FORM', array( $t_event_params ) ); 82?> 83 <tr class="spacer"></tr> 84 <?php bug_group_action_print_bug_list( $f_bug_arr ); ?> 85 <tr class="spacer"></tr> 86 </tbody> 87 </table> 88 </div> 89 </div> 90 <div class="widget-toolbox padding-8 clearfix"> 91 <input type="submit" class="btn btn-primary btn-white btn-round" value="<?php bug_group_action_print_title( $t_external_action ); ?>" /> 92 </div> 93 </div> 94 </div> 95</form> 96</div> 97</div> 98 99 100 101<?php 102bug_group_action_print_bottom(); 103