# This page displays the user's calendar for a single day. ||define||sp_calendar_day||true|| ||include||surgeplus_calendar_top.htm|| ||begin_list|| ||if(and(is_time_section_callback,prev_was_hour))|| ||repeat(5,(
||datetime_format(current_day_in_user_time,sp_date_format_long)|| | $$Today$$ |
||elseifdef||is_event_callback|| # ---------- This draws a single event --------------------- | ||include||surgeplus_calendar_event_images.htm|| ||datetime_format(event_time_today_in_user_time,sp_time_format)|| - ||datetime_format(plus(event_time_today_in_user_time,event_field_x_duration),sp_time_format)|| ||web_encode_multi_line(event_field_x_name)|| | ||elseifdef||is_hour_callback|| # ---------- This a line followed by the text starting a new hour ---------------------||||||||||
||datetime_format(upto_time_in_user_time,sp_time_format)|| ||ifdef||is_last_minute|| | ||else|| | ||endif|| ||elseifdef||is_minute_callback|| # ---------- This section is called every 15 minute interval (except on the hour) --------------------- | |||||||||
||endif|| ||endif|| ||end_list|| |