' . "\n");
// dimension id
$mform->addElement('hidden', 'dimensionid__idx_'.$i, $fields->{'dimensionid__idx_'.$i});
$mform->setType('dimensionid__idx_'.$i, PARAM_INT);
// given grade id
$mform->addElement('hidden', 'gradeid__idx_'.$i); // value set by set_data() later
$mform->setType('gradeid__idx_'.$i, PARAM_INT);
// dimension description
$desc = format_text($fields->{'description__idx_'.$i}, $fields->{'description__idx_'.$i.'format'});
$desc .= " | \n";
$mform->addElement('html', $desc);
$numoflevels = $fields->{'numoflevels__idx_'.$i};
for ($j = 0; $j < $numoflevels; $j++) {
$colspan = $numofcolumns / $numoflevels;
$mform->addElement('html', '' . "\n");
$levelid = $fields->{'levelid__idx_'.$i.'__idy_'.$j};
$definition = $fields->{'definition__idx_'.$i.'__idy_'.$j};
$definitionformat = $fields->{'definition__idx_'.$i.'__idy_'.$j.'format'};
$mform->addElement('radio', 'chosenlevelid__idx_'.$i, '',
format_text($definition, $definitionformat, null, $workshop->course->id), $levelid);
$mform->addElement('html', ' | ' . "\n");
}
$mform->addElement('html', '
' . "\n");
}
$mform->addElement('html', '