[LON-CAPA-cvs] cvs: loncom /homework grades.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Mon, 16 Apr 2007 19:00:38 -0000
albertel Mon Apr 16 15:00:38 2007 EDT
Modified files:
/loncom/homework grades.pm
Log:
- remove log spew
- style
- translate
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.394 loncom/homework/grades.pm:1.395
--- loncom/homework/grades.pm:1.394 Sun Apr 15 14:25:56 2007
+++ loncom/homework/grades.pm Mon Apr 16 15:00:38 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.394 2007/04/15 18:25:56 banghart Exp $
+# $Id: grades.pm,v 1.395 2007/04/16 19:00:38 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1626,27 +1626,24 @@
$result.='</td></tr></table><br />';
return $result;
}
+
sub download_all_link {
my ($r,$symb) = @_;
- my $courseid=$env{'request.course.id'};
- my @stuchecked = &Apache::loncommon::get_env_multiple('form.stuinfo');
- my $parts;
- my $total = scalar(@stuchecked)-1;
- my $all_students;
- foreach my $stu_info (@stuchecked) {
- $all_students .= $stu_info."\n";
- }
- foreach my $part (&Apache::loncommon::get_env_multiple('form.vPart')) {
- $parts .= $part."\n";
- }
+ my $all_students =
+ join("\n", &Apache::loncommon::get_env_multiple('form.stuinfo'));
+
+ my $parts =
+ join("\n",&Apache::loncommon::get_env_multiple('form.vPart'));
+
my $identifier = &Apache::loncommon::get_cgi_id();
&Apache::lonnet::appenv('cgi.'.$identifier.'.students' => $all_students,
'cgi.'.$identifier.'.symb' => $symb,
- 'cgi.'.$identifier.'.parts' => $parts,
- 'cgi.'.$identifier.'.courseid' => $courseid);
- $r->print('<a href="/cgi-bin/multidownload.pl?'.$identifier.'">Download All Submitted Documents</a>');
+ 'cgi.'.$identifier.'.parts' => $parts,);
+ $r->print('<a href="/cgi-bin/multidownload.pl?'.$identifier.'">'.
+ &mt('Download All Submitted Documents').'</a>');
return
}
+
# --------------------------- show submissions of a student, option to grade
sub submission {
my ($request,$counter,$total) = @_;
@@ -6150,10 +6147,6 @@
}
} else {
&init_perm();
- &Apache::lonnet::logthis("command is $command");
- foreach my $key (keys %perm) {
- &Apache::lonnet::logthis("key is $key");
- }
if ($command eq 'submission' && $perm{'vgr'}) {
($env{'form.student'} eq '' ? &listStudents($request) : &submission($request,0,0));
} elsif ($command eq 'pickStudentPage' && $perm{'vgr'}) {