This topic is locked
[SOLVED]

display issue

6/7/2021 5:30:01 PM
PHPRunner General questions
Y
yasser136 author

hello
so the issue i try to costume data-filed view and list
I add dates after just for display I cutumize it by adding a function on the list page

img alt
after testing i got it like this

img alt

admin 6/7/2021

What exactly is the issue? You are not saying anything about what is wrong.

Y
yasser136 author 6/7/2021

i want to display red date in place of date limite field
i creat function in the date limite field to return text in red date_lim from data base its < 3 days on list page
` $cur_date = date("Y-m-d");

if(strtotime($data["date_lim_cour"]) > strtotime($cur_date) && strtotime($data["date_lim_cour"]) <= strtotime("$cur_date +3 day"))

echo "<a style='color:red;'>" .$data["date_lim_cour"]. "</a>" ;

else
echo "<a style='color:blue;'>" .$data["date_lim_cour"]. "</a>";`
its working but i got the result in the top of the list page

admin 6/7/2021

Do not use echo, assign the value to the $value variable. More info, of course, in the manual.

Y
yasser136 author 6/7/2021

Thank you very much for your quick reply