This topic is locked

List Page

12/4/2007 5:34:48 AM
PHPRunner General questions
B
barbary author

Dears,
I want in the list page in a specific field if it is = 0 to be green
how can I do that
BR

J
Jane 12/4/2007

Hi,
use Custom format on the "View as" settings dialogfor this purpose.

Here is a sample code:

$str = "<table width=100% bgcolor=";

if ($value==0)

$str.="green";

else

$str.="white";

str.="><tr><td>".$value."</td></tr></table>";

$value=$str;