From 0b384bdc53346793659b0940720ba3f3d07da155 Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Thu, 30 Sep 2010 01:32:16 +0000 Subject: [PATCH] Added no call available screen Updated so schedule appointment and setting outcome functions can occur on standard list radio --- include/limesurvey/qanda.php | 32 +++++++++++++++++++-- nocallavailable.php | 56 ++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 nocallavailable.php diff --git a/include/limesurvey/qanda.php b/include/limesurvey/qanda.php index d5f27a4a..e343951c 100644 --- a/include/limesurvey/qanda.php +++ b/include/limesurvey/qanda.php @@ -1804,9 +1804,37 @@ function do_list_radio($ia) } // $answer .= $wrapper['item-start'].' // TIBO switch to the following line in order to reset the othercomment field when the other option is unselected - $answer .= $wrapper['item-start'].' + + //queXS check if this is designed to set an outcome: + $quexs_outcome = false; + $quexs_outcome_code = 0; + if (strncasecmp($ansrow['answer'],"{OUTCOME:",9) == 0) + { + $quexs_pos = strrpos($ansrow['answer'],"}",8); + if ($quexs_pos != false) + { + $quexs_outcome_code = substr($ansrow['answer'],9,$quexs_pos - 9); + $quexs_outcome = true; + include_once(dirname(__FILE__) . '/quexs.php'); + $ansrow['answer'] = quexs_template_replace($ansrow['answer']); + } + } + + //queXS check if this is designed to schedule an appointment: + $quexs_appointment = false; + if (strncasecmp($ansrow['answer'],"{SCHEDULEAPPOINTMENT}",21) == 0) + { + $ansrow['answer'] = $clang->gT("Schedule Appointment"); + $quexs_appointment = true; + } + + $answer .= $wrapper['item-start'].' - '.$wrapper['item-end']; +'.$wrapper['item-end']; + + + + ++$rowcounter; if ($rowcounter == $wrapper['maxrows'] && $colcounter < $wrapper['cols']) diff --git a/nocallavailable.php b/nocallavailable.php new file mode 100644 index 00000000..b65caf01 --- /dev/null +++ b/nocallavailable.php @@ -0,0 +1,56 @@ + + * @copyright ACSPRI 2010 + * @package queXS + * @subpackage user + * @link http://www.acspri.org.au/ queXS was writen for ACSPRI - Australian Consortium for Social and Political Research Inc. + * @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"); + +/** + * Language functions + */ +include ("lang.inc.php"); + +xhtml_head(T_("No call available"),true,array("css/table.css")); + +?> +

+