[LON-CAPA-cvs] cvs: loncom /homework grades.pm
www
lon-capa-cvs@mail.lon-capa.org
Sat, 06 Apr 2002 21:07:08 -0000
www Sat Apr 6 16:07:08 2002 EDT
Modified files:
/loncom/homework grades.pm
Log:
Cleaning up student listing to eventually put in additional menu for receipt
verification. Currently still produces strange "1" at bottom of page.
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.18 loncom/homework/grades.pm:1.19
--- loncom/homework/grades.pm:1.18 Fri Dec 7 18:43:46 2001
+++ loncom/homework/grades.pm Sat Apr 6 16:07:08 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.18 2001/12/07 23:43:46 albertel Exp $
+# $Id: grades.pm,v 1.19 2002/04/06 21:07:08 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -64,7 +64,9 @@
my ($request) = shift;
my ($cdom,$cnum) = split(/_/,$ENV{'request.course.id'});
my $chome=$ENV{"course.$ENV{'request.course.id'}.home"};
- $request->print ("Found $cdom:$cnum:$chome<br />");
+ $request->print ('<h1>Show Student Submissions on Assessment</h1>'.
+ '<table border="1"><tr><th>Username</th><th>Domain</th><th>Name</th><th> </th></tr>'
+ );
my (%classlist) = &getclasslist($cdom,$cnum,$chome,'0');
foreach my $student ( sort(@{ $classlist{'allids'} }) ) {
my ($sname,$sdom) = split(/:/,$student);
@@ -77,22 +79,29 @@
# my $sfullname = $Apache::lonnet::unescape($nameparts[0]);
if ( $Apache::grades::viewgrades eq 'F' ) {
- $request->print('<form action="/adm/grades" method="post">'."\n");
- $request->print("$sname @nameparts\n");
+ $request->print(
+ "\n".'<tr><form action="/adm/grades" method="post">'.
+ "<td>$sname</td><td>$sdom</td><td>@nameparts</td><td>");
if ($ENV{'form.url'}) {
- $request->print('<input type="hidden" name="url" value="'.$ENV{'form.url'}.'" />'."\n");
+ $request->print(
+ '<input type="hidden" name="url" value="'.$ENV{'form.url'}.'" />');
}
if ($ENV{'form.symb'}) {
- $request->print('<input type="hidden" name="symb" value="'.$ENV{'form.symb'}.'" />'."\n");
+ $request->print(
+ '<input type="hidden" name="symb" value="'.$ENV{'form.symb'}.'" />');
}
- $request->print('<input type="hidden" name="command" value="'.$ENV{'form.command'}.'" />'."\n");
- $request->print('<input type="hidden" name="student" value="'.$sname.'" />'."\n");
- $request->print('<input type="hidden" name="domain" value="'.$sdom.'" />'."\n");
- $request->print('<input type="submit" name="submit" value="View" />'."<br />\n");
- $request->print('</form>');
+ $request->print(
+ '<input type="hidden" name="command" value="'.$ENV{'form.command'}.'" />');
+ $request->print(
+ '<input type="hidden" name="student" value="'.$sname.'" />');
+ $request->print(
+ '<input type="hidden" name="domain" value="'.$sdom.'" />');
+ $request->print(
+ '<input type="submit" name="submit" value="View" />');
+ $request->print('</td></form></tr>');
}
}
-
+ $request->print('</table>');
}