This topic is locked

Highlighting rows

1/4/2012 10:44:08 AM
PHPRunner General questions
T
timdbs author

I have two tables that I want to highlight some rows, so I'm placing some statements in both events "List page:After record processed". Crazy enough, one works in google Chrome, and both work in IE.
Here's the script for the one that works in both browsers:
if ($data['projIncrease']<=0)

$record["projIncrease_style"]='style="background:red"';

else

if ($data['projIncrease']>=.1) {

$row["rowstyle"]='style="background:yellow"';

$record["projIncrease_style"]='style="background:green"'; }

else

$record["projIncrease_style"]='style="background:yellow"';
Here's the script for the table that only works in IE:
if (is_null($data["finRecDate"])) {

$record["finRecDate_style"]='style="background:yellow"';

$row["rowstyle"]='style="background:yellow"'; }
I've tried removing the IF statement, and that doesn't even work. Any thoughts?

T
timdbs author 1/4/2012

BTW, I just check Firefox...same results as Chrome.
I'm using Firefox 9, IE 9, Chrome 16