* @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"); xhtml_head(T_("Supervisor")); //display introduction text $operator_id = get_operator_id(); if (is_on_call($operator_id) == 3) { if (VOIP_ENABLED) { if (isset($_GET['callsupervisor'])) { include("functions/functions.voip.php"); $v = new voip(); $v->connect(VOIP_SERVER); $v->addParty($operator_id,SUPERVISOR_EXTENSION); print "

" . T_("Calling the supervisor, you may close this window") . "

"; } else { //print "

" . T_("Click here to call the supervisor's phone. Otherwise close this window") . "

"; print "

" . T_("Currently Disabled: Please see your supervisor in person") . "

"; } } else { print "

" . T_("Try calling the supervisor") . "

"; } } else { print "

" . T_("Not on a call, so not calling the supervisor") . "

"; } xhtml_foot(); ?>