Here's the modified version of the ssi.html that will get you set up correctly.
code:
<%
&getEvents( {'duration'=>$in{duration}} );
$DAY = $Grid->{'grid'}->
- ->
- ;
$EVENTS = $DAY->{events};
$total_events=0;
%>
<DL>
<%FOREACH EVENTLIST%>
<%IF EVENTS EXIST%>
<%$curr_events = 0;%>
<%FOREACH EVENT%>
<%$curr_events++ if ($EVENT->{details}->{holiday} ne "yes"); %>
<%/FOREACH%>
<%next unless ($curr_events);%>
<%$total_events++;%>
<DT><%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%>
<DD>
<%FOREACH EVENT%>
<% next if ($EVENT->{details}->{holiday} eq "yes"); %>
<% 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'} %><BR>
<%/FOREACH%>
<%/IF%>
<%/FOREACH%>
</DL>
<%unless($total_events){%>
<CENTER><I>No Events</I></CENTER>
<% } %>
<A HREF="<%=$AdminConfig->get("calendar_url")%>?calendar=<%=$calendar_key%>">View Calendar</A>
That code "simulates" the next day by incrementing $curr_events if there is an event that's not a holiday. Then you check and see if there are any $curr_events, skipping the rest of the display for the current date if there's not. Give that a try and see what happens.
------------------
David Whittaker
http://www.uabcm.com/
http://www.csworkbench.com/