View Single Post
  #2 (permalink)  
Old March 6th, 2006, 07:13 PM
mat41 mat41 is offline
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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
Reply With Quote