--- loncom/interface/lonprintout.pm 2005/12/23 08:34:43 1.408.2.1 +++ loncom/interface/lonprintout.pm 2005/12/19 23:27:28 1.410 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.408.2.1 2005/12/23 08:34:43 albertel Exp $ +# $Id: lonprintout.pm,v 1.410 2005/12/19 23:27:28 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -816,11 +816,12 @@ sub IndexCreation { sub print_latex_header { my $mode=shift; - my $output='\documentclass[letterpaper]{article}'; + my $output='\documentclass[letterpaper,twoside]{article}'; if (($mode eq 'batchmode') || (!$perm{'pav'})) { $output.='\batchmode'; } $output.='\newcommand{\keephidden}[1]{}\renewcommand{\deg}{$^{\circ}$}'."\n". + '\usepackage{multirow}'."\n". '\usepackage{longtable}\usepackage{textcomp}\usepackage{makeidx}'."\n". '\usepackage[dvips]{graphicx}\usepackage{epsfig}'."\n". '\usepackage{wrapfig}'. @@ -2175,9 +2176,11 @@ CHOOSE_STUDENTS } + my %all_codes = &Apache::lonnet::get('CODEs', + \@names, $cdom,$cnum); my %code_values; my %codes_to_print; - foreach my $key (@names) { + foreach my $key (keys(%all_codes)) { %code_values = &Apache::grades::get_codes($key, $cdom, $cnum); foreach my $key (keys(%code_values)) { $codes_to_print{$key} = 1; @@ -2208,7 +2211,8 @@ CHOOSE_STUDENTS &Apache::lonxml::xmlparse($r, 'helper', < PAGESIZE -
Number of anonymous assignments to print: +
+
Number of anonymous assignments to print? if (((\$helper->{'VARS'}{'NUMBER_TO_PRINT_TOTAL'}+0) < 1) && @@ -2221,19 +2225,8 @@ CHOOSE_STUDENTS
- Names to store the CODEs under for later: - - -
- Bubble sheet type: - - - $codechoice - -

-
- Enter a CODE to print: - + Value of CODE to print? + if(!\$helper->{'VARS'}{'NUMBER_TO_PRINT_TOTAL'} && !\$helper->{'VARS'}{'REUSE_OLD_CODES'} && @@ -2245,13 +2238,28 @@ CHOOSE_STUDENTS } -

- Reprint a set of saved CODEs: +
+ Choose single code from list + + + $code_selection + +
+ Names to store the CODEs under for later: + + +
+ Bubble sheet type: + + $codechoice + +
+
+ Reprint a set of saved CODEs: $namechoice -

$resource_selector @@ -2299,7 +2307,7 @@ CHOOSE_STUDENTS1 &Apache::lonxml::xmlparse($r, 'helper', < PAGESIZE -
Number of anonymous assignments to print: +
Number of anonymous assignments to print? if (((\$helper->{'VARS'}{'NUMBER_TO_PRINT_TOTAL'}+0) < 1) && @@ -2312,19 +2320,8 @@ CHOOSE_STUDENTS1
- Names to store the CODEs under for later: - - -
- Bubble sheet type: - - - $codechoice - -

-
- Enter a CODE to print: - + Value of CODE to print? + if(!\$helper->{'VARS'}{'NUMBER_TO_PRINT_TOTAL'} && !\$helper->{'VARS'}{'REUSE_OLD_CODES'} && @@ -2336,13 +2333,28 @@ CHOOSE_STUDENTS1 } -

- Reprint a set of saved CODEs: +
+ Choose single code from list + + $code_selection + +
+ Names to store the CODEs under for later: + + +
+ Bubble sheet type: + + + $codechoice + +
+
+ Reprint a set of saved CODEs: $namechoice -

$resource_selector