[LON-CAPA-cvs] cvs: loncom /interface lonparmset.pm

bisitz bisitz@source.lon-capa.org
Tue, 20 Jan 2009 18:23:19 -0000


bisitz		Tue Jan 20 18:23:19 2009 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  XHTML conform input tag closure
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.422 loncom/interface/lonparmset.pm:1.423
--- loncom/interface/lonparmset.pm:1.422	Tue Jan 20 18:05:55 2009
+++ loncom/interface/lonparmset.pm	Tue Jan 20 18:23:19 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.422 2009/01/20 18:05:55 bisitz Exp $
+# $Id: lonparmset.pm,v 1.423 2009/01/20 18:23:19 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1315,7 +1315,7 @@
 	if ($$pscat[0] eq "all" || grep $_ eq $tempkey, @{$pscat}) {
 	    $r->print(' checked="checked"');
 	}
-	$r->print('>'.($$allparms{$tempkey}=~/\S/ ? &mt($$allparms{$tempkey})
+	$r->print(' />'.($$allparms{$tempkey}=~/\S/ ? &mt($$allparms{$tempkey})
 		                                  : &mt($tempkey))
 		  .'</label></td>');
  	$cnt++;
@@ -3140,7 +3140,7 @@
 		$r->print(&default_selector($thiskey,$$resourcedata{$thiskey}));
 	    }
 	    $r->print('<input type="hidden" name="typeof_'.$thiskey.'" value="'.
-		      $thistype.'">');
+		      $thistype.'" />');
 	    $r->print('</td>'.&Apache::loncommon::end_data_table_row());
 	}
     }
@@ -3885,19 +3885,19 @@
         my $single_checked;
         if ($options =~ m/onlyone/) {
             $multiple_checked = '';
-            $single_checked = ' checked="checked" ';
+            $single_checked = ' checked="checked"';
         } else {
-            $multiple_checked = ' checked="checked" ';
+            $multiple_checked = ' checked="checked"';
             $single_checked = '';
         }
 	$output .= &Apache::loncommon::continue_data_table_row();
 	$output .= '<td>'.('&nbsp;' x 10).'<span class="LC_metadata">
-	            <input type="radio" name="'.$field_name.'_onlyone" value="multiple" '.$multiple_checked .'/>
+	            <input type="radio" name="'.$field_name.'_onlyone" value="multiple"'.$multiple_checked .' />
 	            '.&mt('Student may select multiple choices from list').'</span></td>';
 	$output .= &Apache::loncommon::end_data_table_row();
 	$output .= &Apache::loncommon::continue_data_table_row();
 	$output .= '<td>'.('&nbsp;' x 10).'<span class="LC_metadata">
-	            <input type="radio" name="'.$field_name.'_onlyone"  value="single" '.$single_checked.'/>
+	            <input type="radio" name="'.$field_name.'_onlyone"  value="single"'.$single_checked.' />
 	            '.&mt('Student may select only one choice from list').'</span></td>';
 	$output .= &Apache::loncommon::end_data_table_row();
     }