[ 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 # Initial code for this addon cames from Duncan Lisset 21 # Modified and "make mantis codeguidlines compatible" by Rufinus 22 23 # -------------------------------------------------------- 24 # $Id: summary_jpgraph_page.php,v 1.24.22.1 2007-10-13 22:34:42 giallu Exp $ 25 # -------------------------------------------------------- 26 27 require_once ( 'core.php' ); 28 access_ensure_project_level( config_get( 'view_summary_threshold' ) ); 29 30 html_page_top1(); 31 html_page_top2(); 32 33 print_summary_menu( 'summary_jpgraph_page.php' ); 34 35 $t_graphs = array( 'summary_graph_cumulative_bydate', 'summary_graph_bydeveloper', 'summary_graph_byreporter', 36 'summary_graph_byseverity', 'summary_graph_bystatus', 'summary_graph_byresolution', 37 'summary_graph_bycategory', 'summary_graph_bypriority' ); 38 $t_wide = config_get( 'graph_summary_graphs_per_row' ); 39 $t_width = config_get( 'graph_window_width' ); 40 $t_graph_width = (int) ( ( $t_width - 50 ) / $t_wide ); 41 42 ?> 43 44 <br /> 45 <table class="width100" cellspacing="1"> 46 <tr> 47 <td class="form-title" colspan="2"> 48 <?php echo lang_get( 'summary_title' ) ?> 49 </td> 50 </tr> 51 <?php 52 for ( $t_pos = 0; $t_pos < count($t_graphs ); $t_pos++ ) { 53 if ( 0 == ( $t_pos % $t_wide ) ) { 54 print( "<tr valign=\"top\">\n" ); 55 } 56 echo '<td width="50%" align="center">'; 57 printf("<img src=\"%s.php?width=%d\" border=\"0\" />", $t_graphs[$t_pos], $t_graph_width ); 58 echo '</td>'; 59 if ( ( $t_wide - 1 ) == ( $t_pos % $t_wide ) ) { 60 print( "</tr>\n" ); 61 } 62 } 63 ?> 64 </table> 65 66 <?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 |
![]() |