: |
|
:
";
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
echo " ";
helpbutton("text", get_string("helptext"), "moodle", true, true);
?>
|
|
: |
|
: |
globalglossary) ) {
if ($form->globalglossary) {
$selected = "checked";
}
}
?>
>
|
globalglossary . '">';
}
?>
course);
if (!$mainglossary or $mainglossary->id == $form->instance ) {
?>
: |
|
";
}
?>
:
|
|
: |
|
: |
|
: |
|
: |
|
|
: |
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 "";
}
?>
|