I have an image that appears if a text box if filled, and another (transparent gif) if not.
The regular image is the same reagrdless if the event is tomorrow, today or past.
I want to have the image be different if today and then use the transparent if expired.
here is my code for the images currently...
code:
<% my $string; %>
<% if (!$EVENT->{details}->{ticketwebid} ){ %>
<% $string = "<img src=\"tr0.gif\" WIDTH=\"27\" HEIGHT=\"18\" BORDER=\"0\" align=\"top\">"; %>
<% } else { %>
<% $string = "<img src=\"hoztick.gif\" WIDTH=\"27\" HEIGHT=\"18\" BORDER=\"0\" align=\"top\"></a>"; %>
<% } %>
<% print $string; %>
So if it finds an event with nothing in that field, the it puts the tr0.gif. else it puts the hoztick.gif.
But ....
I want it be.. if event has nothing in that field, use the tr0.gif, else, use hozticket.gif. But if it is today, use todayhoztick.gif, or if it is past, use tr0.gif.
can anybody help me with this.....