# This page displays all the user's calendar events for an entire week ||define||sp_calendar_week||true|| ||include||surgeplus_calendar_top.htm|| ||begin_list|| ||ifdef||pre_listing_setup|| # ---------- This section sets up the days and previous/next buttons ----------

|  |  | $$Week beginning$$ ||datetime_format(current_day_in_user_time,sp_date_format_long)|| |  |  | $$Today$$ |

||elseifdef||is_start_day_callback|| # ---------- This draws a day heading ---------------------
||datetime_format(current_day_in_user_time,sp_weekday_format)||, ||datetime_format(current_day_in_user_time,sp_day_month_format)|| $$Add$$ | ||elseifdef||is_end_day_callback|| # ---------- This ends a day heading ---------------------
||else|| # ---------- 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)||
||endif|| ||end_list||
# Next line generates some space so that empty week displays are displayed nicely.
| ||repeat(20,( ))||

||include||surgeplus_web_bottom.htm||