Index: openacs-4/contrib/packages/room-reservation/catalog/room-reservation.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/room-reservation/catalog/room-reservation.en_US.ISO-8859-1.xml,v diff -u -r1.1.2.4 -r1.1.2.5 --- openacs-4/contrib/packages/room-reservation/catalog/room-reservation.en_US.ISO-8859-1.xml 5 Oct 2004 00:08:57 -0000 1.1.2.4 +++ openacs-4/contrib/packages/room-reservation/catalog/room-reservation.en_US.ISO-8859-1.xml 10 Jun 2005 22:44:24 -0000 1.1.2.5 @@ -72,7 +72,7 @@ Reservation Date and Time: Reservation History for %room_full_name% %reservation_info.full_start_date% to - Reservation %reservation_id% <a href=\"reservation-view?reservation_id=%reservation_id%\">(view)</a><br> + Reservation %reservation_id% <a href="reservation-view?reservation_id=%reservation_id%">(view)</a><br> %reservations_list.full_start_date% to Reserve / View %rooms_pretty_plural% Reserve A %rooms_pretty_name% Index: openacs-4/contrib/packages/room-reservation/tcl/datetime-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/room-reservation/tcl/datetime-procs-postgresql.xql,v diff -u -r1.1.4.1 -r1.1.4.2 --- openacs-4/contrib/packages/room-reservation/tcl/datetime-procs-postgresql.xql 12 Jul 2004 22:08:42 -0000 1.1.4.1 +++ openacs-4/contrib/packages/room-reservation/tcl/datetime-procs-postgresql.xql 10 Jun 2005 22:44:24 -0000 1.1.4.2 @@ -6,7 +6,7 @@ - select CASE WHEN (now() - :date::timestamp) < 0 + select CASE WHEN now() < :date::timestamp THEN 1 ELSE 0 END @@ -16,7 +16,7 @@ - select CASE WHEN (:start_date::timestamp - :end_date::timestamp) < 0 + select CASE WHEN :start_date::timestamp < :end_date::timestamp THEN 1 ELSE 0 END @@ -26,7 +26,7 @@ - select CASE WHEN (:start_date::timestamp - (now() + :future_years)) < 0 + select CASE WHEN :start_date::timestamp < now() + :future_years THEN 1 ELSE 0 END Index: openacs-4/contrib/packages/room-reservation/www/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/room-reservation/www/index.adp,v diff -u -r1.2.2.1 -r1.2.2.2 --- openacs-4/contrib/packages/room-reservation/www/index.adp 12 Jul 2004 22:08:42 -0000 1.2.2.1 +++ openacs-4/contrib/packages/room-reservation/www/index.adp 10 Jun 2005 22:44:24 -0000 1.2.2.2 @@ -11,30 +11,9 @@
  • #room-reservation.Administer#
  • +

    -#room-reservation.Your_reservations# +#room-reservation.Show#: @filter_list:item@@filter_list:item@ |

    -#room-reservation.Show# @filter_list:item@@filter_list:item@ | #room-reservation.reservations# -

    - - - - - - - - - - - - - - - - - - - -
    #room-reservation.lt_facilities_pretty_nam##room-reservation.lt_rooms_pretty_name_Nam##room-reservation.Event##room-reservation.Date_Reserved##room-reservation.Status##room-reservation.Action#
    @personal_reservations.facility_name@@personal_reservations.room_name@@personal_reservations.name@#room-reservation.lt_personal_reservations#
    @personal_reservations.full_end_date@
    @personal_reservations.status@[ #room-reservation.View_Details# | #room-reservation.Edit# | #room-reservation.Cancel# ]
    - + Index: openacs-4/contrib/packages/room-reservation/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/room-reservation/www/index.tcl,v diff -u -r1.2.2.1 -r1.2.2.2 --- openacs-4/contrib/packages/room-reservation/www/index.tcl 12 Jul 2004 22:08:42 -0000 1.2.2.1 +++ openacs-4/contrib/packages/room-reservation/www/index.tcl 10 Jun 2005 22:44:24 -0000 1.2.2.2 @@ -26,9 +26,6 @@ set title "[_ room-reservation.Room_Reservation]" switch -exact -- $filter_on { - {canceled} { - set status "canceled" - } {pending} { set status "pending" } @@ -44,7 +41,7 @@ } } -set filter_list [list all pending approved rejected canceled] +set filter_list [list all pending approved rejected] set reservations [room-reservation::rooms::get_reservations_list_of_ns_sets \ -reserving_user $user_id \ @@ -54,5 +51,20 @@ template::util::list_of_ns_sets_to_multirow -rows $reservations -var_name personal_reservations +template::list::create \ + -name personal_reservations \ + -elements { + actions { + label "Actions" + display_template "details | delete" + } + facility_name { label $facilities_pretty_name } + room_name { label $rooms_pretty_name } + name { label "Event" } + full_start_date { label "Start" } + full_end_date { label "End" } + status { label "Status" } + } + ad_return_template Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/contrib/packages/room-reservation/www/reservation-delete.adp'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 1.1 refers to a dead (removed) revision in file `openacs-4/contrib/packages/room-reservation/www/reservation-delete.tcl'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/contrib/packages/room-reservation/www/reservation-view.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/room-reservation/www/reservation-view.adp,v diff -u -r1.2.2.3 -r1.2.2.4 --- openacs-4/contrib/packages/room-reservation/www/reservation-view.adp 5 Oct 2004 00:08:58 -0000 1.2.2.3 +++ openacs-4/contrib/packages/room-reservation/www/reservation-view.adp 10 Jun 2005 22:44:24 -0000 1.2.2.4 @@ -23,67 +23,67 @@

    #room-reservation.Reservation_Info#

    - - - - +
    #room-reservation.lt_facilities_pretty_nam_1#@reservation_info.facility_name@
    + + + - - - + + + - - - + + + - - - + + +
    @facilities_pretty_name@:@reservation_info.facility_name@
    #room-reservation.lt_rooms_pretty_name_Nam_1#@reservation_info.room_name@
    @rooms_pretty_name@:@reservation_info.room_name@
    #room-reservation.Event_1#@reservation_info.name@
    #room-reservation.Event_1#@reservation_info.name@
    #room-reservation.lt_Reservation_Date_and_##room-reservation.lt_reservation_infofull_#
    @reservation_info.full_end_date@
    Date and Time:#room-reservation.lt_reservation_infofull_# @reservation_info.full_end_date@

    #room-reservation.Additional_information#

    - - - - +
    #room-reservation.Reserved_by_1#@reservation_info.username@
    + + + - - - + + + - - - + + + - - - + + + - - - + + + - - + + - - - + + +
    #room-reservation.Reserved_by_1#@reservation_info.username@
    #room-reservation.lt_Estimated_No_of_Atten#@reservation_info.attendees@
    #room-reservation.lt_Estimated_No_of_Atten#@reservation_info.attendees@
    #room-reservation.lt_Added_Instructions__E#@reservation_info.note@
    #room-reservation.lt_Added_Instructions__E#@reservation_info.note@
    #room-reservation.Contact_Person#@reservation_info.contact_person@
    #room-reservation.Contact_Person#@reservation_info.contact_person@
    #room-reservation.Contact_Email#@reservation_info.contact_email@
    #room-reservation.Contact_Email#@reservation_info.contact_email@
    #room-reservation.Contact_Phone#@reservation_info.contact_phone@#room-reservation.Contact_Phone#@reservation_info.contact_phone@
    #room-reservation.Status_1#@reservation_info.status@
    #room-reservation.Status_1#@reservation_info.status@

    #room-reservation.Administrative_details#

    - +
    - - - + + + - - - + + +
    #room-reservation.lt_Administrators_reason#@reservation_info.reason@
    #room-reservation.lt_Administrators_reason#@reservation_info.reason@
    #room-reservation.lt_Date_when_reservation#@reservation_info.full_action_date@
    #room-reservation.lt_Date_when_reservation#@reservation_info.full_action_date@
    Index: openacs-4/contrib/packages/room-reservation/www/room-reservations.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/room-reservation/www/room-reservations.tcl,v diff -u -r1.2.2.1 -r1.2.2.2 --- openacs-4/contrib/packages/room-reservation/www/room-reservations.tcl 12 Jul 2004 22:08:43 -0000 1.2.2.1 +++ openacs-4/contrib/packages/room-reservation/www/room-reservations.tcl 10 Jun 2005 22:44:24 -0000 1.2.2.2 @@ -54,6 +54,14 @@ ] } {day} { + if { [regexp {(\d\d\d\d)(\d\d)(\d\d)} $date match year month day] } { + set date "$year-$month-$day" + } elseif { ![regexp {\d\d\d\d-\d\d-\d\d} $date] } { + ad_return_complaint 1 \ + "
  • The date must be of the form YYYY-MM-DD." + ad_script_abort + } + set content [room-reservation::calendar::one_day_display -room_id $room_id \ -date $date \ -prev_nav_template "<" \ Index: openacs-4/contrib/packages/room-reservation/www/room-view.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/room-reservation/www/room-view.adp,v diff -u -r1.2.2.1 -r1.2.2.2 --- openacs-4/contrib/packages/room-reservation/www/room-view.adp 12 Jul 2004 22:08:43 -0000 1.2.2.1 +++ openacs-4/contrib/packages/room-reservation/www/room-view.adp 10 Jun 2005 22:44:24 -0000 1.2.2.2 @@ -7,34 +7,34 @@
  • #room-reservation.View_Reservations#
  • - - - - +
    #room-reservation.Room_Name#@room_info.name@
    + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + +
    #room-reservation.Room_Name#@room_info.name@
    #room-reservation.Description_1#@room_info.description@
    #room-reservation.Description_1#@room_info.description@
    #room-reservation.Capacity#@room_info.capacity@
    #room-reservation.Capacity#@room_info.capacity@
    #room-reservation.Room_Name#@room_info.name@
    #room-reservation.Room_Name#@room_info.name@
    #room-reservation.Phone#@room_info.phone@
    #room-reservation.Phone#@room_info.phone@
    #room-reservation.Needs_Approval##room-reservation.Yes##room-reservation.No#
    #room-reservation.Needs_Approval##room-reservation.Yes##room-reservation.No#
    #room-reservation.Enabled##room-reservation.Yes##room-reservation.No#
    #room-reservation.Enabled##room-reservation.Yes##room-reservation.No#

    Index: openacs-4/contrib/packages/room-reservation/www/rooms.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/room-reservation/www/rooms.adp,v diff -u -r1.2.2.1 -r1.2.2.2 --- openacs-4/contrib/packages/room-reservation/www/rooms.adp 12 Jul 2004 22:08:43 -0000 1.2.2.1 +++ openacs-4/contrib/packages/room-reservation/www/rooms.adp 10 Jun 2005 22:44:24 -0000 1.2.2.2 @@ -2,8 +2,6 @@ @title@ @title@ -

    @rooms_pretty_plural@

    -

    @facilities_pretty_name@: @rooms.facility_name@ (@rooms.room_count@ @rooms_pretty_plural@)