--- loncom/interface/lonprintout.pm 2002/07/23 14:09:45 1.41
+++ loncom/interface/lonprintout.pm 2002/09/05 15:51:07 1.54
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.41 2002/07/23 14:09:45 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.54 2002/09/05 15:51:07 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -43,7 +43,10 @@ use strict;
use Apache::Constants qw(:common :http);
use Apache::lonxml;
use Apache::lonnet;
+use Apache::loncommon;
use Apache::inputtags;
+use Apache::loncoursedata;
+use Apache::grades;
use Apache::edit;
use Apache::File();
use POSIX qw(strftime);
@@ -72,13 +75,19 @@ sub menu_for_output {
Current document
(you will print what you see on the screen)
ENDMENUOUT1
- if (not $ENV{'request.role'}=~m/^au\./) {
- $r->print(<print(< All problems from the primary sequence
The whole primary sequence (problems plus all html and xml files)
All problems from the top level sequence
ENDMENUOUT2
+ }
+ if ($ENV{'request.role'}=~m/^cc\./ or $ENV{'request.role'}=~m/^in\./ or $ENV{'request.role'}=~m/^ta\./) {
+ $r->print(< Print assignment (all problems from the primary sequence) for group of students
+ENDMENUOUT6
+ }
my $subdirtoprint = &Apache::lonnet::filelocation("",$ENV{'form.url'});
$subdirtoprint =~ s/\/[^\/]+$//;
if (&Apache::lonnet::allowed('bre',$subdirtoprint) eq 'F') {
@@ -86,7 +95,6 @@ ENDMENUOUT2
All problems from current subdirectory (where this particular problem is)
ENDMENUOUT4
}
- }
$r->print(<