Index: openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl,v
diff -u -r1.7 -r1.8
--- openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl 6 Mar 2002 00:20:36 -0000 1.7
+++ openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl 10 Mar 2002 21:42:36 -0000 1.8
@@ -96,7 +96,8 @@
-day_bgcolor "#DDDDDD"
-today_bgcolor "#DDDDDD"
-day_text_color "white"
- -empty_bgcolor "white"
+ -empty_bgcolor "white"
+ -overlap_p 0
}
} {
Returns a calendar for a specific day, with details supplied by
@@ -125,19 +126,17 @@
}
# Loop through the hours of the day
- append return_html "
- \n"
+ append return_html "
+ \n"
# The items that have no hour
set hour ""
set next_hour ""
set start_time ""
set display_hour "No Time"
- append return_html " [subst $hour_template] | "
+ append return_html " [subst $hour_template] | "
if {[ns_set find $calendar_details ""] != -1} {
- append return_html ""
- } else {
- append return_html " | "
+ append return_html " | "
}
# Go through events
@@ -192,25 +191,25 @@
set display_hour [subst $hour_template]
append return_html " | $display_hour | "
- if {[ns_set find $calendar_details $index_hour] != -1} {
- append return_html ""
- } else {
- append return_html " | "
- }
-
# Go through events
while {1} {
set index [ns_set find $calendar_details $index_hour]
if {$index == -1} {
break
}
- append return_html "[ns_set value $calendar_details $index] \n"
+ if {$overlap_p} {
+ set end_time [expr $hour + 2]
+ set start_time $hour
+ append return_html " | [ns_set value $calendar_details $index] | "
+ } else {
+ append return_html "[ns_set value $calendar_details $index] \n"
+ }
ns_set delete $calendar_details $index
}
- append return_html " \n"
+ append return_html "\n"
}
append return_html " | "
|