[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/plugins/MantisGraph/pages/ -> summary_graph_imp_severity.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 severities : bars, 3Dpie and a mix severities per status
  19       * @package MantisBT
  20       * @copyright Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
  21       * @copyright Copyright (C) 2002 - 2011  MantisBT Team - mantisbt-dev@lists.sourceforge.net
  22       * @link http://www.mantisbt.org
  23       */
  24       /**
  25        * MantisBT Core API's
  26        */
  27      require_once ( 'core.php' );
  28  
  29      require_once( 'graph_api.php' );
  30  
  31      access_ensure_project_level( config_get( 'view_summary_threshold' ) );
  32  
  33      html_page_top();
  34  
  35      print_summary_menu( 'summary_page.php' );
  36      echo '<br />';
  37      print_summary_submenu();
  38      $t_width = plugin_config_get( 'window_width' );
  39      $t_graph_width = (int) ( ( $t_width - 50 ) * 0.6 );
  40  
  41      # gather the data for the graphs
  42      $t_metrics = enum_bug_group( lang_get( 'severity_enum_string' ), 'severity' );
  43      $t_token = token_set( TOKEN_GRAPH, serialize( $t_metrics ) );
  44  ?>
  45  
  46  <br />
  47  <table class="width100" cellspacing="1">
  48  <tr>
  49      <td class="form-title">
  50          <?php echo plugin_lang_get( 'graph_imp_severity_title' ) ?>
  51      </td>
  52  </tr>
  53  <tr>
  54      <td class="center">
  55          <img src="<?php echo plugin_page( 'summary_graph_byseverity.php')?>&amp;width=<?php echo $t_graph_width?>" alt="" />
  56      </td>
  57  </tr>
  58  <tr>
  59      <td class="center">
  60          <img src="<?php echo plugin_page( 'summary_graph_byseverity_pct.php')?>&amp;width=<?php echo $t_graph_width?>" alt="" />
  61      </td>
  62  </tr>
  63  <tr>
  64      <td class="center">
  65          <img src="<?php echo plugin_page( 'summary_graph_byseverity_mix.php')?>&amp;width=<?php echo $t_graph_width?>" alt="" />
  66      </td>
  67  </tr>
  68  </table>
  69  
  70  <?php
  71      html_page_bottom();


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