|
From: Benjamin C. <bc...@us...> - 2001-10-06 03:53:36
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv4854
Modified Files:
global-black.css global.css query.php
Log Message:
That should wrap up the cvs -- of course, I'm sure I missed something or introduced a bug :)
Index: global-black.css
===================================================================
RCS file: /cvsroot/phpbt/phpbt/global-black.css,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- global-black.css 2001/10/06 03:35:37 1.2
+++ global-black.css 2001/10/06 03:53:33 1.3
@@ -31,7 +31,11 @@
text-align: center;
background-color: #6a6a6a;
}
-
+
+td.center {
+ text-align: center;
+ }
+
th {
font-family: "Arial","Helvetica","MS Sans Serif","Sans-Serif";
font-size: 12px;
Index: global.css
===================================================================
RCS file: /cvsroot/phpbt/phpbt/global.css,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- global.css 2001/10/06 03:35:37 1.6
+++ global.css 2001/10/06 03:53:33 1.7
@@ -29,6 +29,10 @@
background-color: #bbbbbb;
}
+td.center {
+ text-align: center;
+ }
+
th {
font-family: "Arial","Helvetica","MS Sans Serif","Sans-Serif";
font-size: 12px;
Index: query.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/query.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- query.php 2001/10/06 03:35:37 1.29
+++ query.php 2001/10/06 03:53:33 1.30
@@ -253,6 +253,7 @@
while ($row = $q->grab()) {
$bgcolor = USE_SEVERITY_COLOR ? $row['severity_color'] :
((++$i % 2 == 0) ? '#dddddd' : '#ffffff');
+ $trclass = USE_SEVERITY_COLOR ? '' : ($i % 2 ? '' : 'alt');
foreach ($db_fields as $field) {
switch ($field) {
case 'url' :
@@ -263,7 +264,7 @@
case 'last_modified_date' :
case 'close_date' :
$coldata = $row[$field] ? date(DATEFORMAT, $row[$field]) : ' ';
- $td_extra = 'class="center-col"';
+ $td_extra = 'class="center"';
break;
case 'bug_id' :
case 'title' :
@@ -274,15 +275,15 @@
case 'owner' :
case 'lastmodifier' :
$coldata = maskemail($row[$field]);
- $td_extra = 'class="center-col"';
+ $td_extra = 'class="center"';
break;
case 'priority' :
$coldata = $select['priority'][$row[$field]];
- $td_extra = 'class="center-col"';
+ $td_extra = 'class="center"';
break;
default :
$coldata = $row[$field];
- $td_extra = 'class="center-col"';
+ $td_extra = 'class="center"';
break;
}
$t->set_var(array(
@@ -291,7 +292,7 @@
));
$t->parse('cols', 'col', true);
}
- $t->set_var('tr-extra', "bgcolor='$bgcolor' onClick=\"document.location.href='bug.php?op=show&bugid={$row['bug_id']}'\" onMouseOver=\"this.style.backgroundColor='#eeeeee'\" onMouseOut=\"this.style.backgroundColor='$bgcolor'\"");
+ $t->set_var('tr-extra', "class='$trclass' onClick=\"document.location.href='bug.php?op=show&bugid={$row['bug_id']}'\" onMouseOver=\"this.style.fontWeight='bold'\" onMouseOut=\"this.style.fontWeight='normal'\"");
$t->parse('rows','row',true);
$t->set_var('cols', '');
}
|