Next four options are available only for advanced users: | ";
- Apache::lonhelper::message->new();
+ addMessage("
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} = " | ";
- Apache::lonhelper::message->new();
+ if (!$startedTable) {
+ addMessage("
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();
- $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(" | ");
if (not $helper->{VARS}->{'construction'}) {
- $paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{MESSAGE_TEXT} = " | ";
- Apache::lonhelper::message->new();
+ addMessage(" | Print Index: | ");
$paramHash = Apache::lonhelper::getParamHash();
$paramHash->{'variable'} = 'TABLE_INDEX';
$helper->declareVar('TABLE_INDEX');
$paramHash->{CHOICES} = [
- ['Print without Index', 'no'],
- ['Print with Index', 'yes'] ];
+ ['No', 'no'],
+ ['Yes', 'yes'] ];
Apache::lonhelper::dropdown->new();
+ addMessage(" | ");
}
if ($helper->{VARS}->{'construction'}) {
- $paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{MESSAGE_TEXT} = " | ";
- Apache::lonhelper::message->new();
+ addMessage(" | Print With URL: | ");
$paramHash = Apache::lonhelper::getParamHash();
$paramHash->{'variable'} = 'CONSTR_RESOURSE_URL';
$helper->declareVar('CONSTR_RESOURSE_URL');
$paramHash->{CHOICES} = [
- ['Print without URL', 'no'],
- ['Print with UTL', 'yes'] ];
+ ['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);
}
+ }
- $paramHash = Apache::lonhelper::getParamHash();
- $paramHash->{MESSAGE_TEXT} = "";
- Apache::lonhelper::message->new();
+ if ($startedTable) {
+ addMessage(" ");
}
Apache::lonprintout::page_format_state->new("FORMAT");
@@ -1370,7 +1496,7 @@ sub render {
$result .= <What page format do you prefer?
+
|
|