Address Book Row Colors

light_coder wrote on Friday, August 29, 2008:

The follwing 2 classes (.evenrow and .oddrow) need to be added in the style_sky_blue.css file to allow alternate colors in the address book. These classes are referenced in the openemr/interface/usergroup/addrbook_list.php file  in this line of code $bgclass = (($encount & 1) ? "evenrow" : "oddrow") but not defined in the CSS file.

.evenrow {
background-color:#ddddff;
}

.oddrow {
background-color:#ffdddd;
}

Of course, change the colors to your liking.

Thanks.

Jude.

light_coder wrote on Friday, August 29, 2008:

Forgot to say this is for the latest version (2.90)

Jude.

mike-h30 wrote on Sunday, August 31, 2008:

Can you show the syntax for this?  I tried adding the code but the row colors are still sky blue.

I tried this:

.evenrow { background-color:#ddddff; } 
.oddrow { background-color:#ffdddd; }

and also

#evenrow { background-color:#ddddff; } 
#oddrow { background-color:#ffdddd; }

-Mike

light_coder wrote on Wednesday, September 03, 2008:

I gave you the syntax above. They’re definitely classes. So the first 2 are correct. Make sure you update the right css file, the one that the $css_header variable points to in the globals.php file. In my case, $css_header = “$rootdir/themes/style_sky_blue.css”, the default. So, I edited the style_sky_blue.css file. It might different on your system.

Jude

mike-h30 wrote on Thursday, September 04, 2008:

Thanks.  I have it working now.

-Mike