This topic is locked

Change color of detail link

10/19/2008 12:26:06 PM
PHPRunner General questions
O
OLDmrcaseyman author

I would like to change the color of the detail link on a list page depending on a value in the details records
For example:
Let's say the details link on the Customer_list page goes to a table for "Orders"
In that Orders table there is a field for "status"
The values for the field "status" can be unpaid or paid.
A customer may have several orders.
I would like to change the link to green when all the orders that customer has are paid

T
thesofa 10/19/2008

the colour appears to be set by the class "tablelinks" this is in a CSS file.

Style.css includes this class

a.tablelinks

{

font-family: Tahoma, Verdana, Arial, SunSans-Regular, Sans-Serif;

font-size: 11px;

FONT-WEIGHT: bold;

COLOR: #993300;

TEXT-DECORATION: underline;

cursor:pointer;

}


Perhaps you can add another class into the css file where the colour line is changed to green, then put code into the Before page displayed event to alter the class if the conditions you describe have been met.

As they say in the old Westerns, "Its an old trick but it might just work"

Good luck and post your solution here if you get it working please.

HTH