diff --git a/admin/new.php b/admin/new.php index 11a1c872..ee265900 100644 --- a/admin/new.php +++ b/admin/new.php @@ -66,6 +66,7 @@ if (isset($_POST['import_file'])) $ras =0; $rws = 0; $testing = 0; + $referral = 0; $rs = 0; $lime_sid = 0; $respsc = 0; @@ -74,6 +75,7 @@ if (isset($_POST['import_file'])) if (isset($_POST['rws'])) $rws = 1; if (isset($_POST['testing'])) $testing = 1; if (isset($_POST['respsc'])) $respsc = 1; + if (isset($_POST['referral'])) $respsc = 1; if ($_POST['selectrs'] != "none") $rs = 1; $name = $db->qstr($_POST['description']); @@ -93,8 +95,8 @@ if (isset($_POST['import_file'])) $lime_rs_sid = bigintval($_POST['selectrs']); } - $sql = "INSERT INTO questionnaire (questionnaire_id,description,lime_sid,restrict_appointments_shifts,restrict_work_shifts,respondent_selection,rs_intro,rs_project_intro,rs_project_end,rs_callback,rs_answeringmachine,testing,lime_rs_sid,info,self_complete) - VALUES (NULL,$name,'$lime_sid','$ras','$rws','$rs',$rs_intro,$rs_project_intro,$rs_project_end,$rs_callback,$rs_answeringmachine,'$testing',$lime_rs_sid,$info,$respsc)"; + $sql = "INSERT INTO questionnaire (questionnaire_id,description,lime_sid,restrict_appointments_shifts,restrict_work_shifts,respondent_selection,rs_intro,rs_project_intro,rs_project_end,rs_callback,rs_answeringmachine,testing,lime_rs_sid,info,self_complete,referral) + VALUES (NULL,$name,'$lime_sid','$ras','$rws','$rs',$rs_intro,$rs_project_intro,$rs_project_end,$rs_callback,$rs_answeringmachine,'$testing',$lime_rs_sid,$info,$respsc,$referral)"; $rs = $db->Execute($sql); @@ -193,6 +195,7 @@ $ckeditorConfig = array("toolbar" => array(array("tokens","-","Source"),

+