Index: openacs-4/packages/calendar/www/cal-item-delete-confirm-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/Attic/cal-item-delete-confirm-postgresql.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/calendar/www/cal-item-delete-confirm-postgresql.xql 28 Apr 2002 21:03:43 -0000 1.1 @@ -0,0 +1,34 @@ + + + + postgresql7.1 + + + + + select to_char(start_date, 'HH24:MI') as start_time, + start_date as raw_start_date, + to_char(start_date, 'MM/DD/YYYY') as start_date, + to_char(end_date, 'HH:MIpm') as end_time, + coalesce(a. name, e.name) as name, + coalesce(e.description, a.description) as description, + recurrence_id, + cal_item_types.type as item_type, + on_which_calendar as calendar_id + from acs_activities a, + acs_events e, + timespans s, + time_intervals t, + cal_items, + cal_item_types + where e.timespan_id = s.timespan_id + and s.interval_id = t.interval_id + and e.activity_id = a.activity_id + and e.event_id = :cal_item_id + and cal_items.cal_item_id= :cal_item_id + and cal_item_types.item_type_id= cal_items.item_type_id + + + + + Index: openacs-4/packages/calendar/www/cal-item-delete-confirm.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/cal-item-delete-confirm.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/calendar/www/cal-item-delete-confirm.adp 28 Apr 2002 21:03:43 -0000 1.1 @@ -0,0 +1,47 @@ + + + + +Calendar Item Delete: @item_data.name@ +Delete + + + + + + + + +
+

+ +

+ + + + + +
@item_data.description@
Dateand Time:@item_data.start_date@, from @item_data.start_time@ to @item_data.end_time@
Title:@item_data.name@
Type:@item_data.item_type@
+

+

+ + +This is a repeating event. You may choose to: + + + +Are you sure you want to delete this event? + + Index: openacs-4/packages/calendar/www/cal-item-delete-confirm.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/cal-item-delete-confirm.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/calendar/www/cal-item-delete-confirm.tcl 28 Apr 2002 21:03:43 -0000 1.1 @@ -0,0 +1,54 @@ + +# +# A script that assumes +# +# cal_item_id +# +# This will pull out information about the event and +# display it with some options. +# + +ad_page_contract { + Confirm Deletion +} { + cal_item_id + {show_cal_nav 1} +} + +# Select information about the calendar item +db_1row get_item_data { + select to_char(start_date,'HH:MIpm')as start_time, + start_date as raw_start_date, + to_char(start_date, 'MM/DD/YYYY') as start_date, + to_char(end_date, 'HH:MIpm') as end_time, + nvl(a. name, e.name) as name, + nvl(e.description, a.description) as description, + recurrence_id, + cal_item_types.type as item_type, + on_which_calendar as calendar_id + from acs_activities a, + acs_events e, + timespans s, + time_intervals t, + cal_items, + cal_item_types + where e.timespan_id = s.timespan_id + and s.interval_id = t.interval_id + and e.activity_id = a.activity_id + and e.event_id = :cal_item_id + and cal_items.cal_item_id= :cal_item_id + and cal_item_types.item_type_id(+)= cal_items.item_type_id +} + +set item_data(start_time) $start_time +set item_data(start_date) $start_date +set item_data(end_time) $end_time +set item_data(name) $name +set item_data(description) $description +set item_data(item_type) $item_type +set item_data(recurrence_id) $recurrence_id + +# no time? +set item_data(no_time_p) [dt_no_time_p -start_time $start_time -end_time $end_time] + +ad_return_template Index: openacs-4/packages/calendar/www/cal-item-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/Attic/cal-item-edit.tcl,v diff -u -r1.8 -r1.9 --- openacs-4/packages/calendar/www/cal-item-edit.tcl 26 Apr 2002 15:59:07 -0000 1.8 +++ openacs-4/packages/calendar/www/cal-item-edit.tcl 28 Apr 2002 21:03:43 -0000 1.9 @@ -19,6 +19,7 @@ {description ""} {return_url ""} {item_type_id ""} + {confirm_p 0} } # Fix up the return URL @@ -37,7 +38,12 @@ if { $action == "delete" } { - cal_item_delete $cal_item_id + if {!$confirm_p} { + ad_returnredirect "cal-item-delete-confirm?cal_item_id=$cal_item_id&show_cal_nav=0" + return + } + + cal_item_delete $cal_item_id ad_returnredirect $return_url Index: openacs-4/packages/calendar/www/cal-item-view-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/calendar/www/Attic/cal-item-view-postgresql.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/calendar/www/cal-item-view-postgresql.xql 28 Apr 2002 21:03:43 -0000 1.1 @@ -0,0 +1,34 @@ + + + + postgresql7.1 + + + + + select to_char(start_date, 'HH24:MI') as start_time, + start_date as raw_start_date, + to_char(start_date, 'MM/DD/YYYY') as start_date, + to_char(end_date, 'HH:MIpm') as end_time, + coalesce(a. name, e.name) as name, + coalesce(e.description, a.description) as description, + recurrence_id, + cal_item_types.type as item_type, + on_which_calendar as calendar_id + from acs_activities a, + acs_events e, + timespans s, + time_intervals t, + cal_items, + cal_item_types + where e.timespan_id = s.timespan_id + and s.interval_id = t.interval_id + and e.activity_id = a.activity_id + and e.event_id = :cal_item_id + and cal_items.cal_item_id= :cal_item_id + and cal_item_types.item_type_id= cal_items.item_type_id + + + + +