- : |
- : |
+ mode=='add') {
- choose_from_menu($text_source_options, "namesource", "$form->namesource", "");
+ choose_from_menu(
+ $text_source_options, "namesource", "$form->namesource", "",
+ "return hotpot_showhide('form', 'namesource', namehideitems, textoffvalues)"
+ );
} else {
print '';
}
- print '';
+ print '';
print '';
- print '';
+ print '';
?> |
- :
-
+ ';
helpbutton("writing", get_string("helpwriting"), "moodle", true, true);
@@ -56,69 +99,80 @@ $text_source_options = array(
emoticonhelpbutton("form", "description");
print ' ';
}
- ?>
+ ?>
+
|
- mode=='add') {
choose_from_menu($text_source_options, "summarysource", "$form->summarysource", "");
+ //choose_from_menu(
+ // $text_source_options, "summarysource", "$form->summarysource", "",
+ // "return hotpot_showhide('form', 'summarysource', summaryhideitems, textoffvalues)"
+ //);
} else {
print '';
}
- print '';
+ print '';
if (function_exists("print_textarea") && isset($usehtmleditor)) {
print_textarea($usehtmleditor, 10, 65, 680, 400, "summary", $form->summary);
} else {
// Moodle 1.1.1 (original size was rows="5" cols="50")
print '';
}
- print '';
+ print '';
?> |
- : |
- get_string("alwaysopen", "hotpot"),
- HOTPOT_YES => get_string("specifictime", "hotpot")
- );
- choose_from_menu($options, "enabletimeopen", "$form->enabletimeopen", "");
- print '';
- print ' ';
+ | : |
+ timeopen && $course->format == "weeks") {
- $form->timeopen= $course->startdate + (($form->section - 1) * 608400);
+ $form->timeopen = $course->startdate + (($form->section - 1) * 608400);
}
+ //print 'timeopen) ? '' : 'checked="checked"').' />';
+ $options = array(
+ HOTPOT_NO => get_string("alwaysopen", "hotpot"),
+ HOTPOT_YES => get_string("specifictime", "hotpot")
+ );
+ choose_from_menu(
+ $options, "enabletimeopen", "$form->enabletimeopen", "",
+ "return hotpot_showhide('form', 'enabletimeopen', timeopenhideitems, timeoffvalues)"
+ );
+ print ' ';
print_date_selector("openday", "openmonth", "openyear", $form->timeopen);
print ' - ';
print_time_selector("openhour", "openminute", $form->timeopen);
+ print '';
helpbutton("timeopen", get_string("quizopen","quiz"), "quiz");
- print '';
?> |
- : |
- get_string("neverclosed", "hotpot"),
- HOTPOT_YES => get_string("specifictime", "hotpot")
- );
- choose_from_menu($options, "enabletimeclose", "$form->enabletimeclose", "");
- print '';
- print ' ';
+ | : |
+ timeclose && $course->format == "weeks") {
$form->timeclose= $course->startdate + (($form->section) * 608400);
}
+ //print 'timeclose) ? '' : 'checked="checked"').' />';
+ $options = array(
+ HOTPOT_NO => get_string("neverclosed", "hotpot"),
+ HOTPOT_YES => get_string("specifictime", "hotpot")
+ );
+ choose_from_menu(
+ $options, "enabletimeclose", "$form->enabletimeclose", "",
+ "return hotpot_showhide('form', 'enabletimeclose', timeclosehideitems, timeoffvalues)"
+ );
+ print ' ';
print_date_selector("closeday", "closemonth", "closeyear", $form->timeclose);
print ' - ';
print_time_selector("closehour", "closeminute", $form->timeclose);
+ print '';
helpbutton("timeopen", get_string("quizclose","quiz"), "quiz");
- print '';
?> |
- :
+ :
|
-
|
- :
+ :
|
- reference.'"> ';
@@ -188,61 +242,66 @@ $text_source_options = array(
?> |
- mode}quizchain";
print_string($quizchain, "hotpot");
?>: |
- quizchain, "");
helpbutton($quizchain, get_string($quizchain,"hotpot"), "hotpot");
?> |
- : |
- : |
+ outputformat", "");
helpbutton("outputformat", get_string("outputformat","hotpot"), "hotpot");
?> |
- : |
- : |
+ navigation", "");
helpbutton("navigation", get_string("navigation","hotpot"), "hotpot");
?> |
- : |
- studentfeedback", "");
+ | : |
+ studentfeedback", "",
+ "return hotpot_showhide('form', 'studentfeedback', feedbackhideitems, feedbackoffvalues)"
+ );
+ print '';
print "studentfeedbackurl\">";
+ print '';
helpbutton("studentfeedback", get_string("studentfeedback","hotpot"), "hotpot");
?> |
- : |
- : |
+ forceplugins", "");
helpbutton("forceplugins", get_string("forceplugins","hotpot"), "hotpot");
?> |
- : |
- : |
+ shownextquiz", "");
helpbutton("shownextquiz", get_string("shownextquiz","hotpot"), "hotpot");
?> |
- : |
- : |
+ review", "");
helpbutton("review", get_string("allowreview","quiz"), "quiz");
?> |
- : |
- : |
+ =1; $i--) {
$options[$i] = $i;
@@ -254,15 +313,15 @@ $text_source_options = array(
?> |
- : |
- : |
+ grademethod", "");
helpbutton("grademethod", get_string("grademethod","quiz"), "quiz");
?> |
- : |
- : |
+ get_string("attemptsunlimited", "quiz"),
1 => '1 '.strtolower(get_string("attempt", "quiz"))
@@ -275,22 +334,22 @@ $text_source_options = array(
?> |
- : |
+ : |
-
-
+
+
|
- : |
+ : |
-
-
+
+
|
- : |
- : |
+ clickreporting", "");
helpbutton("clickreporting", get_string("clickreporting","hotpot"), "hotpot");
?> |
@@ -299,9 +358,9 @@ $text_source_options = array(
|
- ">
- " />
- ">
+ " />
+ release) && substr($CFG->release, 0, 3)>=1.5) {
$options = array(
HOTPOT_DISPLAYNEXT_QUIZ => get_string("displayhotpotnext", "hotpot"),
@@ -316,96 +375,46 @@ $text_source_options = array(
|
-