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); ?>

diff --git a/nocaseavailable.php b/nocaseavailable.php index a386e2cd..923e6477 100644 --- a/nocaseavailable.php +++ b/nocaseavailable.php @@ -56,7 +56,11 @@ include ("functions/functions.operator.php"); */ include ("functions/functions.limesurvey.php"); -xhtml_head(T_("No case 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 case available"),true,array("css/table.css"),$js); $operator_id = get_operator_id(); diff --git a/performance.php b/performance.php index 8d7859ae..5506125f 100644 --- a/performance.php +++ b/performance.php @@ -54,8 +54,11 @@ include("functions/functions.operator.php"); */ include("functions/functions.performance.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_("Performance"),true,array("css/table.css"),false,false,60); +xhtml_head(T_("Performance"),true,array("css/table.css"),$js,false,60); $operator_id = get_operator_id(); $questionnaire_id = get_questionnaire_id($operator_id); diff --git a/project_info.php b/project_info.php index 58f49310..f0aa3e32 100644 --- a/project_info.php +++ b/project_info.php @@ -54,7 +54,11 @@ include ("db.inc.php"); */ include ("functions/functions.operator.php"); -xhtml_head(T_("Project 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_("Project information"),true,false,$js); $operator_id = get_operator_id(); diff --git a/respondent.php b/respondent.php index 3374497d..73a6fc80 100644 --- a/respondent.php +++ b/respondent.php @@ -59,7 +59,15 @@ include("functions/functions.operator.php"); */ include("functions/functions.input.php"); -xhtml_head(T_("Respondent Selector"),true,array("css/table.css","css/respondent.css"),array("js/window.js","js/showhide.js")); +$js = array("js/window.js","js/showhide.js"); + +if (AUTO_LOGOUT_MINUTES !== false) +{ + $js[] = "include/jquery-ui/js/jquery-1.4.2.min.js"; + $js[] = "js/childnap.js"; +} + +xhtml_head(T_("Respondent Selector"),true,array("css/table.css","css/respondent.css"),$js); //display the respondents as a drop down list for this call attempt diff --git a/shifts.php b/shifts.php index e76e8cd0..8b0bdb89 100644 --- a/shifts.php +++ b/shifts.php @@ -49,8 +49,12 @@ 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_("Shift List"),true,array("css/table.css"),false,false,600); + +xhtml_head(T_("Shift List"),true,array("css/table.css"),$js,false,600); //List the shifts // display in operator time diff --git a/status.php b/status.php index 4d0d32e2..5006a270 100644 --- a/status.php +++ b/status.php @@ -58,7 +58,14 @@ $btext = false; if ($state == 4 && AUTO_POPUP) $btext = "onload=\"poptastic('call.php')\""; -xhtml_head(T_("Status"),true,array("css/status.css"),array("js/popupkeep.js"),$btext,10); +$js = array("js/popupkeep.js"); +if (AUTO_LOGOUT_MINUTES !== false) +{ + $js[] = "include/jquery-ui/js/jquery-1.4.2.min.js"; + $js[] = "js/childnap.js"; +} + +xhtml_head(T_("Status"),true,array("css/status.css"),$js,$btext,10); print "
" . get_operator_time($operator_id,"%a %d %b %h:%i%p") ."
";