mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
allow welcome screen if desired
This commit is contained in:
@@ -88,16 +88,15 @@ else
|
|||||||
{
|
{
|
||||||
$totalquestions = buildsurveysession();
|
$totalquestions = buildsurveysession();
|
||||||
LimeExpressionManager::StartSurvey($thissurvey['sid'], $surveyMode, $surveyOptions, false,$LEMdebugLevel);
|
LimeExpressionManager::StartSurvey($thissurvey['sid'], $surveyMode, $surveyOptions, false,$LEMdebugLevel);
|
||||||
// $_SESSION['step'] = 0;
|
$_SESSION['step'] = 0;
|
||||||
//if ($surveyMode == 'survey') {
|
if ($surveyMode == 'survey') {
|
||||||
// $move = "movenext"; // to force a call to NavigateForwards()
|
$move = "movenext"; // to force a call to NavigateForwards()
|
||||||
// }
|
}
|
||||||
// else if (isset($thissurvey['showwelcome']) && $thissurvey['showwelcome'] == 'N') {
|
else if (isset($thissurvey['showwelcome']) && $thissurvey['showwelcome'] == 'N') {
|
||||||
//If explicitply set, hide the welcome screen
|
//If explicitply set, hide the welcome screen
|
||||||
// $_SESSION['step'] = 0;
|
|
||||||
$_SESSION['step'] = 1;
|
$_SESSION['step'] = 1;
|
||||||
$move = "movenext";
|
$move = "movenext";
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($_SESSION['totalsteps'])) {$_SESSION['totalsteps']=0;}
|
if (!isset($_SESSION['totalsteps'])) {$_SESSION['totalsteps']=0;}
|
||||||
@@ -718,11 +717,11 @@ echo sDefaultSubmitHandler();
|
|||||||
|
|
||||||
if ($surveyMode == 'survey')
|
if ($surveyMode == 'survey')
|
||||||
{
|
{
|
||||||
// if(isset($thissurvey['showwelcome']) && $thissurvey['showwelcome'] == 'N') {
|
if(isset($thissurvey['showwelcome']) && $thissurvey['showwelcome'] == 'N') {
|
||||||
//Hide the welcome screen if explicitly set
|
//Hide the welcome screen if explicitly set
|
||||||
// } else {
|
} else {
|
||||||
// echo templatereplace(file_get_contents("$thistpl/welcome.pstpl"))."\n";
|
echo templatereplace(file_get_contents("$thistpl/welcome.pstpl"))."\n";
|
||||||
// }
|
}
|
||||||
|
|
||||||
if ($thissurvey['anonymized'] == "Y")
|
if ($thissurvey['anonymized'] == "Y")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user