[LON-CAPA-cvs] cvs: loncom /homework grades.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Tue, 09 Apr 2002 04:33:11 -0000
albertel Tue Apr 9 00:33:11 2002 EDT
Modified files:
/loncom/homework grades.pm
Log:
- XHTML compliant (<form> not allowed inside <tr> must be insde <td> or outside <table>)
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.20 loncom/homework/grades.pm:1.21
--- loncom/homework/grades.pm:1.20 Mon Apr 8 23:56:29 2002
+++ loncom/homework/grades.pm Tue Apr 9 00:33:10 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.20 2002/04/09 03:56:29 albertel Exp $
+# $Id: grades.pm,v 1.21 2002/04/09 04:33:10 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -79,9 +79,8 @@
# my $sfullname = $Apache::lonnet::unescape($nameparts[0]);
if ( $Apache::grades::viewgrades eq 'F' ) {
- $request->print(
- "\n".'<tr><form action="/adm/grades" method="post">'.
- "<td>$sname</td><td>$sdom</td><td>@nameparts</td><td>");
+ $request->print("\n".'<tr>'."<td>$sname</td><td>$sdom</td><td>@nameparts</td><td>".
+ '<form action="/adm/grades" method="post">');
if ($ENV{'form.url'}) {
$request->print(
'<input type="hidden" name="url" value="'.$ENV{'form.url'}.'" />');
@@ -98,7 +97,7 @@
'<input type="hidden" name="domain" value="'.$sdom.'" />');
$request->print(
'<input type="submit" name="submit" value="View" />');
- $request->print('</td></form></tr>');
+ $request->print('</form></td></tr>');
}
}
$request->print('</table>');