From 09c75bcc7bf8cadbdb7403cba654c0f275bf29ce Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Tue, 25 Jan 2011 04:26:05 +0000 Subject: [PATCH] Added AUTO_LOGOUT_MINUTES functionality to rs scripts --- rs_answeringmachine.php | 9 ++++++++- rs_business.php | 10 +++++++++- rs_callback.php | 11 ++++++++++- rs_intro.php | 9 ++++++++- rs_project_end.php | 11 ++++++++++- rs_project_intro.php | 8 +++++++- rs_quota_end.php | 10 +++++++++- 7 files changed, 61 insertions(+), 7 deletions(-) diff --git a/rs_answeringmachine.php b/rs_answeringmachine.php index db67f6bd..cd8ba7f6 100644 --- a/rs_answeringmachine.php +++ b/rs_answeringmachine.php @@ -54,7 +54,14 @@ $case_id = get_case_id($operator_id); $questionnaire_id = get_questionnaire_id($operator_id); $leavemessage = leave_message($case_id); -xhtml_head(T_("Respondent Selection - Answering machine"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js")); +$js = array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js") + +if (AUTO_LOGOUT_MINUTES !== false) +{ + $js[] = "js/childnap.js"; +} + +xhtml_head(T_("Respondent Selection - Answering machine"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"),$js); if ($leavemessage) { diff --git a/rs_business.php b/rs_business.php index 26150287..2e207efa 100644 --- a/rs_business.php +++ b/rs_business.php @@ -44,7 +44,15 @@ include ("functions/functions.xhtml.php"); */ include ("lang.inc.php"); -xhtml_head(T_("Respondent Selection - Business answers"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js")); +$js = array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js") + +if (AUTO_LOGOUT_MINUTES !== false) +{ + $js[] = "js/childnap.js"; +} + + +xhtml_head(T_("Respondent Selection - Business answers"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), $js)); ?> diff --git a/rs_callback.php b/rs_callback.php index 1b807428..63f69e42 100644 --- a/rs_callback.php +++ b/rs_callback.php @@ -54,7 +54,16 @@ include ("functions/functions.operator.php"); */ include ("functions/functions.limesurvey.php"); -xhtml_head(T_("Respondent Selection - Call back"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js")); +$js = array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js") + +if (AUTO_LOGOUT_MINUTES !== false) +{ + $js[] = "js/childnap.js"; +} + + + +xhtml_head(T_("Respondent Selection - Call back"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), $js ); $operator_id = get_operator_id(); $case_id = get_case_id($operator_id); diff --git a/rs_intro.php b/rs_intro.php index 2b82a170..f25e2135 100644 --- a/rs_intro.php +++ b/rs_intro.php @@ -54,8 +54,15 @@ include ("functions/functions.operator.php"); */ include ("functions/functions.limesurvey.php"); +$js = array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js") -xhtml_head(T_("Respondent Selection - Introduction"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js")); +if (AUTO_LOGOUT_MINUTES !== false) +{ + $js[] = "js/childnap.js"; +} + + +xhtml_head(T_("Respondent Selection - Introduction"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), $js); //display introduction text diff --git a/rs_project_end.php b/rs_project_end.php index aeaded8e..9a643fb9 100644 --- a/rs_project_end.php +++ b/rs_project_end.php @@ -50,7 +50,16 @@ include ("functions/functions.xhtml.php"); include ("functions/functions.operator.php"); -xhtml_head(T_("Respondent Selection - Project end"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js")); +$js = array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js") + +if (AUTO_LOGOUT_MINUTES !== false) +{ + $js[] = "js/childnap.js"; +} + + + +xhtml_head(T_("Respondent Selection - Project end"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), $js); $operator_id = get_operator_id(); $case_id = get_case_id($operator_id); diff --git a/rs_project_intro.php b/rs_project_intro.php index 9d13fee0..8560809f 100644 --- a/rs_project_intro.php +++ b/rs_project_intro.php @@ -49,8 +49,14 @@ include ("functions/functions.xhtml.php"); */ include ("functions/functions.operator.php"); +$js = array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js") -xhtml_head(T_("Respondent Selection - Project Introduction"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js")); +if (AUTO_LOGOUT_MINUTES !== false) +{ + $js[] = "js/childnap.js"; +} + +xhtml_head(T_("Respondent Selection - Project Introduction"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), $js); $operator_id = get_operator_id(); $case_id = get_case_id($operator_id); diff --git a/rs_quota_end.php b/rs_quota_end.php index af2d9070..33175bcb 100644 --- a/rs_quota_end.php +++ b/rs_quota_end.php @@ -49,8 +49,16 @@ include ("functions/functions.xhtml.php"); */ include ("functions/functions.operator.php"); +$js = array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js") -xhtml_head(T_("Respondent Selection - Project Quota End"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), array("js/popup.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js")); +if (AUTO_LOGOUT_MINUTES !== false) +{ + $js[] = "js/childnap.js"; +} + + + +xhtml_head(T_("Respondent Selection - Project Quota End"),true,array("css/rs.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css"), $js); $operator_id = get_operator_id(); $case_id = get_case_id($operator_id);