Skip to content

Commit

Permalink
Added custom attributes support for Summary and charts.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1183 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
jctrosset committed Aug 2, 2002
1 parent 07a8764 commit 974a762
Show file tree
Hide file tree
Showing 15 changed files with 149 additions and 6 deletions.
9 changes: 9 additions & 0 deletions summary_graph_bycategory.php
@@ -1,6 +1,15 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'category', $t_project_id, 'global' );
insert_attributes( 'category', $t_project_id, 'str' ) ;
}
create_category_summary();
graph_category_summary();
?>
7 changes: 7 additions & 0 deletions summary_graph_bycategory_pct.php
Expand Up @@ -2,7 +2,14 @@
include( 'core_API.php' );
include( $g_summary_jpgraph_function );

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'category', $t_project_id, 'global' );
insert_attributes( 'category', $t_project_id, 'str' ) ;
}
create_category_summary_pct();
graph_category_summary_pct($s_by_category_pct);
?>
9 changes: 9 additions & 0 deletions summary_graph_bypriority.php
@@ -1,6 +1,15 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'priority', $t_project_id, 'global' );
insert_attributes( 'priority', $t_project_id, 'str' ) ;
}
create_bug_enum_summary($s_priority_enum_string, 'priority');
graph_bug_enum_summary($s_by_priority);
?>
8 changes: 8 additions & 0 deletions summary_graph_bypriority_mix.php
Expand Up @@ -4,6 +4,14 @@

$height=80;

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'priority', $t_project_id, 'global' );
insert_attributes( 'priority', $t_project_id, 'str' ) ;
}
enum_bug_group( $s_priority_enum_string, 'priority');
graph_group($s_by_priority_mix);
?>
7 changes: 7 additions & 0 deletions summary_graph_bypriority_pct.php
Expand Up @@ -9,7 +9,14 @@
$poshorizontal = 0.03;
$posvertical = 0.09;

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'priority', $t_project_id, 'global' );
insert_attributes( 'priority', $t_project_id, 'str' ) ;
}
create_bug_enum_summary_pct($s_priority_enum_string, 'priority');
graph_bug_enum_summary_pct($s_by_priority_pct);
?>
9 changes: 9 additions & 0 deletions summary_graph_byresolution.php
@@ -1,6 +1,15 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'resolution', $t_project_id, 'global' );
insert_attributes( 'resolution', $t_project_id, 'str' ) ;
}
create_bug_enum_summary($s_resolution_enum_string, 'resolution');
graph_bug_enum_summary($s_by_resolution);
?>
9 changes: 8 additions & 1 deletion summary_graph_byresolution_mix.php
@@ -1,10 +1,17 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );


$height=150;

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'resolution', $t_project_id, 'global' );
insert_attributes( 'resolution', $t_project_id, 'str' ) ;
}
enum_bug_group($s_resolution_enum_string, 'resolution');
graph_group($s_by_resolution_mix);

Expand Down
8 changes: 8 additions & 0 deletions summary_graph_byresolution_pct.php
Expand Up @@ -9,6 +9,14 @@
$poshorizontal = 0.03;
$posvertical = 0.09;

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'resolution', $t_project_id, 'global' );
insert_attributes( 'resolution', $t_project_id, 'str' ) ;
}
create_bug_enum_summary_pct($s_resolution_enum_string, 'resolution');
graph_bug_enum_summary_pct($s_by_resolution_pct);
?>
9 changes: 9 additions & 0 deletions summary_graph_byseverity.php
@@ -1,6 +1,15 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'severity', $t_project_id, 'global' );
insert_attributes( 'severity', $t_project_id, 'str' ) ;
}
create_bug_enum_summary( $s_severity_enum_string, 'severity');
graph_bug_enum_summary($s_by_severity);
?>
8 changes: 8 additions & 0 deletions summary_graph_byseverity_mix.php
Expand Up @@ -4,6 +4,14 @@

