diff --git a/rs_intro.php b/rs_intro.php index ad32e0d4..2b82a170 100644 --- a/rs_intro.php +++ b/rs_intro.php @@ -65,7 +65,7 @@ $case_id = get_case_id($operator_id); $questionnaire_id = get_questionnaire_id($operator_id); //display introduction text -$sql = "SELECT rs_intro +$sql = "SELECT rs_intro,rs_project_intro,rs_callback FROM questionnaire WHERE questionnaire_id = '$questionnaire_id'"; @@ -78,13 +78,33 @@ print "
". template_replace($r['rs_intro'],$operator_id,$case_i if (limesurvey_percent_complete($case_id) == false) { - ?> -
- + if(empty($r['rs_project_intro'])) + { + //If nothing is specified as a project introduction, skip straight to questionnaire + ?> + + + } + else + { + ?> + + + } } else { - ?> - - + if(empty($r['rs_callback'])) + { + //If nothing is specified as a callback screen, skip straight to questionnaire + ?> + + + } + else + { + ?> + + + } } ?>echo T_("Business number"); ?>
diff --git a/rs_project_end.php b/rs_project_end.php index 6b8cfe5d..aeaded8e 100644 --- a/rs_project_end.php +++ b/rs_project_end.php @@ -65,10 +65,17 @@ $r = $db->GetRow($sql); print "" . template_replace($r['rs_project_end'],$operator_id,$case_id) . "
"; -?> -echo T_("End call with outcome: Complete"); ?>
- - +if (!is_voip_enabled($operator_id) && AUTO_COMPLETE_OUTCOME) +{ + end_call($operator_id,10); + print "" . T_("Call automatically ended with outcome: Complete") . "
"; +} +else +{ + ?> + + +} xhtml_foot(); ?>