Skip to content

Commit

Permalink
Added more visual chart pages in summary_page.php. Warning, *old* ver…
Browse files Browse the repository at this point in the history
…sions of JPgraph may cause problems, especially for the 3D pies (ok with JPGraph v1.6.3 and above).

Consists of 5 pages with the previous chart, a 3D pie, and a mix by status and the criteria.
Use the graph bar to navigate between the pages.


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1161 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
jctrosset committed Jun 27, 2002
1 parent c8757d0 commit dfc1f16
Show file tree
Hide file tree
Showing 19 changed files with 938 additions and 0 deletions.
16 changes: 16 additions & 0 deletions core_html_API.php
Expand Up @@ -370,6 +370,22 @@ function print_menu() {
PRINT '</table>';
}
}

### --------------------
# prints the links to the graphic pages, in summary_page.php
function print_menu_graph() {
global $s_synthesis_link, $s_status_link,$s_priority_link,$s_severity_link,$s_category_link,$s_resolution_link, $g_use_jpgraph ;

if ( $g_use_jpgraph != 0 ) {
PRINT "<a href=\"summary_page.php\"><img src=\"images/synthese.gif\" border=0 align=center>$s_synthesis_link</a> | ";
PRINT "<a href=\"summary_graph_imp_status.php\"><img src=\"images/synthgraph.gif\" border=0 align=center>$s_status_link</a> | ";
PRINT "<a href=\"summary_graph_imp_priority.php\"><img src=\"images/synthgraph.gif\" border=0 align=center>$s_priority_link</a> | ";
PRINT "<a href=\"summary_graph_imp_severity.php\"><img src=\"images/synthgraph.gif\" border=0 align=center>$s_severity_link</a> | ";
PRINT "<a href=\"summary_graph_imp_category.php\"><img src=\"images/synthgraph.gif\" border=0 align=center>$s_category_link</a> | ";
PRINT "<a href=\"summary_graph_imp_resolution.php\"><img src=\"images/synthgraph.gif\" border=0 align=center>$s_resolution_link</a>";
}
}

# --------------------
# prints the manage menu
# if the $p_page matches a url then don't make that a link
Expand Down
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -73,6 +73,7 @@ Mantis ChangeLog
* Added a direct link, with a small icon, on each bug row, so that users on a selected project can switch directly to the bug_update_advanced_page.
* Added automatic defaults for $g_path and $g_absolute_path rather than dummy values. This should avoid the need of redefining these values in custom_config_inc.php and also support multiple domains.
* Added configuration flags ($g_show_queries_count and $g_show_queries_list) that track the executed queries and display their total count, unique queries count, and the actual list of queries executed.
* Added more visual graph pages in summary_page.php. Caution, old versions of JPGraph may cause problems, use v1.6.3 or above if you can.

2002.05.19 - 0.17.3

Expand Down
Binary file added images/synthese.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/synthgraph.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions summary_graph_bycategory_pct.php
@@ -0,0 +1,8 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );


create_category_summary_pct();
graph_category_summary_pct($s_by_category_pct);
?>
9 changes: 9 additions & 0 deletions summary_graph_bypriority_mix.php
@@ -0,0 +1,9 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );

$height=80;

enum_bug_group( $s_priority_enum_string, 'priority');
graph_group($s_by_priority_mix);
?>
15 changes: 15 additions & 0 deletions summary_graph_bypriority_pct.php
@@ -0,0 +1,15 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );

#centers the chart
$center = 0.33;

#position of the legend
$poshorizontal = 0.03;
$posvertical = 0.09;


create_bug_enum_summary_pct($s_priority_enum_string, 'priority');
graph_bug_enum_summary_pct($s_by_priority_pct);
?>
11 changes: 11 additions & 0 deletions summary_graph_byresolution_mix.php
@@ -0,0 +1,11 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );


$height=150;

enum_bug_group($s_resolution_enum_string, 'resolution');
graph_group($s_by_resolution_mix);

?>
14 changes: 14 additions & 0 deletions summary_graph_byresolution_pct.php
@@ -0,0 +1,14 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );

#centers the chart
$center = 0.26;

#position of the legend
$poshorizontal = 0.03;
$posvertical = 0.09;

create_bug_enum_summary_pct($s_resolution_enum_string, 'resolution');
graph_bug_enum_summary_pct($s_by_resolution_pct);
?>
10 changes: 10 additions & 0 deletions summary_graph_byseverity_mix.php
@@ -0,0 +1,10 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );

$height=100;

enum_bug_group($s_severity_enum_string, 'severity');
graph_group($s_by_severity_mix);

?>
14 changes: 14 additions & 0 deletions summary_graph_byseverity_pct.php
@@ -0,0 +1,14 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );

#centers the chart
$center = 0.30;

#position of the legend
$poshorizontal = 0.10;
$posvertical = 0.09;

create_bug_enum_summary_pct( $s_severity_enum_string, 'severity');
graph_bug_enum_summary_pct($s_by_severity_pct);
?>
16 changes: 16 additions & 0 deletions summary_graph_bystatus_pct.php
@@ -0,0 +1,16 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );

#centers the chart
$center = 0.3;

#position of the legend
$poshorizontal = 0.03;
$posvertical = 0.09;

create_bug_enum_summary_pct($s_status_enum_string, 'status');
graph_bug_enum_summary_pct($s_by_status_pct);


?>

0 comments on commit dfc1f16

Please sign in to comment.