--- loncom/interface/lonprintout.pm 2002/07/23 14:09:45 1.41
+++ loncom/interface/lonprintout.pm 2002/09/04 03:59:20 1.53
@@ -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.53 2002/09/04 03:59:20 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -47,6 +47,7 @@ use Apache::inputtags;
use Apache::edit;
use Apache::File();
use POSIX qw(strftime);
+use Apache::loncoursedata;
sub headerform {
@@ -72,13 +73,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 for students in class
+ENDMENUOUT6
+ }
my $subdirtoprint = &Apache::lonnet::filelocation("",$ENV{'form.url'});
$subdirtoprint =~ s/\/[^\/]+$//;
if (&Apache::lonnet::allowed('bre',$subdirtoprint) eq 'F') {
@@ -86,7 +93,6 @@ ENDMENUOUT2
All problems from current subdirectory (where this particular problem is)
ENDMENUOUT4
}
- }
$r->print(<