diff --git a/config.default.php b/config.default.php index e2f65ac5..60c0b83a 100644 --- a/config.default.php +++ b/config.default.php @@ -235,6 +235,11 @@ if (!defined('SYSTEM_SORT_MINUTES')) define ('SYSTEM_SORT_MINUTES',5); */ if (!defined('ALLOW_PAGE_REFRESH')) define ('ALLOW_PAGE_REFRESH',true); +/** + * Allow operator to select respondent from list or add respondents + */ +if (!defined('ALLOW_RESPONDENT_SELECTOR')) define ('ALLOW_RESPONDENT_SELECTOR',true); + /** * Database configuration for queXS */ diff --git a/contactdetails.php b/contactdetails.php index b2c748c4..92b90355 100644 --- a/contactdetails.php +++ b/contactdetails.php @@ -123,16 +123,24 @@ else $timezone = ""; - print ""; + if (!empty($rs)) { - if (!empty($r['selected'])) $timezone = $r['Time_zone_name']; - print ""; + foreach($rs as $r) + { + if (!empty($r['selected'])) $timezone = $r['Time_zone_name']; + print ""; + } } + print ""; + } + else + { + if (isset($rs[0])) + print " " . $rs[0]['firstName'] . " " . $rs[0]['lastName'] . ""; } - print ""; print "
$timezone
"; diff --git a/respondent.php b/respondent.php index 73a6fc80..0e1993a6 100644 --- a/respondent.php +++ b/respondent.php @@ -127,16 +127,26 @@ else $timezone = ""; - print "
"; + if (!empty($rs)) { - if (!empty($r['selected'])) $timezone = $r['Time_zone_name']; - print ""; + foreach($rs as $r) + { + if (!empty($r['selected'])) $timezone = $r['Time_zone_name']; + print ""; + } + } + print "
"; } - print ""; + else + { + if (isset($rs[0])) + print "
" . $rs[0]['firstName'] . " " . $rs[0]['lastName'] . "
"; + } + print "
$timezone
";