# 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 ----------
  $$Previous Week$$ $$Previous Day$$ $$Week beginning$$ ||datetime_format(current_day_in_user_time,sp_date_format_long)|| $$Next Day$$ $$Next Week$$ $$Today$$  
||elseifdef||is_start_day_callback|| # ---------- This draws a day heading --------------------- ||else|| # ---------- This draws a single event --------------------- ||endif|| ||end_list|| # Next line generates some space so that empty week displays are displayed nicely.
||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 ---------------------
||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)||
 ||repeat(20,( ))||
||include||surgeplus_web_bottom.htm||