* @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"); /** * Database file */ include ("db.inc.php"); /** * XHTML functions */ include ("functions/functions.xhtml.php"); /** * Operator functions */ include("functions/functions.operator.php"); $operator_id = get_operator_id(); $state = is_on_call($operator_id); $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,5); print "
" . get_operator_time($operator_id,"%a %d %b %h:%i%p") ."
"; //need to determine VoIP status by confirming with the VoIP server if this operator is online //Then confirm whether or not they are on a call (or use the database table, call to determine) if (VOIP_ENABLED) { include("functions/functions.voip.php"); $v = new voip(); $v->connect(VOIP_SERVER); $ext = get_extension($operator_id); if ($v->getExtensionStatus($ext)) print "
" . T_("VoIP On") . "
"; else print "
" . T_("VoIP Off") . "
"; } else print "
" . T_("No VoIP") . "
"; if (!$state || $state == 5) { print("
" . T_("No call") . "
"); } else if ($state == 4) { print("
" . T_("To be coded") . "
"); } else if ($state == 1) { print("
" . T_("Requesting") . "
"); } else if ($state == 2) { print("
" . T_("Ringing") . "
"); } else if ($state == 3) { print("
" . T_("Answered") . "
"); } $ca = get_call_attempt($operator_id); if ($ca) { print "
" . get_respondent_time(get_respondent_id($ca),"%h:%i%p") ."
"; if (is_on_appointment($ca)) print "
" . T_("APPT") . "
"; if (missed_appointment($ca)) print "
" . T_("MISSED") . "
"; } else print "
" . T_("No case") . "
"; xhtml_foot(); ?>