Lines Matching refs:a

80         $a = $data['questions'][$question_num];
95 $html .= '<div class="quiz-question">'.$a['question'].'</div>';
143 if ($a['type'] == 'single') {
144 for($n=1; $n<=count($a['choices']); $n++) {
148 '">' . $a['choices'][$n]['text'] . '</label><br>' . "\n";
151 if ($a['type'] == 'text') {
155 if ($a['type'] == 'multi') {
156 for($n=1; $n<=count($a['choices']); $n++) {
160 … &nbsp;<label for="answers[' . $question_num . '][' . $n . ']">' . $a['choices'][$n]['text'] .
244 $a = $this->parseQuiz();
245 $a = $a['questions'][$question_num];
252 $html .= $question_num.") ".$a['question']; //."&nbsp;".$img;
258 if ($a['type'] == 'text') {
263 $html .= '<div class="quiz-missing">'. $a['answers'][0] .'</div>';
265 $html .= '<div class="quiz-correct">'. $a['answers'][0] .'</div>';
267 for($n=1; $n<=count($a['choices']); $n++) {
269 if (($answers[$n] == 1) && $a['choices'][$n]['correct']) {
271 } elseif (($answers[$n] == 1) && !$a['choices'][$n]['correct']) {
273 } elseif (($answers[$n] == 0) && $a['choices'][$n]['correct']) {
280 $html .= '<li class="level1">'.$a['choices'][$n]['text'].'</li>';
286 if ($a['explanation'] != '') {
287 … $html .= '<hr><b>'.$this->quizobj->getLang('quiz_explanation').'</b><br>' . $a['explanation'].'';
298 $a = $data['questions'][$question];
302 if ($a['type'] == 'single') {
304 for($n=1; $n<=count($a['choices']); $n++) {
307 $result = $a['choices'][$your_answer]['correct'];
310 if ($a['type'] == 'text') {
313 $result = (strtolower($your_answer) == strtolower($a['answers'][0]));
316 if ($a['type'] == 'multi') {
321 for($n=1; $n<=count($a['choices']); $n++) {
323 if ( (($answer_array[$n] == 1) && !$a['choices'][$n]['correct']) ||
324 (($answer_array[$n] == 0) && $a['choices'][$n]['correct']) ) {
516 function cmp($a, $b) { argument
517 if ($a['score'] == $b['score']) {
520 return ($a['score'] > $b['score']) ? -1 : 1;