[-*Smarty*-] [-* we want to include out stylesheet for this view*-] [-fetch file="$TPL_STYLE_PATH/search.css" assign="css"-] [-eval var=$css-] [-*Load the Language Definitions*-] [-config_load file="lang.$USER_LANG"-] [-*Main Navigation*-] [-include file="$TPL_NAME/views/global/small_navigation.html"-]

[-#_PC_SEARCH_KEYWORDS#-]: [-#_PC_SEARCH_IN#-]: [-if $USE_TOPICS-] [-/if-]

[-if $SEARCH_PERFORMED-]
[-*We should have results and should display them*-] [-counter start=0 print=false assign="eventCount"-] [-pc_sort_events var="S_EVENTS" sort="category" order="asc" value=$A_EVENTS-] [-foreach name=dates item=date key=cdate from=$S_EVENTS-] [-if $date|@count > 0-] [-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="%A, %d %B %Y"-] [-else-] [-pc_date_format date=$cdate format="%A, %B %d %Y"-] [-/if-]

[-assign var="oldCat" value=""-] [-foreach name=events item=event from=$date-] [-counter-] [-assign var="cCat" value=$event.catname-] [-if $oldCat != $cCat-] [-if $smarty.foreach.events.first != true-] [-/if-] [-$event.catname-] [-/if-] [-if $24HOUR_TIME-] [-assign var="timestamp" value=$event.startTime|date_format:"%H:%M"-] [-else-] [-assign var="timestamp" value=$event.startTime|date_format:"%I:%M %p"-] [-/if-] [-if $event.alldayevent != true-] [-$timestamp-] [-/if-] [-$event.title|strip_tags-] [-if $event.alldayevent != true-] [-if $event.duration_hours > 0 or $event.duration_minutes > 0 -] ([-$event.duration_hours-]:[-$event.duration_minutes-]) [-/if-] [-/if-] [-assign var="oldCat" value=$event.catname-] [-if $smarty.foreach.events.last-] [-* we need to close out the tag *-] [-/if-] [-/foreach-]

[-/if-] [-/foreach-] [-if $eventCount == 0-] [-#_PC_SEARCH_NO_RESULTS#-] [-/if-] [-/if-]