Print With Answers: | ");
$paramHash = Apache::lonhelper::getParamHash();
$paramHash->{'variable'} = 'ANSWER_TYPE';
$helper->declareVar('ANSWER_TYPE');
$paramHash->{CHOICES} = [
- ['Print without answer', 'yes'],
- ['Print with answers', 'no'] ];
+ ['No', 'yes'],
+ ['Yes', 'no'] ];
Apache::lonhelper::dropdown->new();
+ addMessage(" |
");
+ $startedTable = 1;
}
if ($ENV{'request.role.adv'}) {
- $paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{MESSAGE_TEXT} = "LaTeX mode: | ");
+ $startedTable = 1;
+ } else {
+ addMessage(" |
LaTeX mode: | ");
+ }
$paramHash = Apache::lonhelper::getParamHash();
$paramHash->{'variable'} = 'LATEX_TYPE';
$helper->declareVar('LATEX_TYPE');
if ($helper->{VARS}->{'construction'} eq '1') {
$paramHash->{CHOICES} = [
- ['Print in standard LaTeX mode', 'standard'],
- ['Print in LaTeX batchmode', 'batchmode'], ];
+ ['standard LaTeX mode', 'standard'],
+ ['LaTeX batchmode', 'batchmode'], ];
} else {
$paramHash->{CHOICES} = [
- ['Print in LaTeX batchmode', 'batchmode'],
- ['Print in standard LaTeX mode', 'standard'] ];
+ ['LaTeX batchmode', 'batchmode'],
+ ['standard LaTeX mode', 'standard'] ];
}
Apache::lonhelper::dropdown->new();
- }
-
- if ($ENV{'request.role.adv'}) {
- $paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{MESSAGE_TEXT} = " ";
- Apache::lonhelper::message->new();
+
+ addMessage(" |
Print Table of Contents: | ");
$paramHash = Apache::lonhelper::getParamHash();
$paramHash->{'variable'} = 'TABLE_CONTENTS';
$helper->declareVar('TABLE_CONTENTS');
$paramHash->{CHOICES} = [
- ['Print without Table of Contents', 'no'],
- ['Print with Table of Contents', 'yes'] ];
+ ['No', 'no'],
+ ['Yes', 'yes'] ];
Apache::lonhelper::dropdown->new();
+ addMessage(" |
");
- $paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{MESSAGE_TEXT} = "
";
- Apache::lonhelper::message->new();
- $paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{'variable'} = 'TABLE_INDEX';
- $helper->declareVar('TABLE_INDEX');
- $paramHash->{CHOICES} = [
- ['Print without Index', 'no'],
- ['Print with Index', 'yes'] ];
- Apache::lonhelper::dropdown->new();
+ if (not $helper->{VARS}->{'construction'}) {
+ addMessage("Print Index: | ");
+ $paramHash = Apache::lonhelper::getParamHash();
+ $paramHash->{'variable'} = 'TABLE_INDEX';
+ $helper->declareVar('TABLE_INDEX');
+ $paramHash->{CHOICES} = [
+ ['No', 'no'],
+ ['Yes', 'yes'] ];
+ Apache::lonhelper::dropdown->new();
+ addMessage(" |
");
+ }
+
+ if ($helper->{VARS}->{'construction'}) {
+ addMessage("Print With URL: | ");
+ $paramHash = Apache::lonhelper::getParamHash();
+ $paramHash->{'variable'} = 'CONSTR_RESOURSE_URL';
+ $helper->declareVar('CONSTR_RESOURSE_URL');
+ $paramHash->{CHOICES} = [
+ ['No', 'no'],
+ ['Yes', 'yes'] ];
+ Apache::lonhelper::dropdown->new();
+ addMessage(" |
");
+ }
+ if ($helper->{'VARS'}->{'construction'}) {
+ my $xmlfrag .= <<'RNDSEED';
+ Use random seed: |
+
+
+ return $helper->{VARS}->{'curseed'};
+
+
+ |
+RNDSEED
+ &Apache::lonxml::xmlparse($r, 'helper', $xmlfrag);
+ }
+ }
+
+ if ($startedTable) {
+ addMessage("
");
}
Apache::lonprintout::page_format_state->new("FORMAT");
@@ -1343,7 +1496,7 @@ sub render {
$result .= <