From 4d10e6f8647a8b6d8095f95b14c2e50c7beb6291 Mon Sep 17 00:00:00 2001 From: yehster Date: Wed, 30 Nov 2011 10:13:07 -0500 Subject: [PATCH] providing direct access to times in the week and day calendar --- .../default/views/day/ajax_template.html | 5 ++- .../pntemplates/default/views/header.html | 2 + .../default/views/week/ajax_template.html | 11 +++-- library/js/calendarDirectSelect.js | 49 ++++++++++++++++++++++ 4 files changed, 62 insertions(+), 5 deletions(-) create mode 100644 library/js/calendarDirectSelect.js diff --git a/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/ajax_template.html b/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/ajax_template.html index 23c32474b..7b06e445e 100644 --- a/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/ajax_template.html +++ b/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/day/ajax_template.html @@ -403,7 +403,7 @@ foreach ($providers as $provider) { // having a 'title' for the TD makes the date appear by the mouse pointer // this is nice when all you see are times on the left side and no head // row with the dates or day-of-week (DOW) - echo ""; + echo ""; echo "
"; echo htmlspecialchars($provider['fname'],ENT_QUOTES)." ".htmlspecialchars($provider['lname'],ENT_QUOTES)."
"; echo "
"; @@ -782,8 +782,11 @@ echo "

"; + + [-/if-] diff --git a/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/week/ajax_template.html b/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/week/ajax_template.html index 8a6122e10..d2bd5c30a 100644 --- a/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/week/ajax_template.html +++ b/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/week/ajax_template.html @@ -448,7 +448,8 @@ foreach ($providers as $provider) { // having a 'title' for the TD makes the date appear by the mouse pointer // this is nice when all you see are times on the left side and no head // row with the dates or day-of-week (DOW) - echo ""; + $headDate=strtotime($date); + echo ""; echo "

"; // determine if events overlap and adjust their width and left position as needed @@ -755,7 +756,6 @@ foreach ($providers as $provider) { echo " \n"; echo "\n"; - echo "

"; } // end provider // [-*footer*-] @@ -768,8 +768,11 @@ foreach ($providers as $provider) {