mirror of
https://github.com/CAcertOrg/cats.git
synced 2024-11-22 05:14:04 +00:00
Used the opportunity and re-formatted the file consistently, without using tabs.
This commit is contained in:
parent
7711fd61e8
commit
e0538cf1a0
1 changed files with 422 additions and 424 deletions
|
@ -86,8 +86,7 @@ class Quiz
|
|||
$i++;
|
||||
}
|
||||
$_SESSION['values']['questionList']=$this->questionList;
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
echo "<h5>".Class_Quiz_01." </h5>";
|
||||
$value ="notEnoughQuestions";
|
||||
return $value;
|
||||
|
@ -213,7 +212,6 @@ class Quiz
|
|||
}
|
||||
|
||||
function FillInTheBlanks($i,$value,$question) {
|
||||
|
||||
echo '<td class="answer" valign="top" colspan="2">';
|
||||
$correctAns=$this->question->getCorrectAnswerFillInTheBlanks($question); // korrekte Antworen ermitteln
|
||||
$numberOfAnswers=$this->questionList[$i]['numberOfAnswers'];
|
||||
|
@ -237,7 +235,6 @@ class Quiz
|
|||
}
|
||||
echo"</select>";
|
||||
}
|
||||
|
||||
else if((strstr($array[$k],']'))){
|
||||
$array[$k]=str_replace("]",'', $array[$k]); // Klammer entfernen
|
||||
echo $array[$k];
|
||||
|
@ -251,9 +248,7 @@ class Quiz
|
|||
}
|
||||
|
||||
|
||||
|
||||
function evaluateQuiz() {
|
||||
|
||||
echo"<div>";
|
||||
echo "<fieldset>";
|
||||
|
||||
|
@ -271,19 +266,24 @@ class Quiz
|
|||
}
|
||||
$this->topicID=$this->questionList[$i]['t_id'];
|
||||
switch($this->questionList[$i]['qt_id']){
|
||||
case 1: {$this->evaluateSingleSelection($i,$value);
|
||||
case 1: {
|
||||
$this->evaluateSingleSelection($i,$value);
|
||||
|
||||
break;}
|
||||
case 2: {$this->evaluateMultipleChoice($i,$value);
|
||||
|
||||
break;}
|
||||
case 3: { $this->evaluateSingleSelection($i,$value); // Kann die selbe Maske verwendet werden
|
||||
|
||||
break;}
|
||||
case 4:{ //$this->getDBAnswers();
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
$this->evaluateMultipleChoice($i,$value);
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
$this->evaluateSingleSelection($i,$value); // Kann die selbe Maske verwendet werden
|
||||
break;
|
||||
}
|
||||
case 4:{
|
||||
//$this->getDBAnswers();
|
||||
$this->evaluateFillInTheBlanks($i,$value,$question);
|
||||
|
||||
break;}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -385,8 +385,6 @@ class Quiz
|
|||
}
|
||||
|
||||
function evaluateFillInTheBlanks($i,$value,$question){
|
||||
|
||||
|
||||
$addSlashes= preg_quote($question, '[^]'); // Slash hinzufügen wenn KLammer gefunden wird
|
||||
$array=explode('\\',$addSlashes); // String teilen
|
||||
// Was Benutzer markiert hat
|
||||
|
|
Loading…
Reference in a new issue