From ecb34c3d1ae821087c8695caad0032d88e323c96 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 1 May 2014 23:19:39 -0400 Subject: [PATCH] Changing button text on first survey page -refs #7103 --- main/survey/fillsurvey.php | 13 ++++++++++--- main/survey/preview.php | 6 +++++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/main/survey/fillsurvey.php b/main/survey/fillsurvey.php index db30ced709..90823cc239 100644 --- a/main/survey/fillsurvey.php +++ b/main/survey/fillsurvey.php @@ -1127,9 +1127,12 @@ if ($survey_data['survey_type'] === '0') { if ($survey_data['show_form_profile'] == 0) { // The normal survey as always if (($show < $numberofpages) || !$_GET['show']) { //$show = $_GET['show'] + 1 - echo ''; + if ($show == 0) { + echo ''; + } else { + echo ''; + } } - if ($show >= $numberofpages && $_GET['show']) { echo ''; } @@ -1138,7 +1141,11 @@ if ($survey_data['survey_type'] === '0') { if (isset($_GET['show'])) { $numberofpages = count($paged_questions); if (($show < $numberofpages) || !$_GET['show']) { //$show = $_GET['show'] + 1 - echo ''; + if ($show == 0) { + echo ''; + } else { + echo ''; + } } if ($show >= $numberofpages && $_GET['show']) { diff --git a/main/survey/preview.php b/main/survey/preview.php index 1d8731f49f..50668a9469 100644 --- a/main/survey/preview.php +++ b/main/survey/preview.php @@ -214,7 +214,11 @@ if (api_is_course_admin() || (api_is_course_admin() && $_GET['isStudentView'] == } if (($show < $numberofpages) || (!$_GET['show'] && count($questions) > 0)) { - echo '
'; + if ($show == 0) { + echo '
'; + } else { + echo '
'; + } } if ($show >= $numberofpages && $_GET['show'] || (isset($_GET['show']) && count($questions) == 0)) { if ($questions_exists == false) {