From: <jl...@us...> - 2004-02-10 22:37:26
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13816 Modified Files: summary_page.php Log Message: Added 'Reporter / Resolution', 'Developer / Resolution' and 'Reporter Effectiveness' reports. (Thanks to Lincoln Maskey) Index: summary_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/summary_page.php,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- summary_page.php 10 Feb 2004 11:07:47 -0000 1.36 +++ summary_page.php 10 Feb 2004 22:33:47 -0000 1.37 @@ -256,6 +256,87 @@ </tr> <?php summary_print_by_reporter() ?> </table> + + <br /> + + <?php # REPORTER EFFECTIVENESS # ?> + <table class="width100" cellspacing="1"> + <tr> + <td class="form-title" colspan="1"> + <?php echo lang_get( 'reporter_effectiveness' ) ?> + </td> + <td> + <?php echo lang_get( 'severity' ) ?> + </td> + <td> + <?php echo lang_get( 'errors' ) ?> + </td> + <td> + <?php echo lang_get( 'total' ) ?> + </td> + </tr> + <?php summary_print_reporter_effectiveness( config_get( 'severity_enum_string' ), config_get( 'resolution_enum_string' ) ) ?> + </table> + </td> +</tr> + +<tr valign="top"> + <td colspan="2"> + <?php # REPORTER / RESOLUTION # ?> + <table class="width100" cellspacing="1"> + <tr> + <td class="form-title" colspan="1"> + <?php echo lang_get( 'reporter_by_resolution' ) ?> + </td> + <?php + $t_arr = explode_enum_string( config_get( 'resolution_enum_string' ) ); + $enum_count = count( $t_arr ); + + for ($i=0;$i<$enum_count;$i++) { + print '<td>'; + $t_s = explode_enum_arr( $t_arr[$i] ); + $c_s[0] = db_prepare_string( $t_s[0] ); + echo ucwords( get_enum_element( 'resolution', $c_s[0] ) ); + print '</td>'; + } + + print '<td>'; + print lang_get( 'percentage_errors' ); + print '</td>'; + ?> + </tr> + <?php summary_print_reporter_resolution( config_get( 'resolution_enum_string' ) ) ?> + </table> + </td> +</tr> + +<tr valign="top"> + <td colspan="2"> + <?php # DEVELOPER / RESOLUTION # ?> + <table class="width100" cellspacing="1"> + <tr> + <td class="form-title" colspan="1"> + <?php echo lang_get( 'developer_by_resolution' ) ?> + </td> + <?php + $t_arr = explode_enum_string( config_get( 'resolution_enum_string' ) ); + $enum_count = count( $t_arr ); + + for ($i=0;$i<$enum_count;$i++) { + print '<td>'; + $t_s = explode_enum_arr( $t_arr[$i] ); + $c_s[0] = db_prepare_string( $t_s[0] ); + echo ucwords( get_enum_element( 'resolution', $c_s[0] ) ); + print '</td>'; + } + + print '<td>'; + print lang_get( 'percentage_fixed' ); + print '</td>'; + ?> + </tr> + <?php summary_print_developer_resolution( config_get( 'resolution_enum_string' ) ) ?> + </table> </td> </tr> </table> |