+
+
+
+Mark problems which you want to print
+
+
+
+
+ENDMENUOUT1
+ my $i;
+ foreach my $file (@list_of_files) {
+ $r->print('
'.
+ $file);
+ $i++;
+ }
+ $r->print(<
+
+
+
+ENDMENUOUT2
+}
+
+
+sub additional_class_menu {
+ my $r = shift;
+ $r->print(<
+
+
+
+Mark students which assignments you want to print
+ENDMENUOUT1
+ my %courselist=&Apache::lonnet::dump(
+ 'classlist',
+ $ENV{'course.'.$ENV{'request.course.id'}.'.domain'},
+ $ENV{'course.'.$ENV{'request.course.id'}.'.num'});
+ my $now=time;
+ $r->print(<
+ function checkall() {
+ for (i=0; i
+
+
+
+
+
+ENDDISHEADER
+ my $i = 0;
+ foreach (sort keys %courselist) {
+ my ($end,$start)=split(/\:/,$courselist{$_});
+ my $active=1;
+ if (($end) && ($now>$end)) { $active=0; }
+ if ($active) {
+ my ($sname,$sdom)=split(/\:/,$_);
+ my %reply=&Apache::lonnet::get('environment',
+ ['firstname','middlename','lastname','generation'],
+ $sdom,$sname);
+ my $section=&Apache::lonnet::usection
+ ($sdom,$sname,$ENV{'request.course.id'});
+ $r->print(
+ '
'.
+ $reply{'firstname'}.' '.
+ $reply{'middlename'}.' '.
+ $reply{'lastname'}.' '.
+ $reply{'generation'}.
+ ' ('.$_.') '.$section);
+ $i++;
+ }
+ }
+ $r->print(<
+
+
+
+ENDMENUOUT2
+}
+
+
+sub additional_print_menu {
+ my $r = shift;
+ my $what_to_print = '';
+ for (my $i=0; $i<$ENV{'form.numberofstudents'};$i++) {
+ $what_to_print .= '';
+ }
+ for (my $i=0; $i<$ENV{'form.numberofproblems'};$i++) {
+ $what_to_print .= '';
+ }
+ $r->print(<
+
+
+
+
+
+Define page layout parameters:
+Width:
+Height:
+Left margin:
+
+