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.20 -r1.21 --- openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl 29 Apr 2002 18:05:35 -0000 1.20 +++ openacs-4/packages/acs-datetime/tcl/acs-calendar-2-procs.tcl 15 May 2002 20:32:11 -0000 1.21 @@ -1,4 +1,15 @@ +# /packages/acs-datetime/tcl/acs-calendar-procs.tcl + +ad_library { + + Library for calendar display widgets + + @author ron@arsdigita.com + @created 2000-11-21 + @cvs-id $Id$ +} + ad_proc dt_widget_week { { -calendar_details "" @@ -361,6 +372,28 @@ } + +ad_proc -public dt_widget_list { + {-calendar_details:required} + {-item_template {$item}} + {-start_date ""} + {-end_date ""} + {-order_by ""} + {-url_template {?order_by=$order_by}} +} { + create a listing widget for lists +} { + set return_html "
\n" - } - } + # This is not necessary (ben) +# if { $fill_all_days == 0 } { +# for { set n 1} { $n < $first_day_of_month } { incr n } { +# append output " | \n" +# } +# } set day_of_week 1 set julian_date $first_julian_date @@ -150,7 +152,7 @@ append output "[subst $day_number_template] " } } else { - append output " | [subst $day_number_template] " + append output " | [subst $day_number_template] "
}
if { (!$skip_day) && $large_calendar_p == 1 } {
Index: openacs-4/packages/calendar/tcl/calendar-display-procs-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/tcl/Attic/calendar-display-procs-oracle.xql,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/calendar/tcl/calendar-display-procs-oracle.xql 14 May 2002 05:06:29 -0000 1.8
+++ openacs-4/packages/calendar/tcl/calendar-display-procs-oracle.xql 15 May 2002 20:32:19 -0000 1.9
@@ -7,6 +7,8 @@
" + set item "[subst $item_template]" + if {![dt_no_time_p -start_time $start_time -end_time $end_time]} { + set item "$start_time $item" + } + + if {$show_calendar_name_p} { + append item " ($calendar_name)" + } + # DRB: This ugly hack was added for dotlrn-events, to give us a way to # flag event status in red in accordance with the spec. When calendar # is rewritten we should come up with a way for objects derived from @@ -63,6 +74,8 @@ append item " $status_summary " } + append item " " + ns_set put $items $start_date $item } } @@ -71,10 +84,23 @@ if {[empty_string_p $item_add_template]} { set day_number_template "$day_template" } else { - set day_number_template "$item_add_template $day_template" + set day_number_template "$day_template $item_add_template" } - return [dt_widget_month -calendar_details $items -date $date -day_number_template $day_number_template] + return [dt_widget_month -calendar_details $items -date $date \ + -master_bgcolor black \ + -header_bgcolor lavender \ + -header_text_color black \ + -header_text_size "+1" \ + -day_header_bgcolor lavender \ + -day_bgcolor white \ + -today_bgcolor #FFF8DC \ + -empty_bgcolor lightgrey \ + -day_text_color black \ + -prev_next_links_in_title 1 \ + -prev_month_template $prev_month_template \ + -next_month_template $next_month_template \ + -day_number_template $day_number_template] } ad_proc -public one_week_display { Index: openacs-4/packages/calendar-portlet/www/calendar-full-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar-portlet/www/calendar-full-portlet.tcl,v diff -u -r1.16 -r1.17 --- openacs-4/packages/calendar-portlet/www/calendar-full-portlet.tcl 10 May 2002 20:21:58 -0000 1.16 +++ openacs-4/packages/calendar-portlet/www/calendar-full-portlet.tcl 15 May 2002 20:32:01 -0000 1.17 @@ -111,12 +111,14 @@ if {$view == "month"} { set cal_stuff [calendar::one_month_display \ - -item_template $item_template \ - -day_template "\$day_number" \ + -item_template "$item_template" \ + -day_template "\$day_number" \ -date $current_date \ - -item_add_template $item_add_template \ + -item_add_template "$item_add_template" \ -calendar_id_list $list_of_calendar_ids \ -url_stub_callback "calendar_portlet_display::get_url_stub" \ + -prev_month_template "<" \ + -next_month_template ">" \ -show_calendar_name_p $show_calendar_name_p] } |