Lines Matching refs:n

144               for($n=1; $n<=count($a['choices']); $n++) {
146 if ($temp == $n) $state = ' checked';
147 …="radio" name="answers[' . $question_num . ']" id="'.$n.'" value="'.$n.'">&nbsp;<label for="' . $n
148 '">' . $a['choices'][$n]['text'] . '</label><br>' . "\n";
156 for($n=1; $n<=count($a['choices']); $n++) {
158 if (isset($temp[$n]) && ($temp[$n] =='on')) $state = ' checked';
159 …"checkbox" id="answers[' . $question_num . '][' . $n . ']" name="answers[' . $question_num . '][' …
160 … &nbsp;<label for="answers[' . $question_num . '][' . $n . ']">' . $a['choices'][$n]['text'] .
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>';
304 for($n=1; $n<=count($a['choices']); $n++) {
305 $answer_array[$n] = ($n == $your_answer?1:0);
321 for($n=1; $n<=count($a['choices']); $n++) {
322 $answer_array[$n] = (isset($your_answers[$n])? 1:0);
323 if ( (($answer_array[$n] == 1) && !$a['choices'][$n]['correct']) ||
324 (($answer_array[$n] == 0) && $a['choices'][$n]['correct']) ) {
364 for($n=0; $n<$nr; $n++) {
366 if (substr($lines[$n], 0, 6) == "======") continue;
368 if (substr($lines[$n], 0, 5) == "=====") {
369 $temp = str_replace("=====",'',$lines[$n]);
372 for($k=$n+1; $k<$nr; $k++) {
376 $n = $k - 1;
385 if ((trim($lines[$n]) == '') || (substr($lines[$n], 0, 4) != " * ")) {
386 if ($nquest == 0) $quizz['intro'] .= $lines[$n]."\n";
393 $tmp = $hRender->render(str_replace(" * ",'',$lines[$n]));
405 for($k=$n+1; $k<$nr; $k++) {
442 $n = $k - 1;