id)); ?>
questiontext); if ($usehtmleditor) { echo ''; $nohtmleditorneeded = false; } else { echo '

'; helpbutton('textformat', get_string('formattexttype')); print_string('formattexttype'); echo ': '; $format = (isset($question->format)) ? $question->format : $defaultformat ; choose_from_menu(format_text_menu(), 'format', $format , ''); echo '

'; } ?>
answers)){ $answerids = array_keys($question->answers); $aid = 0 + @$answerids[$i]; } else { $aid = 0; } $aid = ($aid == 0) ? "$aid-$i" : $aid ; ?> weighted){ $weight = (isset($question->answers[$aid]->weight)) ? $question->answers[$aid]->weight : 1 ; ?>
name)) ?>
answers[$aid]->answertext); if ($usehtmleditor) { echo "'; $nohtmleditorneeded = false; } else { echo '

'; helpbutton('textformat', get_string('formattexttype')); print_string('formattexttype'); echo ': '; $format = (isset($question) && isset($question->answers[$aid]->format)) ? $question->answers[$aid]->format : $defaultformat ; choose_from_menu(format_text_menu(), "format{$aid}", $format, ''); echo '

'; } ?>
name)) ?>
answers[$aid]->helper); if ($usehtmleditor) { echo "'; $nohtmleditorneeded = false; } else { echo '

'; helpbutton('textformat', get_string('formattexttype')); print_string('formattexttype'); echo ': '; $format = (isset($question) && isset($question->answers[$aid]->helperformat)) ? $question->answers[$aid]->helperformat : $defaultformat ; choose_from_menu(format_text_menu(), "helperformat{$aid}", $format, ''); echo '

'; } ?>