//Sort it
asort($formats);
- choose_from_menu($formats,'popupformatname',$displayformat->popupformatname);
+ echo $OUTPUT->select(html_select::make($formats,'popupformatname',$displayformat->popupformatname));
?>
</td>
<td width="60%">
* @param array $scale
*/
function glossary_print_rating_menu($entryid, $userid, $scale) {
- global $DB;
+ global $DB, $OUTPUT;
static $strrate;
if (empty($strrate)) {
$strrate = get_string("rate", "glossary");
}
+ $select = html_select::make($scale, $entryid, $rating->rating, "$strrate...");
+ $select->nothingvalue = '-999';
- choose_from_menu($scale, $entryid, $rating->rating, "$strrate...",'',-999);
+ echo $OUTPUT->select($select);
}
/**