Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Conditional Background color with colattrs

phpMyEdit General     Conditional Background color with colattrs
Post new topic   Reply to topic    
 
bentuinstra     Joined: 12 Sep 2004   Posts: 29  
Post Posted: 2005-03-24 14:33
Back to top  Reply with quote     

Hi All,

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

Code:
'colattrs' => 'bgcolor = "lime"',


Now I would like to do something like this:

Code:
$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

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy