[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/plugins/MantisGraph/pages/ -> summary_graph_imp_status.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 status : the old one and a 3D Pie
  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      print_summary_menu( 'summary_page.php' );
  35      echo '<br />';
  36  
  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 = create_bug_enum_summary( lang_get( 'status_enum_string' ), 'status' );
  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_status_title' ) ?>
  51      </td>
  52  </tr>
  53  <tr>
  54      <td class="center">
  55           <img src="<?php echo plugin_page( 'summary_graph_bystatus.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_bystatus_pct.php')?>&amp;width=<?php echo $t_graph_width?>" alt="" />
  61      </td>
  62  </tr>
  63  </table>
  64  
  65  <?php html_page_bottom();


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