in the css file the rowcolors are defined by:
/[pre]
* result rows */
/* results_1 and results_2 differ only for the background-color, this create the alternate row colors effect */
.tr_results_1 {
font-size: 8pt;
vertical-align: top;
white-space: nowrap;
background-color: #EFEFEF;
}
.tr_results_2 {
font-size: 8pt;
vertical-align: top;
white-space: nowrap;
background-color: #ffffff;
}
[/pre]
I want the row colors to be defined based on a value pulled out of the database. So in my database there's a field called "status". Based on the content of that field I want the rowcolor to be displayed.
So I'm told this can be achieved by adding some styles and defining a variable which reads the field value:
[pre]
td.status.new {
color:green;
}
td.status.closed {
color:red;
}
td.status.open {
color:blue;
}
[/pre]
So how can I change the table output not to display the alternating rowcolors but the field based colors?
/[pre]
* result rows */
/* results_1 and results_2 differ only for the background-color, this create the alternate row colors effect */
.tr_results_1 {
font-size: 8pt;
vertical-align: top;
white-space: nowrap;
background-color: #EFEFEF;
}
.tr_results_2 {
font-size: 8pt;
vertical-align: top;
white-space: nowrap;
background-color: #ffffff;
}
[/pre]
I want the row colors to be defined based on a value pulled out of the database. So in my database there's a field called "status". Based on the content of that field I want the rowcolor to be displayed.
So I'm told this can be achieved by adding some styles and defining a variable which reads the field value:
[pre]
td.status.new {
color:green;
}
td.status.closed {
color:red;
}
td.status.open {
color:blue;
}
[/pre]
So how can I change the table output not to display the alternating rowcolors but the field based colors?