[LON-CAPA-cvs] cvs: loncom /publisher testbankimport.pm
bisitz
bisitz@source.lon-capa.org
Wed, 06 May 2009 13:13:00 -0000
bisitz Wed May 6 13:13:00 2009 EDT
Modified files:
/loncom/publisher testbankimport.pm
Log:
- Corrected two typos in HTML attribute "checked" (leading quotation mark not allowed)
- XHTML conform checked and selected <input> attributes
- Eliminate white space between HTML attribute and value
Index: loncom/publisher/testbankimport.pm
diff -u loncom/publisher/testbankimport.pm:1.22 loncom/publisher/testbankimport.pm:1.23
--- loncom/publisher/testbankimport.pm:1.22 Mon May 4 16:46:05 2009
+++ loncom/publisher/testbankimport.pm Wed May 6 13:13:00 2009
@@ -1,5 +1,5 @@
# Handler for parsing text upload problem descriptions into .problems
-# $Id: testbankimport.pm,v 1.22 2009/05/04 16:46:05 bisitz Exp $
+# $Id: testbankimport.pm,v 1.23 2009/05/06 13:13:00 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -522,7 +522,7 @@
my %topics;
$topics{2} = &mt('Select the format of the question number - e.g., 1, 1., 1), (1 or (1) - ').'
<select name="qnumformat">
- <option value = "-1" selected>'.&mt('Select').'</option>
+ <option value="-1" selected="selected">'.&mt('Select').'</option>
<option value="number">1</option>
<option value="period">1.</option>
<option value="paren">(1)</option>
@@ -628,7 +628,7 @@
'<td valign="top"> <input type="text" name="end_'.$i.'" value="'.$bl1end.'" size="5" /> </td>'."\n".
'<td valign="top">
<select name="qtype_'.$i.'" onChange="colSet('.$i.')">
- <option value= "-1" selected>'.&mt('Select').'</option>'."\n");
+ <option value="-1" selected="selected">'.&mt('Select').'</option>'."\n");
foreach my $qtype (@types) {
$r->print('<option value="'.$qtype.'">'.$typenames{$qtype}.'</option>'."\n");
}
@@ -768,7 +768,7 @@
}
$r->print(&Apache::loncommon::start_data_table_row().
'<td valign="top">'.$qnum.'.</td>'."\n".
- '<td valign="top"><input name="createprob" type="checkbox" "checked="checked" value="'.$j.'" /></td>'."\n".
+ '<td valign="top"><input name="createprob" type="checkbox" checked="checked" value="'.$j.'" /></td>'."\n".
'<td valign="top"><b>'.$qtype[$i].'</b></td>'."\n".
'<td valign="top"><input type="textbox" name="probfile_'.$j.'" value="'.$libfile.'" size="20" /></td>'.
'<td valign="top">'.$showqn.'<br /><br />'."\n");
@@ -829,7 +829,7 @@
}
$r->print(&Apache::loncommon::start_data_table_row().
'<td valign="top">'.$qnum.'</td>'."\n".
- '<td valign="top"><input name="createprob" type="checkbox" "checked="checked" value="'.$j.'" /></td>'."\n".
+ '<td valign="top"><input name="createprob" type="checkbox" checked="checked" value="'.$j.'" /></td>'."\n".
'<td valign="top"><b>'.$qtype[$i].'</b></td>'."\n".
'<td valign="top"><input type="textbox" name="probfile_'.$j.'" value="'.$libfile.'" size="20" /></td>'."\n".
'<td valign="top">'.$items->[$j].'</td>'."\n".