version 1.62, 2002/09/12 15:08:43
|
version 1.63, 2002/09/12 15:25:49
|
Line 91 sub menu_for_output {
|
Line 91 sub menu_for_output {
|
ENDMENUOUT1 |
ENDMENUOUT1 |
if ((not $ENV{'request.role'}=~m/^au\./) and (not $ENV{'request.role'}=~m/^ca\./)) { |
if ((not $ENV{'request.role'}=~m/^au\./) and (not $ENV{'request.role'}=~m/^ca\./)) { |
$r->print(<<ENDMENUOUT2); |
$r->print(<<ENDMENUOUT2); |
<input type="radio" name="choice" value="Standard LaTeX output for the primary sequence"> All problems from the sequence <b>$title_for_sequence</b><br /> |
<input type="radio" name="choice" value="Standard LaTeX output for the primary sequence"> All problems from <b>$title_for_sequence</b><br /> |
<input type="radio" name="choice" value="Standard LaTeX output for whole primary sequence"> All problems plus any html/xml files from the sequence <b>$title_for_sequence</b><br /> |
<input type="radio" name="choice" value="Standard LaTeX output for whole primary sequence"> All problems plus any html/xml files from <b>$title_for_sequence</b><br /> |
ENDMENUOUT2 |
ENDMENUOUT2 |
} |
} |
if ($ENV{'request.role'}=~m/^cc\./ or $ENV{'request.role'}=~m/^in\./ or $ENV{'request.role'}=~m/^ta\./) { |
if ($ENV{'request.role'}=~m/^cc\./ or $ENV{'request.role'}=~m/^in\./ or $ENV{'request.role'}=~m/^ta\./) { |
$r->print(<<ENDMENUOUT6); |
$r->print(<<ENDMENUOUT6); |
<input type="radio" name="choice" value="Standard LaTeX output for the top level sequence"> All problems in this course (<b>warning:</b> this may be time consuming) <br /> |
<input type="radio" name="choice" value="Standard LaTeX output for the top level sequence"> All problems in this course (<b>warning:</b> this may be time consuming) <br /> |
<br /> |
<br /> |
<input type="radio" name="choice" value="All class print"> All problems from the sequence <b>$title_for_sequence</b> for selected students<br /><br /> |
<input type="radio" name="choice" value="All class print"> All problems from <b>$title_for_sequence</b> for selected students<br /><br /> |
ENDMENUOUT6 |
ENDMENUOUT6 |
} |
} |
my $subdirtoprint = &Apache::lonnet::filelocation("",$ENV{'form.url'}); |
my $subdirtoprint = &Apache::lonnet::filelocation("",$ENV{'form.url'}); |
Line 1036 sub details_for_menu {
|
Line 1036 sub details_for_menu {
|
|
|
my $name_of_resourse = $hash{'title_'.$hash{'ids_'.$ENV{'form.postdata'}}}; |
my $name_of_resourse = $hash{'title_'.$hash{'ids_'.$ENV{'form.postdata'}}}; |
my $symbolic = &Apache::lonnet::symbread($ENV{'form.postdata'}); |
my $symbolic = &Apache::lonnet::symbread($ENV{'form.postdata'}); |
$symbolic =~ m/([^_]+)_/; |
my ($map,$id,$resource)=split(/___/,$symbolic); |
my $name_of_sequence = $hash{'title_'.$hash{'ids_/res/'.$1}}; |
my $name_of_sequence = $hash{'title_'.$hash{'ids_/res/'.$map}}; |
|
if ($name_of_sequence =~ /^\s*$/) { |
|
$map =~ m|([^/]+)$|; |
|
$name_of_sequence = $1; |
|
} |
my $name_of_map = $hash{'title_'.$hash{'ids_/res/'.$ENV{'request.course.uri'}}}; |
my $name_of_map = $hash{'title_'.$hash{'ids_/res/'.$ENV{'request.course.uri'}}}; |
|
if ($name_of_map =~ /^\s*$/) { |
return $name_of_resourse,$name_of_sequence,$name_of_map; |
$ENV{'request.course.uri'} =~ m|([^/]+)$|; |
|
$name_of_map = $1; |
|
} |
|
return ($name_of_resourse,$name_of_sequence,$name_of_map); |
|
|
} |
} |
|
|