I've been using CalenderScript 3.0 for years (great script!) and I've been tweaking the old style default.html, day.html and event_detail.html pages so that they will display correctly in my new Web site design. Everything is working except for one thing -- when I click on a date in the calendar grid, it tells me there are no events for that date even when there is indeed an event there.
The event displays in the calendar grid, and it shows up in event details, but it says "No Events" when I click the date in the grid to see the list of events for that day. I'm assuming this is a problem with day.html, so I've pasted the code below in hope that someone can tell me how to fix it. Thanks very much!
<% if ($STYLE eq "Grid") { %>
<%FOREACH HOUR OF DAY%>
<TR>
<TD CLASS="thinborder" BGCOLOR="#ffffff" ALIGN="right" VALIGN="middle" WIDTH="15%">
<% if ($HOUR == 99) { %>
All Day Events
<%ELSE%>
<%=Date::formatTime(&Date::LZ($HOUR)."00",$Config->{'time_format'})%>
<%/IF%>
</TD>
<TD CLASS="thinborder" VALIGN=TOP WIDTH="85%">
<%FOREACH EVENT%>
<% if ($EVENT->{'schedule'}->{'start_time'}) { %><%= $EVENT->{'schedule'}->{'start_time'} %><% } %>
<% if ($EVENT->{'schedule'}->{'end_time'}) { %>-<%= $EVENT->{'schedule'}->{'end_time'} %><% } %>
<% if ($EVENT->{'schedule'}->{'start_time'}) { %> : <% } %>
<%= $EVENT->{'details'}->{'title'} %>
<FONT SIZE="-2">[<A HREF="<%=$CGI_URL_QUERYSTRING%>popup=0&template=event_detail.html&event_id=<%=$EVENT->{'details'}->{'id'}%>" STYLE="text-decoration:underline;" onClick="showDetails('<%=$EVENT->{'details'}->{'id'}%>');return false;">details</A>]</FONT>
<BR>
<%/FOREACH%>
<%IF NO EVENTS EXIST%> <%/IF%>
</TD>
</TR>
<%/FOREACH%>
<% } else { %>
<TR>
<TD CLASS="thinborder" VALIGN="top" COLSPAN="2">
<%IF EVENTS EXIST%>
<CENTER><TABLE BORDER="0"><TR><TD>
<DL>
<%FOREACH EVENT%>
<DT>
<% if ($EVENT->{'schedule'}->{'start_time'}) { %><%= $EVENT->{'schedule'}->{'start_time'} %><% } %>
<% if ($EVENT->{'schedule'}->{'end_time'}) { %>-<%= $EVENT->{'schedule'}->{'end_time'} %><% } %>
<% if ($EVENT->{'schedule'}->{'start_time'}) { %> : <% } %>
<%= $EVENT->{'details'}->{'title'} %>
<FONT SIZE="-2">[<A HREF="<%=$CGI_URL_QUERYSTRING%>popup=0&template=event_detail.html&event_id=<%=$EVENT->{'details'}->{'id'}%>" STYLE="text-decoration:underline;" onClick="showDetails('<%=$EVENT->{'details'}->{'id'}%>');return false;">details</A>]<BR></FONT>
<DD>
<%= $EVENT->{'details'}->{'description'} %>
<%/FOREACH%>
</DL>
</TD></TR></TABLE></CENTER>
<%ELSE%>
<CENTER><BR><I>No Events</I><BR><BR></CENTER>
<%/IF%>