| Index
» Projekty
» phpMyEdit
» Fórum
» colorization |
 |
danvolkov
Založený: 02.10.2007
Príspevky: 7
Zaslal: 2007-11-26 13:35
Návrat hore
Odpovedať s citátom
|
hi guys,
In my table, I have a date field named "dbNextDelivery" which is stored in "YYYY-MM-DD" format.
In the list mode I want to highlight all dbNextDelivery dates which are overdue, i.e. those that are before today's date. I tried examples posted on other similar threads here, but none of them worked for me, either because of minor mistakes in syntax or for some other reasons... Maybe there is a specific PME setting that I need to "switch on" to be able to use ['sql|LF'] in $opts? I don't know..
Could someone please post here an actually working code for colorization of my dbNextDelivery field? Many thanks in advance!
Dan
Naposledy upravil danvolkov dňa 2007-11-26 21:28, celkom upravené 2 krát
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2007-11-26 13:41
Návrat hore
Odpovedať s citátom
|
sql|LF = "if(dbNextDelivery>now(),concat('<span style=\"red\">',dbNextDelivery,'</span>',dbNextDelivery)'
should work (but never tested)
|
danvolkov
Založený: 02.10.2007
Príspevky: 7
Zaslal: 2007-11-26 14:10
Návrat hore
Odpovedať s citátom
|
sorry, but the code above does not work.
guys, would anyone please post here a TESTED example. many thanks!
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|