//============================================================================================ $model = new Questionnaire($dbo); require FS_INCLUDES . '/l10n/header-external.php'; //============================================================================================ // Load the content //============================================================================================ if (!isset($_GET['user']) || !$model->checkUserExists($_GET['user'])) { $l10n->addResource(__DIR__ . '/l10n/error.json'); require_once FS_PHP . '/header-external.php'; require_once 'views/error.php'; require_once FS_PHP . '/footer-external.php'; } else { $user = $_GET['user']; $student = $model->fetchStudentByHashCode($user); $session = \Ventus\Utilities\Functions::fetchSemester($student['0']['survey_sent_on']); if ($model->checkSessionExpire($student['0']['survey_sent_on'])) { if ($model->checkOtherSurvey($_GET['user'])) { $newQues = $model->fetchOtherSurvey($_GET['user']); } $l10n->addResource(__DIR__ . '/l10n/questionnaire_expire.json'); $l10n->localizeArray($session, 'transcription_session'); $l10n->localizeArray($student[0], 'transcription_service'); $l10n->localizeArray($newQues[0], 'transcription_service'); require_once FS_PHP . '/header-external.php'; require_once 'views/questionnaire_expire.php'; require_once FS_PHP . '/footer-external.php'; } else { $general = $model->listGeneralQuestionnaire(); $particular = $model->listParticularQuestionnaire($student['0']['survey_sent_on_service_id']); if (!isset($_GET['page'])) { if ($student['0']['completed']) {