mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Added support for AUTO_LOGOUT_MINUTES to all child windows of the main frame (added jQuery and childnap.js)
This commit is contained in:
@@ -110,8 +110,13 @@ if(isset($_POST['start']) && isset($_POST['end']) && isset($_POST['day']) && iss
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$js = array("js/window.js");
|
||||||
xhtml_head(T_("Appointment"),true,array("css/respondent.css"),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
|
//select a respondent from a list or create a new one
|
||||||
print("<p>" . T_("Select a respondent") . "</p>");
|
print("<p>" . T_("Select a respondent") . "</p>");
|
||||||
|
|||||||
@@ -49,8 +49,11 @@ include ("functions/functions.xhtml.php");
|
|||||||
*/
|
*/
|
||||||
include("functions/functions.operator.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
|
//List the case appointment
|
||||||
// display in respondent time so that the operator will be able to
|
// display in respondent time so that the operator will be able to
|
||||||
|
|||||||
@@ -49,7 +49,11 @@ include ("functions/functions.xhtml.php");
|
|||||||
*/
|
*/
|
||||||
include("functions/functions.operator.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
|
//List the case call history
|
||||||
// display in respondent time so that the operator will be able to
|
// display in respondent time so that the operator will be able to
|
||||||
|
|||||||
@@ -49,7 +49,11 @@ include ("functions/functions.xhtml.php");
|
|||||||
*/
|
*/
|
||||||
include("functions/functions.operator.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
|
//List the case call history
|
||||||
// display in respondent time so that the operator will be able to
|
// display in respondent time so that the operator will be able to
|
||||||
|
|||||||
@@ -49,8 +49,11 @@ include ("functions/functions.xhtml.php");
|
|||||||
*/
|
*/
|
||||||
include("functions/functions.operator.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
|
//List the case note history
|
||||||
// display in the operators time
|
// display in the operators time
|
||||||
|
|||||||
6
info.php
6
info.php
@@ -49,7 +49,11 @@ include ("lang.inc.php");
|
|||||||
*/
|
*/
|
||||||
include ("db.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");
|
print get_setting("information");
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,11 @@ include ("functions/functions.xhtml.php");
|
|||||||
*/
|
*/
|
||||||
include ("lang.inc.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);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<h1><? echo T_("Please click on:") . " " . T_("Call/Hangup") . " " .T_("to display call script"); ?></h1>
|
<h1><? echo T_("Please click on:") . " " . T_("Call/Hangup") . " " .T_("to display call script"); ?></h1>
|
||||||
|
|||||||
@@ -56,7 +56,11 @@ include ("functions/functions.operator.php");
|
|||||||
*/
|
*/
|
||||||
include ("functions/functions.limesurvey.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();
|
$operator_id = get_operator_id();
|
||||||
|
|
||||||
|
|||||||
@@ -54,8 +54,11 @@ include("functions/functions.operator.php");
|
|||||||
*/
|
*/
|
||||||
include("functions/functions.performance.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();
|
$operator_id = get_operator_id();
|
||||||
$questionnaire_id = get_questionnaire_id($operator_id);
|
$questionnaire_id = get_questionnaire_id($operator_id);
|
||||||
|
|||||||
@@ -54,7 +54,11 @@ include ("db.inc.php");
|
|||||||
*/
|
*/
|
||||||
include ("functions/functions.operator.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();
|
$operator_id = get_operator_id();
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,15 @@ include("functions/functions.operator.php");
|
|||||||
*/
|
*/
|
||||||
include("functions/functions.input.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
|
//display the respondents as a drop down list for this call attempt
|
||||||
|
|||||||
@@ -49,8 +49,12 @@ include ("functions/functions.xhtml.php");
|
|||||||
*/
|
*/
|
||||||
include("functions/functions.operator.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
|
//List the shifts
|
||||||
// display in operator time
|
// display in operator time
|
||||||
|
|||||||
@@ -58,7 +58,14 @@ $btext = false;
|
|||||||
if ($state == 4 && AUTO_POPUP)
|
if ($state == 4 && AUTO_POPUP)
|
||||||
$btext = "onload=\"poptastic('call.php')\"";
|
$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 "<div class='text'>" . get_operator_time($operator_id,"%a %d %b %h:%i%p") ."</div>";
|
print "<div class='text'>" . get_operator_time($operator_id,"%a %d %b %h:%i%p") ."</div>";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user