This topic is locked
[SOLVED]

 Changing row color

7/18/2014 6:29:04 PM
PHPRunner General questions
C
cjsaputo author

I have reviewed and tested my app based on the past postings concerning this subject, but cannot make it work.
I have a date(estimated_completion_date) that has a field type of datetime. I want to change the list screen row to red if this date field is <= today's date.
Any help would be appreciated.

romaldus 7/18/2014



I have reviewed and tested my app based on the past postings concerning this subject, but cannot make it work.
I have a date(estimated_completion_date) that has a field type of datetime. I want to change the list screen row to red if this date field is <= today's date.
Any help would be appreciated.


on List Page : After record processed

if ($data["estimated_completion_date"] <= date('Y-m-d'))

$record["estimated_completion_date_style"].='style="background:red"';
C
cjsaputo author 7/20/2014

Thanks. That worked.



on List Page : After record processed

if ($data["estimated_completion_date"] <= date('Y-m-d'))

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