[-*Smarty*-] [-config_load file="default.conf"-] [-*Load the Language Definitions*-] [-config_load file="lang.$USER_LANG"-] [-* we want to include out stylesheet for this view*-] [-fetch file="$TPL_STYLE_PATH/week.css" assign="css"-] [-eval var=$css-] [-if $PRINT_VIEW != 1-] [-*Main Navigation*-] [-include file="$TPL_NAME/views/global/navigation.html"-] [-/if-] [-if $PRINT_VIEW != 1-] [-/if-]
<< [-$DATE|pc_date_format:#_PC_DATE_FORMAT_MY#-] >> [-pc_view_select label=#_PC_TPL_VIEW_LABEL# class=""-]
[-* Loop through the EventsByDate array : This array contains data for each day in the view. *-] [-pc_sort_events var="S_EVENTS" sort="category" order="asc" value=$A_EVENTS-] [-foreach name=dates item=events key=cdate from=$S_EVENTS-] [-if $events|@count AND ($cdate >= $MONTH_START_DATE AND $cdate <= $MONTH_END_DATE)-] [-assign var="dayname" value=$cdate|date_format:"%w"-] [-assign var="day" value=$cdate|date_format:"%d"|string_format:"%1d"-] [-assign var="month" value=$cdate|date_format:"%m"|string_format:"%1d"-] [-assign var="month" value=$month-1-] [-assign var="year" value=$cdate|date_format:"%Y"|string_format:"%4d"-]
[-if $USE_INT_DATES eq true-] [-pc_date_format date=$cdate format=#_PC_DATE_FORMAT_INT#-] [-else-] [-pc_date_format date=$cdate format=#_PC_DATE_FORMAT_STD#-] [-/if-]
[-* Loop through the events for this day and display the event data *-] [-assign var="oldCat" value=""-]
[-foreach name=eventloop key=id item=event from=$S_EVENTS.$cdate-] [-assign var="cCat" value=$event.catname-] [-if $24HOUR_TIME-] [-assign var="timestamp" value=$event.startTime|date_format:#_PC_TIME_FORMAT_24#-] [-else-] [-assign var="timestamp" value=$event.startTime|date_format:#_PC_TIME_FORMAT_12#-] [-/if-] [-if $oldCat != $cCat-] [-if $smarty.foreach.eventloop.first != true-] [-/if-]
[-$event.catname-]
[-/if-] [-if $event.alldayevent != true-] [-$timestamp-] [-/if-] [-$event.title|strip_tags-] [-if $event.alldayevent != true-] ([-$event.duration_hours-]:[-$event.duration_minutes-]) [-/if-]
[-assign var="oldCat" value=$event.catname-] [-if $smarty.foreach.eventloop.last-] [-* we need to close out the
tag *-]
[-/if-] [-foreachelse-]   [-/foreach-]
[-/if-] [-/foreach-]
[-if $PRINT_VIEW != 1-]
[-#_PC_THEME_PRINT#-]
[-/if-] [-*footer*-] [-include file="$TPL_NAME/views/global/footer.html"-]