Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8054 Posts in 1860 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)change entry if expired in Display area
Pages: [1]   Go Down
Print
Author Topic: change entry if expired in Display area  (Read 323 times)
0 Members and 1 Guest are viewing this topic.
Alvy
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: November 30, 2003, 12:19:00 AM »

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.....

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 235

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: November 30, 2003, 02:15:00 PM »

** here is my code for the images currently... **

What code you're using is less important than where you're using it.

If you're using it in cell grids, you'll have to compare the cell grid date with the current date to see if it is pasted or not. Try looking at the $Grid variables in the 'Defined Variables' section of the Customization documentation page to see if that gives you any ideas.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: