For my performance management systems that use a traffic light system. I print a color (image name) based the the score (assessment 0=green, 1=amber, 2=red) which is stored in the database. EG. My images are called:
assess0 = green
assess1 = amber
assess2 = red
There fore anywhere in the system where I need to show an assesment color is:
<img src="<%= URLBase %>images/assess<%= getAssess(1) %>.gif" width="34" height="17" alt="<%= getAssess(2) %>" border="0">
I find this method useful, it eliminates multiple if's and is a good time saver. I believe you caould use this process for your needs
Wind is your friend
Matt
|