[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/plugins/MantisGraph/pages/ -> summary_graph_imp_category.php (source)

   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       * This page displays "improved" charts on categories : categories on bars and 3Dpie
  19       *
  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  
  30      require_once( 'graph_api.php' );
  31  
  32      access_ensure_project_level( config_get( 'view_summary_threshold' ) );
  33  
  34      html_page_top();
  35      print_summary_menu( 'summary_page.php' );
  36  
  37      echo '<br />';
  38      print_summary_submenu();
  39  
  40      $t_width = plugin_config_get( 'window_width' );
  41      $t_graph_width = (int) ( ( $t_width - 50 ) * 0.6 );
  42  
  43      # gather the data for the graphs
  44      $t_metrics = create_category_summary();
  45      $t_token = token_set( TOKEN_GRAPH, serialize( $t_metrics ) );
  46  
  47   ?>
  48  
  49  <br />
  50  <table class="width100" cellspacing="1">
  51  <tr>
  52      <td class="form-title">
  53          <?php echo plugin_lang_get( 'graph_imp_category_title' ) ?>
  54      </td>
  55  </tr>
  56  <tr>
  57      <td width="100%" class="center">
  58          <img src="<?php echo plugin_page( 'summary_graph_bycategory.php' )?>&amp;width=<?php echo $t_graph_width?>" alt="" />
  59      </td>
  60  </tr>
  61  <tr>
  62      <td class="center">
  63          <img src="<?php echo plugin_page( 'summary_graph_bycategory_pct.php' )?>&amp;width=<?php echo $t_graph_width?>" alt="" />
  64      </td>
  65  </tr>
  66  </table>
  67  
  68  <?php
  69      html_page_bottom();


Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7