function showSurveyCompleted($primkey, $suid = 1) { $lab = new Lab($primkey); if ($suid == 3) { //survey $lab->setSurvey(2); } if ($suid == 4) { //data entry $lab->setMeasures(2); } if ($suid == 5) { //vision $lab->setVision(2); } if ($suid == 6) { //antro $lab->setAnthropometrics(2); } $lab->saveChanges(); //end add contact $display = new Display(); if (isFieldNurse(new User($_SESSION['URID']))) { return $this->ShowRespondentFieldNurseInfo($primkey, $display->displaySuccess(Language::labelNurseSurveyCompleted())); //field nurse } else { return $this->showRespondentInfo($primkey, $display->displaySuccess(Language::labelNurseSurveyCompleted())); } }