Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Conditional Background color with colattrs

phpMyEdit General     Conditional Background color with colattrs
Odoslať novú tému   Odpovedať na tému    
 
bentuinstra     Založený: 12.09.2004   Príspevky: 29  
Príspevok Zaslal: 2005-03-24 14:33
Návrat hore  Odpovedať s citátom     

Hi All,

Found out that it is possible to set the background color of a filed with:

Kód:
'colattrs' => 'bgcolor = "lime"',


Now I would like to do something like this:

Kód:
$file = '/Windows/bedrukkingen/$value.pdf';

'colattrs' => 'bgcolor = `if (file_exists($file)){echo "lime";} else { echo "white";}`',


Is this possible and what would be the syntax (the above example is not working ;-)

Cheers Ben

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov