2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Added email to respondent popup

Changed id's of self completion outcomes to allow for a few custom ones to not effect
Added email validation and token getting functions
Optout function of limesurvey to set outcome to refused and add a case note for clarity
Need to do: Complete email function to actually send an email invitation
This commit is contained in:
Adam Zammit
2013-02-25 15:25:08 +11:00
parent a22f4acd66
commit ae5c2f8431
7 changed files with 423 additions and 3 deletions

View File

@@ -126,6 +126,7 @@ function display_outcomes($contacted,$ca,$case_id)
WHERE contacted = '$contacted'
AND outcome_id != 10"; //don't show completed if not
}
}
}
$rs = $db->GetAll($sql);
@@ -133,7 +134,13 @@ function display_outcomes($contacted,$ca,$case_id)
print "<div>";
if (!empty($rs))
{
$do = false;
//Get current outcome to set as default
$sql = "SELECT outcome
FROM `call`
WHERE call_attempt_id = $ca
AND `end` IS NULL";
$do = $db->GetOne($sql);
if (isset($_GET['defaultoutcome'])) $do = bigintval($_GET['defaultoutcome']);
foreach($rs as $r)
{