# 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,())|| ||endif|| ||ifdef||pre_listing_setup|| # ---------- This section sets up the days and previous/next buttons ----------
  $$Previous Week$$ $$Previous Day$$ ||datetime_format(current_day_in_user_time,sp_date_format_long)|| $$Next Day$$ $$Next Week$$ $$Today$$  
# Next row sets it up so that 3rd column and onwards uses up most space. ||elseifdef||is_event_callback|| # ---------- This draws a single event --------------------- ||elseifdef||is_hour_callback|| # ---------- This a line followed by the text starting a new hour --------------------- ||else|| ||endif|| ||elseifdef||is_minute_callback|| # ---------- This section is called every 15 minute interval (except on the hour) --------------------- ||ifequal||current_minute||30|| ||endif|| ||endif|| ||end_list||
  ||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)||
||datetime_format(upto_time_in_user_time,sp_time_format)|| ||ifdef||is_last_minute||
 
||include||surgeplus_web_bottom.htm||