new();
addMessage("");
+ # Prompt for printing annotations too.
+
+ addMessage("".
+ ': | ");
+ $paramHash = Apache::lonhelper::getParamHash();
+ $paramHash->{'variable'} = "PRINT_ANNOTATIONS";
+ $helper->declareVar("PRINT_ANNOTATIONS");
+ $paramHash->{CHOICES} = [
+ ['No', 'no'],
+ ['Yes', 'yes']];
+ Apache::lonhelper::dropdown->new();
+ addMessage(" |
");
+
addMessage(" | ");
$paramHash = Apache::lonhelper::getParamHash();
$paramHash->{'multichoice'} = "true";
@@ -2962,6 +3098,24 @@ CHOOSE_FROM_ANY_SEQUENCE
|
RNDSEED
&Apache::lonxml::xmlparse($r, 'helper', $xmlfrag);
+
+
+ addMessage("Problem Type: | ");
+ $paramHash = &Apache::lonhelper::getParamHash();
+ $paramHash->{'variable'} = 'probstatus'; # Already declared:
+ #
+ # Initial value from construction space:
+ #
+ if (!$helper->{VARS}->{'probstatus'} && $env{'form.problemtype'}) {
+ $helper->{VARS}->{'probstatus'} = $env{'form.problemtype'}; # initial value
+ }
+ $paramHash->{CHOICES} = [
+ ['Homework problem', 'problem'],
+ ['Exam Problem', 'exam'],
+ ['Survey question', 'survey']];
+ Apache::lonhelper::dropdown->new();
+ addMessage(" |
");
+
}
}