From 280a839e594b64f81bb8718e6d1652a21efc4054 Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Mon, 29 Aug 2011 00:42:04 +0000 Subject: [PATCH] Administrator appointment editing added calendar to assist --- admin/displayappointments.php | 5 +- admin/index.php | 2 +- css/timepicker.css | 7 + .../timepicker/jquery-ui-timepicker-addon.js | 985 ++++++++++++++++++ 4 files changed, 997 insertions(+), 2 deletions(-) create mode 100644 css/timepicker.css create mode 100644 include/timepicker/jquery-ui-timepicker-addon.js diff --git a/admin/displayappointments.php b/admin/displayappointments.php index ea1f7e22..4594e3dc 100644 --- a/admin/displayappointments.php +++ b/admin/displayappointments.php @@ -152,7 +152,10 @@ if (isset($_GET['appointment_id']) && isset($_GET['case_id'])) else { //Display an edit form - xhtml_head(T_("Edit appointment")); + $css = array("../css/timepicker.css","../include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"); + $js = array("../include/jquery-ui/js/jquery-1.4.2.min.js","../include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js","../include/timepicker/jquery-ui-timepicker-addon.js"); + xhtml_head(T_("Edit appointment"),false,$css,$js); + print ""; $sql = "SELECT a.contact_phone_id,a.call_attempt_id,CONVERT_TZ(a.start,'UTC',r.Time_zone_name) as start,CONVERT_TZ(a.end,'UTC',r.Time_zone_name) as end,a.respondent_id FROM appointment as a, respondent as r diff --git a/admin/index.php b/admin/index.php index 00e99156..d04bcd8d 100644 --- a/admin/index.php +++ b/admin/index.php @@ -44,7 +44,7 @@ include ("../config.inc.php"); */ include ("../functions/functions.xhtml.php"); -xhtml_head(T_("Administrative Tools"),true,array("../css/table.css","../css/admin.css")); +xhtml_head(T_("Administrative Tools"),true,array("../css/table.css","../css/admin.css","../css/timepicker.css")); print "