* @copyright Deakin University 2007,2008 * @package queXS * @subpackage user * @link http://www.deakin.edu.au/dcarf/ queXS was writen for DCARF - Deakin Computer Assisted Research Facility * @license http://opensource.org/licenses/gpl-2.0.php The GNU General Public License (GPL) Version 2 * * */ /** * Configuration file */ include ("config.inc.php"); /** * XHTML functions */ include ("functions/functions.xhtml.php"); /** * Operator functions */ include("functions/functions.operator.php"); $operator_id = get_operator_id(); if (ALTERNATE_INTERFACE && !is_voip_enabled($operator_id)) { include_once("waitnextcase_interface2.php"); die(); } $db->StartTrans(); if (isset($_GET['endwork'])) { if (isset($_GET['note'])) { $case_id = get_case_id($operator_id,false); $note = $db->qstr($_GET['note']); $sql = "INSERT INTO `case_note` (case_note_id,case_id,operator_id,note,datetime) VALUES (NULL,'$case_id','$operator_id',$note,CONVERT_TZ(NOW(),'System','UTC'))"; $db->Execute($sql); } end_call_attempt($operator_id); end_case($operator_id); //if ($db->HasFailedTrans()){ print "

FAILED AT ENDWORK

"; exit();} $db->CompleteTrans(); include("endwork.php"); exit(); } if (isset($_GET['endcase'])) { if (isset($_GET['note'])) { $case_id = get_case_id($operator_id,false); $note = $db->qstr($_GET['note']); $sql = "INSERT INTO `case_note` (case_note_id,case_id,operator_id,note,datetime) VALUES (NULL,'$case_id','$operator_id',$note,CONVERT_TZ(NOW(),'System','UTC'))"; $db->Execute($sql); } end_call_attempt($operator_id); end_case($operator_id); $db->CompleteTrans(); //need to complete here otherwise getting the case later will fail $db->StartTrans(); //if ($db->HasFailedTrans()) {print "

FAILED AT ENDCASE

"; exit();} } $js = array("js/popup.js","js/tabber.js","include/jquery-ui/js/jquery-1.4.2.min.js","include/jquery-ui/js/jquery-ui-1.8.2.custom.min.js"); $body = true; $script = ""; if (AUTO_LOGOUT_MINUTES !== false) { $js[] = "include/nap-1.0.0/js/jquery.nap-1.0.0.js"; $script = ""; $body = false; } if (HEADER_EXPANDER) { $js[] = "js/headerexpand.js"; $js[] = "js/headerexpandauto.js"; } else if (HEADER_EXPANDER_MANUAL) { $js[] = "js/headerexpand.js"; $js[] = "js/headerexpandmanual.js"; } xhtml_head(T_("queXS"), $body, array("css/index.css","css/tabber.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css") , $js); print $script; ?>
<? echo T_('/>
">

">

">

">

" id="tab-shifts">

">

">

">

">

">

HasFailedTrans()){ print "

FAILED AT END of index

"; exit();} $db->CompleteTrans(); ?>