<% $STYLE = $in{style} || $in{calendar_style} || "Grid"; $VIEW = $in{view} || $in{calendar_view}; if (!$in{duration} && !$in{range} && !$in{startdate} && !$in{enddate}) { $VIEW ||= "Month"; } if ($VIEW eq "Month") { &getEvents( { 'range'=>'month' , 'month'=>$MONTH } ); } elsif ($VIEW eq "Week") { &getEvents( { 'range'=>'week' } ); } elsif ($VIEW eq "Two-Week") { &getEvents( { 'range'=>'twoweek' } ); } elsif ($VIEW eq "Three-Week") { &getEvents( { 'range'=>'threeweek' } ); } elsif ($VIEW eq "Four-Week") { &getEvents( { 'range'=>'fourweek' } ); } else { &getEvents( {'duration'=>$in{duration}, 'range'=>$in{range}, 'startdate'=>$in{startdate}, 'enddate'=>$in{enddate} } ); } if ($Grid->{'rowcount'} > 0) { $rowheight = "HEIGHT=\"".int(80/$Grid->{'rowcount'})."%\""; } if ($STYLE eq "Grid") { $TABLE_WIDTH="WIDTH=100%"; $TABLE_HEIGHT="HEIGHT=100%"; } %> Calendar
<%=$TABLE_HEIGHT%>> <%IF USER LOGGED IN%> <%/IF%> <% if ($STYLE eq "Grid") { %> <%FOREACH GRID COLUMN%> <%/FOREACH%> <%FOREACH GRID ROW%> > <%FOREACH GRID COLUMN%> <%/FOREACH%> <%/FOREACH%> <% } elsif ($STYLE eq "List") { %> <% } %>
<% if ($VIEW eq "Month") { %> << <%=$LAST_MONTH_NAME%>     <%= $MONTH_NAME %> <%= $YEAR %>     <%=$NEXT_MONTH_NAME%> >> <% } else { %> << Last Week     <%=$RANGE_START_MONTH%>/<%=$RANGE_START_DATE%>/<%=$RANGE_START_YEAR%> - <%=$RANGE_END_MONTH%>/<%=$RANGE_END_DATE%>/<%=$RANGE_END_YEAR%>     Next Week >>
<% } %>
Logged in as: <%=($User->{name} || $User->{username})%> [Logout]
<%= $Grid->{'daynames'}->[$COL] %>
<%IF SELECTED%>BGCOLOR="yellow"<%/IF%>> <%IF DISPLAY%>  <%if($DAY->{'dd'}==1&&$VIEW ne "Month"){%><%=$DAY->{'monthname'}%> <%}%><%=$DAY->{'dd'}%>  <%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'} %>
<%/FOREACH%> <%/IF%>  
<%$total_events=0;%> <%FOREACH EVENTLIST%> <%IF EVENTS EXIST%> <%$total_events++;%>
<%IF SELECTED%><%/IF%><%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%><%IF SELECTED%><%/IF%>
<%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'} %>
<%/FOREACH%> <%/IF%> <%/FOREACH%>
<%unless($total_events){%>
No Events
<% } %>
Powered by CalendarScript