예제 #1
0
 public function careerPortalQuestionnaireUpdate()
 {
     if ($this->_realAccessLevel < ACCESS_LEVEL_DEMO) {
         CommonErrors::fatal(COMMONERROR_PERMISSION, $this);
         return;
     }
     $questionnaire = new Questionnaire($this->_siteID);
     $data = $questionnaire->getAll(true);
     for ($i = 0; $i < count($data); $i++) {
         if (isset($_POST[$id = 'removeQuestionnaire' . $i]) && !strcasecmp($_POST[$id], 'yes')) {
             $questionnaire->delete($data[$i]['questionnaireID']);
         }
     }
     CATSUtility::transferRelativeURI('m=settings&a=careerPortalSettings');
 }