* @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 * * @todo Use calls to the database to determine the real reason why no case is available, not just give a list * */ /** * 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_("No case available"),true,array("css/table.css")); $operator_id = get_operator_id(); ?>

GetAll($sql); ?>

= sh.start ) AND (CONVERT_TZ( NOW( ) , 'System', 'UTC' ) <= sh.end )) WHERE oq.operator_id = '$operator_id' AND !(q.restrict_work_shifts = 1 AND sh.shift_id IS NULL)"; $rs = $db->GetAll($sql); ?>

= cr.start and TIME(CONVERT_TZ(NOW(), 'System' , s.Time_zone_name)) <= cr.end) WHERE operator_id = '$operator_id' AND !(si.call_restrict = 1 AND cr.day_of_week IS NULL)"; $rs = $db->GetRow($sql); ?>

" . T_("There are ") . $rs['c'] . T_(" unassigned case(s) available within the specified call restrictions") . "

"; } ?>

GetAll($sql); if (!empty($rs)) { foreach($rs as $r) { $sql = "SELECT count(*) FROM " . LIME_PREFIX ."tokens_{$r['lime_sid']}"; $rs2 = $ldb->GetRow($sql); if (empty($rs2)) print "

" . T_("ERROR: No tokens table defined for LimeSurvey questionnaire") . " {$r['lime_sid']} " . T_("from questionnaire:") . " {$r['description']}

"; else print "

{$r['description']}: " . T_("Tokens table exists for Limesurvey questionnaire:") . " {$r['lime_sid']}

"; } } else print "

" . T_("ERROR: Cannot find questionnaires with LimeSurvey ID's") . "

"; //no tokens table associated with questionnaire in limesurvey //no sample associated with questionnaire xhtml_foot(); ?>