[LON-CAPA-cvs] cvs: loncom /homework grades.pm /interface loncreateuser.pm lonindexer.pm lonuserutils.pm /interface/spreadsheet lonspreadsheet.pm

bisitz bisitz@source.lon-capa.org
Wed, 22 Apr 2009 17:19:14 -0000


bisitz		Wed Apr 22 17:19:14 2009 EDT

  Modified files:              
    /loncom/homework	grades.pm 
    /loncom/interface	loncreateuser.pm lonindexer.pm lonuserutils.pm 
    /loncom/interface/spreadsheet	lonspreadsheet.pm 
  Log:
  XHTML: Added quotes to HTML attribute values in input fields
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.562 loncom/homework/grades.pm:1.563
--- loncom/homework/grades.pm:1.562	Thu Apr 16 16:36:32 2009
+++ loncom/homework/grades.pm	Wed Apr 22 17:19:06 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.562 2009/04/16 16:36:32 bisitz Exp $
+# $Id: grades.pm,v 1.563 2009/04/22 17:19:06 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1044,7 +1044,7 @@
 		$gradeTable.= &Apache::loncommon::start_data_table_row();
 	    }
 	    $gradeTable.='<td align="right">'.$ctr.'&nbsp;</td>'.
-               '<td align="center"><label><input type=checkbox name="stuinfo" value="'.
+               '<td align="center"><label><input type="checkbox" name="stuinfo" value="'.
                $student.':'.$$fullname{$student}.':::SECTION'.$section.
 	       ')&nbsp;" />&nbsp;&nbsp;</label></td>'."\n".'<td>'.
 	       &nameUserString(undef,$$fullname{$student},$uname,$udom).
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.290 loncom/interface/loncreateuser.pm:1.291
--- loncom/interface/loncreateuser.pm:1.290	Mon Apr  6 14:52:04 2009
+++ loncom/interface/loncreateuser.pm	Wed Apr 22 17:19:10 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.290 2009/04/06 14:52:04 bisitz Exp $
+# $Id: loncreateuser.pm,v 1.291 2009/04/22 17:19:10 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1292,7 +1292,7 @@
                   &Apache::loncommon::end_data_table_header_row()."\n".
                   &Apache::loncommon::start_data_table_row().'
            <td>
-            <input type=checkbox name="act_'.$cudom.'_'.$cuname.'_ca" />
+            <input type="checkbox" name="act_'.$cudom.'_'.$cuname.'_ca" />
            </td>
            <td>'.$lt{'cau'}.'</td>
            <td>'.$cudom.'_'.$cuname.'</td>
@@ -1304,7 +1304,7 @@
 "javascript:pjump('."'date_end','End Date Co-Author',document.cu.end_$cudom\_$cuname\_ca.value,'end_$cudom\_$cuname\_ca','cu.pres','dateset'".')">'.$lt{'sed'}.'</a></td>'."\n".
               &Apache::loncommon::end_data_table_row()."\n".
               &Apache::loncommon::start_data_table_row()."\n".
-'<td><input type=checkbox name="act_'.$cudom.'_'.$cuname.'_aa" /></td>
+'<td><input type="checkbox" name="act_'.$cudom.'_'.$cuname.'_aa" /></td>
 <td>'.$lt{'caa'}.'</td>
 <td>'.$cudom.'_'.$cuname.'</td>
 <td><input type="hidden" name="start_'.$cudom.'_'.$cuname.'_aa" value="" />
@@ -1355,7 +1355,7 @@
                $num_domain_level ++;
                $domaintext .=
 &Apache::loncommon::start_data_table_row().
-'<td><input type=checkbox name="act_'.$thisdomain.'_'.$role.'" /></td>
+'<td><input type="checkbox" name="act_'.$thisdomain.'_'.$role.'" /></td>
 <td>'.$plrole.'</td>
 <td>'.$thisdomain.'</td>
 <td><input type="hidden" name="start_'.$thisdomain.'_'.$role.'" value="" />
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.196 loncom/interface/lonindexer.pm:1.197
--- loncom/interface/lonindexer.pm:1.196	Tue Apr  7 20:12:06 2009
+++ loncom/interface/lonindexer.pm	Wed Apr 22 17:19:10 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.196 2009/04/07 20:12:06 droeschl Exp $
+# $Id: lonindexer.pm,v 1.197 2009/04/22 17:19:10 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -885,7 +885,7 @@
 		   'enctype="application/x-www-form-urlencoded"'.
                    '>'."\n");
 	$r->print(&Apache::loncommon::inhibit_menu_check('input'));
-	$r->print ('<input type=hidden name=openuri value="'.
+	$r->print ('<input type="hidden" name="openuri" value="'.
 		   $startdir.'" />'."\n");
         $r->print ('<input type="hidden" name="acts" value="" />'."\n");
 	$r->print ('<a href="#" onClick="document.dirpathUP.submit()"><img src="'.$iconpath.'arrow.up.gif"');
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.87 loncom/interface/lonuserutils.pm:1.88
--- loncom/interface/lonuserutils.pm:1.87	Wed Apr 22 16:44:36 2009
+++ loncom/interface/lonuserutils.pm	Wed Apr 22 17:19:10 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utility functions for managing LON-CAPA user accounts
 #
-# $Id: lonuserutils.pm,v 1.87 2009/04/22 16:44:36 bisitz Exp $
+# $Id: lonuserutils.pm,v 1.88 2009/04/22 17:19:10 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3399,7 +3399,7 @@
 </p><p>
 <input type="button" value="$lt{'ca'}" onclick="javascript:checkAll(document.studentform.droplist)" /> &nbsp;
 <input type="button" value="$lt{'ua'}" onclick="javascript:uncheckAll(document.studentform.droplist)" />
-<p><input type=submit value="$lt{'dp'}" /></p>
+<p><input type="submit" value="$lt{'dp'}" /></p>
 END
     return;
 }
Index: loncom/interface/spreadsheet/lonspreadsheet.pm
diff -u loncom/interface/spreadsheet/lonspreadsheet.pm:1.52 loncom/interface/spreadsheet/lonspreadsheet.pm:1.53
--- loncom/interface/spreadsheet/lonspreadsheet.pm:1.52	Thu Dec 11 14:55:20 2008
+++ loncom/interface/spreadsheet/lonspreadsheet.pm	Wed Apr 22 17:19:14 2009
@@ -1,5 +1,5 @@
 #
-# $Id: lonspreadsheet.pm,v 1.52 2008/12/11 14:55:20 bisitz Exp $
+# $Id: lonspreadsheet.pm,v 1.53 2009/04/22 17:19:14 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -73,12 +73,12 @@
 sub textfield {
     my ($title,$name,$value)=@_;
     return "\n<p><b>$title:</b><br />".
-        '<input type=text name="'.$name.'" size=80 value="'.$value.'" />';
+        '<input type="text" name="'.$name.'" size="80" value="'.$value.'" />';
 }
 
 sub hiddenfield {
     my ($name,$value)=@_;
-    return '<input type=hidden name="'.$name.'" value="'.$value.'" />'."\n";
+    return '<input type="hidden" name="'.$name.'" value="'.$value.'" />'."\n";
 }
 
 sub selectbox {