diff --git a/appointment.php b/appointment.php index 7bacf902..793efcf0 100644 --- a/appointment.php +++ b/appointment.php @@ -110,8 +110,13 @@ if(isset($_POST['start']) && isset($_POST['end']) && isset($_POST['day']) && iss } - -xhtml_head(T_("Appointment"),true,array("css/respondent.css"),array("js/window.js")); +$js = array("js/window.js"); +if (AUTO_LOGOUT_MINUTES !== false) +{ + $js[] = "include/jquery-ui/js/jquery-1.4.2.min.js"; + $js[] = "js/childnap.js"; +} +xhtml_head(T_("Appointment"),true,array("css/respondent.css"),$js); //select a respondent from a list or create a new one print("
" . T_("Select a respondent") . "
"); diff --git a/appointmentlist.php b/appointmentlist.php index 18587eff..9249886d 100644 --- a/appointmentlist.php +++ b/appointmentlist.php @@ -49,8 +49,11 @@ include ("functions/functions.xhtml.php"); */ include("functions/functions.operator.php"); +$js = false; +if (AUTO_LOGOUT_MINUTES !== false) + $js = array("include/jquery-ui/js/jquery-1.4.2.min.js","js/childnap.js"); -xhtml_head(T_("Appointment List"),true,array("css/table.css"),false,false,15); +xhtml_head(T_("Appointment List"),true,array("css/table.css"),$js,false,15); //List the case appointment // display in respondent time so that the operator will be able to diff --git a/callhistory.php b/callhistory.php index df66075f..0c4b08e2 100644 --- a/callhistory.php +++ b/callhistory.php @@ -49,7 +49,11 @@ include ("functions/functions.xhtml.php"); */ include("functions/functions.operator.php"); -xhtml_head(T_("Case History List"),true,array("css/table.css"),false,false,15); +$js = false; +if (AUTO_LOGOUT_MINUTES !== false) + $js = array("include/jquery-ui/js/jquery-1.4.2.min.js","js/childnap.js"); + +xhtml_head(T_("Case History List"),true,array("css/table.css"),$js,false,15); //List the case call history // display in respondent time so that the operator will be able to diff --git a/calllist.php b/calllist.php index 68571e54..81c7e119 100644 --- a/calllist.php +++ b/calllist.php @@ -49,7 +49,11 @@ include ("functions/functions.xhtml.php"); */ include("functions/functions.operator.php"); -xhtml_head(T_("Call List"),true,array("css/table.css"),false,false,15); +$js = false; +if (AUTO_LOGOUT_MINUTES !== false) + $js = array("include/jquery-ui/js/jquery-1.4.2.min.js","js/childnap.js"); + +xhtml_head(T_("Call List"),true,array("css/table.css"),$js,false,15); //List the case call history // display in respondent time so that the operator will be able to diff --git a/casenote.php b/casenote.php index d4b15974..b416de9d 100644 --- a/casenote.php +++ b/casenote.php @@ -49,8 +49,11 @@ include ("functions/functions.xhtml.php"); */ include("functions/functions.operator.php"); +$js = false; +if (AUTO_LOGOUT_MINUTES !== false) + $js = array("include/jquery-ui/js/jquery-1.4.2.min.js","js/childnap.js"); -xhtml_head(T_("Case Notes"),true,array("css/table.css","css/casenote.css"),false, (isset($_GET['add'])) ? "onload=\"document.getElementById('note').focus();\"" : false); +xhtml_head(T_("Case Notes"),true,array("css/table.css","css/casenote.css"),$js, (isset($_GET['add'])) ? "onload=\"document.getElementById('note').focus();\"" : false); //List the case note history // display in the operators time diff --git a/info.php b/info.php index faa3efd8..54d2c80f 100644 --- a/info.php +++ b/info.php @@ -49,7 +49,11 @@ include ("lang.inc.php"); */ include ("db.inc.php"); -xhtml_head(T_("Information")); +$js = false; +if (AUTO_LOGOUT_MINUTES !== false) + $js = array("include/jquery-ui/js/jquery-1.4.2.min.js","js/childnap.js"); + +xhtml_head(T_("Information"),true,false,$js); print get_setting("information"); diff --git a/nocallavailable.php b/nocallavailable.php index b65caf01..dd123952 100644 --- a/nocallavailable.php +++ b/nocallavailable.php @@ -44,7 +44,11 @@ include ("functions/functions.xhtml.php"); */ include ("lang.inc.php"); -xhtml_head(T_("No call available"),true,array("css/table.css")); +$js = false; +if (AUTO_LOGOUT_MINUTES !== false) + $js = array("include/jquery-ui/js/jquery-1.4.2.min.js","js/childnap.js"); + +xhtml_head(T_("No call available"),true,array("css/table.css"),$js); ?>