|
From: Benjamin C. <bc...@us...> - 2001-11-23 05:06:55
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv18071
Modified Files:
index.php
Log Message:
Code cleanup and added links to query page for each type of bug status
Index: index.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/index.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- index.php 2001/11/13 03:53:04 1.12
+++ index.php 2001/11/23 05:06:52 1.13
@@ -42,15 +42,18 @@
while ($row = $q->grab()) {
$stats[$row['status_id']]['count'] = $row['count'];
}
- foreach ($stats as $stat) {
+ $total = 0;
+ foreach ($stats as $statid => $stat) {
$t->set_var(array(
+ 'statid' => $statid,
'status' => $stat['name'],
- 'count' => $stat['count'] ? $stat['count'] : 0
+ 'count' => isset($stat['count']) ? $stat['count'] : 0
));
- $total += $stat['count'];
+ $total += isset($stat['count']) ? $stat['count'] : 0;
$t->parse('rows','row',true);
}
$t->set_var(array(
+ 'statid' => delimit_list('&status[]=', array_keys($stats)),
'status' => "<b>{$STRING['totalbugs']}</b>",
'count' => $total ? "<b>$total</b>" : 0
));
|