studentcanpost)) { $form->studentcanpost = $CFG->glossary_studentspost; } if (!isset($form->allowduplicatedentries)) { $form->allowduplicatedentries = $CFG->glossary_dupentries; } if (!isset($form->allowcomments)) { $form->allowcomments = $CFG->glossary_allowcomments; } if (!isset($form->usedynalink)) { $form->usedynalink = $CFG->glossary_linkbydefault; } if (!isset($form->defaultapproval)) { $form->defaultapproval = $CFG->glossary_defaultapproval; } if (!isset($form->entbypage)) { $form->entbypage = $CFG->glossary_entbypage; } if (!isset($form->mainglossary)) { $form->mainglossary = 0; } if (!isset($form->displayformat)) { $form->displayformat = 0; } if ( !isset($form->globalglossary) ) { $form->globalglossary = 0; } if (!isset($form->intro)) { $form->intro = ""; } if (!isset($form->name)) { $form->name = ""; } if (!isset($form->showall)) { $form->showall = 1; } if (!isset($form->showalphabet)) { $form->showalphabet = 1; } if (!isset($form->showspecial)) { $form->showspecial = 1; } ?>
globalglossary . '">'; } ?> course); if (!$mainglossary or $mainglossary->id == $form->instance ) { ?> "; } ?>

:

:

"; helpbutton("writing", get_string("helpwriting"), "moodle", true, true); echo "
"; helpbutton("text", get_string("helptext"), "moodle", true, true); ?>

:

:

globalglossary) ) { if ($form->globalglossary) { $selected = "checked"; } } ?> >

:

:

:

:

:

:


:

dirroot/mod/glossary/formats"); while ($dir = readdir($basedir)) { $firstchar = substr($dir, 0, 1); if ($firstchar == "." or $dir == "CVS" or $dir == "_vti_cnf") { continue; } if (filetype("$CFG->dirroot/mod/glossary/formats/$dir") == "dir") { continue; } if ( $pos = strpos($dir, ".") ) { $dir = substr($dir, 0, $pos ); if ($dir != 0 and $dir != 1) { // excluding basic formats $dp = get_record("glossary_displayformats","fid",$dir); if ( !$dp or $dp->visible ) { $formats[$dir] = get_string("displayformat$dir", "glossary"); } } } } asort($formats); choose_from_menu ($formats, "displayformat", $form->displayformat, ""); ?>

:

:

:

:

"; echo " var subitemstime = ['startday','startmonth','startyear','starthour', 'startminute',". "'finishday','finishmonth','finishyear','finishhour','finishminute'];"; echo " var subitemsall = ['assessed', 'ratingtime', 'scale', 'startday','startmonth','startyear','starthour', 'startminute',". "'finishday','finishmonth','finishyear','finishhour','finishminute'];"; echo ""; echo "assessed) { echo " checked "; } echo ">"; echo get_string("ratingsuse", "glossary").":"; echo "
"; // The odd order below was to maintain backward compatibility unset($options); $options[2] = get_string("ratingonlyteachers", "glossary", moodle_strtolower($course->teachers)); $options[1] = get_string("ratingeveryone", "glossary"); echo get_string("users").":"; choose_from_menu($options, "assessed", $form->assessed, ""); echo "
"; echo get_string("grade").":"; print_grade_menu($course->id, "scale", $form->scale, false); echo "
"; echo "assesstimestart and $form->assesstimefinish and $form->assessed) { $form->ratingtime = 1; echo " checked "; } echo ">"; print_string("ratingtime", "glossary"); echo "
"; echo get_string("from").":"; print_date_selector("startday", "startmonth", "startyear", $form->assesstimestart); print_time_selector("starthour", "startminute", $form->assesstimestart); echo "
"; echo get_string("to").":"; print_date_selector("finishday", "finishmonth", "finishyear", $form->assesstimefinish); print_time_selector("finishhour", "finishminute", $form->assesstimefinish); echo "
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if (empty($form->ratingtime)) { echo ""; } ?>
">