<% if ($_SHOW_COMMAND_LIST) { %>
">Search |
<%if ($User->hasPermission($CALENDAR_KEY,"ADD_EVENT")) { %>
Add Event |
<%}%>
<%if ($User->hasPermission($CALENDAR_KEY,"EDIT_EVENTS") || $User->hasPermission($CALENDAR_KEY,"EDIT_OWN_EVENTS")) { %>
Edit Events |
<%}%>
<%IF USER LOGGED IN%>
<%if ($User->isCalendarAdmin($CALENDAR_KEY)) { %>
Admin |
<%}%>
<%/IF%>
<%IF USER LOGGED IN%>
Logout |
<%ELSE%>
Login |
<%/IF%>
<% } %>
|
<% if ($VIEW eq "Month" || $VIEW eq "Week" || $VIEW eq "Two-Week" || $VIEW eq "Three-Week" || $VIEW eq "Four-Week") { %>
<% if ($STYLE eq "Grid") { %>
<%FOREACH GRID COLUMN%>
<%= $Grid->{'daynames'}->[$COL] %> |
<%/FOREACH%>
<%FOREACH GRID ROW%>
>
<%FOREACH GRID COLUMN%>
<% $i=0; %>
BGCOLOR="<%IF SELECTED%><%=$_GRID_CELL_SELECTED_BGCOLOR%><%ELSE%><%=$_GRID_CELL_BGCOLOR%><%/IF%>">
<%IF DISPLAY%>
<%if($DAY->{'dd'}==1&&$VIEW ne "Month"){%><%=$DAY->{'monthname'}%> <%}%><%=$DAY->{'dd'}%>
<%FOREACH EVENT%>
<%$i++;%>
<% if ($EVENT->{'schedule'}->{'start_time'}) { %><%= SCHEDULE FIELD(start_time) %><% } %>
<% if ($EVENT->{'schedule'}->{'end_time'}) { %>-<%= SCHEDULE FIELD(end_time) %><% } %>
<% if ($EVENT->{'schedule'}->{'start_time'}) { %> : <% } %>
<%= EVENT FIELD(title) %>
<%/FOREACH%>
<% if ($i==0) { %> <% } %>
<%/IF%>
|
<%/FOREACH%>
<%/FOREACH%>
<% } elsif ($STYLE eq "List") { %>
<%$total_events=0;%>
<%FOREACH EVENTLIST%>
<%IF EVENTS EXIST%>
<%$total_events++;%>
- <%=$DAY->{dayname}%>, <%=$DAY->{monthname}%> <%=$DAY->{dd}%>
-
<%FOREACH EVENT%>
<% if ($EVENT->{'schedule'}->{'start_time'}) { %><%= SCHEDULE FIELD(start_time) %><% } %>
<% if ($EVENT->{'schedule'}->{'end_time'}) { %>-<%= SCHEDULE FIELD(end_time) %><% } %>
<% if ($EVENT->{'schedule'}->{'start_time'}) { %> : <% } %>
<%= EVENT FIELD(title) %>
<%/FOREACH%>
<%/IF%>
<%/FOREACH%>
<%unless($total_events){%>
No Events
<% } %>
|
<% } %>
<% } elsif ($VIEW eq "Day") { %>
<% if ($STYLE eq "Grid") { %>
<%FOREACH HOUR OF DAY%>
<% if ($HOUR == 99) { %>
All Day Events
<%ELSE%>
<%=Date::formatTime(&Date::LZ($HOUR)."00",$Config->{'time_format'})%>
<%/IF%>
|
<%FOREACH EVENT%>
<% if ($EVENT->{'schedule'}->{'start_time'}) { %><%= SCHEDULE FIELD(start_time) %><% } %>
<% if ($EVENT->{'schedule'}->{'end_time'}) { %>-<%= SCHEDULE FIELD(end_time) %><% } %>
<% if ($EVENT->{'schedule'}->{'start_time'}) { %> : <% } %>
<%= EVENT FIELD(title) %>
[details]
<%/FOREACH%>
<%IF NO EVENTS EXIST%> <%/IF%>
|
<%/FOREACH%>
<% } else { %>
<%IF EVENTS EXIST%>
<%FOREACH EVENT%>
-
<% if ($EVENT->{'schedule'}->{'start_time'}) { %><%= SCHEDULE FIELD(start_time) %><% } %>
<% if ($EVENT->{'schedule'}->{'end_time'}) { %>-<%= SCHEDULE FIELD(end_time) %><% } %> <% if ($EVENT->{'schedule'}->{'start_time'}) { %> : <% } %>
<%= EVENT FIELD(title) %>
[details]
-
<%= EVENT FIELD(description) %>
<%/FOREACH%>
<%ELSE%>
No Events
<%/IF%>
|
<% } %>
<% } elsif ($VIEW eq "Event") { %>
<%
foreach (@$fields) {
next unless ($db->{'properties'}->{$_}->{'display_details'});
%>
<%=$db->{'properties'}->{$_}->{'name'}%>: | <%=$EVENT->{details}->{$_}%> |
<% } %>
<% } elsif ($VIEW eq "Search") { %>
<% } %>
|