|
From: Benjamin C. <bc...@us...> - 2001-08-03 20:12:33
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv5712
Modified Files:
report.php
Log Message:
Prettied up the report a little
Index: report.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/report.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- report.php 2001/08/03 15:31:33 1.2
+++ report.php 2001/08/03 20:12:31 1.3
@@ -12,6 +12,7 @@
$t->set_block('content', 'row', 'rows');
$t->set_block('row', 'col', 'cols');
+ $t->set_var('reporttitle', 'Status of Assigned bugs');
// Start off our query
$querystring = 'select Email, sum(if(Resolution = "0",1,0)) as "Open"';
@@ -29,15 +30,21 @@
} else {
foreach ($resfields as $col) {
$t->set_var('coldata', stripslashes($col));
+ $t->set_var('colclass', 'header-col');
$t->parse('cols', 'col', true);
}
+ $t->set_var('bgcolor', '#eeeeee');
$t->parse('rows', 'row', true);
$t->set_var('cols', '');
while ($row = $q->grab()) {
foreach ($resfields as $col) {
- $t->set_var('coldata', stripslashes($row[$col]));
+ $t->set_var(array(
+ 'coldata' => stripslashes($row[$col]),
+ 'colclass' => $col == 'Email' ? '' : 'center-col'
+ ));
$t->parse('cols', 'col', true);
}
+ $t->set_var('bgcolor', (++$i % 2 == 0) ? '#dddddd' : '#ffffff');
$t->parse('rows', 'row', true);
$t->set_var('cols', '');
}
|