cvs: phpweb / bugstats.php

From: Date: Mon, 27 Nov 2000 15:41:20 +0000
Subject: cvs: phpweb / bugstats.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-2987@lists.php.net to get a copy of this message
sniper Mon Nov 27 07:41:20 2000 EDT Modified files: /phpweb bugstats.php Log: Bug types with no open reports not shown on list. Index: phpweb/bugstats.php diff -u phpweb/bugstats.php:1.12 phpweb/bugstats.php:1.13 --- phpweb/bugstats.php:1.12 Mon Nov 27 06:30:02 2000 +++ phpweb/bugstats.php Mon Nov 27 07:41:20 2000 @@ -70,7 +70,7 @@ $bug_type['analyzed'][$row[1]]++; $bug_type['analyzed']['all']++; } - if($row[7]=="Feedback") { + if($row[7]=="Feedback" || $row[7]=="OldFeedback") { $bug_type['feedback'][$row[1]]++; $bug_type['feedback']['all']++; } @@ -120,9 +120,16 @@ echo "<tr bgcolor=#aabbcc><th align=right>Total bug entries in system:</th><td>$total</td><th>Closed</th><th>Open</th><th>Analyzed</th><th>Suspended</th><th>Duplicate</th><th>Assigned</th><th>Feedback</th></tr>\n"; echo "<tr><th align=right bgcolor=#aabbcc>All:</th><td align=center bgcolor=#ccddee>$total</td><td align=center bgcolor=#ddeeff>".bugstats('closed', 'all')."&nbsp;</td><td align=center bgcolor=#ccddee>".bugstats('open', 'all')."&nbsp;</td><td align=center bgcolor=#ddeeff>".bugstats('analyzed', 'all')."&nbsp;</td><td align=center bgcolor=#ccddee>".bugstats('suspended','all')."&nbsp;</td><td align=center bgcolor=#ddeeff>".bugstats('duplicate', 'all')."&nbsp;</td><td align=center bgcolor=#ccddee>".bugstats('assigned','all')."&nbsp;</td><td align=center bgcolor=#ddeeff>".bugstats('feedback','all')."&nbsp;</td></tr>\n"; - while(list($type,$value)=each($bug_type['all'])) { - echo "<tr><th align=right bgcolor=#aabbcc>$type:</th><td align=center bgcolor=#ccddee>$value</td><td align=center bgcolor=#ddeeff>".bugstats('closed', $type)."&nbsp;</td><td align=center bgcolor=#ccddee>".bugstats('open', $type)."&nbsp;</td><td align=center bgcolor=#ddeeff>".bugstats('analyzed', $type)."&nbsp;</td><td align=center bgcolor=#ccddee>".bugstats('suspended',$type)."&nbsp;</td><td align=center bgcolor=#ddeeff>".bugstats('duplicate', $type)."&nbsp;</td><td align=center bgcolor=#ccddee>".bugstats('assigned',$type)."&nbsp;</td><td align=center bgcolor=#ddeeff>".bugstats('feedback',$type)."&nbsp;</td></tr>\n"; + if( $bug_type['open'][$type] > 0 || + $bug_type['analyzed'][$type] > 0 || + $bug_type['suspended'][$type] > 0 || + $bug_type['duplicate'][$type] > 0 || + $bug_type['assigned'][$type] > 0 || + $bug_type['feedback'][$type] > 0 ) + { + echo "<tr><th align=right bgcolor=#aabbcc>$type:</th><td align=center bgcolor=#ccddee>$value</td><td align=center bgcolor=#ddeeff>".bugstats('closed', $type)."&nbsp;</td><td align=center bgcolor=#ccddee>".bugstats('open', $type)."&nbsp;</td><td align=center bgcolor=#ddeeff>".bugstats('analyzed', $type)."&nbsp;</td><td align=center bgcolor=#ccddee>".bugstats('suspended',$type)."&nbsp;</td><td align=center bgcolor=#ddeeff>".bugstats('duplicate', $type)."&nbsp;</td><td align=center bgcolor=#ccddee>".bugstats('assigned',$type)."&nbsp;</td><td align=center bgcolor=#ddeeff>".bugstats('feedback',$type)."&nbsp;</td></tr>\n"; + } } echo "</table>\n";

« previous php.mirrors (#2987) next »