This topic is locked

Problem on page list. It's possible to do this? It's urgent pl

10/30/2007 7:35:50 AM
PHPRunner General questions
E
elomor author

How I can show in a page listthis (for example):
(imagine that a table has the field color
if (color=="black")

{ echo "<img src='black.png'> }

else

{ echo "<img src='white.png'> }

Alexey admin 10/30/2007

Hi,
use Custom view type for your color filed.

Here is the code for custom expression:

if($value=="black")

$value = "<img src='black.png'>";

else

$value = "<img src='white.png'>";

E
elomor author 10/30/2007

Thanks Alexey,
but the problem is that the
function NEW_xxx_Event1(&$params)

{
}
don't pass the $values array with the fields of the table (only pass &$params), how can i use the fields.
Is very important for my proyect.
Thanks.

Sergey Kornilov admin 10/30/2007

With urgent questions you need to contact support team directly at support@xlinesoft.com.
To speed up the process post your project to Demo Account and send the URL where this issue can be seen.