* @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"); $db->StartTrans(); $operator_id = get_operator_id(); 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();} } xhtml_head(T_("queXS"), true, array("css/index.css","css/tabber.css","include/jquery-ui/css/smoothness/jquery-ui-1.8.2.custom.css") , 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")); ?>
" standby="Loading questionnaire..." type="application/xhtml+xml">

Error, try with Firefox

Error, try with Firefox

Error, try with Firefox

Error, try with Firefox

Error, try with Firefox

Error, try with Firefox

Error, try with Firefox

Error, try with Firefox

Error, try with Firefox

Error, try with Firefox

HasFailedTrans()){ print "

FAILED AT END of index

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