| [ 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 * Initial code for this addon came from Duncan Lisset 19 * Modified and "make MantisBT codeguidlines compatible" by Rufinus 20 * @package MantisBT 21 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org 22 * @copyright Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net 23 * @link http://www.mantisbt.org 24 */ 25 /** 26 * MantisBT Core API's 27 */ 28 require_once ( 'core.php' ); 29 access_ensure_project_level( config_get( 'view_summary_threshold' ) ); 30 31 html_page_top(); 32 ?> 33 <br /> 34 <?php 35 36 print_summary_menu( 'summary_jpgraph_page.php' ); 37 38 $t_graphs = array( 'summary_graph_cumulative_bydate', 'summary_graph_bydeveloper', 'summary_graph_byreporter', 39 'summary_graph_byseverity', 'summary_graph_bystatus', 'summary_graph_byresolution', 40 'summary_graph_bycategory', 'summary_graph_bypriority' ); 41 $t_wide = plugin_config_get( 'summary_graphs_per_row' ); 42 $t_width = plugin_config_get( 'window_width' ); 43 $t_graph_width = (int) ( ( $t_width - 50 ) / $t_wide ); 44 45 token_delete( TOKEN_GRAPH ); 46 47 ?> 48 49 <br /> 50 <table class="width100" cellspacing="1"> 51 <tr> 52 <td class="form-title" colspan="2"> 53 <?php echo lang_get( 'summary_title' ) ?> 54 </td> 55 </tr> 56 <?php 57 $t_graph_count = count($t_graphs ); 58 for ( $t_pos = 0; $t_pos < $t_graph_count; $t_pos++ ) { 59 if ( 0 == ( $t_pos % $t_wide ) ) { 60 print( "<tr>\n" ); 61 } 62 echo '<td width="50%">'; 63 printf("<img src=\"%s.php&width=%d\" alt=\"\" />", plugin_page( $t_graphs[$t_pos] ), $t_graph_width ); 64 echo '</td>'; 65 if ( ( $t_wide - 1 ) == ( $t_pos % $t_wide ) ) { 66 print( "</tr>\n" ); 67 } 68 } 69 ?> 70 </table> 71 72 <?php 73 html_page_bottom();
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 |