RE: [PHP] control panel--graphic question

From: Date: Fri, 02 Apr 2004 17:09:58 +0000
Subject: RE: [PHP] control panel--graphic question
Groups: php.general 
Request: Send a blank email to php-general+get-182149@lists.php.net to get a copy of this message
[snip] For a program I am writting I need to have a control panel to display anything that may be wrong. I would like to use something like a stoplight so that it would be easily understood by a lay person. Does anyone have any comments as to what they have used? Also does anyone have a function/graphic that would be a stop light and changing the var would make it either show red, green, or yellow? [/snip] you will need three graphics if("good" == $condition){ echo "<img src=\"greenlight.jpg\">\n"; } elseif("marginal" == $condition){ echo "<img src=\"yellowlight.jpg\">\n"; } elseif("bad" == $condition){ echo "<img src=\"redlight.jpg\">\n"; } HTH!

« previous php.general (#182149) next »