$height=100;

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'severity', $t_project_id, 'global' );
insert_attributes( 'severity', $t_project_id, 'str' ) ;
}
enum_bug_group($s_severity_enum_string, 'severity');
graph_group($s_by_severity_mix);

Expand Down
8 changes: 8 additions & 0 deletions summary_graph_byseverity_pct.php
Expand Up @@ -9,6 +9,14 @@
$poshorizontal = 0.10;
$posvertical = 0.09;

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'severity', $t_project_id, 'global' );
insert_attributes( 'severity', $t_project_id, 'str' ) ;
}
create_bug_enum_summary_pct( $s_severity_enum_string, 'severity');
graph_bug_enum_summary_pct($s_by_severity_pct);
?>
9 changes: 9 additions & 0 deletions summary_graph_bystatus.php
@@ -1,6 +1,15 @@
<?php
include( 'core_API.php' );
include( $g_summary_jpgraph_function );

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'status', $t_project_id, 'global' );
insert_attributes( 'status', $t_project_id, 'str' ) ;
}
create_bug_enum_summary($s_status_enum_string, 'status');
graph_bug_enum_summary($s_by_status);
?>
9 changes: 9 additions & 0 deletions summary_graph_bystatus_pct.php
Expand Up @@ -9,6 +9,15 @@
$poshorizontal = 0.03;
$posvertical = 0.09;

if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'status', $t_project_id, 'global' );
insert_attributes( 'status', $t_project_id, 'str' ) ;
}

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

Expand Down
2 changes: 1 addition & 1 deletion summary_graph_imp_status.php
Expand Up @@ -75,7 +75,7 @@
</tr>
<tr valign="top">
<td width="50%">
<img src="summary_graph_bystatus.php" border="0">
<img src="summary_graph_bystatus.php" border="0">
</td>
</tr>
<tr valign="top">
Expand Down
44 changes: 40 additions & 4 deletions summary_page.php
Expand Up @@ -78,7 +78,16 @@
<?php echo $s_by_status ?>:
</td>
</tr>
<?php print_bug_enum_summary( $g_status_enum_string, 'status' ) ?>
<?php
if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'status', $t_project_id, 'global' );
insert_attributes( 'status', $t_project_id, 'str' ) ;
}
print_bug_enum_summary( $g_status_enum_string, 'status' ) ?>
</table>
</td>
<td width="50%">
Expand All @@ -102,7 +111,16 @@
<?php echo $s_by_severity ?>:
</td>
</tr>
<?php print_bug_enum_summary( $g_severity_enum_string, 'severity' ) ?>
<?php
if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'severity', $t_project_id, 'global' );
insert_attributes( 'severity', $t_project_id, 'str' ) ;
}
print_bug_enum_summary( $g_severity_enum_string, 'severity' ) ?>
</table>
</td>
<td>
Expand All @@ -113,7 +131,16 @@
<?php echo $s_by_resolution ?>:
</td>
</tr>
<?php print_bug_enum_summary( $g_resolution_enum_string, 'resolution' ) ?>
<?php
if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'resolution', $t_project_id, 'global' );
insert_attributes( 'resolution', $t_project_id, 'str' ) ;
}
print_bug_enum_summary( $g_resolution_enum_string, 'resolution' ) ?>
</table>
</td>
</tr>
Expand All @@ -137,7 +164,16 @@
<?php echo $s_by_priority ?>:
</td>
</tr>
<?php print_bug_enum_summary( $g_priority_enum_string, 'priority' ) ?>
<?php
if ($g_customize_attributes) {
# to be deleted when moving to manage_project_page.php
$t_project_id = '0000000';

# custom attributes insertion
insert_attributes( 'priority', $t_project_id, 'global' );
insert_attributes( 'priority', $t_project_id, 'str' ) ;
}
print_bug_enum_summary( $g_priority_enum_string, 'priority' ) ?>
</table>
</td>
</tr>
Expand Down

0 comments on commit 974a762

Please sign in to comment.