cvs: phpweb / bugstats.php
| From: | Jani Taskinen | 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')." </td><td align=center
bgcolor=#ccddee>".bugstats('open',
'all')." </td><td align=center
bgcolor=#ddeeff>".bugstats('analyzed',
'all')." </td><td align=center
bgcolor=#ccddee>".bugstats('suspended','all')." </td><td
align=center bgcolor=#ddeeff>".bugstats('duplicate',
'all')." </td><td align=center
bgcolor=#ccddee>".bugstats('assigned','all')." </td><td
align=center
bgcolor=#ddeeff>".bugstats('feedback','all')." </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)." </td><td
align=center bgcolor=#ccddee>".bugstats('open',
$type)." </td><td align=center
bgcolor=#ddeeff>".bugstats('analyzed', $type)." </td><td
align=center
bgcolor=#ccddee>".bugstats('suspended',$type)." </td><td
align=center bgcolor=#ddeeff>".bugstats('duplicate',
$type)." </td><td align=center
bgcolor=#ccddee>".bugstats('assigned',$type)." </td><td
align=center
bgcolor=#ddeeff>".bugstats('feedback',$type)." </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)." </td><td
align=center bgcolor=#ccddee>".bugstats('open',
$type)." </td><td align=center
bgcolor=#ddeeff>".bugstats('analyzed', $type)." </td><td
align=center
bgcolor=#ccddee>".bugstats('suspended',$type)." </td><td
align=center bgcolor=#ddeeff>".bugstats('duplicate',
$type)." </td><td align=center
bgcolor=#ccddee>".bugstats('assigned',$type)." </td><td
align=center
bgcolor=#ddeeff>".bugstats('feedback',$type)." </td></tr>\n";
+ }
}
echo "</table>\n";