Thank you! It works great!
One more request of a cosmetic nature. If there are no events for a particular day, I need that day to disappear or have it print out one blank event (perhaps a spacer gif) so that it doesnt leave a hole in the table.
See what I mean at: http://lion.spx.org/calendar/calendar.pl?calendar=default&template=homepage7.html
Here is my current code:
<%
&getEvents( {'duration'=>'7d'} );
$total_events=0;
%>
<style>
th
{
font : 18px "Times New Roman", Times, serif;
text-align : center;
color : #F7E79C;
background-color : #003374;
padding-top : 3px;
padding-bottom : 3px;
}
A.minical { text-decoration:none; }
A.minical:hover { text-decoration:underline; }
.minical { color:black; }
.day
{
font: 15px verdana, Geneva, Arial, Helvetica, sans-serif;
color : #003374;
padding: 10px;
border-left : 1px solid;
border-left-color : #003374;
border-bottom : 1px solid #003374;
border-right: 1px solid;
border-right-color: #003374;
}
.eventstart
{
font: 11px verdana, Geneva, Arial, Helvetica, sans-serif;
color : gray;
border-bottom : 1px solid;
border-bottom-color : #003374;
border-right : 1px solid;
border-right-color : #003374;
padding: 5px;
}
</style>
<BODY style="margin:0px">
<TABLE cellpadding="0" cellspacing="0" width="300" border="0">
<TR>
<TH colspan="3">A Glance at the Next 7 Days</TH>
</TR>
<%FOREACH EVENTLIST%>
<%$curr_events=0;%>
<%FOREACH EVENT%>
<%
next if ($EVENT->{details}->{front_page} ne "Yes");
$total_events++;
$curr_events++;
%>
<%/FOREACH%>
<%if ($total_events) { %>
<TR>
<TD class="day" width="25" rowspan="<%=$curr_events%>"><%=$DAY->{dayabbreviation}%>
<BR><%=$DAY->{'dd'}%></TD><%$curr_events=0;%><%FOREACH EVENT%>
<% if ($curr_events) { %><% } $curr_events++; %><% next if ($EVENT->{details}->{front_page} ne "Yes"); %>
<TD class="eventstart"> <A HREF="http://lion.spx.org/calendar/calendar.pl?view=Event&event_id=<%= EVENT FIELD(id) %>" target="_blank" class="minical">
<%=$EVENT->{'details'}->{'title'} %></a></TD>
<td class="eventstart" width="50"><% if ($EVENT->{'schedule'}->{'all_day'}) { %>
-
<% } else { %>
<% SCHEDULE FIELD(start_time) %><% } %></td>
</TR>
<%/FOREACH%>
<%/IF%>
<%/FOREACH%>
<%unless($total_events){%>
<TR>
<TD colspan="3"><IMG src="images/spacer.gif" width="1" height="25" alt="" border="0"></TD>
</TR>
<% } %>
</TABLE>
</BODY>